2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
641 ac_subst_vars
='LTLIBOBJS
643 LIB_SRC_EXTRA_INSTALLABLES
645 GNUSTEP_SYSTEM_LIBRARIES
646 GNUSTEP_SYSTEM_HEADERS
665 x_default_search_path
777 program_transform_name
789 enable_option_checking
810 with_toolkit_scroll_bars
822 enable_ns_self_contained
824 enable_maintainer_mode
832 ac_precious_vars
='build_alias
844 # Initialize some variables set by options.
846 ac_init_version
=false
847 ac_unrecognized_opts
=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name
=s
,x
,x
,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir
='${exec_prefix}/bin'
873 sbindir
='${exec_prefix}/sbin'
874 libexecdir
='${exec_prefix}/libexec'
875 datarootdir
='${prefix}/share'
876 datadir
='${datarootdir}'
877 sysconfdir
='${prefix}/etc'
878 sharedstatedir
='${prefix}/com'
879 localstatedir
='${prefix}/var'
880 includedir
='${prefix}/include'
881 oldincludedir
='/usr/include'
882 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir
='${datarootdir}/info'
888 libdir
='${exec_prefix}/lib'
889 localedir
='${datarootdir}/locale'
890 mandir
='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\
$ac_option
904 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
914 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
916 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
919 -build |
--build |
--buil |
--bui |
--bu)
920 ac_prev
=build_alias
;;
921 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
922 build_alias
=$ac_optarg ;;
924 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
925 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
926 ac_prev
=cache_file
;;
927 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
928 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
929 cache_file
=$ac_optarg ;;
932 cache_file
=config.cache
;;
934 -datadir |
--datadir |
--datadi |
--datad)
936 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
937 datadir
=$ac_optarg ;;
939 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
940 |
--dataroo |
--dataro |
--datar)
941 ac_prev
=datarootdir
;;
942 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
943 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
944 datarootdir
=$ac_optarg ;;
946 -disable-* |
--disable-*)
947 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
950 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
951 { (exit 1); exit 1; }; }
952 ac_useropt_orig
=$ac_useropt
953 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep
=', ';;
961 eval enable_
$ac_useropt=no
;;
963 -docdir |
--docdir |
--docdi |
--doc |
--do)
965 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
968 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
970 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
973 -enable-* |
--enable-*)
974 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
977 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
978 { (exit 1); exit 1; }; }
979 ac_useropt_orig
=$ac_useropt
980 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep
=', ';;
988 eval enable_
$ac_useropt=\
$ac_optarg ;;
990 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
991 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
992 |
--exec |
--exe |
--ex)
993 ac_prev
=exec_prefix
;;
994 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
995 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
996 |
--exec=* |
--exe=* |
--ex=*)
997 exec_prefix
=$ac_optarg ;;
999 -gas |
--gas |
--ga |
--g)
1000 # Obsolete; use --with-gas.
1003 -help |
--help |
--hel |
--he |
-h)
1004 ac_init_help
=long
;;
1005 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1006 ac_init_help
=recursive
;;
1007 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1008 ac_init_help
=short
;;
1010 -host |
--host |
--hos |
--ho)
1011 ac_prev
=host_alias
;;
1012 -host=* |
--host=* |
--hos=* |
--ho=*)
1013 host_alias
=$ac_optarg ;;
1015 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1017 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1019 htmldir
=$ac_optarg ;;
1021 -includedir |
--includedir |
--includedi |
--included |
--include \
1022 |
--includ |
--inclu |
--incl |
--inc)
1023 ac_prev
=includedir
;;
1024 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1025 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1026 includedir
=$ac_optarg ;;
1028 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1030 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1031 infodir
=$ac_optarg ;;
1033 -libdir |
--libdir |
--libdi |
--libd)
1035 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1036 libdir
=$ac_optarg ;;
1038 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1039 |
--libexe |
--libex |
--libe)
1040 ac_prev
=libexecdir
;;
1041 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1042 |
--libexe=* |
--libex=* |
--libe=*)
1043 libexecdir
=$ac_optarg ;;
1045 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1046 ac_prev
=localedir
;;
1047 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1048 localedir
=$ac_optarg ;;
1050 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1051 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1052 ac_prev
=localstatedir
;;
1053 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1054 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1055 localstatedir
=$ac_optarg ;;
1057 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1059 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1060 mandir
=$ac_optarg ;;
1062 -nfp |
--nfp |
--nf)
1063 # Obsolete; use --without-fp.
1066 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1067 |
--no-cr |
--no-c |
-n)
1070 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1071 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1074 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1075 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1076 |
--oldin |
--oldi |
--old |
--ol |
--o)
1077 ac_prev
=oldincludedir
;;
1078 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1079 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1080 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1081 oldincludedir
=$ac_optarg ;;
1083 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1085 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1086 prefix
=$ac_optarg ;;
1088 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1089 |
--program-pre |
--program-pr |
--program-p)
1090 ac_prev
=program_prefix
;;
1091 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1092 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1093 program_prefix
=$ac_optarg ;;
1095 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1096 |
--program-suf |
--program-su |
--program-s)
1097 ac_prev
=program_suffix
;;
1098 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1099 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1100 program_suffix
=$ac_optarg ;;
1102 -program-transform-name |
--program-transform-name \
1103 |
--program-transform-nam |
--program-transform-na \
1104 |
--program-transform-n |
--program-transform- \
1105 |
--program-transform |
--program-transfor \
1106 |
--program-transfo |
--program-transf \
1107 |
--program-trans |
--program-tran \
1108 |
--progr-tra |
--program-tr |
--program-t)
1109 ac_prev
=program_transform_name
;;
1110 -program-transform-name=* |
--program-transform-name=* \
1111 |
--program-transform-nam=* |
--program-transform-na=* \
1112 |
--program-transform-n=* |
--program-transform-=* \
1113 |
--program-transform=* |
--program-transfor=* \
1114 |
--program-transfo=* |
--program-transf=* \
1115 |
--program-trans=* |
--program-tran=* \
1116 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1117 program_transform_name
=$ac_optarg ;;
1119 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1121 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1122 pdfdir
=$ac_optarg ;;
1124 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1126 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1129 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1130 |
-silent |
--silent |
--silen |
--sile |
--sil)
1133 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1135 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1137 sbindir
=$ac_optarg ;;
1139 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1140 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1141 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1143 ac_prev
=sharedstatedir
;;
1144 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1145 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1146 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1148 sharedstatedir
=$ac_optarg ;;
1150 -site |
--site |
--sit)
1152 -site=* |
--site=* |
--sit=*)
1155 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1157 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1158 srcdir
=$ac_optarg ;;
1160 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1161 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1162 ac_prev
=sysconfdir
;;
1163 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1164 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1165 sysconfdir
=$ac_optarg ;;
1167 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1168 ac_prev
=target_alias
;;
1169 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1170 target_alias
=$ac_optarg ;;
1172 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1175 -version |
--version |
--versio |
--versi |
--vers |
-V)
1176 ac_init_version
=: ;;
1179 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1182 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_useropt_orig
=$ac_useropt
1185 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep
=', ';;
1193 eval with_
$ac_useropt=\
$ac_optarg ;;
1195 -without-* |
--without-*)
1196 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1200 { (exit 1); exit 1; }; }
1201 ac_useropt_orig
=$ac_useropt
1202 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1207 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep
=', ';;
1210 eval with_
$ac_useropt=no
;;
1213 # Obsolete; use --with-x.
1216 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1217 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1218 ac_prev
=x_includes
;;
1219 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1220 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1221 x_includes
=$ac_optarg ;;
1223 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1224 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1225 ac_prev
=x_libraries
;;
1226 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1227 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1228 x_libraries
=$ac_optarg ;;
1230 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1239 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\
$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1257 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1264 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1265 { (exit 1); exit 1; }; } ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val
=\$
$ac_var
1277 # Remove trailing slashes.
1280 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\
$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$
]* | ?
:[\\/]* ) continue;;
1286 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1288 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289 { (exit 1); exit 1; }; }
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1297 target
=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x
; then
1301 if test "x$build_alias" = x
; then
1302 cross_compiling
=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1311 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1313 test "$silent" = yes && exec 6>/dev
/null
1316 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di
=`ls -di .` &&
1318 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1319 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1320 { (exit 1); exit 1; }; }
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1323 { (exit 1); exit 1; }; }
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted
=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir
=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted
=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1362 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363 { (exit 1); exit 1; }; }
1365 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1368 { (exit 1); exit 1; }; }
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1378 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 for ac_var
in $ac_precious_vars; do
1381 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1383 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1394 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1457 --x-includes=DIR X include files are
in DIR
1458 --x-libraries=DIR X library files are
in DIR
1461 --build=BUILD configure
for building on BUILD
[guessed
]
1462 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1473 --disable-option-checking ignore unrecognized
--enable/--with options
1474 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1475 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1476 --disable-ns-self-contained
1477 disable self contained build under NeXTstep
1478 --enable-asserts compile code with asserts enabled
1479 --enable-maintainer-mode
1480 enable make rules and dependencies not useful
(and
1481 sometimes confusing
) to the casual installer
1482 --enable-locallisppath=PATH
1483 directories Emacs should search
for lisp files
1484 specific to this site
1485 --enable-checking[=LIST
]
1486 enable expensive run-time checks. With LIST
, enable
1487 only specific categories of checks. Categories are
:
1488 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1489 stringfreelist
, xmallocoverrun
, conslist
1490 --enable-profiling build emacs with profiling support. This might not
1491 work on all platforms
1492 --enable-autodepend automatically generate dependencies to .h-files.
1493 Requires GNU Make and Gcc. Enabled
if GNU Make and
1495 --disable-largefile omit support
for large files
1498 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1499 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1500 --without-pop don
't support POP mail retrieval with movemail
1501 --with-kerberos support Kerberos-authenticated POP
1502 --with-kerberos5 support Kerberos version 5 authenticated POP
1503 --with-hesiod support Hesiod to get the POP server host
1504 --with-mmdf support MMDF mailboxes
1505 --with-mail-unlink unlink, rather than empty, mail spool after reading
1506 --with-mailhost=HOSTNAME
1507 string giving default POP mail host
1508 --without-sound don't compile with sound support
1509 --without-sync-input process async input synchronously
1510 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1512 --without-xpm don
't compile with XPM image support
1513 --without-jpeg don't compile with JPEG image support
1514 --without-tiff don
't compile with TIFF image support
1515 --without-gif don't compile with GIF image support
1516 --without-png don
't compile with PNG image support
1517 --without-rsvg don't compile with SVG image support
1518 --with-imagemagick compile with ImageMagick image support
1519 --without-xft don
't use XFT for anti aliased fonts
1520 --without-libotf don't use libotf
for OpenType font support
1521 --without-m17n-flt don
't use m17n-flt for text shaping
1522 --without-toolkit-scroll-bars
1523 don't use Motif or Xaw3d scroll bars
1524 --without-xaw3d don
't use Xaw3d
1525 --without-xim don't use X11 XIM
1526 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1527 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1529 --without-dbus don't compile with D-Bus support
1530 --without-gconf don
't compile with GConf support
1531 --without-makeinfo don't require makeinfo
for building manuals
1533 --with-pkg-config-prog=PATH
1534 path to pkg-config
for finding GTK and librsvg
1535 --with-gnustep-conf=PATH
1536 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1537 or
/etc
/GNUstep
/GNUstep.conf
1538 --with-x use the X Window System
1540 Some influential environment variables
:
1541 CC C compiler
command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1544 nonstandard directory
<lib dir
>
1545 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1546 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1547 you have headers
in a nonstandard directory
<include dir
>
1549 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1551 Use these variables to override the choices made by
`configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1558 if test "$ac_init_help" = "recursive"; then
1559 # If there are subdirs, report their specific --help.
1560 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561 test -d "$ac_dir" ||
1562 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1570 # A ".." for each directory in $ac_dir_suffix.
1571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1572 case $ac_top_builddir_sub in
1573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1583 .) # We are building in place.
1585 ac_top_srcdir=$ac_top_builddir_sub
1586 ac_abs_top_srcdir=$ac_pwd ;;
1587 [\\/]* | ?:[\\/]* ) # Absolute name.
1588 ac_srcdir=$srcdir$ac_dir_suffix;
1589 ac_top_srcdir=$srcdir
1590 ac_abs_top_srcdir=$srcdir ;;
1592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593 ac_top_srcdir=$ac_top_build_prefix$srcdir
1594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598 cd "$ac_dir" || { ac_status=$?; continue; }
1599 # Check for guested configure.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 emacs configure 24.0.50
1617 generated by GNU Autoconf 2.63
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1630 It was created by emacs $as_me 24.0.50, which was
1631 generated by GNU Autoconf 2.63. Invocation command line was
1643 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1644 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1645 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1646 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1647 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1649 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1650 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1652 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1653 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1654 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1655 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1656 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1657 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1658 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 $as_echo "PATH: $as_dir"
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_must_keep_next=false
1697 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699 | -silent | --silent | --silen | --sile | --sil)
1702 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1705 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1707 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708 if test $ac_must_keep_next = true; then
1709 ac_must_keep_next=false # Got value, back to normal.
1712 *=* | --config-cache | -C | -disable-* | --disable-* \
1713 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715 | -with-* | --with-* | -without-* | --without-* | --x)
1716 case "$ac_configure_args0 " in
1717 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1720 -* ) ac_must_keep_next=true ;;
1723 ac_configure_args="$ac_configure_args '$ac_arg'"
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log. We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737 # Save into config.log some information that might help in debugging.
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1747 # The following way of writing the cache mishandles newlines in values,
1749 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1750 eval ac_val=\$$ac_var
1754 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1755 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1758 _ | IFS | as_nl) ;; #(
1759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1760 *) $as_unset $ac_var ;;
1765 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1766 *${as_nl}ac_space=\ *)
1768 "s/'\''/'\''\\\\'\'''\''/g;
1769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780 ## ----------------- ##
1781 ## Output variables. ##
1782 ## ----------------- ##
1785 for ac_var in $ac_subst_vars
1787 eval ac_val=\$$ac_var
1789 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 $as_echo "$ac_var='\''$ac_val'\''"
1795 if test -n "$ac_subst_files"; then
1797 ## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##
1802 for ac_var in $ac_subst_files
1804 eval ac_val=\$$ac_var
1806 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1808 $as_echo "$ac_var='\''$ac_val'\''"
1813 if test -s confdefs.h; then
1823 test "$ac_signal" != 0 &&
1824 $as_echo "$as_me: caught signal $ac_signal"
1825 $as_echo "$as_me: exit $exit_status"
1827 rm -f core *.core core.conftest.* &&
1828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831 for ac_signal in 1 2 13 15; do
1832 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1837 rm -f -r conftest* confdefs.h
1839 # Predefined preprocessor variables.
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_NAME "$PACKAGE_NAME"
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_STRING "$PACKAGE_STRING"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1866 # Let the site file select an alternate cache file if it wants to.
1867 # Prefer an explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871 ac_site_file1=$CONFIG_SITE
1872 elif test "x$prefix" != xNONE; then
1873 ac_site_file1=$prefix/share/config.site
1874 ac_site_file2=$prefix/etc/config.site
1876 ac_site_file1=$ac_default_prefix/share/config.site
1877 ac_site_file2=$ac_default_prefix/etc/config.site
1879 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1881 test "x$ac_site_file" = xNONE && continue
1882 if test -r "$ac_site_file"; then
1883 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 $as_echo "$as_me: loading cache $cache_file" >&6;}
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1902 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 $as_echo "$as_me: creating cache $cache_file" >&6;}
1907 ac_header_list="$ac_header_list sys/time.h"
1908 ac_header_list="$ac_header_list unistd.h"
1909 ac_func_list="$ac_func_list alarm"
1910 # Check that the precious variables saved in the cache have kept the same
1912 ac_cache_corrupted=false
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1915 eval ac_new_set=\$ac_env_${ac_var}_set
1916 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1917 eval ac_new_val=\$ac_env_${ac_var}_value
1918 case $ac_old_set,$ac_new_set in
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1921 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1925 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1929 if test "x$ac_old_val" != "x$ac_new_val"; then
1930 # differences in whitespace do not lead to failure.
1931 ac_old_val_w=`echo x
$ac_old_val`
1932 ac_new_val_w=`echo x
$ac_new_val`
1933 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1935 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1936 ac_cache_corrupted=:
1938 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1939 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1940 eval $ac_var=\$ac_old_val
1942 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1943 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1944 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1945 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1948 # Pass precious variables to config.status.
1949 if test "$ac_new_set" = set; then
1951 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1952 *) ac_arg=$ac_var=$ac_new_val ;;
1954 case " $ac_configure_args " in
1955 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1956 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1960 if $ac_cache_corrupted; then
1961 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1963 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1964 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1965 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1966 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1967 { (exit 1); exit 1; }; }
1995 ac_cpp='$CPP $CPPFLAGS'
1996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001 ac_config_headers="$ac_config_headers src
/config.h
:src
/config.
in"
2005 test "$program_prefix" != NONE &&
2006 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
2007 # Use a double $ so make ignores it.
2008 test "$program_suffix" != NONE &&
2009 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
2010 # Double any \ or $.
2011 # By default was `s,x,x', remove it if useless.
2012 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2013 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2016 lispdir='${datadir}/emacs/${version}/lisp'
2017 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2018 '${datadir}/emacs/site-lisp'
2019 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2020 etcdir='${datadir}/emacs/${version}/etc'
2021 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2022 docdir='${datadir}/emacs/${version}/etc'
2023 gamedir='${localstatedir}/games/emacs'
2030 # Check whether --with-pop was given.
2031 if test "${with_pop+set}" = set; then
2037 if test "$with_pop" = yes; then
2038 cat >>confdefs.h <<\_ACEOF
2039 #define MAIL_USE_POP 1
2046 # Check whether --with-kerberos was given.
2047 if test "${with_kerberos+set}" = set; then
2048 withval=$with_kerberos;
2053 if test "$with_kerberos" != no; then
2054 cat >>confdefs.h <<\_ACEOF
2062 # Check whether --with-kerberos5 was given.
2063 if test "${with_kerberos5+set}" = set; then
2064 withval=$with_kerberos5;
2069 if test "${with_kerberos5}" != no; then
2070 if test "${with_kerberos}" = no; then
2072 cat >>confdefs.h <<\_ACEOF
2078 cat >>confdefs.h <<\_ACEOF
2085 # Check whether --with-hesiod was given.
2086 if test "${with_hesiod+set}" = set; then
2087 withval=$with_hesiod;
2092 if test "$with_hesiod" != no; then
2094 cat >>confdefs.h <<\_ACEOF
2101 # Check whether --with-mmdf was given.
2102 if test "${with_mmdf+set}" = set; then
2108 if test "$with_mmdf" != no; then
2110 cat >>confdefs.h <<\_ACEOF
2111 #define MAIL_USE_MMDF 1
2117 # Check whether --with-mail-unlink was given.
2118 if test "${with_mail_unlink+set}" = set; then
2119 withval=$with_mail_unlink;
2124 if test "$with_mail_unlink" != no; then
2126 cat >>confdefs.h <<\_ACEOF
2127 #define MAIL_UNLINK_SPOOL 1
2133 # Check whether --with-mailhost was given.
2134 if test "${with_mailhost+set}" = set; then
2135 withval=$with_mailhost;
2136 cat >>confdefs.h <<_ACEOF
2137 #define MAILHOST "$withval"
2144 # Check whether --with-sound was given.
2145 if test "${with_sound+set}" = set; then
2146 withval=$with_sound;
2153 # Check whether --with-sync-input was given.
2154 if test "${with_sync_input+set}" = set; then
2155 withval=$with_sync_input;
2160 if test "$with_sync_input" = yes; then
2162 cat >>confdefs.h <<\_ACEOF
2163 #define SYNC_INPUT 1
2169 # Check whether --with-x-toolkit was given.
2170 if test "${with_x_toolkit+set}" = set; then
2171 withval=$with_x_toolkit; case "${withval}" in
2172 y | ye | yes ) val=gtk ;;
2174 l | lu | luc | luci | lucid ) val=lucid ;;
2175 a | at | ath | athe | athen | athena ) val=athena ;;
2176 m | mo | mot | moti | motif ) val=motif ;;
2177 g | gt | gtk ) val=gtk ;;
2179 { { $as_echo "$as_me:$LINENO: error
: \
`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2181 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&5
2182 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid
;
2183 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2184 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&2;}
2185 { (exit 1); exit 1; }; }
2194 # Check whether --with-xpm was given.
2195 if test "${with_xpm+set}" = set; then
2202 # Check whether --with-jpeg was given.
2203 if test "${with_jpeg+set}" = set; then
2210 # Check whether --with-tiff was given.
2211 if test "${with_tiff+set}" = set; then
2218 # Check whether --with-gif was given.
2219 if test "${with_gif+set}" = set; then
2226 # Check whether --with-png was given.
2227 if test "${with_png+set}" = set; then
2234 # Check whether --with-rsvg was given.
2235 if test "${with_rsvg+set}" = set; then
2242 # Check whether --with-imagemagick was given.
2243 if test "${with_imagemagick+set}" = set; then
2244 withval=$with_imagemagick;
2251 # Check whether --with-xft was given.
2252 if test "${with_xft+set}" = set; then
2259 # Check whether --with-libotf was given.
2260 if test "${with_libotf+set}" = set; then
2261 withval=$with_libotf;
2267 # Check whether --with-m17n-flt was given.
2268 if test "${with_m17n_flt+set}" = set; then
2269 withval=$with_m17n_flt;
2276 # Check whether --with-toolkit-scroll-bars was given.
2277 if test "${with_toolkit_scroll_bars+set}" = set; then
2278 withval=$with_toolkit_scroll_bars;
2280 with_toolkit_scroll_bars=yes
2284 # Check whether --with-xaw3d was given.
2285 if test "${with_xaw3d+set}" = set; then
2286 withval=$with_xaw3d;
2292 # Check whether --with-xim was given.
2293 if test "${with_xim+set}" = set; then
2300 # Check whether --with-ns was given.
2301 if test "${with_ns+set}" = set; then
2309 # Check whether --with-gpm was given.
2310 if test "${with_gpm+set}" = set; then
2317 # Check whether --with-dbus was given.
2318 if test "${with_dbus+set}" = set; then
2325 # Check whether --with-gconf was given.
2326 if test "${with_gconf+set}" = set; then
2327 withval=$with_gconf;
2333 ## For the times when you want to build Emacs but don't have
2334 ## a suitable makeinfo, and can live without the manuals.
2336 # Check whether --with-makeinfo was given.
2337 if test "${with_makeinfo+set}" = set; then
2338 withval=$with_makeinfo;
2345 # Check whether --with-gtk was given.
2346 if test "${with_gtk+set}" = set; then
2347 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2348 specify a toolkit.
" >&5
2349 $as_echo "$as_me: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2350 specify a toolkit.
" >&2;}
2351 { (exit 1); exit 1; }; }
2356 # Check whether --with-gcc was given.
2357 if test "${with_gcc+set}" = set; then
2358 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error
: --with-gcc has been removed. Set the \
`CC' environment
2359 variable to specify a compiler." >&5
2360 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC
' environment
2361 variable to specify a compiler." >&2;}
2362 { (exit 1); exit 1; }; }
2367 # Check whether --with-pkg-config-prog was given.
2368 if test "${with_pkg_config_prog+set}" = set; then
2369 withval=$with_pkg_config_prog;
2372 if test "X${with_pkg_config_prog}" != X; then
2373 if test "${with_pkg_config_prog}" != yes; then
2374 PKG_CONFIG="${with_pkg_config_prog}"
2379 # Check whether --with-gnustep-conf was given.
2380 if test "${with_gnustep_conf+set}" = set; then
2381 withval=$with_gnustep_conf;
2384 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2385 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2386 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2387 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2389 # Check whether --enable-ns-self-contained was given.
2390 if test "${enable_ns_self_contained+set}" = set; then
2391 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2393 EN_NS_SELF_CONTAINED=yes
2397 # Check whether --enable-asserts was given.
2398 if test "${enable_asserts+set}" = set; then
2399 enableval=$enable_asserts; USE_XASSERTS=$enableval
2405 # Check whether --enable-maintainer-mode was given.
2406 if test "${enable_maintainer_mode+set}" = set; then
2407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2409 USE_MAINTAINER_MODE=no
2412 if test $USE_MAINTAINER_MODE = yes; then
2419 # Check whether --enable-locallisppath was given.
2420 if test "${enable_locallisppath+set}" = set; then
2421 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2423 elif test "${enableval}" != "yes"; then
2424 locallisppath=${enableval}
2429 # Check whether --enable-checking was given.
2430 if test "${enable_checking+set}" = set; then
2431 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2435 for check in $ac_checking_flags
2438 # these set all the flags to specific states
2439 yes) ac_enable_checking=1 ;;
2440 no) ac_enable_checking= ;
2441 ac_gc_check_stringbytes= ;
2442 ac_gc_check_string_overrun= ;
2443 ac_gc_check_string_free_list= ;
2444 ac_xmalloc_overrun= ;
2445 ac_gc_check_cons_list= ;;
2446 all) ac_enable_checking=1 ;
2447 ac_gc_check_stringbytes=1 ;
2448 ac_gc_check_string_overrun=1 ;
2449 ac_gc_check_string_free_list=1 ;
2450 ac_xmalloc_overrun=1 ;
2451 ac_gc_check_cons_list=1 ;;
2452 # these enable particular checks
2453 stringbytes) ac_gc_check_stringbytes=1 ;;
2454 stringoverrun) ac_gc_check_string_overrun=1 ;;
2455 stringfreelist) ac_gc_check_string_free_list=1 ;;
2456 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2457 conslist) ac_gc_check_cons_list=1 ;;
2458 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2459 $as_echo "$as_me: error: unknown check category $check" >&2;}
2460 { (exit 1); exit 1; }; } ;;
2465 if test x$ac_enable_checking != x ; then
2467 cat >>confdefs.h <<\_ACEOF
2468 #define ENABLE_CHECKING 1
2472 if test x$ac_gc_check_stringbytes != x ; then
2474 cat >>confdefs.h <<\_ACEOF
2475 #define GC_CHECK_STRING_BYTES 1
2479 if test x$ac_gc_check_stringoverrun != x ; then
2481 cat >>confdefs.h <<\_ACEOF
2482 #define GC_CHECK_STRING_OVERRUN 1
2486 if test x$ac_gc_check_string_free_list != x ; then
2488 cat >>confdefs.h <<\_ACEOF
2489 #define GC_CHECK_STRING_FREE_LIST 1
2493 if test x$ac_xmalloc_overrun != x ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define XMALLOC_OVERRUN_CHECK 1
2500 if test x$ac_gc_check_cons_list != x ; then
2502 cat >>confdefs.h <<\_ACEOF
2503 #define GC_CHECK_CONS_LIST 1
2508 # Check whether --enable-profiling was given.
2509 if test "${enable_profiling+set}" = set; then
2510 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 if test x$ac_enable_profiling != x ; then
2514 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2515 PROFILING_LDFLAGS="-pg"
2521 # Check whether --enable-autodepend was given.
2522 if test "${enable_autodepend+set}" = set; then
2523 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2525 ac_enable_autodepend=yes
2529 #### Make srcdir absolute, if it isn't already. It
's important to
2530 #### avoid running the path through pwd unnecessarily, since pwd can
2531 #### give you automounter prefixes, which can go away. We do all this
2532 #### so Emacs can find its files when run uninstalled.
2533 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2538 ## We may be able to use the $PWD environment variable to make this
2539 ## absolute. But sometimes PWD is inaccurate.
2540 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2541 ## but that tested only for a well-formed and valid PWD,
2542 ## it did not object when PWD was well-formed and valid but just wrong.
2543 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2547 srcdir
="`(cd ${srcdir}; pwd)`"
2550 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2553 #### Check if the source directory already has a configured system in it.
2554 if test `pwd` != `(cd ${srcdir} && pwd)` \
2555 && test -f "${srcdir}/src/config.h" ; then
2556 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2557 as a build directory right now; it has been configured in its own
2558 right. To configure in another directory as well, you MUST
2559 use GNU make. If you do not have GNU make, then you must
2560 now do \`make distclean' in ${srcdir},
2561 and then run $0 again." >&5
2562 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2563 as a build directory right now; it has been configured in its own
2564 right. To configure in another directory as well, you MUST
2565 use GNU make. If you do not have GNU make, then you must
2566 now do \`make distclean' in ${srcdir},
2567 and then run $0 again." >&2;}
2570 #### Given the configuration name, set machfile and opsysfile to the
2571 #### names of the m/*.h and s/*.h files we should use.
2573 ### Canonicalize the configuration name.
2576 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 if test -f "$ac_dir/install-sh"; then
2579 ac_install_sh
="$ac_aux_dir/install-sh -c"
2581 elif test -f "$ac_dir/install.sh"; then
2583 ac_install_sh
="$ac_aux_dir/install.sh -c"
2585 elif test -f "$ac_dir/shtool"; then
2587 ac_install_sh
="$ac_aux_dir/shtool install -c"
2591 if test -z "$ac_aux_dir"; then
2592 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2593 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2594 { (exit 1); exit 1; }; }
2597 # These three variables are undocumented and unsupported,
2598 # and are intended to be withdrawn in a future Autoconf release.
2599 # They can cause serious problems if a builder's source tree is in a directory
2600 # whose full name contains unusual characters.
2601 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2602 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2603 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606 # Make sure we can run config.sub.
2607 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2608 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2609 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2610 { (exit 1); exit 1; }; }
2612 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if test "${ac_cv_build+set}" = set; then
2615 $as_echo_n "(cached) " >&6
2617 ac_build_alias
=$build_alias
2618 test "x$ac_build_alias" = x
&&
2619 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x
&&
2621 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2622 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2623 { (exit 1); exit 1; }; }
2624 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2625 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2626 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2627 { (exit 1); exit 1; }; }
2630 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2631 $as_echo "$ac_cv_build" >&6; }
2632 case $ac_cv_build in
2634 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2635 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2636 { (exit 1); exit 1; }; };;
2639 ac_save_IFS
=$IFS; IFS
='-'
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2649 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2653 $as_echo_n "checking host system type... " >&6; }
2654 if test "${ac_cv_host+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test "x$host_alias" = x
; then
2658 ac_cv_host
=$ac_cv_build
2660 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2661 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2662 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2663 { (exit 1); exit 1; }; }
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2668 $as_echo "$ac_cv_host" >&6; }
2671 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2672 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2673 { (exit 1); exit 1; }; };;
2676 ac_save_IFS
=$IFS; IFS
='-'
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2686 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2690 configuration
=${host_alias-${build_alias-$host}}
2694 ### If you add support for a new configuration, add code to this
2695 ### switch statement to recognize your configuration name and select
2696 ### the appropriate operating system and machine description files.
2698 ### You would hope that you could choose an m/*.h file pretty much
2699 ### based on the machine portion of the configuration name, and an s-
2700 ### file based on the operating system portion. However, it turns out
2701 ### that each m/*.h file is pretty manufacturer-specific - for
2702 ### example mips.h is MIPS
2703 ### So we basically have to have a special case for each
2704 ### configuration name.
2706 ### As far as handling version numbers on operating systems is
2707 ### concerned, make sure things will fail in a fixable way. If
2708 ### /etc/MACHINES doesn't say anything about version numbers, be
2709 ### prepared to handle anything reasonably. If version numbers
2710 ### matter, be sure /etc/MACHINES says something about it.
2712 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2713 ### "System V Release 4"; he writes, "The old convention encouraged
2714 ### confusion between `system' and `release' levels'."
2716 machine
='' opsys
='' unported
=no
2717 case "${canonical}" in
2722 case "${canonical}" in
2723 alpha
*-*-freebsd*) machine
=alpha
;;
2724 arm
*-*-freebsd*) machine
=arm
;;
2725 ia64-
*-freebsd*) machine
=ia64
;;
2726 sparc-
*-freebsd*) machine
=sparc
;;
2727 sparc64-
*-freebsd*) machine
=sparc
;;
2728 powerpc-
*-freebsd*) machine
=macppc
;;
2729 i
[3456]86-*-freebsd*) machine
=intel386
;;
2730 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2734 ## FreeBSD kernel + glibc based userland
2737 case "${canonical}" in
2738 alpha
*-*-kfreebsd*) machine
=alpha
;;
2739 ia64-
*-kfreebsd*) machine
=ia64
;;
2740 sparc-
*-kfreebsd*) machine
=sparc
;;
2741 sparc64-
*-kfreebsd*) machine
=sparc
;;
2742 powerpc-
*-kfreebsd*) machine
=macppc
;;
2743 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2744 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2751 if test -f /usr
/lib
/crti.o
; then
2753 cat >>confdefs.h
<<\_ACEOF
2754 #define HAVE_CRTIN /**/
2759 case "${canonical}" in
2760 alpha
*-*-netbsd*) machine
=alpha
;;
2761 i
[3456]86-*-netbsd*) machine
=intel386
;;
2762 mips-
*-netbsd*) machine
=mips
;;
2763 mipsel-
*-netbsd*) machine
=mips
;;
2764 mipseb-
*-netbsd*) machine
=mips
;;
2765 powerpc-
*-netbsd*) machine
=macppc
;;
2766 sparc
*-*-netbsd*) machine
=sparc
;;
2767 vax-
*-netbsd*) machine
=vax
;;
2768 arm-
*-netbsd*) machine
=arm
;;
2769 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2770 hppa-
*-netbsd*) machine
=hp800
;;
2771 m68k-
*-netbsd*) machine
=m68k
;;
2778 case "${canonical}" in
2779 alpha
*-*-openbsd*) machine
=alpha
;;
2780 arm-
*-openbsd*) machine
=arm
;;
2781 i386-
*-openbsd*) machine
=intel386
;;
2782 powerpc-
*-openbsd*) machine
=macppc
;;
2783 sparc
*-*-openbsd*) machine
=sparc
;;
2784 vax-
*-openbsd*) machine
=vax
;;
2785 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2786 hppa-
*-openbsd*) machine
=hp800
;;
2790 alpha
*-*-linux-gnu* )
2791 machine
=alpha opsys
=gnu-linux
2795 machine
=arm opsys
=gnu-linux
2798 ## Apple Darwin / Mac OS X
2800 case "${canonical}" in
2801 i
[3456]86-* ) machine
=intel386
;;
2802 powerpc-
* ) machine
=macppc
;;
2803 x86_64-
* ) machine
=amdx86-64
;;
2807 # Define CPP as follows to make autoconf work correctly.
2808 CPP
="${CC-cc} -E -no-cpp-precomp"
2809 # Use fink packages if available.
2810 if test -d /sw
/include
&& test -d /sw
/lib
; then
2811 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2812 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2813 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2817 ## HP 9000 series 700 and 800, running HP/UX
2818 hppa
*-hp-hpux10.2
* )
2819 machine
=hp800 opsys
=hpux10-20
2821 hppa
*-hp-hpux1[1-9]* )
2822 machine
=hp800 opsys
=hpux11
2823 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2826 hppa
*-*-linux-gnu* )
2827 machine
=hp800 opsys
=gnu-linux
2832 machine
=ibms390 opsys
=gnu-linux
2834 s390x-
*-linux-gnu* )
2835 machine
=ibms390x opsys
=gnu-linux
2837 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2838 machine
=ibmrs6000 opsys
=aix4-2
2840 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2841 machine
=ibmrs6000 opsys
=aix4-2
2843 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2844 machine
=ibmrs6000 opsys
=aix4-2
2846 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2847 machine
=ibmrs6000 opsys
=aix4-2
2850 ## Macintosh PowerPC
2851 powerpc
*-*-linux-gnu* )
2852 machine
=macppc opsys
=gnu-linux
2855 ## Silicon Graphics machines
2858 machine
=iris4d opsys
=irix6-5
2859 # Without defining _LANGUAGE_C, things get masked out in the headers
2860 # so that, for instance, grepping for `free' in stdlib.h fails and
2861 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2862 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2863 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2867 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2868 machine
=sparc opsys
=gnu-linux
2872 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2873 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2874 case "${canonical}" in
2875 i
[3456]86-*-* ) machine
=intel386
;;
2876 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2877 sparc
* ) machine
=sparc
;;
2880 case "${canonical}" in
2881 *-sunos5.6
* |
*-solaris2.6
* )
2883 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2886 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2888 emacs_check_sunpro_c
=yes
2889 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2891 *-sunos5* |
*-solaris* )
2893 emacs_check_sunpro_c
=yes
2894 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2897 ## Watch out for a compiler that we know will not work.
2898 case "${canonical}" in
2899 *-solaris* |
*-sunos5* )
2900 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2901 ## /usr/ucb/cc doesn't work;
2902 ## we should find some other compiler that does work.
2912 machine
=ia64 opsys
=gnu-linux
2915 ## Intel 386 machines where we don't care about the manufacturer
2918 case "${canonical}" in
2919 *-cygwin ) opsys
=cygwin
;;
2920 *-darwin* ) opsys
=darwin
2921 CPP
="${CC-cc} -E -no-cpp-precomp"
2923 *-linux-gnu* ) opsys
=gnu-linux
;;
2924 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2925 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2926 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2927 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2931 ## m68k Linux-based GNU system
2933 machine
=m68k opsys
=gnu-linux
2936 ## Mips Linux-based GNU system
2937 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2938 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2939 machine
=mips opsys
=gnu-linux
2942 ## AMD x86-64 Linux-based GNU system
2943 x86_64-
*-linux-gnu* )
2944 machine
=amdx86-64 opsys
=gnu-linux
2947 ## Tensilica Xtensa Linux-based GNU system
2948 xtensa
*-*-linux-gnu* )
2949 machine
=xtensa opsys
=gnu-linux
2952 ## SuperH Linux-based GNU system
2953 sh
[34]*-*-linux-gnu* )
2954 machine
=sh3 opsys
=gnu-linux
2962 ### If the code above didn't choose an operating system, just choose
2963 ### an operating system based on the configuration name. You really
2964 ### only want to use this when you have no idea what the right
2965 ### operating system is; if you know what operating systems a machine
2966 ### runs, it's cleaner to make it explicit in the case statement
2968 if test x
"${opsys}" = x
; then
2969 case "${canonical}" in
2970 *-gnu* ) opsys
=gnu
;;
2979 if test $unported = yes; then
2980 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2981 Check \`etc/MACHINES' for recognized configuration names." >&5
2982 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2984 { (exit 1); exit 1; }; }
2987 machfile
="m/${machine}.h"
2988 opsysfile
="s/${opsys}.h"
2991 #### Choose a compiler.
2992 test -n "$CC" && cc_specified
=yes
2994 # Save the value of CFLAGS that the user specified.
2995 SPECIFIED_CFLAGS
="$CFLAGS"
2998 ac_cpp
='$CPP $CPPFLAGS'
2999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3004 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC
="$CC" # Let the user override the test.
3013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir
=.
3018 for ac_exec_ext
in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3035 { $as_echo "$as_me:$LINENO: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_CC"; then
3043 # Extract the first word of "gcc", so it can be a program name with args.
3044 set dummy gcc
; ac_word
=$2
3045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$ac_ct_CC"; then
3051 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_CC
="gcc"
3061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3071 if test -n "$ac_ct_CC"; then
3072 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3073 $as_echo "$ac_ct_CC" >&6; }
3075 { $as_echo "$as_me:$LINENO: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_CC" = x
; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned
=yes ;;
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3097 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC
="$CC" # Let the user override the test.
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 # Extract the first word of "cc", so it can be a program name with args.
3137 set dummy cc
; ac_word
=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$CC"; then
3144 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3155 ac_prog_rejected
=yes
3159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test $ac_prog_rejected = yes; then
3167 # We found a bogon in the path, so make sure we never use it.
3168 set dummy
$ac_cv_prog_CC
3170 if test $# != 0; then
3171 # We chose a different compiler from the bogus one.
3172 # However, it has the same basename, so the bogon will be chosen
3173 # first if we set CC to just the basename; use the full file name.
3175 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:$LINENO: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 for ac_prog
in cl.exe
3195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3197 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC
="$CC" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$CC" && break
3235 if test -z "$CC"; then
3237 for ac_prog
in cl.exe
3239 # Extract the first word of "$ac_prog", so it can be a program name with args.
3240 set dummy
$ac_prog; ac_word
=$2
3241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3244 $as_echo_n "(cached) " >&6
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir
=.
3254 for ac_exec_ext
in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_ac_ct_CC
="$ac_prog"
3257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3267 if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3269 $as_echo "$ac_ct_CC" >&6; }
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3276 test -n "$ac_ct_CC" && break
3279 if test "x$ac_ct_CC" = x
; then
3282 case $cross_compiling:$ac_tool_warned in
3284 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned
=yes ;;
3295 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3303 # Provide some information about the compiler.
3304 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3307 { (ac_try
="$ac_compiler --version >&5"
3309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3313 $as_echo "$ac_try_echo") >&5
3314 (eval "$ac_compiler --version >&5") 2>&5
3316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (ac_try="$ac_compiler -v >&5"
3320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3321 *) ac_try_echo
=$ac_try;;
3323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325 (eval "$ac_compiler -v >&5") 2>&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }
3329 { (ac_try
="$ac_compiler -V >&5"
3331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3335 $as_echo "$ac_try_echo") >&5
3336 (eval "$ac_compiler -V >&5") 2>&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 ac_clean_files_save=$ac_clean_files
3357 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3358 # Try to create an executable without -o first, disregard a.out.
3359 # It will help us diagnose broken compilers, and finding out an intuition
3361 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3362 $as_echo_n "checking for C compiler default output file name... " >&6; }
3363 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3365 # The possible output files:
3366 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3369 for ac_file in $ac_files
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3378 if { (ac_try="$ac_link_default"
3380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3381 *) ac_try_echo
=$ac_try;;
3383 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3384 $as_echo "$ac_try_echo") >&5
3385 (eval "$ac_link_default") 2>&5
3387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; then
3389 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3390 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3391 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3392 # so that the user can short-circuit this test for compilers unknown to
3394 for ac_file
in $ac_files ''
3396 test -f "$ac_file" ||
continue
3398 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3401 # We found the default executable, but exeext='' is most
3405 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3407 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3409 # We set ac_cv_exeext here because the later test for it is not
3410 # safe: cross compilers may not add the suffix if given an `-o'
3411 # argument, so we may need to know it at that point already.
3412 # Even if this section looks crufty: it has the advantage of
3419 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3425 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3426 $as_echo "$ac_file" >&6; }
3427 if test -z "$ac_file"; then
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.
$ac_ext >&5
3431 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: C compiler cannot create executables
3436 See \`config.log' for more details." >&2;}
3437 { (exit 77); exit 77; }; }; }
3440 ac_exeext
=$ac_cv_exeext
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3445 $as_echo_n "checking whether the C compiler works... " >&6; }
3446 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3447 # If not cross compiling, check that we can run a simple program.
3448 if test "$cross_compiling" != yes; then
3449 if { ac_try
='./$ac_file'
3450 { (case "(($ac_try" in
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455 $as_echo "$ac_try_echo") >&5
3456 (eval "$ac_try") 2>&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 if test "$cross_compiling" = maybe; then
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3468 If you meant to cross compile
, use \
`--host'.
3469 See \`config.log
' for more details." >&5
3470 $as_echo "$as_me: error: cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \
`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }; }
3477 { $as_echo "$as_me:$LINENO: result: yes" >&5
3478 $as_echo "yes" >&6; }
3480 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3481 ac_clean_files=$ac_clean_files_save
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3485 $as_echo_n "checking whether we are cross compiling... " >&6; }
3486 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3487 $as_echo "$cross_compiling" >&6; }
3489 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { (ac_try="$ac_link"
3493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3494 *) ac_try_echo
=$ac_try;;
3496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_link") 2>&5
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; then
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3506 for ac_file
in conftest.exe conftest conftest.
*; do
3507 test -f "$ac_file" ||
continue
3509 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3510 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }; }
3525 rm -f conftest
$ac_cv_exeext
3526 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3529 rm -f conftest.
$ac_ext
3530 EXEEXT
=$ac_cv_exeext
3532 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3533 $as_echo_n "checking for suffix of object files... " >&6; }
3534 if test "${ac_cv_objext+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3537 cat >conftest.
$ac_ext <<_ACEOF
3540 cat confdefs.h
>>conftest.
$ac_ext
3541 cat >>conftest.
$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3552 rm -f conftest.o conftest.obj
3553 if { (ac_try
="$ac_compile"
3555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_compile") 2>&5
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; then
3564 for ac_file in conftest.o conftest.obj conftest.*; do
3565 test -f "$ac_file" || continue;
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3579 See \
`config.log' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log
' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3624 grep -v '^
*+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's
/^
/|
/' conftest.$ac_ext >&5
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^
*+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's
/^
/|
/' conftest.$ac_ext >&5
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3726 grep -v '^
*+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's
/^
/|
/' conftest.$ac_ext >&5
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3766 grep -v '^
*+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's
/^
/|
/' conftest.$ac_ext >&5
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3802 if test "$GCC" = yes; then
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached) " >&6
3813 ac_cv_prog_cc_c89=no
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3826 struct buf
{ int x
; };
3827 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3828 static char
*e
(p
, i
)
3834 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3839 s
= g
(p
, va_arg
(v
,int
));
3844 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3845 function prototypes and stuff
, but not
'\xHH' hex character constants.
3846 These don
't provoke an error unfortunately, instead are silently treated
3847 as 'x
'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3849 array size at least. It's necessary to
write '\x00'==0 to get something
3850 that
's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3856 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^
*+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's
/^
/|
/' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 rm -f conftest.$ac_ext
3910 case "x$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;;
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3927 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3974 grep -v '^
*+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3985 emacs_cv_sunpro_c=yes
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's
/^
/|
/' conftest.$ac_ext >&5
3990 emacs_cv_sunpro_c=no
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4023 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4025 CC="$CC $GCC_TEST_OPTIONS"
4028 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4036 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached) " >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser
,
4059 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.
$ac_ext <<_ACEOF
4063 cat confdefs.h
>>conftest.
$ac_ext
4064 cat >>conftest.
$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (ac_try="$ac_cpp conftest.$ac_ext"
4113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4114 *) ac_try_echo
=$ac_try;;
4116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1
>conftest.err
4122 cat conftest.err
>&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev
/null
&& {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4128 # Broken: success on invalid input.
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.
$ac_ext >&5
4134 # Passes both tests.
4139 rm -f conftest.err conftest.
$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.
$ac_ext
4144 if $ac_preproc_ok; then
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4159 for ac_c_preproc_warn_flag
in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (ac_try="$ac_cpp conftest.$ac_ext"
4220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4221 *) ac_try_echo
=$ac_try;;
4223 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1
>conftest.err
4229 cat conftest.err
>&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev
/null
&& {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4235 # Broken: success on invalid input.
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.
$ac_ext >&5
4241 # Passes both tests.
4246 rm -f conftest.err conftest.
$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.
$ac_ext
4251 if $ac_preproc_ok; then
4254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&5
4258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4259 See \`config.log' for more details." >&2;}
4260 { (exit 1); exit 1; }; }; }
4264 ac_cpp
='$CPP $CPPFLAGS'
4265 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found
=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4279 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4282 test -z "$as_dir" && as_dir
=.
4283 for ac_prog
in grep ggrep
; do
4284 for ac_exec_ext
in '' $ac_executable_extensions; do
4285 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4291 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4294 $as_echo_n 0123456789 >"conftest.in"
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4302 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4303 ac_count
=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP
="$ac_path_GREP"
4307 ac_path_GREP_max
=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4312 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4315 $ac_path_GREP_found && break 3
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4326 ac_cv_path_GREP
=$GREP
4330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331 $as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP
="$ac_cv_path_GREP"
4335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336 $as_echo_n "checking for egrep... " >&6; }
4337 if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4340 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4341 then ac_cv_path_EGREP
="$GREP -E"
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found
=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4350 test -z "$as_dir" && as_dir
=.
4351 for ac_prog
in egrep; do
4352 for ac_exec_ext
in '' $ac_executable_extensions; do
4353 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4355 # Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357 case `"$ac_path_EGREP" --version 2>&1` in
4359 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4362 $as_echo_n 0123456789 >"conftest.in"
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4370 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4371 ac_count
=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP
="$ac_path_EGREP"
4375 ac_path_EGREP_max
=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4380 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4383 $ac_path_EGREP_found && break 3
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4394 ac_cv_path_EGREP
=$EGREP
4399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP
="$ac_cv_path_EGREP"
4404 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4405 $as_echo_n "checking for ANSI C header files... " >&6; }
4406 if test "${ac_cv_header_stdc+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4409 cat >conftest.
$ac_ext <<_ACEOF
4412 cat confdefs.h
>>conftest.
$ac_ext
4413 cat >>conftest.
$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4428 rm -f conftest.
$ac_objext
4429 if { (ac_try
="$ac_compile"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4435 $as_echo "$ac_try_echo") >&5
4436 (eval "$ac_compile") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } && {
4443 test -z "$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4445 } && test -s conftest.$ac_objext; then
4446 ac_cv_header_stdc=yes
4448 $as_echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 ac_cv_header_stdc=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 if test $ac_cv_header_stdc = yes; then
4457 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4458 cat >conftest.$ac_ext <<_ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4468 $EGREP "memchr" >/dev/null 2>&1; then
4471 ac_cv_header_stdc=no
4477 if test $ac_cv_header_stdc = yes; then
4478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489 $EGREP "free" >/dev/null 2>&1; then
4492 ac_cv_header_stdc=no
4498 if test $ac_cv_header_stdc = yes; then
4499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4500 if test "$cross_compiling" = yes; then
4503 cat >conftest.$ac_ext <<_ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4511 #if ((' ' & 0x0FF) == 0x020)
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 # define ISLOWER(c) \
4516 (('a' <= (c) && (c) <= 'i') \
4517 || ('j' <= (c) && (c) <= 'r') \
4518 || ('s' <= (c) && (c) <= 'z'))
4519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4527 for (i = 0; i < 256; i++)
4528 if (XOR (islower (i), ISLOWER (i))
4529 || toupper (i) != TOUPPER (i))
4534 rm -f conftest$ac_exeext
4535 if { (ac_try="$ac_link"
4537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4538 *) ac_try_echo
=$ac_try;;
4540 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542 (eval "$ac_link") 2>&5
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_try") 2>&5
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4558 $as_echo "$as_me: program exited with status $ac_status" >&5
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_cv_header_stdc=no
4565 rm -rf conftest.dSYM
4566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4573 $as_echo "$ac_cv_header_stdc" >&6; }
4574 if test $ac_cv_header_stdc = yes; then
4576 cat >>confdefs.h <<\_ACEOF
4577 #define STDC_HEADERS 1
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4592 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4593 inttypes.h stdint.h unistd.h
4595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 $as_echo_n "checking for $ac_header... " >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599 $as_echo_n "(cached) " >&6
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4609 #include <$ac_header>
4611 rm -f conftest.$ac_objext
4612 if { (ac_try="$ac_compile"
4614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4615 *) ac_try_echo
=$ac_try;;
4617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4621 grep -v '^ *+' conftest.er1
>conftest.err
4623 cat conftest.err
>&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.
$ac_objext; then
4629 eval "$as_ac_Header=yes"
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.
$ac_ext >&5
4634 eval "$as_ac_Header=no"
4637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4639 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4640 $as_echo "$as_val"'`
4641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4642 $as_echo "$ac_res" >&6; }
4643 as_val
=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 if test "x$as_val" = x
""yes; then
4646 cat >>confdefs.h
<<_ACEOF
4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4658 $as_echo_n "checking for minix/config.h... " >&6; }
4659 if test "${ac_cv_header_minix_config_h+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4663 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4665 # Is the header compilable?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4667 $as_echo_n "checking minix/config.h usability... " >&6; }
4668 cat >conftest.
$ac_ext <<_ACEOF
4671 cat confdefs.h
>>conftest.
$ac_ext
4672 cat >>conftest.
$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4675 #include <minix/config.h>
4677 rm -f conftest.
$ac_objext
4678 if { (ac_try
="$ac_compile"
4680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4684 $as_echo "$ac_try_echo") >&5
4685 (eval "$ac_compile") 2>conftest.er1
4687 grep -v '^ *+' conftest.er1 >conftest.err
4689 cat conftest.err >&5
4690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } && {
4692 test -z "$ac_c_werror_flag" ||
4693 test ! -s conftest.err
4694 } && test -s conftest.$ac_objext; then
4695 ac_header_compiler=yes
4697 $as_echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4700 ac_header_compiler=no
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4705 $as_echo "$ac_header_compiler" >&6; }
4707 # Is the header present?
4708 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4709 $as_echo_n "checking minix/config.h presence... " >&6; }
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <minix/config.h>
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4721 *) ac_try_echo
=$ac_try;;
4723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4724 $as_echo "$ac_try_echo") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4727 grep -v '^ *+' conftest.er1
>conftest.err
4729 cat conftest.err
>&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev
/null
&& {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4735 ac_header_preproc
=yes
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.
$ac_ext >&5
4740 ac_header_preproc
=no
4743 rm -f conftest.err conftest.
$ac_ext
4744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4745 $as_echo "$ac_header_preproc" >&6; }
4747 # So? What about this header?
4748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4750 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4751 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4753 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4754 ac_header_preproc
=yes
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4761 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4762 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4763 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4764 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4772 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4773 $as_echo_n "checking for minix/config.h... " >&6; }
4774 if test "${ac_cv_header_minix_config_h+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4777 ac_cv_header_minix_config_h
=$ac_header_preproc
4779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4780 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4783 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4790 if test "$MINIX" = yes; then
4792 cat >>confdefs.h
<<\_ACEOF
4793 #define _POSIX_SOURCE 1
4797 cat >>confdefs.h
<<\_ACEOF
4798 #define _POSIX_1_SOURCE 2
4802 cat >>confdefs.h
<<\_ACEOF
4810 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4811 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4812 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4813 $as_echo_n "(cached) " >&6
4815 cat >conftest.
$ac_ext <<_ACEOF
4818 cat confdefs.h
>>conftest.
$ac_ext
4819 cat >>conftest.
$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4822 # define __EXTENSIONS__ 1
4823 $ac_includes_default
4832 rm -f conftest.
$ac_objext
4833 if { (ac_try
="$ac_compile"
4835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4842 grep -v '^ *+' conftest.er1 >conftest.err
4844 cat conftest.err >&5
4845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 ac_cv_safe_to_define___extensions__=yes
4852 $as_echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4855 ac_cv_safe_to_define___extensions__=no
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4861 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4862 test $ac_cv_safe_to_define___extensions__ = yes &&
4863 cat >>confdefs.h <<\_ACEOF
4864 #define __EXTENSIONS__ 1
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _ALL_SOURCE 1
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _GNU_SOURCE 1
4875 cat >>confdefs.h <<\_ACEOF
4876 #define _POSIX_PTHREAD_SEMANTICS 1
4879 cat >>confdefs.h <<\_ACEOF
4880 #define _TANDEM_SOURCE 1
4885 ### Use -Wno-pointer-sign if the compiler supports it
4886 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4887 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4888 SAVE_CFLAGS="$CFLAGS"
4889 CFLAGS="$CFLAGS -Wno-pointer-sign"
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4905 rm -f conftest.$ac_objext
4906 if { (ac_try="$ac_compile"
4908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4909 *) ac_try_echo
=$ac_try;;
4911 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4912 $as_echo "$ac_try_echo") >&5
4913 (eval "$ac_compile") 2>conftest.er1
4915 grep -v '^ *+' conftest.er1
>conftest.err
4917 cat conftest.err
>&5
4918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest.
$ac_objext; then
4925 $as_echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.
$ac_ext >&5
4931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4932 if test $has_option = yes; then
4933 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4935 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4936 $as_echo "$has_option" >&6; }
4937 CFLAGS
="$SAVE_CFLAGS"
4941 ### Use -Wdeclaration-after-statement if the compiler supports it
4942 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4943 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4944 SAVE_CFLAGS
="$CFLAGS"
4945 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4946 cat >conftest.
$ac_ext <<_ACEOF
4949 cat confdefs.h
>>conftest.
$ac_ext
4950 cat >>conftest.
$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4961 rm -f conftest.
$ac_objext
4962 if { (ac_try
="$ac_compile"
4964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4968 $as_echo "$ac_try_echo") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4981 $as_echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 if test $has_option = yes; then
4989 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4991 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4992 $as_echo "$has_option" >&6; }
4993 CFLAGS="$SAVE_CFLAGS"
4997 #### Some other nice autoconf tests.
4999 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5000 $as_echo_n "checking whether ln -s works... " >&6; }
5002 if test "$LN_S" = "ln -s"; then
5003 { $as_echo "$as_me:$LINENO: result: yes" >&5
5004 $as_echo "yes" >&6; }
5006 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5007 $as_echo "no, using $LN_S" >&6; }
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5017 # On Suns, sometimes $CPP names a directory.
5018 if test -n "$CPP" && test -d "$CPP"; then
5021 if test -z "$CPP"; then
5022 if test "${ac_cv_prog_CPP+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5025 # Double quotes because CPP needs to be expanded
5026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 # include <limits.h>
5046 # include <assert.h>
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5053 *) ac_try_echo
=$ac_try;;
5055 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1
>conftest.err
5061 cat conftest.err
>&5
5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev
/null
&& {
5064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.
$ac_ext >&5
5072 # Broken: fails on valid input.
5076 rm -f conftest.err conftest.
$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.
$ac_ext <<_ACEOF
5083 cat confdefs.h
>>conftest.
$ac_ext
5084 cat >>conftest.
$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5105 # Broken: success on invalid input.
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5116 rm -f conftest.err conftest.$ac_ext
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.
$ac_ext
5121 if $ac_preproc_ok; then
5133 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5134 $as_echo "$CPP" >&6; }
5136 for ac_c_preproc_warn_flag
in '' yes
5138 # Use a header file that comes with gcc, so configuring glibc
5139 # with a fresh cross-compiler works.
5140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 # <limits.h> exists even on freestanding compilers.
5142 # On the NeXT, cc -E runs the code through the compiler's parser,
5143 # not just through cpp. "Syntax error" is here to catch this case.
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 # include <limits.h>
5153 # include <assert.h>
5157 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5163 $as_echo "$ac_try_echo") >&5
5164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1 >conftest.err
5168 cat conftest.err >&5
5169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null && {
5171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5176 $as_echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5195 if { (ac_try="$ac_cpp conftest.$ac_ext"
5197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5198 *) ac_try_echo
=$ac_try;;
5200 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5201 $as_echo "$ac_try_echo") >&5
5202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5204 grep -v '^ *+' conftest.er1
>conftest.err
5206 cat conftest.err
>&5
5207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } >/dev
/null
&& {
5209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5210 test ! -s conftest.err
5212 # Broken: success on invalid input.
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.
$ac_ext >&5
5218 # Passes both tests.
5223 rm -f conftest.err conftest.
$ac_ext
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.
$ac_ext
5228 if $ac_preproc_ok; then
5231 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }; }
5241 ac_cpp
='$CPP $CPPFLAGS'
5242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5246 # Find a good install program. We prefer a C program (faster),
5247 # so one script is as good as another. But avoid the broken or
5248 # incompatible versions:
5249 # SysV /etc/install, /usr/sbin/install
5250 # SunOS /usr/etc/install
5251 # IRIX /sbin/install
5253 # AmigaOS /C/install, which installs bootblocks on floppy discs
5254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5257 # OS/2's system install, which has a completely different semantic
5258 # ./install, which can be erroneously created by make from ./install.sh.
5259 # Reject install programs that cannot install multiple files.
5260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5262 if test -z "$INSTALL"; then
5263 if test "${ac_cv_path_install+set}" = set; then
5264 $as_echo_n "(cached) " >&6
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 # Account for people who put trailing slashes in PATH elements.
5273 .
/ | .
// |
/cC
/* | \
5274 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5275 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5278 # OSF1 and SCO ODT 3.0 have their own names for install.
5279 # Don't use installbsd from OSF since it installs stuff as root
5281 for ac_prog
in ginstall scoinst
install; do
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5284 if test $ac_prog = install &&
5285 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5286 # AIX install. It has an incompatible calling convention.
5288 elif test $ac_prog = install &&
5289 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5290 # program-specific install script used by HP pwplus--don't use.
5293 rm -rf conftest.one conftest.two conftest.dir
5294 echo one
> conftest.one
5295 echo two
> conftest.two
5297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5298 test -s conftest.one
&& test -s conftest.two
&&
5299 test -s conftest.dir
/conftest.one
&&
5300 test -s conftest.dir
/conftest.two
5302 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5315 rm -rf conftest.one conftest.two conftest.dir
5318 if test "${ac_cv_path_install+set}" = set; then
5319 INSTALL
=$ac_cv_path_install
5321 # As a last resort, use the slow shell script. Don't cache a
5322 # value for INSTALL within a source directory, because that will
5323 # break other packages using the cache if that directory is
5324 # removed, or if the value is a relative name.
5325 INSTALL
=$ac_install_sh
5328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5329 $as_echo "$INSTALL" >&6; }
5331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5332 # It thinks the first close brace ends the variable substitution.
5333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5337 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5339 if test "x$RANLIB" = x
; then
5340 if test -n "$ac_tool_prefix"; then
5341 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5342 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_RANLIB+set}" = set; then
5346 $as_echo_n "(cached) " >&6
5348 if test -n "$RANLIB"; then
5349 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir
=.
5356 for ac_exec_ext
in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 RANLIB
=$ac_cv_prog_RANLIB
5369 if test -n "$RANLIB"; then
5370 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5371 $as_echo "$RANLIB" >&6; }
5373 { $as_echo "$as_me:$LINENO: result: no" >&5
5374 $as_echo "no" >&6; }
5379 if test -z "$ac_cv_prog_RANLIB"; then
5380 ac_ct_RANLIB
=$RANLIB
5381 # Extract the first word of "ranlib", so it can be a program name with args.
5382 set dummy ranlib
; ac_word
=$2
5383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5388 if test -n "$ac_ct_RANLIB"; then
5389 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5395 test -z "$as_dir" && as_dir
=.
5396 for ac_exec_ext
in '' $ac_executable_extensions; do
5397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5398 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5409 if test -n "$ac_ct_RANLIB"; then
5410 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5411 $as_echo "$ac_ct_RANLIB" >&6; }
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5417 if test "x$ac_ct_RANLIB" = x
; then
5420 case $cross_compiling:$ac_tool_warned in
5422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424 ac_tool_warned
=yes ;;
5426 RANLIB
=$ac_ct_RANLIB
5429 RANLIB
="$ac_cv_prog_RANLIB"
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info
; ac_word
=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5440 case $INSTALL_INFO in
5442 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info
; ac_word
=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5480 case $INSTALL_INFO in
5482 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5486 for as_dir
in /usr
/sbin
5489 test -z "$as_dir" && as_dir
=.
5490 for ac_exec_ext
in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5504 if test -n "$INSTALL_INFO"; then
5505 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5506 $as_echo "$INSTALL_INFO" >&6; }
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5513 # Extract the first word of "install-info", so it can be a program name with args.
5514 set dummy install-info
; ac_word
=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5520 case $INSTALL_INFO in
5522 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_exec_ext
in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5544 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5545 if test -n "$INSTALL_INFO"; then
5546 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5547 $as_echo "$INSTALL_INFO" >&6; }
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5554 # Extract the first word of "gzip", so it can be a program name with args.
5555 set dummy
gzip; ac_word
=$2
5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5563 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir
=.
5571 for ac_exec_ext
in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5585 if test -n "$GZIP_PROG"; then
5586 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5587 $as_echo "$GZIP_PROG" >&6; }
5589 { $as_echo "$as_me:$LINENO: result: no" >&5
5590 $as_echo "no" >&6; }
5596 ## Need makeinfo >= 4.6 (?) to build the manuals.
5597 # Extract the first word of "makeinfo", so it can be a program name with args.
5598 set dummy makeinfo
; ac_word
=$2
5599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5606 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5628 MAKEINFO
=$ac_cv_path_MAKEINFO
5629 if test -n "$MAKEINFO"; then
5630 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5631 $as_echo "$MAKEINFO" >&6; }
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$MAKEINFO" != "no" && \
5639 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
5643 ## Makeinfo is unusual. For a released Emacs, the manuals are
5644 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5645 ## therefore in the category of "special tools" not normally required, which
5646 ## configure does not have to check for (eg autoconf itself).
5647 ## In a Bazaar checkout on the other hand, the manuals are not included.
5648 ## So makeinfo is a requirement to build from Bazaar, and configure
5649 ## should test for it as it does for any other build requirement.
5650 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5651 ## with pre-built manuals, from a Bazaar checkout.
5652 if test "$MAKEINFO" = "no"; then
5653 if test "x${with_makeinfo}" = "xno"; then
5655 elif ! test -e $srcdir/info
/emacs
; then
5656 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5657 source tree does not seem to have pre-built manuals in the \`info' directory.
5658 Either install a suitable version of makeinfo, or re-run configure
5659 with the \`--without-makeinfo' option to build without the manuals. " >&5
5660 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5661 source tree does not seem to have pre-built manuals in the \`info' directory.
5662 Either install a suitable version of makeinfo, or re-run configure
5663 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5664 { (exit 1); exit 1; }; }
5669 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5671 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5674 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5676 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5680 late_LDFLAGS
=$LDFLAGS
5681 if test "$GCC" = yes; then
5682 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5684 LDFLAGS
="$LDFLAGS -znocombreloc"
5687 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5688 $as_echo_n "checking for -znocombreloc... " >&6; }
5689 cat >conftest.
$ac_ext <<_ACEOF
5692 rm -f conftest.
$ac_objext conftest
$ac_exeext
5693 if { (ac_try
="$ac_link"
5695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5699 $as_echo "$ac_try_echo") >&5
5700 (eval "$ac_link") 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext && {
5710 test "$cross_compiling" = yes ||
5711 $as_test_x conftest$ac_exeext
5713 { $as_echo "$as_me:$LINENO: result: yes" >&5
5714 $as_echo "yes" >&6; }
5716 $as_echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5719 LDFLAGS=$late_LDFLAGS
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5724 rm -rf conftest.dSYM
5725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5726 conftest$ac_exeext conftest.$ac_ext
5728 #### Extract some information from the operating system and machine files.
5730 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5731 - which libraries the lib-src programs will want, and
5732 - whether the GNU malloc routines are usable..." >&5
5733 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5734 - which libraries the lib-src programs will want, and
5735 - whether the GNU malloc routines are usable..." >&6;}
5737 ### First figure out CFLAGS (which we use for running the compiler here)
5738 ### and REAL_CFLAGS (which we use for real compilation).
5739 ### The two are the same except on a few systems, where they are made
5740 ### different to work around various lossages. For example,
5741 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5742 ### as implying static linking.
5744 ### If the CFLAGS env var is specified, we use that value
5745 ### instead of the default.
5747 ### It's not important that this name contain the PID; you can't run
5748 ### two configures in the same directory and have anything work
5750 tempcname="conftest.c"
5753 #include "'${srcdir}'/src/'${opsysfile}'"
5754 #include "'${srcdir}'/src/'${machfile}'"
5755 #ifndef LIBS_MACHINE
5756 #define LIBS_MACHINE
5761 #ifndef C_SWITCH_SYSTEM
5762 #define C_SWITCH_SYSTEM
5764 #ifndef C_SWITCH_MACHINE
5765 #define C_SWITCH_MACHINE
5767 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5768 configure___ c_switch_system=C_SWITCH_SYSTEM
5769 configure___ c_switch_machine=C_SWITCH_MACHINE
5772 #define LIB_X11_LIB -lX11
5775 #ifndef LIBX11_SYSTEM
5776 #define LIBX11_SYSTEM
5778 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5781 configure___ unexec=UNEXEC
5783 configure___ unexec=unexec.o
5786 #ifdef SYSTEM_MALLOC
5787 configure___ system_malloc=yes
5789 configure___ system_malloc=no
5792 #ifdef USE_MMAP_FOR_BUFFERS
5793 configure___ use_mmap_for_buffers=yes
5795 configure___ use_mmap_for_buffers=no
5798 #ifndef C_OPTIMIZE_SWITCH
5800 #define C_OPTIMIZE_SWITCH -O2
5802 #define C_OPTIMIZE_SWITCH -O
5806 #ifndef C_WARNINGS_SWITCH
5807 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5810 #ifndef LD_SWITCH_MACHINE
5811 #define LD_SWITCH_MACHINE
5814 #ifndef LD_SWITCH_SYSTEM
5815 #define LD_SWITCH_SYSTEM
5818 #ifndef LD_SWITCH_X_SITE_AUX
5819 #define LD_SWITCH_X_SITE_AUX
5822 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5823 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5825 #ifdef THIS_IS_CONFIGURE
5827 /* Get the CFLAGS for tests in configure. */
5829 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5831 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5834 #else /* not THIS_IS_CONFIGURE */
5836 /* Get the CFLAGS for real compilation. */
5838 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5840 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5843 #endif /* not THIS_IS_CONFIGURE */
5846 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5848 # The value of CPP is a quoted variable reference, so we need to do this
5849 # to get its actual value...
5850 CPP=`eval "echo $CPP"`
5851 eval `${CPP} -Isrc ${tempcname} \
5852 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5853 if test "x$SPECIFIED_CFLAGS" = x; then
5854 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5855 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5857 REAL_CFLAGS="$CFLAGS"
5861 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5863 ### Make sure subsequent tests use flags consistent with the build flags.
5865 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5866 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5868 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5873 # Check whether --enable-largefile was given.
5874 if test "${enable_largefile+set}" = set; then
5875 enableval=$enable_largefile;
5878 if test "$enable_largefile" != no; then
5880 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5881 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5882 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5883 $as_echo_n "(cached) " >&6
5885 ac_cv_sys_largefile_CC=no
5886 if test "$GCC" != yes; then
5889 # IRIX 6.2 and later do not support large files by default,
5890 # so use the C compiler's -n32 option if that helps.
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 #include <sys/types.h>
5898 /* Check that off_t can represent 2**63 - 1 correctly.
5899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5900 since some C++ compilers masquerading as C compilers
5901 incorrectly reject 9223372036854775807. */
5902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5904 && LARGE_OFF_T % 2147483647 == 1)
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5918 *) ac_try_echo
=$ac_try;;
5920 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5921 $as_echo "$ac_try_echo") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1
>conftest.err
5926 cat conftest.err
>&5
5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.
$ac_objext; then
5934 $as_echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.
$ac_ext >&5
5940 rm -f core conftest.err conftest.
$ac_objext
5942 rm -f conftest.
$ac_objext
5943 if { (ac_try
="$ac_compile"
5945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949 $as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5952 grep -v '^ *+' conftest.er1 >conftest.err
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_cv_sys_largefile_CC=' -n32'; break
5962 $as_echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f core conftest.err conftest.$ac_objext
5972 rm -f conftest.$ac_ext
5975 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5976 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5977 if test "$ac_cv_sys_largefile_CC" != no; then
5978 CC=$CC$ac_cv_sys_largefile_CC
5981 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5982 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5983 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5984 $as_echo_n "(cached) " >&6
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #include <sys/types.h>
5994 /* Check that off_t can represent 2**63 - 1 correctly.
5995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5996 since some C++ compilers masquerading as C compilers
5997 incorrectly reject 9223372036854775807. */
5998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6000 && LARGE_OFF_T % 2147483647 == 1)
6010 rm -f conftest.$ac_objext
6011 if { (ac_try="$ac_compile"
6013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6014 *) ac_try_echo
=$ac_try;;
6016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6017 $as_echo "$ac_try_echo") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1
>conftest.err
6022 cat conftest.err
>&5
6023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.
$ac_objext; then
6028 ac_cv_sys_file_offset_bits
=no
; break
6030 $as_echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.
$ac_ext >&5
6036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #define _FILE_OFFSET_BITS 64
6044 #include <sys/types.h>
6045 /* Check that off_t can represent 2**63 - 1 correctly.
6046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6047 since some C++ compilers masquerading as C compilers
6048 incorrectly reject 9223372036854775807. */
6049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6051 && LARGE_OFF_T % 2147483647 == 1)
6061 rm -f conftest.
$ac_objext
6062 if { (ac_try
="$ac_compile"
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 ac_cv_sys_file_offset_bits=64; break
6081 $as_echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 ac_cv_sys_file_offset_bits=unknown
6092 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6093 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6094 case $ac_cv_sys_file_offset_bits in #(
6097 cat >>confdefs.h <<_ACEOF
6098 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6103 if test $ac_cv_sys_file_offset_bits = unknown; then
6104 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6105 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6106 if test "${ac_cv_sys_large_files+set}" = set; then
6107 $as_echo_n "(cached) " >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <sys/types.h>
6117 /* Check that off_t can represent 2**63 - 1 correctly.
6118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6119 since some C++ compilers masquerading as C compilers
6120 incorrectly reject 9223372036854775807. */
6121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6123 && LARGE_OFF_T % 2147483647 == 1)
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6137 *) ac_try_echo
=$ac_try;;
6139 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1
>conftest.err
6145 cat conftest.err
>&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.
$ac_objext; then
6151 ac_cv_sys_large_files
=no
; break
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.
$ac_ext >&5
6159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6160 cat >conftest.
$ac_ext <<_ACEOF
6163 cat confdefs.h
>>conftest.
$ac_ext
6164 cat >>conftest.
$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 #define _LARGE_FILES 1
6167 #include <sys/types.h>
6168 /* Check that off_t can represent 2**63 - 1 correctly.
6169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6170 since some C++ compilers masquerading as C compilers
6171 incorrectly reject 9223372036854775807. */
6172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6174 && LARGE_OFF_T % 2147483647 == 1)
6184 rm -f conftest.
$ac_objext
6185 if { (ac_try
="$ac_compile"
6187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191 $as_echo "$ac_try_echo") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ac_cv_sys_large_files=1; break
6204 $as_echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 ac_cv_sys_large_files=unknown
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6216 $as_echo "$ac_cv_sys_large_files" >&6; }
6217 case $ac_cv_sys_large_files in #(
6220 cat >>confdefs.h <<_ACEOF
6221 #define _LARGE_FILES $ac_cv_sys_large_files
6231 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6232 ### be located in either /usr/lib64 or /usr/lib.
6233 ### In some rare cases, /usr/lib64 exists but does not contain the
6234 ### relevant files (bug#1287). Hence test for crtn.o.
6235 case "${canonical}" in
6236 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6237 if test -e /usr/lib64/crtn.o; then
6239 cat >>confdefs.h <<\_ACEOF
6240 #define HAVE_LIB64_DIR 1
6249 if test "${with_sound}" != "no"; then
6250 # Sound support for GNU/Linux and the free BSDs.
6254 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6259 $as_echo_n "checking for $ac_header... " >&6; }
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 $as_echo_n "(cached) " >&6
6263 ac_res=`eval 'as_val=${'$as_ac_Header'}
6264 $as_echo "$as_val"'`
6265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6266 $as_echo "$ac_res" >&6; }
6268 # Is the header compilable?
6269 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6270 $as_echo_n "checking $ac_header usability... " >&6; }
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 $ac_includes_default
6278 #include <$ac_header>
6280 rm -f conftest.$ac_objext
6281 if { (ac_try="$ac_compile"
6283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6284 *) ac_try_echo
=$ac_try;;
6286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288 (eval "$ac_compile") 2>conftest.er1
6290 grep -v '^ *+' conftest.er1
>conftest.err
6292 cat conftest.err
>&5
6293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } && {
6295 test -z "$ac_c_werror_flag" ||
6296 test ! -s conftest.err
6297 } && test -s conftest.
$ac_objext; then
6298 ac_header_compiler
=yes
6300 $as_echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.
$ac_ext >&5
6303 ac_header_compiler
=no
6306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6308 $as_echo "$ac_header_compiler" >&6; }
6310 # Is the header present?
6311 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6312 $as_echo_n "checking $ac_header presence... " >&6; }
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <$ac_header>
6321 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6327 $as_echo "$ac_try_echo") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null && {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6338 ac_header_preproc=yes
6340 $as_echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_header_preproc=no
6346 rm -f conftest.err conftest.$ac_ext
6347 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 $as_echo "$ac_header_preproc" >&6; }
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc=yes
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 $as_echo_n "checking for $ac_header... " >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 $as_echo_n "(cached) " >&6
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 ac_res=`eval 'as_val=${'$as_ac_Header'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6388 as_val=`eval 'as_val=${'$as_ac_Header'}
6389 $as_echo "$as_val"'`
6390 if test "x$as_val" = x""yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6399 # Emulation library used on NetBSD.
6400 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6401 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6402 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6405 ac_check_lib_save_LIBS=$LIBS
6406 LIBS="-lossaudio $LIBS"
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6414 /* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6424 return _oss_ioctl ();
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (ac_try="$ac_link"
6432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6433 *) ac_try_echo
=$ac_try;;
6435 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6436 $as_echo "$ac_try_echo") >&5
6437 (eval "$ac_link") 2>conftest.er1
6439 grep -v '^ *+' conftest.er1
>conftest.err
6441 cat conftest.err
>&5
6442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest
$ac_exeext && {
6447 test "$cross_compiling" = yes ||
6448 $as_test_x conftest
$ac_exeext
6450 ac_cv_lib_ossaudio__oss_ioctl
=yes
6452 $as_echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 ac_cv_lib_ossaudio__oss_ioctl
=no
6458 rm -rf conftest.dSYM
6459 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6460 conftest
$ac_exeext conftest.
$ac_ext
6461 LIBS
=$ac_check_lib_save_LIBS
6463 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6464 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6465 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then
6474 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6478 # Extract the first word of "pkg-config", so it can be a program name with args.
6479 set dummy pkg-config
; ac_word
=$2
6480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6483 $as_echo_n "(cached) " >&6
6487 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir
=.
6495 for ac_exec_ext
in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6509 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6510 if test -n "$PKG_CONFIG"; then
6511 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6512 $as_echo "$PKG_CONFIG" >&6; }
6514 { $as_echo "$as_me:$LINENO: result: no" >&5
6515 $as_echo "no" >&6; }
6520 if test "$PKG_CONFIG" = "no" ; then
6523 PKG_CONFIG_MIN_VERSION
=0.9.0
6524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6525 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6526 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6528 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6529 { $as_echo "$as_me:$LINENO: result: yes" >&5
6530 $as_echo "yes" >&6; }
6533 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6534 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6535 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6536 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6537 $as_echo "$ALSA_CFLAGS" >&6; }
6539 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6540 $as_echo_n "checking ALSA_LIBS... " >&6; }
6541 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6542 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6543 $as_echo "$ALSA_LIBS" >&6; }
6545 { $as_echo "$as_me:$LINENO: result: no" >&5
6546 $as_echo "no" >&6; }
6549 ## If we have a custom action on failure, don't print errors, but
6550 ## do set a variable so people can do so.
6551 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6563 if test $succeeded = yes; then
6569 if test $HAVE_ALSA = yes; then
6570 SAVE_CFLAGS
="$CFLAGS"
6571 SAVE_LDFLAGS
="$LDFLAGS"
6572 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6573 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <asoundlib.h>
6584 snd_lib_error_set_handler (0);
6589 rm -f conftest.
$ac_objext
6590 if { (ac_try
="$ac_compile"
6592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6593 *) ac_try_echo=$ac_try;;
6595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6596 $as_echo "$ac_try_echo") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 emacs_alsa_normal=yes
6609 $as_echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 emacs_alsa_normal=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 if test "$emacs_alsa_normal" != yes; then
6617 cat >conftest.$ac_ext <<_ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 #include <alsa/asoundlib.h>
6627 snd_lib_error_set_handler (0);
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6636 *) ac_try_echo
=$ac_try;;
6638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1
>conftest.err
6644 cat conftest.err
>&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest.
$ac_objext; then
6650 emacs_alsa_subdir
=yes
6652 $as_echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.
$ac_ext >&5
6655 emacs_alsa_subdir
=no
6658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6659 if test "$emacs_alsa_subdir" != yes; then
6660 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6661 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6662 { (exit 1); exit 1; }; }
6664 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6667 CFLAGS
="$SAVE_CFLAGS"
6668 LDFLAGS
="$SAVE_LDFLAGS"
6669 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6670 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6672 cat >>confdefs.h
<<\_ACEOF
6705 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6706 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6707 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6708 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6709 sys
/utsname.h
pwd.h utmp.h
6711 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 $as_echo_n "checking for $ac_header... " >&6; }
6715 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6716 $as_echo_n "(cached) " >&6
6718 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6719 $as_echo "$as_val"'`
6720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6723 # Is the header compilable?
6724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6725 $as_echo_n "checking $ac_header usability... " >&6; }
6726 cat >conftest.
$ac_ext <<_ACEOF
6729 cat confdefs.h
>>conftest.
$ac_ext
6730 cat >>conftest.
$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 $ac_includes_default
6733 #include <$ac_header>
6735 rm -f conftest.
$ac_objext
6736 if { (ac_try
="$ac_compile"
6738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6742 $as_echo "$ac_try_echo") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_header_compiler=yes
6755 $as_echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_header_compiler=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6763 $as_echo "$ac_header_compiler" >&6; }
6765 # Is the header present?
6766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6767 $as_echo_n "checking $ac_header presence... " >&6; }
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <$ac_header>
6776 if { (ac_try="$ac_cpp conftest.$ac_ext"
6778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6779 *) ac_try_echo
=$ac_try;;
6781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1
>conftest.err
6787 cat conftest.err
>&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } >/dev
/null
&& {
6790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6793 ac_header_preproc
=yes
6795 $as_echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.
$ac_ext >&5
6798 ac_header_preproc
=no
6801 rm -f conftest.err conftest.
$ac_ext
6802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6803 $as_echo "$ac_header_preproc" >&6; }
6805 # So? What about this header?
6806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6812 ac_header_preproc
=yes
6815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6818 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6822 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6831 $as_echo_n "checking for $ac_header... " >&6; }
6832 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6833 $as_echo_n "(cached) " >&6
6835 eval "$as_ac_Header=\$ac_header_preproc"
6837 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6838 $as_echo "$as_val"'`
6839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6843 as_val
=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 if test "x$as_val" = x
""yes; then
6846 cat >>confdefs.h
<<_ACEOF
6847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6855 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6856 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6857 cat >conftest.
$ac_ext <<_ACEOF
6860 cat confdefs.h
>>conftest.
$ac_ext
6861 cat >>conftest.
$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 #include <sys/personality.h>
6867 personality (PER_LINUX32)
6872 rm -f conftest.
$ac_objext
6873 if { (ac_try
="$ac_compile"
6875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880 (eval "$ac_compile") 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
6884 cat conftest.err >&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest.$ac_objext; then
6890 emacs_cv_personality_linux32=yes
6892 $as_echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 emacs_cv_personality_linux32=no
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6900 $as_echo "$emacs_cv_personality_linux32" >&6; }
6902 if test $emacs_cv_personality_linux32 = yes; then
6904 cat >>confdefs.h <<\_ACEOF
6905 #define HAVE_PERSONALITY_LINUX32 1
6911 for ac_header in term.h
6913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6915 $as_echo_n "checking for $ac_header... " >&6; }
6916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6917 $as_echo_n "(cached) " >&6
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <$ac_header>
6927 if { (ac_try="$ac_cpp conftest.$ac_ext"
6929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6930 *) ac_try_echo
=$ac_try;;
6932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6933 $as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6936 grep -v '^ *+' conftest.er1
>conftest.err
6938 cat conftest.err
>&5
6939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev
/null
&& {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6944 eval "$as_ac_Header=yes"
6946 $as_echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.
$ac_ext >&5
6949 eval "$as_ac_Header=no"
6952 rm -f conftest.err conftest.
$ac_ext
6954 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6955 $as_echo "$as_val"'`
6956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6957 $as_echo "$ac_res" >&6; }
6958 as_val
=`eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'`
6960 if test "x$as_val" = x
""yes; then
6961 cat >>confdefs.h
<<_ACEOF
6962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6969 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6970 $as_echo_n "checking for ANSI C header files... " >&6; }
6971 if test "${ac_cv_header_stdc+set}" = set; then
6972 $as_echo_n "(cached) " >&6
6974 cat >conftest.
$ac_ext <<_ACEOF
6977 cat confdefs.h
>>conftest.
$ac_ext
6978 cat >>conftest.
$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6993 rm -f conftest.
$ac_objext
6994 if { (ac_try
="$ac_compile"
6996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000 $as_echo "$ac_try_echo") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_cv_header_stdc=yes
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_stdc=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 if test $ac_cv_header_stdc = yes; then
7022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7023 cat >conftest.$ac_ext <<_ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7033 $EGREP "memchr" >/dev/null 2>&1; then
7036 ac_cv_header_stdc=no
7042 if test $ac_cv_header_stdc = yes; then
7043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7044 cat >conftest.$ac_ext <<_ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 $EGREP "free" >/dev/null 2>&1; then
7057 ac_cv_header_stdc=no
7063 if test $ac_cv_header_stdc = yes; then
7064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7065 if test "$cross_compiling" = yes; then
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7076 #if ((' ' & 0x0FF) == 0x020)
7077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7080 # define ISLOWER(c) \
7081 (('a' <= (c) && (c) <= 'i') \
7082 || ('j' <= (c) && (c) <= 'r') \
7083 || ('s' <= (c) && (c) <= 'z'))
7084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7092 for (i = 0; i < 256; i++)
7093 if (XOR (islower (i), ISLOWER (i))
7094 || toupper (i) != TOUPPER (i))
7099 rm -f conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7103 *) ac_try_echo
=$ac_try;;
7105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_link") 2>&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7111 { (case "(($ac_try" in
7112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116 $as_echo "$ac_try_echo") >&5
7117 (eval "$ac_try") 2>&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
7123 $as_echo "$as_me: program exited with status $ac_status" >&5
7124 $as_echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_header_stdc=no
7130 rm -rf conftest.dSYM
7131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7138 $as_echo "$ac_cv_header_stdc" >&6; }
7139 if test $ac_cv_header_stdc = yes; then
7141 cat >>confdefs.h <<\_ACEOF
7142 #define STDC_HEADERS 1
7147 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7148 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7149 if test "${ac_cv_header_time+set}" = set; then
7150 $as_echo_n "(cached) " >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 #include <sys/types.h>
7159 #include <sys/time.h>
7165 if ((struct tm *) 0)
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7175 *) ac_try_echo
=$ac_try;;
7177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7181 grep -v '^ *+' conftest.er1
>conftest.err
7183 cat conftest.err
>&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.
$ac_objext; then
7189 ac_cv_header_time
=yes
7191 $as_echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.
$ac_ext >&5
7194 ac_cv_header_time
=no
7197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7200 $as_echo "$ac_cv_header_time" >&6; }
7201 if test $ac_cv_header_time = yes; then
7203 cat >>confdefs.h
<<\_ACEOF
7204 #define TIME_WITH_SYS_TIME 1
7209 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7210 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7211 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7212 $as_echo_n "(cached) " >&6
7214 cat >conftest.
$ac_ext <<_ACEOF
7217 cat confdefs.h
>>conftest.
$ac_ext
7218 cat >>conftest.
$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7232 rm -f conftest.
$ac_objext
7233 if { (ac_try
="$ac_compile"
7235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7239 $as_echo "$ac_try_echo") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7250 ac_cv_have_decl_sys_siglist=yes
7252 $as_echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_have_decl_sys_siglist=no
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7261 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7262 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_DECL_SYS_SIGLIST 1
7270 cat >>confdefs.h <<_ACEOF
7271 #define HAVE_DECL_SYS_SIGLIST 0
7278 if test $ac_cv_have_decl_sys_siglist != yes; then
7279 # For Tru64, at least:
7280 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7281 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7282 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7283 $as_echo_n "(cached) " >&6
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 $ac_includes_default
7295 #ifndef __sys_siglist
7296 (void) __sys_siglist;
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7307 *) ac_try_echo
=$ac_try;;
7309 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7310 $as_echo "$ac_try_echo") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1
>conftest.err
7315 cat conftest.err
>&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.
$ac_objext; then
7321 ac_cv_have_decl___sys_siglist
=yes
7323 $as_echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.
$ac_ext >&5
7326 ac_cv_have_decl___sys_siglist
=no
7329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7331 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7332 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7333 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then
7335 cat >>confdefs.h
<<_ACEOF
7336 #define HAVE_DECL___SYS_SIGLIST 1
7341 cat >>confdefs.h
<<_ACEOF
7342 #define HAVE_DECL___SYS_SIGLIST 0
7349 if test $ac_cv_have_decl___sys_siglist = yes; then
7351 cat >>confdefs.h
<<\_ACEOF
7352 #define sys_siglist __sys_siglist
7357 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7358 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7359 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7360 $as_echo_n "(cached) " >&6
7362 cat >conftest.
$ac_ext <<_ACEOF
7365 cat confdefs.h
>>conftest.
$ac_ext
7366 cat >>conftest.
$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7368 #include <sys/types.h>
7369 #include <sys/wait.h>
7371 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7374 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7387 rm -f conftest.
$ac_objext
7388 if { (ac_try
="$ac_compile"
7390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7394 $as_echo "$ac_try_echo") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest.$ac_objext; then
7405 ac_cv_header_sys_wait_h=yes
7407 $as_echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_cv_header_sys_wait_h=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7416 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7417 if test $ac_cv_header_sys_wait_h = yes; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_SYS_WAIT_H 1
7426 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7427 $as_echo_n "checking for struct utimbuf... " >&6; }
7428 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7429 $as_echo_n "(cached) " >&6
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #ifdef TIME_WITH_SYS_TIME
7438 #include <sys/time.h>
7441 #ifdef HAVE_SYS_TIME_H
7442 #include <sys/time.h>
7453 static struct utimbuf x; x.actime = x.modtime;
7458 rm -f conftest.$ac_objext
7459 if { (ac_try="$ac_compile"
7461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7462 *) ac_try_echo
=$ac_try;;
7464 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7465 $as_echo "$ac_try_echo") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7468 grep -v '^ *+' conftest.er1
>conftest.err
7470 cat conftest.err
>&5
7471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.
$ac_objext; then
7476 emacs_cv_struct_utimbuf
=yes
7478 $as_echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.
$ac_ext >&5
7481 emacs_cv_struct_utimbuf
=no
7484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7486 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7487 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7488 if test $emacs_cv_struct_utimbuf = yes; then
7490 cat >>confdefs.h
<<\_ACEOF
7491 #define HAVE_STRUCT_UTIMBUF 1
7496 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7497 $as_echo_n "checking return type of signal handlers... " >&6; }
7498 if test "${ac_cv_type_signal+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7501 cat >conftest.
$ac_ext <<_ACEOF
7504 cat confdefs.h
>>conftest.
$ac_ext
7505 cat >>conftest.
$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7513 return *(signal (0, 0)) (0) == 1;
7518 rm -f conftest.
$ac_objext
7519 if { (ac_try
="$ac_compile"
7521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525 $as_echo "$ac_try_echo") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 ac_cv_type_signal=int
7538 $as_echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_type_signal=void
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7547 $as_echo "$ac_cv_type_signal" >&6; }
7549 cat >>confdefs.h <<_ACEOF
7550 #define RETSIGTYPE $ac_cv_type_signal
7555 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7556 $as_echo_n "checking for speed_t... " >&6; }
7557 if test "${emacs_cv_speed_t+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7560 cat >conftest.$ac_ext <<_ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <termios.h>
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7579 *) ac_try_echo
=$ac_try;;
7581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7582 $as_echo "$ac_try_echo") >&5
7583 (eval "$ac_compile") 2>conftest.er1
7585 grep -v '^ *+' conftest.er1
>conftest.err
7587 cat conftest.err
>&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); } && {
7590 test -z "$ac_c_werror_flag" ||
7591 test ! -s conftest.err
7592 } && test -s conftest.
$ac_objext; then
7593 emacs_cv_speed_t
=yes
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.
$ac_ext >&5
7601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7603 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7604 $as_echo "$emacs_cv_speed_t" >&6; }
7605 if test $emacs_cv_speed_t = yes; then
7607 cat >>confdefs.h
<<\_ACEOF
7608 #define HAVE_SPEED_T 1
7613 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7614 $as_echo_n "checking for struct timeval... " >&6; }
7615 if test "${emacs_cv_struct_timeval+set}" = set; then
7616 $as_echo_n "(cached) " >&6
7618 cat >conftest.
$ac_ext <<_ACEOF
7621 cat confdefs.h
>>conftest.
$ac_ext
7622 cat >>conftest.
$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #ifdef TIME_WITH_SYS_TIME
7625 #include <sys/time.h>
7628 #ifdef HAVE_SYS_TIME_H
7629 #include <sys/time.h>
7637 static struct timeval x; x.tv_sec = x.tv_usec;
7642 rm -f conftest.
$ac_objext
7643 if { (ac_try
="$ac_compile"
7645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7649 $as_echo "$ac_try_echo") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 emacs_cv_struct_timeval=yes
7662 $as_echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 emacs_cv_struct_timeval=no
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7671 $as_echo "$emacs_cv_struct_timeval" >&6; }
7672 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7673 if test $emacs_cv_struct_timeval = yes; then
7675 cat >>confdefs.h <<\_ACEOF
7676 #define HAVE_TIMEVAL 1
7681 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7682 $as_echo_n "checking for struct exception... " >&6; }
7683 if test "${emacs_cv_struct_exception+set}" = set; then
7684 $as_echo_n "(cached) " >&6
7686 cat >conftest.$ac_ext <<_ACEOF
7689 cat confdefs.h >>conftest.$ac_ext
7690 cat >>conftest.$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7696 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7705 *) ac_try_echo
=$ac_try;;
7707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7708 $as_echo "$ac_try_echo") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.
$ac_objext; then
7719 emacs_cv_struct_exception
=yes
7721 $as_echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.
$ac_ext >&5
7724 emacs_cv_struct_exception
=no
7727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7730 $as_echo "$emacs_cv_struct_exception" >&6; }
7731 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7732 if test $emacs_cv_struct_exception != yes; then
7734 cat >>confdefs.h
<<\_ACEOF
7735 #define NO_MATHERR 1
7741 for ac_header
in sys
/socket.h
7743 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7745 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7746 $as_echo_n "checking for $ac_header... " >&6; }
7747 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 $as_echo_n "(cached) " >&6
7750 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7751 $as_echo "$as_val"'`
7752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7755 # Is the header compilable?
7756 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7757 $as_echo_n "checking $ac_header usability... " >&6; }
7758 cat >conftest.
$ac_ext <<_ACEOF
7761 cat confdefs.h
>>conftest.
$ac_ext
7762 cat >>conftest.
$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 $ac_includes_default
7765 #include <$ac_header>
7767 rm -f conftest.
$ac_objext
7768 if { (ac_try
="$ac_compile"
7770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7774 $as_echo "$ac_try_echo") >&5
7775 (eval "$ac_compile") 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest.$ac_objext; then
7785 ac_header_compiler=yes
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_header_compiler=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 $as_echo "$ac_header_compiler" >&6; }
7797 # Is the header present?
7798 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 $as_echo_n "checking $ac_header presence... " >&6; }
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <$ac_header>
7808 if { (ac_try="$ac_cpp conftest.$ac_ext"
7810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7811 *) ac_try_echo
=$ac_try;;
7813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7814 $as_echo "$ac_try_echo") >&5
7815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7817 grep -v '^ *+' conftest.er1
>conftest.err
7819 cat conftest.err
>&5
7820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev
/null
&& {
7822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7823 test ! -s conftest.err
7825 ac_header_preproc
=yes
7827 $as_echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.
$ac_ext >&5
7830 ac_header_preproc
=no
7833 rm -f conftest.err conftest.
$ac_ext
7834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7835 $as_echo "$ac_header_preproc" >&6; }
7837 # So? What about this header?
7838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7843 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7844 ac_header_preproc
=yes
7847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7848 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7850 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7852 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7854 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7858 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7863 $as_echo_n "checking for $ac_header... " >&6; }
7864 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7865 $as_echo_n "(cached) " >&6
7867 eval "$as_ac_Header=\$ac_header_preproc"
7869 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7870 $as_echo "$as_val"'`
7871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7872 $as_echo "$ac_res" >&6; }
7875 as_val
=`eval 'as_val=${'$as_ac_Header'}
7876 $as_echo "$as_val"'`
7877 if test "x$as_val" = x
""yes; then
7878 cat >>confdefs.h
<<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 for ac_header
in net
/if.h
7889 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7891 $as_echo_n "checking for $ac_header... " >&6; }
7892 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7893 $as_echo_n "(cached) " >&6
7895 cat >conftest.
$ac_ext <<_ACEOF
7898 cat confdefs.h
>>conftest.
$ac_ext
7899 cat >>conftest.
$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #if HAVE_SYS_SOCKET_H
7903 #include <sys/socket.h>
7906 #include <$ac_header>
7908 rm -f conftest.
$ac_objext
7909 if { (ac_try
="$ac_compile"
7911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7915 $as_echo "$ac_try_echo") >&5
7916 (eval "$ac_compile") 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } && {
7923 test -z "$ac_c_werror_flag" ||
7924 test ! -s conftest.err
7925 } && test -s conftest.$ac_objext; then
7926 eval "$as_ac_Header=yes"
7928 $as_echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7931 eval "$as_ac_Header=no"
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7936 ac_res=`eval 'as_val=${'$as_ac_Header'}
7937 $as_echo "$as_val"'`
7938 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7939 $as_echo "$ac_res" >&6; }
7940 as_val=`eval 'as_val=${'$as_ac_Header'}
7941 $as_echo "$as_val"'`
7942 if test "x$as_val" = x""yes; then
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7952 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7953 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7954 if test "${ac_cv_struct_tm+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <sys/types.h>
7970 int *p = &tm.tm_sec;
7976 rm -f conftest.$ac_objext
7977 if { (ac_try="$ac_compile"
7979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7980 *) ac_try_echo
=$ac_try;;
7982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7983 $as_echo "$ac_try_echo") >&5
7984 (eval "$ac_compile") 2>conftest.er1
7986 grep -v '^ *+' conftest.er1
>conftest.err
7988 cat conftest.err
>&5
7989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest.
$ac_objext; then
7994 ac_cv_struct_tm
=time.h
7996 $as_echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.
$ac_ext >&5
7999 ac_cv_struct_tm
=sys
/time.h
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8005 $as_echo "$ac_cv_struct_tm" >&6; }
8006 if test $ac_cv_struct_tm = sys
/time.h
; then
8008 cat >>confdefs.h
<<\_ACEOF
8009 #define TM_IN_SYS_TIME 1
8014 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8015 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8016 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8017 $as_echo_n "(cached) " >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <sys/types.h>
8026 #include <$ac_cv_struct_tm>
8032 static struct tm ac_aggr;
8033 if (ac_aggr.tm_zone)
8039 rm -f conftest.
$ac_objext
8040 if { (ac_try
="$ac_compile"
8042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_cv_member_struct_tm_tm_zone=yes
8059 $as_echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <sys/types.h>
8069 #include <$ac_cv_struct_tm>
8075 static struct tm ac_aggr;
8076 if (sizeof ac_aggr.tm_zone)
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8086 *) ac_try_echo
=$ac_try;;
8088 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1
>conftest.err
8094 cat conftest.err
>&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.
$ac_objext; then
8100 ac_cv_member_struct_tm_tm_zone
=yes
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.
$ac_ext >&5
8105 ac_cv_member_struct_tm_tm_zone
=no
8108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8114 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8115 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
8117 cat >>confdefs.h
<<_ACEOF
8118 #define HAVE_STRUCT_TM_TM_ZONE 1
8124 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8126 cat >>confdefs.h
<<\_ACEOF
8127 #define HAVE_TM_ZONE 1
8131 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8132 $as_echo_n "checking whether tzname is declared... " >&6; }
8133 if test "${ac_cv_have_decl_tzname+set}" = set; then
8134 $as_echo_n "(cached) " >&6
8136 cat >conftest.
$ac_ext <<_ACEOF
8139 cat confdefs.h
>>conftest.
$ac_ext
8140 cat >>conftest.
$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8155 rm -f conftest.
$ac_objext
8156 if { (ac_try
="$ac_compile"
8158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 ac_cv_have_decl_tzname=yes
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_have_decl_tzname=no
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8184 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8185 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8187 cat >>confdefs.h <<_ACEOF
8188 #define HAVE_DECL_TZNAME 1
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_DECL_TZNAME 0
8201 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8202 $as_echo_n "checking for tzname... " >&6; }
8203 if test "${ac_cv_var_tzname+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8213 #if !HAVE_DECL_TZNAME
8214 extern char *tzname[];
8220 return tzname[0][0];
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8229 *) ac_try_echo
=$ac_try;;
8231 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233 (eval "$ac_link") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1
>conftest.err
8237 cat conftest.err
>&5
8238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest
$ac_exeext && {
8243 test "$cross_compiling" = yes ||
8244 $as_test_x conftest
$ac_exeext
8246 ac_cv_var_tzname
=yes
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8254 rm -rf conftest.dSYM
8255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8256 conftest
$ac_exeext conftest.
$ac_ext
8258 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8259 $as_echo "$ac_cv_var_tzname" >&6; }
8260 if test $ac_cv_var_tzname = yes; then
8262 cat >>confdefs.h
<<\_ACEOF
8263 #define HAVE_TZNAME 1
8269 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8270 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8271 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8274 cat >conftest.
$ac_ext <<_ACEOF
8277 cat confdefs.h
>>conftest.
$ac_ext
8278 cat >>conftest.
$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8285 static struct tm ac_aggr;
8286 if (ac_aggr.tm_gmtoff)
8292 rm -f conftest.
$ac_objext
8293 if { (ac_try
="$ac_compile"
8295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1 >conftest.err
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff=yes
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 cat >conftest.$ac_ext <<_ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8326 static struct tm ac_aggr;
8327 if (sizeof ac_aggr.tm_gmtoff)
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8337 *) ac_try_echo
=$ac_try;;
8339 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1
>conftest.err
8345 cat conftest.err
>&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.
$ac_objext; then
8351 ac_cv_member_struct_tm_tm_gmtoff
=yes
8353 $as_echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 ac_cv_member_struct_tm_tm_gmtoff
=no
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8364 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8365 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8366 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then
8368 cat >>confdefs.h
<<\_ACEOF
8369 #define HAVE_TM_GMTOFF 1
8374 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8375 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8376 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8377 $as_echo_n "(cached) " >&6
8379 cat >conftest.
$ac_ext <<_ACEOF
8382 cat confdefs.h
>>conftest.
$ac_ext
8383 cat >>conftest.
$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8396 static struct ifreq ac_aggr;
8397 if (ac_aggr.ifr_flags)
8403 rm -f conftest.
$ac_objext
8404 if { (ac_try
="$ac_compile"
8406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8410 $as_echo "$ac_try_echo") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1 >conftest.err
8415 cat conftest.err >&5
8416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_flags=yes
8423 $as_echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 $ac_includes_default
8433 #if HAVE_SYS_SOCKET_H
8434 #include <sys/socket.h>
8443 static struct ifreq ac_aggr;
8444 if (sizeof ac_aggr.ifr_flags)
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8454 *) ac_try_echo
=$ac_try;;
8456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1
>conftest.err
8462 cat conftest.err
>&5
8463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.
$ac_objext; then
8468 ac_cv_member_struct_ifreq_ifr_flags
=yes
8470 $as_echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8473 ac_cv_member_struct_ifreq_ifr_flags
=no
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8482 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8483 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then
8485 cat >>confdefs.h
<<_ACEOF
8486 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8491 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8492 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8493 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8494 $as_echo_n "(cached) " >&6
8496 cat >conftest.
$ac_ext <<_ACEOF
8499 cat confdefs.h
>>conftest.
$ac_ext
8500 cat >>conftest.
$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8513 static struct ifreq ac_aggr;
8514 if (ac_aggr.ifr_hwaddr)
8520 rm -f conftest.
$ac_objext
8521 if { (ac_try
="$ac_compile"
8523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8540 $as_echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 cat >conftest.$ac_ext <<_ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549 $ac_includes_default
8550 #if HAVE_SYS_SOCKET_H
8551 #include <sys/socket.h>
8560 static struct ifreq ac_aggr;
8561 if (sizeof ac_aggr.ifr_hwaddr)
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8571 *) ac_try_echo
=$ac_try;;
8573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.
$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8599 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8600 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then
8602 cat >>confdefs.h
<<_ACEOF
8603 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8608 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8609 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8611 $as_echo_n "(cached) " >&6
8613 cat >conftest.
$ac_ext <<_ACEOF
8616 cat confdefs.h
>>conftest.
$ac_ext
8617 cat >>conftest.
$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #if HAVE_SYS_SOCKET_H
8621 #include <sys/socket.h>
8630 static struct ifreq ac_aggr;
8631 if (ac_aggr.ifr_netmask)
8637 rm -f conftest.
$ac_objext
8638 if { (ac_try
="$ac_compile"
8640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644 $as_echo "$ac_try_echo") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest.$ac_objext; then
8655 ac_cv_member_struct_ifreq_ifr_netmask=yes
8657 $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
8667 #if HAVE_SYS_SOCKET_H
8668 #include <sys/socket.h>
8677 static struct ifreq ac_aggr;
8678 if (sizeof ac_aggr.ifr_netmask)
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8688 *) ac_try_echo
=$ac_try;;
8690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8691 $as_echo "$ac_try_echo") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1
>conftest.err
8696 cat conftest.err
>&5
8697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.
$ac_objext; then
8702 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8704 $as_echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.
$ac_ext >&5
8707 ac_cv_member_struct_ifreq_ifr_netmask
=no
8710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8716 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8717 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then
8719 cat >>confdefs.h
<<_ACEOF
8720 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8725 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8726 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8727 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8728 $as_echo_n "(cached) " >&6
8730 cat >conftest.
$ac_ext <<_ACEOF
8733 cat confdefs.h
>>conftest.
$ac_ext
8734 cat >>conftest.
$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 $ac_includes_default
8737 #if HAVE_SYS_SOCKET_H
8738 #include <sys/socket.h>
8747 static struct ifreq ac_aggr;
8748 if (ac_aggr.ifr_broadaddr)
8754 rm -f conftest.
$ac_objext
8755 if { (ac_try
="$ac_compile"
8757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761 $as_echo "$ac_try_echo") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
8784 #if HAVE_SYS_SOCKET_H
8785 #include <sys/socket.h>
8794 static struct ifreq ac_aggr;
8795 if (sizeof ac_aggr.ifr_broadaddr)
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8805 *) ac_try_echo
=$ac_try;;
8807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1
>conftest.err
8813 cat conftest.err
>&5
8814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.
$ac_objext; then
8819 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8824 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8833 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8834 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then
8836 cat >>confdefs.h
<<_ACEOF
8837 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8842 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8843 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8844 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 cat >conftest.
$ac_ext <<_ACEOF
8850 cat confdefs.h
>>conftest.
$ac_ext
8851 cat >>conftest.
$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 #if HAVE_SYS_SOCKET_H
8855 #include <sys/socket.h>
8864 static struct ifreq ac_aggr;
8865 if (ac_aggr.ifr_addr)
8871 rm -f conftest.
$ac_objext
8872 if { (ac_try
="$ac_compile"
8874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_member_struct_ifreq_ifr_addr=yes
8891 $as_echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8901 #if HAVE_SYS_SOCKET_H
8902 #include <sys/socket.h>
8911 static struct ifreq ac_aggr;
8912 if (sizeof ac_aggr.ifr_addr)
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8922 *) ac_try_echo
=$ac_try;;
8924 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1
>conftest.err
8930 cat conftest.err
>&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.
$ac_objext; then
8936 ac_cv_member_struct_ifreq_ifr_addr
=yes
8938 $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.
$ac_ext >&5
8941 ac_cv_member_struct_ifreq_ifr_addr
=no
8944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8950 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8951 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then
8953 cat >>confdefs.h
<<_ACEOF
8954 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8962 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8963 $as_echo_n "checking for function prototypes... " >&6; }
8964 if test "$ac_cv_prog_cc_c89" != no
; then
8965 { $as_echo "$as_me:$LINENO: result: yes" >&5
8966 $as_echo "yes" >&6; }
8968 cat >>confdefs.h
<<\_ACEOF
8969 #define PROTOTYPES 1
8973 cat >>confdefs.h
<<\_ACEOF
8974 #define __PROTOTYPES 1
8978 { $as_echo "$as_me:$LINENO: result: no" >&5
8979 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8983 $as_echo_n "checking for working volatile... " >&6; }
8984 if test "${ac_cv_c_volatile+set}" = set; then
8985 $as_echo_n "(cached) " >&6
8987 cat >conftest.
$ac_ext <<_ACEOF
8990 cat confdefs.h
>>conftest.
$ac_ext
8991 cat >>conftest.
$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8999 int * volatile y = (int *) 0;
9005 rm -f conftest.
$ac_objext
9006 if { (ac_try
="$ac_compile"
9008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.$ac_objext; then
9023 ac_cv_c_volatile=yes
9025 $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9034 $as_echo "$ac_cv_c_volatile" >&6; }
9035 if test $ac_cv_c_volatile = no; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define volatile /**/
9043 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9044 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9045 if test "${ac_cv_c_const+set}" = set; then
9046 $as_echo_n "(cached) " >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9058 /* FIXME: Include the comments suggested by Paul. */
9060 /* Ultrix mips cc rejects this. */
9061 typedef int charset[2];
9063 /* SunOS 4.1.1 cc rejects this. */
9064 char const *const *pcpcc;
9066 /* NEC SVR4.0.2 mips cc rejects this. */
9067 struct point {int x, y;};
9068 static struct point const zero = {0,0};
9069 /* AIX XL C 1.02.0.0 rejects this.
9070 It does not let you subtract one const X* pointer from another in
9071 an arm of an if-expression whose if-part is not a constant
9073 const char *g = "string";
9074 pcpcc = &g + (g ? g-g : 0);
9075 /* HPUX 7.0 cc rejects these. */
9077 ppc = (char**) pcpcc;
9078 pcpcc = (char const *const *) ppc;
9079 { /* SCO 3.2v4 cc rejects this. */
9081 char const *s = 0 ? (char *) 0 : (char const *) 0;
9086 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9088 const int *foo = &x[0];
9091 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9092 typedef const int *iptr;
9096 { /* AIX XL C 1.02.0.0 rejects this saying
9097 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9098 struct s { int j; const int *ap[3]; };
9099 struct s *b; b->j = 5;
9101 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9105 return !cs[0] && !zero.x;
9112 rm -f conftest.$ac_objext
9113 if { (ac_try="$ac_compile"
9115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9116 *) ac_try_echo
=$ac_try;;
9118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9119 $as_echo "$ac_try_echo") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9122 grep -v '^ *+' conftest.er1
>conftest.err
9124 cat conftest.err
>&5
9125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.
$ac_objext; then
9132 $as_echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.
$ac_ext >&5
9138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9140 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9141 $as_echo "$ac_cv_c_const" >&6; }
9142 if test $ac_cv_c_const = no
; then
9144 cat >>confdefs.h
<<\_ACEOF
9150 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9151 $as_echo_n "checking for void * support... " >&6; }
9152 if test "${emacs_cv_void_star+set}" = set; then
9153 $as_echo_n "(cached) " >&6
9155 cat >conftest.
$ac_ext <<_ACEOF
9158 cat confdefs.h
>>conftest.
$ac_ext
9159 cat >>conftest.
$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
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 emacs_cv_void_star=yes
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 emacs_cv_void_star=no
9196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9199 $as_echo "$emacs_cv_void_star" >&6; }
9200 if test $emacs_cv_void_star = yes; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define POINTER_TYPE void
9206 cat >>confdefs.h <<\_ACEOF
9207 #define POINTER_TYPE char
9216 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9219 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9221 $as_echo_n "(cached) " >&6
9223 cat >conftest.make <<\_ACEOF
9226 @echo '@@@%%%=$(MAKE)=@@@%%%'
9228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9229 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9231 eval ac_cv_prog_make_${ac_make}_set=yes;;
9233 eval ac_cv_prog_make_${ac_make}_set=no;;
9237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9238 { $as_echo "$as_me:$LINENO: result: yes" >&5
9239 $as_echo "yes" >&6; }
9242 { $as_echo "$as_me:$LINENO: result: no" >&5
9243 $as_echo "no" >&6; }
9244 SET_MAKE="MAKE=${MAKE-make}"
9248 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9249 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9250 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9252 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9253 if test "x$testval" != x; then
9256 ac_enable_autodepend=no
9258 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9259 $as_echo "$HAVE_GNU_MAKE" >&6; }
9260 if test $HAVE_GNU_MAKE = yes; then
9261 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9262 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9263 SAVE_CFLAGS="$CFLAGS"
9264 CFLAGS="$CFLAGS -MMD -MF deps.d"
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9280 rm -f conftest.$ac_objext
9281 if { (ac_try="$ac_compile"
9283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9284 *) ac_try_echo
=$ac_try;;
9286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_compile") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1
>conftest.err
9292 cat conftest.err
>&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest.
$ac_objext; then
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.
$ac_ext >&5
9303 ac_enable_autodepend
=no
9306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9307 CFLAGS
="$SAVE_CFLAGS"
9308 test -f deps.d || ac_enable_autodepend
=no
9310 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9311 $as_echo "$ac_enable_autodepend" >&6; }
9313 if test $ac_enable_autodepend = yes; then
9315 cat >>confdefs.h
<<\_ACEOF
9316 #define AUTO_DEPEND 1
9322 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9323 $as_echo_n "checking for long file names... " >&6; }
9324 if test "${ac_cv_sys_long_file_names+set}" = set; then
9325 $as_echo_n "(cached) " >&6
9327 ac_cv_sys_long_file_names
=yes
9328 # Test for long file names in all the places we know might matter:
9329 # . the current directory, where building will happen
9330 # $prefix/lib where we will be installing things
9331 # $exec_prefix/lib likewise
9332 # $TMPDIR if set, where it might want to write temporary files
9333 # /tmp where it might want to write temporary files
9336 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9337 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9338 # in the usual case where exec_prefix is '${prefix}'.
9340 . |
/* | ?
:[\\/]*) ;; #(
9343 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9344 ac_xdir
=$ac_dir/cf$$
9345 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9346 ac_tf1
=$ac_xdir/conftest9012345
9347 ac_tf2
=$ac_xdir/conftest9012346
9348 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9349 ac_cv_sys_long_file_names
=no
9350 rm -f -r "$ac_xdir" 2>/dev
/null
9351 test $ac_cv_sys_long_file_names = no
&& break
9354 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9355 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9356 if test $ac_cv_sys_long_file_names = yes; then
9358 cat >>confdefs.h
<<\_ACEOF
9359 #define HAVE_LONG_FILE_NAMES 1
9365 #### Choose a window system.
9367 { $as_echo "$as_me:$LINENO: checking for X" >&5
9368 $as_echo_n "checking for X... " >&6; }
9371 # Check whether --with-x was given.
9372 if test "${with_x+set}" = set; then
9376 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9377 if test "x$with_x" = xno
; then
9378 # The user explicitly disabled X.
9381 case $x_includes,$x_libraries in #(
9382 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9383 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9384 { (exit 1); exit 1; }; };; #(
9385 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9386 $as_echo_n "(cached) " >&6
9388 # One or both of the vars are not set, and there is no cached value.
9389 ac_x_includes
=no ac_x_libraries
=no
9390 rm -f -r conftest.dir
9391 if mkdir conftest.dir
; then
9393 cat >Imakefile
<<'_ACEOF'
9395 @echo incroot='${INCROOT}'
9397 @echo usrlibdir='${USRLIBDIR}'
9399 @echo libdir='${LIBDIR}'
9401 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9402 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9403 for ac_var
in incroot usrlibdir libdir
; do
9404 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9406 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9407 for ac_extension
in a so sl dylib la dll
; do
9408 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9409 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9410 ac_im_usrlibdir
=$ac_im_libdir; break
9413 # Screen out bogus values from the imake configuration. They are
9414 # bogus both because they are the default anyway, and because
9415 # using them would break gcc on systems where it needs fixed includes.
9416 case $ac_im_incroot in
9417 /usr
/include
) ac_x_includes
= ;;
9418 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9420 case $ac_im_usrlibdir in
9421 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
9422 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9426 rm -f -r conftest.dir
9429 # Standard set of common directories for X headers.
9430 # Check X11 before X11Rn because it is often a symlink to the current release.
9442 /usr/local/X11/include
9443 /usr/local/X11R6/include
9444 /usr/local/X11R5/include
9445 /usr/local/X11R4/include
9447 /usr/local/include/X11
9448 /usr/local/include/X11R6
9449 /usr/local/include/X11R5
9450 /usr/local/include/X11R4
9454 /usr/XFree86/include/X11
9458 /usr/unsupported/include
9460 /usr/local/x11r5/include
9461 /usr/lpp/Xamples/include
9463 /usr/openwin/include
9464 /usr/openwin/share/include'
9466 if test "$ac_x_includes" = no
; then
9467 # Guess where to find include files, by looking for Xlib.h.
9468 # First, try using that file with no special directory specified.
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 #include <X11/Xlib.h>
9477 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9483 $as_echo "$ac_try_echo") >&5
9484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } >/dev/null && {
9491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9494 # We can compile using X headers with no special include directory.
9497 $as_echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 for ac_dir in $ac_x_header_dirs; do
9501 if test -r "$ac_dir/X11/Xlib.h"; then
9502 ac_x_includes=$ac_dir
9508 rm -f conftest.err conftest.$ac_ext
9509 fi # $ac_x_includes = no
9511 if test "$ac_x_libraries" = no; then
9512 # Check for the libraries.
9513 # See if we find them without any special options.
9514 # Don't add to $LIBS permanently.
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 #include <X11/Xlib.h>
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
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_link") 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_exeext && {
9550 test "$cross_compiling" = yes ||
9551 $as_test_x conftest
$ac_exeext
9554 # We can link X programs with no special library path.
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.
$ac_ext >&5
9561 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9563 # Don't even attempt the hair of trying to link an X program!
9564 for ac_extension
in a so sl dylib la dll
; do
9565 if test -r "$ac_dir/libX11.$ac_extension"; then
9566 ac_x_libraries
=$ac_dir
9573 rm -rf conftest.dSYM
9574 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9575 conftest
$ac_exeext conftest.
$ac_ext
9576 fi # $ac_x_libraries = no
9578 case $ac_x_includes,$ac_x_libraries in #(
9580 # Didn't find X, or a directory has "'" in its name.
9581 ac_cv_have_x
="have_x=no";; #(
9583 # Record where we found X for the cache.
9584 ac_cv_have_x
="have_x=yes\
9585 ac_x_includes='$ac_x_includes'\
9586 ac_x_libraries='$ac_x_libraries'"
9592 eval "$ac_cv_have_x"
9595 if test "$have_x" != yes; then
9596 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9597 $as_echo "$have_x" >&6; }
9600 # If each of the values was on the command line, it overrides each guess.
9601 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9602 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9603 # Update the cache value to reflect the command line values.
9604 ac_cv_have_x
="have_x=yes\
9605 ac_x_includes='$x_includes'\
9606 ac_x_libraries='$x_libraries'"
9607 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9608 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9611 if test "$no_x" = yes; then
9617 ## Workaround for bug in autoconf <= 2.62.
9618 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9619 ## No need to do anything special for these standard directories.
9620 ## This is an experiment, take it out if it causes problems.
9621 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9623 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9627 if test "${x_libraries}" != NONE
; then
9628 if test -n "${x_libraries}"; then
9629 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9630 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9632 x_default_search_path
=""
9633 x_search_path
=${x_libraries}
9634 if test -z "${x_search_path}"; then
9635 x_search_path
=/usr
/lib
9637 for x_library
in `echo ${x_search_path}: | \
9638 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9640 ${x_library}/X11/%L/%T/%N%C%S:\
9641 ${x_library}/X11/%l/%T/%N%C%S:\
9642 ${x_library}/X11/%T/%N%C%S:\
9643 ${x_library}/X11/%L/%T/%N%S:\
9644 ${x_library}/X11/%l/%T/%N%S:\
9645 ${x_library}/X11/%T/%N%S"
9646 if test x
"${x_default_search_path}" = x
; then
9647 x_default_search_path
=${x_search_path}
9649 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9653 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9654 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9657 if test x
"${x_includes}" = x
; then
9658 bitmapdir
=/usr
/include
/X11
/bitmaps
9660 # accumulate include directories that have X11 bitmap subdirectories
9662 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9663 if test -d "${bmd}/X11/bitmaps"; then
9664 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9666 if test -d "${bmd}/bitmaps"; then
9667 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9670 if test ${bmd_acc} != "dummyval"; then
9671 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9678 tmp_CPPFLAGS
="$CPPFLAGS"
9679 tmp_CFLAGS
="$CFLAGS"
9680 CPPFLAGS
="$CPPFLAGS -x objective-c"
9681 CFLAGS
="$CFLAGS -x objective-c"
9682 if test "${with_ns}" != no
; then
9683 if test "${opsys}" = darwin
; then
9685 ns_appdir
=`pwd`/nextstep
/Emacs.app
9686 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9687 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9688 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9689 elif test -f $GNUSTEP_CONFIG_FILE; then
9691 ns_appdir
=`pwd`/nextstep
/Emacs.app
9692 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9693 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9694 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9695 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9696 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9697 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9698 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9699 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9700 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9701 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9703 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9704 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9705 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9706 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9707 $as_echo_n "(cached) " >&6
9709 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9710 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9712 # Is the header compilable?
9713 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9714 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 $ac_includes_default
9722 #include <AppKit/AppKit.h>
9724 rm -f conftest.
$ac_objext
9725 if { (ac_try
="$ac_compile"
9727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9731 $as_echo "$ac_try_echo") >&5
9732 (eval "$ac_compile") 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest.$ac_objext; then
9742 ac_header_compiler=yes
9744 $as_echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_header_compiler=no
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9752 $as_echo "$ac_header_compiler" >&6; }
9754 # Is the header present?
9755 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9756 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 #include <AppKit/AppKit.h>
9765 if { (ac_try="$ac_cpp conftest.$ac_ext"
9767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9768 *) ac_try_echo
=$ac_try;;
9770 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9771 $as_echo "$ac_try_echo") >&5
9772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1
>conftest.err
9776 cat conftest.err
>&5
9777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } >/dev
/null
&& {
9779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9782 ac_header_preproc
=yes
9784 $as_echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.
$ac_ext >&5
9787 ac_header_preproc
=no
9790 rm -f conftest.err conftest.
$ac_ext
9791 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9792 $as_echo "$ac_header_preproc" >&6; }
9794 # So? What about this header?
9795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9798 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9800 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9801 ac_header_preproc
=yes
9804 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9805 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9806 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9807 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9808 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9809 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9811 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9812 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9813 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9814 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9815 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9819 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9820 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9821 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9822 $as_echo_n "(cached) " >&6
9824 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9827 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9830 if test "x$ac_cv_header_AppKit_AppKit_h" = x
""yes; then
9833 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9834 files are missing or cannot be compiled." >&5
9835 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9836 files are missing or cannot be compiled." >&2;}
9837 { (exit 1); exit 1; }; }
9841 NS_HAVE_NSINTEGER
=yes
9842 cat >conftest.
$ac_ext <<_ACEOF
9845 cat confdefs.h
>>conftest.
$ac_ext
9846 cat >>conftest.
$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 #include <Foundation/NSObjCRuntime.h>
9857 rm -f conftest.
$ac_objext
9858 if { (ac_try
="$ac_compile"
9860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864 $as_echo "$ac_try_echo") >&5
9865 (eval "$ac_compile") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest.$ac_objext; then
9875 ns_have_nsinteger=yes
9877 $as_echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ns_have_nsinteger=no
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9884 if test $ns_have_nsinteger = no; then
9885 NS_HAVE_NSINTEGER=no
9888 if test "${HAVE_NS}" = yes; then
9889 window_system=nextstep
9891 # set up packaging dirs
9892 exec_prefix=${ns_appbindir}
9893 libexecdir=${ns_appbindir}/libexec
9894 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9895 prefix=${ns_appresdir}
9898 CFLAGS="$tmp_CFLAGS"
9899 CPPFLAGS="$tmp_CPPFLAGS"
9901 case "${window_system}" in
9905 case "${with_x_toolkit}" in
9906 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9907 motif ) USE_X_TOOLKIT=MOTIF ;;
9909 USE_X_TOOLKIT=none ;;
9910 no ) USE_X_TOOLKIT=none ;;
9911 * ) USE_X_TOOLKIT=maybe ;;
9921 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9922 # Extract the first word of "X", so it can be a program name with args.
9923 set dummy X; ac_word=$2
9924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9925 $as_echo_n "checking for $ac_word... " >&6; }
9926 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9927 $as_echo_n "(cached) " >&6
9929 if test -n "$HAVE_XSERVER"; then
9930 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 test -z "$as_dir" && as_dir=.
9937 for ac_exec_ext in '' $ac_executable_extensions; do
9938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939 ac_cv_prog_HAVE_XSERVER="true"
9940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9947 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9950 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9951 if test -n "$HAVE_XSERVER"; then
9952 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9953 $as_echo "$HAVE_XSERVER" >&6; }
9955 { $as_echo "$as_me:$LINENO: result: no" >&5
9956 $as_echo "no" >&6; }
9960 if test "$HAVE_XSERVER" = true ||
9961 test -n "$DISPLAY" ||
9962 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9963 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9964 were found. You should install the relevant development files for X
9965 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9966 sure you have development files for image handling, i.e.
9967 tiff, gif, jpeg, png and xpm.
9968 If you are sure you want Emacs compiled without X window support, pass
9971 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9972 were found. You should install the relevant development files for X
9973 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9974 sure you have development files for image handling, i.e.
9975 tiff, gif, jpeg, png and xpm.
9976 If you are sure you want Emacs compiled without X window support, pass
9978 to configure." >&2;}
9979 { (exit 1); exit 1; }; }
9983 ### If we're using X11, we should use the X menu package.
9986 yes ) HAVE_MENUS=yes ;;
9989 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9990 # Assume not, until told otherwise.
9993 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9994 $as_echo_n "checking for malloc_get_state... " >&6; }
9995 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9996 $as_echo_n "(cached) " >&6
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10006 #define malloc_get_state innocuous_malloc_get_state
10008 /* System header to define __stub macros and hopefully few prototypes,
10009 which can conflict with char malloc_get_state (); below.
10010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10011 <limits.h> exists even on freestanding compilers. */
10014 # include <limits.h>
10016 # include <assert.h>
10019 #undef malloc_get_state
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10027 char malloc_get_state ();
10028 /* The GNU C library defines this for functions which it implements
10029 to always fail with ENOSYS. Some functions are actually named
10030 something starting with __ and the normal name is an alias. */
10031 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10038 return malloc_get_state ();
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10047 *) ac_try_echo
=$ac_try;;
10049 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10050 $as_echo "$ac_try_echo") >&5
10051 (eval "$ac_link") 2>conftest.er1
10053 grep -v '^ *+' conftest.er1
>conftest.err
10055 cat conftest.err
>&5
10056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } && {
10058 test -z "$ac_c_werror_flag" ||
10059 test ! -s conftest.err
10060 } && test -s conftest
$ac_exeext && {
10061 test "$cross_compiling" = yes ||
10062 $as_test_x conftest
$ac_exeext
10064 ac_cv_func_malloc_get_state
=yes
10066 $as_echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.
$ac_ext >&5
10069 ac_cv_func_malloc_get_state
=no
10072 rm -rf conftest.dSYM
10073 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10074 conftest
$ac_exeext conftest.
$ac_ext
10076 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10077 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10078 if test "x$ac_cv_func_malloc_get_state" = x
""yes; then
10084 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10085 $as_echo_n "checking for malloc_set_state... " >&6; }
10086 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10089 cat >conftest.
$ac_ext <<_ACEOF
10092 cat confdefs.h
>>conftest.
$ac_ext
10093 cat >>conftest.
$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097 #define malloc_set_state innocuous_malloc_set_state
10099 /* System header to define __stub macros and hopefully few prototypes,
10100 which can conflict with char malloc_set_state (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10105 # include <limits.h>
10107 # include <assert.h>
10110 #undef malloc_set_state
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10118 char malloc_set_state ();
10119 /* The GNU C library defines this for functions which it implements
10120 to always fail with ENOSYS. Some functions are actually named
10121 something starting with __ and the normal name is an alias. */
10122 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10129 return malloc_set_state ();
10134 rm -f conftest.
$ac_objext conftest
$ac_exeext
10135 if { (ac_try
="$ac_link"
10136 case "(($ac_try" in
10137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_link") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext && {
10152 test "$cross_compiling" = yes ||
10153 $as_test_x conftest$ac_exeext
10155 ac_cv_func_malloc_set_state=yes
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 ac_cv_func_malloc_set_state=no
10163 rm -rf conftest.dSYM
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165 conftest$ac_exeext conftest.$ac_ext
10167 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10168 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10169 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10175 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10176 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10177 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10178 $as_echo_n "(cached) " >&6
10180 cat >conftest.$ac_ext <<_ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 extern void (* __after_morecore_hook)();
10190 __after_morecore_hook = 0
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10199 *) ac_try_echo
=$ac_try;;
10201 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1
>conftest.err
10207 cat conftest.err
>&5
10208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest
$ac_exeext && {
10213 test "$cross_compiling" = yes ||
10214 $as_test_x conftest
$ac_exeext
10216 emacs_cv_var___after_morecore_hook
=yes
10218 $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.
$ac_ext >&5
10221 emacs_cv_var___after_morecore_hook
=no
10224 rm -rf conftest.dSYM
10225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10226 conftest
$ac_exeext conftest.
$ac_ext
10228 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10229 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10230 if test $emacs_cv_var___after_morecore_hook = no
; then
10233 if test "${system_malloc}" = "yes"; then
10235 GNU_MALLOC_reason
="
10236 (The GNU allocators don't work with this system configuration.)"
10238 if test "$doug_lea_malloc" = "yes" ; then
10239 if test "$GNU_MALLOC" = yes ; then
10240 GNU_MALLOC_reason
="
10241 (Using Doug Lea's new malloc from the GNU C Library.)"
10244 cat >>confdefs.h
<<\_ACEOF
10245 #define DOUG_LEA_MALLOC 1
10250 if test x
"${REL_ALLOC}" = x
; then
10251 REL_ALLOC
=${GNU_MALLOC}
10257 for ac_header
in stdlib.h unistd.h
10259 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10260 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10262 $as_echo_n "checking for $ac_header... " >&6; }
10263 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10264 $as_echo_n "(cached) " >&6
10266 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10267 $as_echo "$as_val"'`
10268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10269 $as_echo "$ac_res" >&6; }
10271 # Is the header compilable?
10272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10273 $as_echo_n "checking $ac_header usability... " >&6; }
10274 cat >conftest.
$ac_ext <<_ACEOF
10277 cat confdefs.h
>>conftest.
$ac_ext
10278 cat >>conftest.
$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 #include <$ac_header>
10283 rm -f conftest.
$ac_objext
10284 if { (ac_try
="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10301 ac_header_compiler=yes
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 ac_header_compiler=no
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10311 $as_echo "$ac_header_compiler" >&6; }
10313 # Is the header present?
10314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10315 $as_echo_n "checking $ac_header presence... " >&6; }
10316 cat >conftest.$ac_ext <<_ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <$ac_header>
10324 if { (ac_try="$ac_cpp conftest.$ac_ext"
10325 case "(($ac_try" in
10326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10327 *) ac_try_echo
=$ac_try;;
10329 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10330 $as_echo "$ac_try_echo") >&5
10331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1
>conftest.err
10335 cat conftest.err
>&5
10336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } >/dev
/null
&& {
10338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10341 ac_header_preproc
=yes
10343 $as_echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.
$ac_ext >&5
10346 ac_header_preproc
=no
10349 rm -f conftest.err conftest.
$ac_ext
10350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10351 $as_echo "$ac_header_preproc" >&6; }
10353 # So? What about this header?
10354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10360 ac_header_preproc
=yes
10363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10379 $as_echo_n "checking for $ac_header... " >&6; }
10380 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10381 $as_echo_n "(cached) " >&6
10383 eval "$as_ac_Header=\$ac_header_preproc"
10385 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10386 $as_echo "$as_val"'`
10387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10388 $as_echo "$ac_res" >&6; }
10391 as_val
=`eval 'as_val=${'$as_ac_Header'}
10392 $as_echo "$as_val"'`
10393 if test "x$as_val" = x
""yes; then
10394 cat >>confdefs.h
<<_ACEOF
10395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10403 for ac_func
in getpagesize
10405 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10406 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10407 $as_echo_n "checking for $ac_func... " >&6; }
10408 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10409 $as_echo_n "(cached) " >&6
10411 cat >conftest.
$ac_ext <<_ACEOF
10414 cat confdefs.h
>>conftest.
$ac_ext
10415 cat >>conftest.
$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10419 #define $ac_func innocuous_$ac_func
10421 /* System header to define __stub macros and hopefully few prototypes,
10422 which can conflict with char $ac_func (); below.
10423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10424 <limits.h> exists even on freestanding compilers. */
10427 # include <limits.h>
10429 # include <assert.h>
10434 /* Override any GCC internal prototype to avoid an error.
10435 Use char because int might match the return type of a GCC
10436 builtin and then its argument prototype would still apply. */
10441 /* The GNU C library defines this for functions which it implements
10442 to always fail with ENOSYS. Some functions are actually named
10443 something starting with __ and the normal name is an alias. */
10444 #if defined __stub_$ac_func || defined __stub___$ac_func
10451 return $ac_func ();
10456 rm -f conftest.
$ac_objext conftest
$ac_exeext
10457 if { (ac_try
="$ac_link"
10458 case "(($ac_try" in
10459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10463 $as_echo "$ac_try_echo") >&5
10464 (eval "$ac_link") 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest$ac_exeext && {
10474 test "$cross_compiling" = yes ||
10475 $as_test_x conftest$ac_exeext
10477 eval "$as_ac_var=yes"
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 eval "$as_ac_var=no"
10485 rm -rf conftest.dSYM
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10489 ac_res=`eval 'as_val=${'$as_ac_var'}
10490 $as_echo "$as_val"'`
10491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10492 $as_echo "$ac_res" >&6; }
10493 as_val=`eval 'as_val=${'$as_ac_var'}
10494 $as_echo "$as_val"'`
10495 if test "x$as_val" = x""yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10503 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10504 $as_echo_n "checking for working mmap... " >&6; }
10505 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10506 $as_echo_n "(cached) " >&6
10508 if test "$cross_compiling" = yes; then
10509 ac_cv_func_mmap_fixed_mapped=no
10511 cat >conftest.$ac_ext <<_ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 $ac_includes_default
10518 /* malloc might have been renamed as rpl_malloc. */
10521 /* Thanks to Mike Haertel and Jim Avera for this test.
10522 Here is a matrix of mmap possibilities:
10523 mmap private not fixed
10524 mmap private fixed at somewhere currently unmapped
10525 mmap private fixed at somewhere already mapped
10526 mmap shared not fixed
10527 mmap shared fixed at somewhere currently unmapped
10528 mmap shared fixed at somewhere already mapped
10529 For private mappings, we should verify that changes cannot be read()
10530 back from the file, nor mmap's back from the file at a different
10531 address. (There have been systems where private was not correctly
10532 implemented like the infamous i386 svr4.0, and systems where the
10533 VM page cache was not coherent with the file system buffer cache
10534 like early versions of FreeBSD and possibly contemporary NetBSD.)
10535 For shared mappings, we should conversely verify that changes get
10536 propagated back to all the places they're supposed to be.
10538 Grep wants private fixed already mapped.
10539 The main things grep needs to know about mmap are:
10540 * does it exist and is it safe to write into the mmap'd area
10541 * how to use it (BSD variants) */
10544 #include <sys/mman.h>
10546 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10550 /* This mess was copied from the GNU getpagesize.h. */
10551 #ifndef HAVE_GETPAGESIZE
10552 /* Assume that all systems that can run configure have sys/param.h. */
10553 # ifndef HAVE_SYS_PARAM_H
10554 # define HAVE_SYS_PARAM_H 1
10557 # ifdef _SC_PAGESIZE
10558 # define getpagesize() sysconf(_SC_PAGESIZE)
10559 # else /* no _SC_PAGESIZE */
10560 # ifdef HAVE_SYS_PARAM_H
10561 # include <sys/param.h>
10562 # ifdef EXEC_PAGESIZE
10563 # define getpagesize() EXEC_PAGESIZE
10564 # else /* no EXEC_PAGESIZE */
10566 # define getpagesize() NBPG * CLSIZE
10569 # endif /* no CLSIZE */
10570 # else /* no NBPG */
10572 # define getpagesize() NBPC
10573 # else /* no NBPC */
10575 # define getpagesize() PAGESIZE
10576 # endif /* PAGESIZE */
10577 # endif /* no NBPC */
10578 # endif /* no NBPG */
10579 # endif /* no EXEC_PAGESIZE */
10580 # else /* no HAVE_SYS_PARAM_H */
10581 # define getpagesize() 8192 /* punt totally */
10582 # endif /* no HAVE_SYS_PARAM_H */
10583 # endif /* no _SC_PAGESIZE */
10585 #endif /* no HAVE_GETPAGESIZE */
10590 char *data, *data2, *data3;
10594 pagesize = getpagesize ();
10596 /* First, make a file with some known garbage in it. */
10597 data = (char *) malloc (pagesize);
10600 for (i = 0; i < pagesize; ++i)
10601 *(data + i) = rand ();
10603 fd = creat ("conftest.mmap", 0600);
10606 if (write (fd, data, pagesize) != pagesize)
10610 /* Next, try to mmap the file at a fixed address which already has
10611 something else allocated at it. If we can, also make sure that
10612 we see the same garbage. */
10613 fd = open ("conftest.mmap", O_RDWR);
10616 data2 = (char *) malloc (2 * pagesize);
10619 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10620 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10621 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10623 for (i = 0; i < pagesize; ++i)
10624 if (*(data + i) != *(data2 + i))
10627 /* Finally, make sure that changes to the mapped area do not
10628 percolate back to the file as seen by read(). (This is a bug on
10629 some variants of i386 svr4.0.) */
10630 for (i = 0; i < pagesize; ++i)
10631 *(data2 + i) = *(data2 + i) + 1;
10632 data3 = (char *) malloc (pagesize);
10635 if (read (fd, data3, pagesize) != pagesize)
10637 for (i = 0; i < pagesize; ++i)
10638 if (*(data + i) != *(data3 + i))
10644 rm -f conftest$ac_exeext
10645 if { (ac_try="$ac_link"
10646 case "(($ac_try" in
10647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10648 *) ac_try_echo
=$ac_try;;
10650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652 (eval "$ac_link") 2>&5
10654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10656 { (case "(($ac_try" in
10657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10661 $as_echo "$ac_try_echo") >&5
10662 (eval "$ac_try") 2>&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_func_mmap_fixed_mapped=yes
10668 $as_echo "$as_me: program exited with status $ac_status" >&5
10669 $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ( exit $ac_status )
10673 ac_cv_func_mmap_fixed_mapped=no
10675 rm -rf conftest.dSYM
10676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10682 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10683 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10685 cat >>confdefs.h <<\_ACEOF
10686 #define HAVE_MMAP 1
10690 rm -f conftest.mmap
10692 if test $use_mmap_for_buffers = yes; then
10696 LIBS="$libsrc_libs $LIBS"
10699 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10700 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10701 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10704 ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-ldnet $LIBS"
10706 cat >conftest.$ac_ext <<_ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h. */
10713 /* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
10723 return dnet_ntoa ();
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10732 *) ac_try_echo
=$ac_try;;
10734 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_link") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1
>conftest.err
10740 cat conftest.err
>&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest
$ac_exeext && {
10746 test "$cross_compiling" = yes ||
10747 $as_test_x conftest
$ac_exeext
10749 ac_cv_lib_dnet_dnet_ntoa
=yes
10751 $as_echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.
$ac_ext >&5
10754 ac_cv_lib_dnet_dnet_ntoa
=no
10757 rm -rf conftest.dSYM
10758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10759 conftest
$ac_exeext conftest.
$ac_ext
10760 LIBS
=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10763 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10764 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
10765 cat >>confdefs.h
<<_ACEOF
10766 #define HAVE_LIBDNET 1
10769 LIBS
="-ldnet $LIBS"
10774 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10775 $as_echo_n "checking for main in -lXbsd... " >&6; }
10776 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10777 $as_echo_n "(cached) " >&6
10779 ac_check_lib_save_LIBS
=$LIBS
10780 LIBS
="-lXbsd $LIBS"
10781 cat >conftest.
$ac_ext <<_ACEOF
10784 cat confdefs.h
>>conftest.
$ac_ext
10785 cat >>conftest.
$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10797 rm -f conftest.
$ac_objext conftest
$ac_exeext
10798 if { (ac_try
="$ac_link"
10799 case "(($ac_try" in
10800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10804 $as_echo "$ac_try_echo") >&5
10805 (eval "$ac_link") 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext && {
10815 test "$cross_compiling" = yes ||
10816 $as_test_x conftest$ac_exeext
10818 ac_cv_lib_Xbsd_main=yes
10820 $as_echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_lib_Xbsd_main=no
10826 rm -rf conftest.dSYM
10827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10832 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10833 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
10834 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10839 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10840 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10841 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10842 $as_echo_n "(cached) " >&6
10844 ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-lpthreads $LIBS"
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10863 return cma_open ();
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10872 *) ac_try_echo
=$ac_try;;
10874 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10875 $as_echo "$ac_try_echo") >&5
10876 (eval "$ac_link") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1
>conftest.err
10880 cat conftest.err
>&5
10881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest
$ac_exeext && {
10886 test "$cross_compiling" = yes ||
10887 $as_test_x conftest
$ac_exeext
10889 ac_cv_lib_pthreads_cma_open
=yes
10891 $as_echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.
$ac_ext >&5
10894 ac_cv_lib_pthreads_cma_open
=no
10897 rm -rf conftest.dSYM
10898 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10899 conftest
$ac_exeext conftest.
$ac_ext
10900 LIBS
=$ac_check_lib_save_LIBS
10902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10903 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10904 if test "x$ac_cv_lib_pthreads_cma_open" = x
""yes; then
10905 cat >>confdefs.h
<<_ACEOF
10906 #define HAVE_LIBPTHREADS 1
10909 LIBS
="-lpthreads $LIBS"
10917 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10918 $as_echo_n "checking for -bbigtoc option... " >&6; }
10919 if test "${gdb_cv_bigtoc+set}" = set; then
10920 $as_echo_n "(cached) " >&6
10924 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10925 *) gdb_cv_bigtoc
=-bbigtoc ;;
10928 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10929 cat >conftest.
$ac_ext <<_ACEOF
10932 cat confdefs.h
>>conftest.
$ac_ext
10933 cat >>conftest.
$ac_ext <<_ACEOF
10934 /* end confdefs.h. */
10944 rm -f conftest.
$ac_objext conftest
$ac_exeext
10945 if { (ac_try
="$ac_link"
10946 case "(($ac_try" in
10947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10951 $as_echo "$ac_try_echo") >&5
10952 (eval "$ac_link") 2>conftest.er1
10954 grep -v '^ *+' conftest.er1 >conftest.err
10956 cat conftest.err >&5
10957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } && {
10959 test -z "$ac_c_werror_flag" ||
10960 test ! -s conftest.err
10961 } && test -s conftest$ac_exeext && {
10962 test "$cross_compiling" = yes ||
10963 $as_test_x conftest$ac_exeext
10967 $as_echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10973 rm -rf conftest.dSYM
10974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10975 conftest$ac_exeext conftest.$ac_ext
10978 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10979 $as_echo "$gdb_cv_bigtoc" >&6; }
10983 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10984 # used for the tests that follow. We set them back to REAL_CFLAGS and
10985 # REAL_CPPFLAGS later on.
10987 REAL_CPPFLAGS="$CPPFLAGS"
10989 if test "${HAVE_X11}" = "yes"; then
10990 DEFS="$C_SWITCH_X_SITE $DEFS"
10991 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10993 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10994 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10996 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10997 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10998 # but it's more convenient here to set LD_RUN_PATH
10999 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11000 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11001 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11005 if test "${opsys}" = "gnu-linux"; then
11006 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11007 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11018 XOpenDisplay ("foo");
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11027 *) ac_try_echo
=$ac_try;;
11029 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031 (eval "$ac_link") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1
>conftest.err
11035 cat conftest.err
>&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest
$ac_exeext && {
11041 test "$cross_compiling" = yes ||
11042 $as_test_x conftest
$ac_exeext
11044 xlinux_first_failure
=no
11046 $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.
$ac_ext >&5
11049 xlinux_first_failure
=yes
11052 rm -rf conftest.dSYM
11053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11054 conftest
$ac_exeext conftest.
$ac_ext
11055 if test "${xlinux_first_failure}" = "yes"; then
11056 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11057 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11058 OLD_CPPFLAGS
="$CPPFLAGS"
11060 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11061 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11062 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11063 LIBS
="$LIBS -b i486-linuxaout"
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11074 XOpenDisplay ("foo");
11079 rm -f conftest.
$ac_objext conftest
$ac_exeext
11080 if { (ac_try
="$ac_link"
11081 case "(($ac_try" in
11082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11083 *) ac_try_echo=$ac_try;;
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_link") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest$ac_exeext && {
11097 test "$cross_compiling" = yes ||
11098 $as_test_x conftest$ac_exeext
11100 xlinux_second_failure=no
11102 $as_echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 xlinux_second_failure=yes
11108 rm -rf conftest.dSYM
11109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11110 conftest$ac_exeext conftest.$ac_ext
11111 if test "${xlinux_second_failure}" = "yes"; then
11112 # If we get the same failure with -b, there is no use adding -b.
11113 # So take it out. This plays safe.
11114 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11115 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11116 CPPFLAGS="$OLD_CPPFLAGS"
11118 { $as_echo "$as_me:$LINENO: result: no" >&5
11119 $as_echo "no" >&6; }
11121 { $as_echo "$as_me:$LINENO: result: yes" >&5
11122 $as_echo "yes" >&6; }
11125 { $as_echo "$as_me:$LINENO: result: no" >&5
11126 $as_echo "no" >&6; }
11130 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11131 # header files included from there.
11132 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11133 $as_echo_n "checking for Xkb... " >&6; }
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11140 #include <X11/Xlib.h>
11141 #include <X11/XKBlib.h>
11145 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11150 rm -f conftest.$ac_objext conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11154 *) ac_try_echo
=$ac_try;;
11156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11157 $as_echo "$ac_try_echo") >&5
11158 (eval "$ac_link") 2>conftest.er1
11160 grep -v '^ *+' conftest.er1
>conftest.err
11162 cat conftest.err
>&5
11163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && {
11165 test -z "$ac_c_werror_flag" ||
11166 test ! -s conftest.err
11167 } && test -s conftest
$ac_exeext && {
11168 test "$cross_compiling" = yes ||
11169 $as_test_x conftest
$ac_exeext
11173 $as_echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.
$ac_ext >&5
11179 rm -rf conftest.dSYM
11180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11181 conftest
$ac_exeext conftest.
$ac_ext
11182 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11183 $as_echo "$emacs_xkb" >&6; }
11184 if test $emacs_xkb = yes; then
11186 cat >>confdefs.h
<<\_ACEOF
11187 #define HAVE_XKBGETKEYBOARD 1
11196 for ac_func
in XrmSetDatabase XScreenResourceString \
11197 XScreenNumberOfScreen XSetWMProtocols
11199 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11201 $as_echo_n "checking for $ac_func... " >&6; }
11202 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11203 $as_echo_n "(cached) " >&6
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11213 #define $ac_func innocuous_$ac_func
11215 /* System header to define __stub macros and hopefully few prototypes,
11216 which can conflict with char $ac_func (); below.
11217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 <limits.h> exists even on freestanding compilers. */
11221 # include <limits.h>
11223 # include <assert.h>
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11235 /* The GNU C library defines this for functions which it implements
11236 to always fail with ENOSYS. Some functions are actually named
11237 something starting with __ and the normal name is an alias. */
11238 #if defined __stub_$ac_func || defined __stub___$ac_func
11245 return $ac_func ();
11250 rm -f conftest.
$ac_objext conftest
$ac_exeext
11251 if { (ac_try
="$ac_link"
11252 case "(($ac_try" in
11253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_link") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && {
11265 test -z "$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11267 } && test -s conftest$ac_exeext && {
11268 test "$cross_compiling" = yes ||
11269 $as_test_x conftest$ac_exeext
11271 eval "$as_ac_var=yes"
11273 $as_echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 eval "$as_ac_var=no"
11279 rm -rf conftest.dSYM
11280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11281 conftest$ac_exeext conftest.$ac_ext
11283 ac_res=`eval 'as_val=${'$as_ac_var'}
11284 $as_echo "$as_val"'`
11285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11286 $as_echo "$ac_res" >&6; }
11287 as_val=`eval 'as_val=${'$as_ac_var'}
11288 $as_echo "$as_val"'`
11289 if test "x$as_val" = x""yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11299 if test "${window_system}" = "x11"; then
11300 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11301 $as_echo_n "checking X11 version 6... " >&6; }
11302 if test "${emacs_cv_x11_version_6+set}" = set; then
11303 $as_echo_n "(cached) " >&6
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <X11/Xlib.h>
11315 #if XlibSpecificationRelease < 6
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11327 *) ac_try_echo
=$ac_try;;
11329 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_link") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1
>conftest.err
11335 cat conftest.err
>&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest
$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest
$ac_exeext
11344 emacs_cv_x11_version_6
=yes
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.
$ac_ext >&5
11349 emacs_cv_x11_version_6
=no
11352 rm -rf conftest.dSYM
11353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11354 conftest
$ac_exeext conftest.
$ac_ext
11357 if test $emacs_cv_x11_version_6 = yes; then
11358 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11359 $as_echo "6 or newer" >&6; }
11361 cat >>confdefs.h
<<\_ACEOF
11362 #define HAVE_X11R6 1
11366 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11367 $as_echo "before 6" >&6; }
11372 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11374 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11375 if test "${with_rsvg}" != "no"; then
11376 RSVG_REQUIRED
=2.11.0
11377 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11382 # Extract the first word of "pkg-config", so it can be a program name with args.
11383 set dummy pkg-config
; ac_word
=$2
11384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11385 $as_echo_n "checking for $ac_word... " >&6; }
11386 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11387 $as_echo_n "(cached) " >&6
11389 case $PKG_CONFIG in
11391 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11395 for as_dir
in $PATH
11398 test -z "$as_dir" && as_dir
=.
11399 for ac_exec_ext
in '' $ac_executable_extensions; do
11400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11401 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11413 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11414 if test -n "$PKG_CONFIG"; then
11415 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11416 $as_echo "$PKG_CONFIG" >&6; }
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419 $as_echo "no" >&6; }
11424 if test "$PKG_CONFIG" = "no" ; then
11427 PKG_CONFIG_MIN_VERSION
=0.9.0
11428 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11429 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11430 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11432 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11433 { $as_echo "$as_me:$LINENO: result: yes" >&5
11434 $as_echo "yes" >&6; }
11437 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11438 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11439 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11441 $as_echo "$RSVG_CFLAGS" >&6; }
11443 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11444 $as_echo_n "checking RSVG_LIBS... " >&6; }
11445 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11446 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11447 $as_echo "$RSVG_LIBS" >&6; }
11449 { $as_echo "$as_me:$LINENO: result: no" >&5
11450 $as_echo "no" >&6; }
11453 ## If we have a custom action on failure, don't print errors, but
11454 ## do set a variable so people can do so.
11455 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11462 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11463 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11467 if test $succeeded = yes; then
11476 if test ".${RSVG_CFLAGS}" != "."; then
11479 cat >>confdefs.h
<<\_ACEOF
11480 #define HAVE_RSVG 1
11483 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11484 LIBS
="$RSVG_LIBS $LIBS"
11489 HAVE_IMAGEMAGICK
=no
11490 if test "${HAVE_X11}" = "yes" ; then
11491 if test "${with_imagemagick}" != "no"; then
11492 IMAGEMAGICK_REQUIRED
=1
11493 IMAGEMAGICK_MODULE
="MagickWand >= $IMAGEMAGICK_REQUIRED"
11498 # Extract the first word of "pkg-config", so it can be a program name with args.
11499 set dummy pkg-config
; ac_word
=$2
11500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11503 $as_echo_n "(cached) " >&6
11505 case $PKG_CONFIG in
11507 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11511 for as_dir
in $PATH
11514 test -z "$as_dir" && as_dir
=.
11515 for ac_exec_ext
in '' $ac_executable_extensions; do
11516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11529 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11530 if test -n "$PKG_CONFIG"; then
11531 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11532 $as_echo "$PKG_CONFIG" >&6; }
11534 { $as_echo "$as_me:$LINENO: result: no" >&5
11535 $as_echo "no" >&6; }
11540 if test "$PKG_CONFIG" = "no" ; then
11543 PKG_CONFIG_MIN_VERSION
=0.9.0
11544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11545 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11546 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11548 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11549 { $as_echo "$as_me:$LINENO: result: yes" >&5
11550 $as_echo "yes" >&6; }
11553 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11554 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11555 IMAGEMAGICK_CFLAGS
=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11556 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11557 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11559 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11560 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11561 IMAGEMAGICK_LIBS
=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11562 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11563 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11565 { $as_echo "$as_me:$LINENO: result: no" >&5
11566 $as_echo "no" >&6; }
11567 IMAGEMAGICK_CFLAGS
=""
11568 IMAGEMAGICK_LIBS
=""
11569 ## If we have a custom action on failure, don't print errors, but
11570 ## do set a variable so people can do so.
11571 IMAGEMAGICK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11578 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11579 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11583 if test $succeeded = yes; then
11592 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11593 HAVE_IMAGEMAGICK
=yes
11595 cat >>confdefs.h
<<\_ACEOF
11596 #define HAVE_IMAGEMAGICK 1
11599 CFLAGS
="$CFLAGS $IMAGEMAGICK_CFLAGS"
11600 LIBS
="$IMAGEMAGICK_LIBS $LIBS"
11606 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11609 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config
; ac_word
=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11621 case $PKG_CONFIG in
11623 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11627 for as_dir
in $PATH
11630 test -z "$as_dir" && as_dir
=.
11631 for ac_exec_ext
in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11645 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11650 { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11656 if test "$PKG_CONFIG" = "no" ; then
11659 PKG_CONFIG_MIN_VERSION
=0.9.0
11660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11661 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11662 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11664 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11665 { $as_echo "$as_me:$LINENO: result: yes" >&5
11666 $as_echo "yes" >&6; }
11669 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11670 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11671 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11672 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11673 $as_echo "$GTK_CFLAGS" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11676 $as_echo_n "checking GTK_LIBS... " >&6; }
11677 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11678 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11679 $as_echo "$GTK_LIBS" >&6; }
11681 { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11685 ## If we have a custom action on failure, don't print errors, but
11686 ## do set a variable so people can do so.
11687 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11699 if test $succeeded = yes; then
11705 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11706 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11707 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11708 { (exit 1); exit 1; }; }
11713 if test x
"$pkg_check_gtk" = xyes
; then
11717 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11718 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11719 LIBS
="$GTK_LIBS $LIBS"
11722 for ac_func
in gtk_main
11724 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11726 $as_echo_n "checking for $ac_func... " >&6; }
11727 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11728 $as_echo_n "(cached) " >&6
11730 cat >conftest.
$ac_ext <<_ACEOF
11733 cat confdefs.h
>>conftest.
$ac_ext
11734 cat >>conftest.
$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11738 #define $ac_func innocuous_$ac_func
11740 /* System header to define __stub macros and hopefully few prototypes,
11741 which can conflict with char $ac_func (); below.
11742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11743 <limits.h> exists even on freestanding compilers. */
11746 # include <limits.h>
11748 # include <assert.h>
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11760 /* The GNU C library defines this for functions which it implements
11761 to always fail with ENOSYS. Some functions are actually named
11762 something starting with __ and the normal name is an alias. */
11763 #if defined __stub_$ac_func || defined __stub___$ac_func
11770 return $ac_func ();
11775 rm -f conftest.
$ac_objext conftest
$ac_exeext
11776 if { (ac_try
="$ac_link"
11777 case "(($ac_try" in
11778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11782 $as_echo "$ac_try_echo") >&5
11783 (eval "$ac_link") 2>conftest.er1
11785 grep -v '^ *+' conftest.er1 >conftest.err
11787 cat conftest.err >&5
11788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } && {
11790 test -z "$ac_c_werror_flag" ||
11791 test ! -s conftest.err
11792 } && test -s conftest$ac_exeext && {
11793 test "$cross_compiling" = yes ||
11794 $as_test_x conftest$ac_exeext
11796 eval "$as_ac_var=yes"
11798 $as_echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 eval "$as_ac_var=no"
11804 rm -rf conftest.dSYM
11805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11806 conftest$ac_exeext conftest.$ac_ext
11808 ac_res=`eval 'as_val=${'$as_ac_var'}
11809 $as_echo "$as_val"'`
11810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11811 $as_echo "$ac_res" >&6; }
11812 as_val=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 if test "x$as_val" = x""yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11822 if test "${GTK_COMPILES}" != "yes"; then
11823 if test "$USE_X_TOOLKIT" != "maybe"; then
11824 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11825 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11826 { (exit 1); exit 1; }; };
11831 cat >>confdefs.h <<\_ACEOF
11836 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11839 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11840 closing open displays. This is no problem if you just use
11841 one display, but if you use more than one and close one of them
11842 Emacs may crash." >&5
11843 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11844 closing open displays. This is no problem if you just use
11845 one display, but if you use more than one and close one of them
11846 Emacs may crash." >&2;}
11854 if test "${HAVE_GTK}" = "yes"; then
11856 if test "$with_toolkit_scroll_bars" != no; then
11857 with_toolkit_scroll_bars=yes
11860 HAVE_GTK_MULTIDISPLAY=no
11862 for ac_func in gdk_display_open
11864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11865 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11866 $as_echo_n "checking for $ac_func... " >&6; }
11867 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11868 $as_echo_n "(cached) " >&6
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11878 #define $ac_func innocuous_$ac_func
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char $ac_func (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11886 # include <limits.h>
11888 # include <assert.h>
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined __stub_$ac_func || defined __stub___$ac_func
11910 return $ac_func ();
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (ac_try="$ac_link"
11917 case "(($ac_try" in
11918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11919 *) ac_try_echo
=$ac_try;;
11921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11922 $as_echo "$ac_try_echo") >&5
11923 (eval "$ac_link") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1
>conftest.err
11927 cat conftest.err
>&5
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest
$ac_exeext && {
11933 test "$cross_compiling" = yes ||
11934 $as_test_x conftest
$ac_exeext
11936 eval "$as_ac_var=yes"
11938 $as_echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.
$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -rf conftest.dSYM
11945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11946 conftest
$ac_exeext conftest.
$ac_ext
11948 ac_res
=`eval 'as_val=${'$as_ac_var'}
11949 $as_echo "$as_val"'`
11950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11951 $as_echo "$ac_res" >&6; }
11952 as_val
=`eval 'as_val=${'$as_ac_var'}
11953 $as_echo "$as_val"'`
11954 if test "x$as_val" = x
""yes; then
11955 cat >>confdefs.h
<<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 HAVE_GTK_MULTIDISPLAY
=yes
11962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11964 cat >>confdefs.h
<<\_ACEOF
11965 #define HAVE_GTK_MULTIDISPLAY 1
11970 HAVE_GTK_FILE_SELECTION
=no
11971 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11972 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11973 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11974 $as_echo_n "(cached) " >&6
11976 cat >conftest.
$ac_ext <<_ACEOF
11979 cat confdefs.h
>>conftest.
$ac_ext
11980 cat >>conftest.
$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 #include <gtk/gtk.h>
11988 #ifndef GTK_TYPE_FILE_SELECTION
11989 (void) GTK_TYPE_FILE_SELECTION;
11996 rm -f conftest.
$ac_objext
11997 if { (ac_try
="$ac_compile"
11998 case "(($ac_try" in
11999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12003 $as_echo "$ac_try_echo") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest.$ac_objext; then
12014 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12016 $as_echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12025 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12026 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12027 HAVE_GTK_FILE_SELECTION=yes
12029 HAVE_GTK_FILE_SELECTION=no
12032 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12034 for ac_func in gtk_file_selection_new
12036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 $as_echo_n "checking for $ac_func... " >&6; }
12039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12040 $as_echo_n "(cached) " >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12050 #define $ac_func innocuous_$ac_func
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char $ac_func (); below.
12054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055 <limits.h> exists even on freestanding compilers. */
12058 # include <limits.h>
12060 # include <assert.h>
12065 /* Override any GCC internal prototype to avoid an error.
12066 Use char because int might match the return type of a GCC
12067 builtin and then its argument prototype would still apply. */
12072 /* The GNU C library defines this for functions which it implements
12073 to always fail with ENOSYS. Some functions are actually named
12074 something starting with __ and the normal name is an alias. */
12075 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 return $ac_func ();
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12091 *) ac_try_echo
=$ac_try;;
12093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12094 $as_echo "$ac_try_echo") >&5
12095 (eval "$ac_link") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1
>conftest.err
12099 cat conftest.err
>&5
12100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest
$ac_exeext && {
12105 test "$cross_compiling" = yes ||
12106 $as_test_x conftest
$ac_exeext
12108 eval "$as_ac_var=yes"
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.
$ac_ext >&5
12113 eval "$as_ac_var=no"
12116 rm -rf conftest.dSYM
12117 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12118 conftest
$ac_exeext conftest.
$ac_ext
12120 ac_res
=`eval 'as_val=${'$as_ac_var'}
12121 $as_echo "$as_val"'`
12122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12123 $as_echo "$ac_res" >&6; }
12124 as_val
=`eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'`
12126 if test "x$as_val" = x
""yes; then
12127 cat >>confdefs.h
<<_ACEOF
12128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12130 HAVE_GTK_FILE_SELECTION
=yes
12132 HAVE_GTK_FILE_SELECTION
=no
12138 HAVE_GTK_FILE_CHOOSER
=no
12139 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12140 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12141 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12144 cat >conftest.
$ac_ext <<_ACEOF
12147 cat confdefs.h
>>conftest.
$ac_ext
12148 cat >>conftest.
$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12151 #include <gtk/gtk.h>
12156 #ifndef GTK_TYPE_FILE_CHOOSER
12157 (void) GTK_TYPE_FILE_CHOOSER;
12164 rm -f conftest.
$ac_objext
12165 if { (ac_try
="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12184 $as_echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12193 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12194 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12195 HAVE_GTK_FILE_CHOOSER=yes
12197 HAVE_GTK_FILE_CHOOSER=no
12200 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12202 for ac_func in gtk_file_chooser_dialog_new
12204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12205 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 $as_echo_n "checking for $ac_func... " >&6; }
12207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12208 $as_echo_n "(cached) " >&6
12210 cat >conftest.$ac_ext <<_ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12226 # include <limits.h>
12228 # include <assert.h>
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined __stub_$ac_func || defined __stub___$ac_func
12250 return $ac_func ();
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest
$ac_exeext && {
12273 test "$cross_compiling" = yes ||
12274 $as_test_x conftest
$ac_exeext
12276 eval "$as_ac_var=yes"
12278 $as_echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.
$ac_ext >&5
12281 eval "$as_ac_var=no"
12284 rm -rf conftest.dSYM
12285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12286 conftest
$ac_exeext conftest.
$ac_ext
12288 ac_res
=`eval 'as_val=${'$as_ac_var'}
12289 $as_echo "$as_val"'`
12290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12291 $as_echo "$ac_res" >&6; }
12292 as_val
=`eval 'as_val=${'$as_ac_var'}
12293 $as_echo "$as_val"'`
12294 if test "x$as_val" = x
""yes; then
12295 cat >>confdefs.h
<<_ACEOF
12296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 HAVE_GTK_FILE_CHOOSER
=yes
12300 HAVE_GTK_FILE_CHOOSER
=no
12306 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12307 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12309 cat >>confdefs.h
<<\_ACEOF
12310 #define HAVE_GTK_FILE_BOTH 1
12315 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12316 HAVE_GTK_AND_PTHREAD
=no
12318 for ac_header
in pthread.h
12320 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12323 $as_echo_n "checking for $ac_header... " >&6; }
12324 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12325 $as_echo_n "(cached) " >&6
12327 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12328 $as_echo "$as_val"'`
12329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12330 $as_echo "$ac_res" >&6; }
12332 # Is the header compilable?
12333 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12334 $as_echo_n "checking $ac_header usability... " >&6; }
12335 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 #include <$ac_header>
12344 rm -f conftest.
$ac_objext
12345 if { (ac_try
="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.$ac_objext; then
12362 ac_header_compiler=yes
12364 $as_echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_header_compiler=no
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12372 $as_echo "$ac_header_compiler" >&6; }
12374 # Is the header present?
12375 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12376 $as_echo_n "checking $ac_header presence... " >&6; }
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 #include <$ac_header>
12385 if { (ac_try="$ac_cpp conftest.$ac_ext"
12386 case "(($ac_try" in
12387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12388 *) ac_try_echo
=$ac_try;;
12390 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12394 grep -v '^ *+' conftest.er1
>conftest.err
12396 cat conftest.err
>&5
12397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } >/dev
/null
&& {
12399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12400 test ! -s conftest.err
12402 ac_header_preproc
=yes
12404 $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.
$ac_ext >&5
12407 ac_header_preproc
=no
12410 rm -f conftest.err conftest.
$ac_ext
12411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12412 $as_echo "$ac_header_preproc" >&6; }
12414 # So? What about this header?
12415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12421 ac_header_preproc
=yes
12424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12425 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12427 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12429 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12431 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12433 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12435 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12440 $as_echo_n "checking for $ac_header... " >&6; }
12441 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12442 $as_echo_n "(cached) " >&6
12444 eval "$as_ac_Header=\$ac_header_preproc"
12446 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12447 $as_echo "$as_val"'`
12448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12449 $as_echo "$ac_res" >&6; }
12452 as_val
=`eval 'as_val=${'$as_ac_Header'}
12453 $as_echo "$as_val"'`
12454 if test "x$as_val" = x
""yes; then
12455 cat >>confdefs.h
<<_ACEOF
12456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12463 if test "$ac_cv_header_pthread_h"; then
12464 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12465 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12466 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12467 $as_echo_n "(cached) " >&6
12469 ac_check_lib_save_LIBS
=$LIBS
12470 LIBS
="-lpthread $LIBS"
12471 cat >conftest.
$ac_ext <<_ACEOF
12474 cat confdefs.h
>>conftest.
$ac_ext
12475 cat >>conftest.
$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12484 char pthread_self ();
12488 return pthread_self ();
12493 rm -f conftest.
$ac_objext conftest
$ac_exeext
12494 if { (ac_try
="$ac_link"
12495 case "(($ac_try" in
12496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12500 $as_echo "$ac_try_echo") >&5
12501 (eval "$ac_link") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } && {
12508 test -z "$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12510 } && test -s conftest$ac_exeext && {
12511 test "$cross_compiling" = yes ||
12512 $as_test_x conftest$ac_exeext
12514 ac_cv_lib_pthread_pthread_self=yes
12516 $as_echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_cv_lib_pthread_pthread_self=no
12522 rm -rf conftest.dSYM
12523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12527 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12528 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12529 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12530 HAVE_GTK_AND_PTHREAD=yes
12534 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12535 case "${canonical}" in
12537 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12540 cat >>confdefs.h <<\_ACEOF
12541 #define HAVE_GTK_AND_PTHREAD 1
12549 if test "${with_dbus}" = "yes"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config; ac_word=$2
12555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 $as_echo_n "(cached) " >&6
12560 case $PKG_CONFIG in
12562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 $as_echo "$PKG_CONFIG" >&6; }
12589 { $as_echo "$as_me:$LINENO: result: no" >&5
12590 $as_echo "no" >&6; }
12595 if test "$PKG_CONFIG" = "no" ; then
12598 PKG_CONFIG_MIN_VERSION=0.9.0
12599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12600 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12601 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12603 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12604 { $as_echo "$as_me:$LINENO: result: yes" >&5
12605 $as_echo "yes" >&6; }
12608 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12609 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12610 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12611 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12612 $as_echo "$DBUS_CFLAGS" >&6; }
12614 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12615 $as_echo_n "checking DBUS_LIBS... " >&6; }
12616 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12617 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12618 $as_echo "$DBUS_LIBS" >&6; }
12620 { $as_echo "$as_me:$LINENO: result: no" >&5
12621 $as_echo "no" >&6; }
12624 ## If we have a custom action on failure, don't print errors, but
12625 ## do set a variable so people can do so.
12626 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12633 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12634 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12638 if test $succeeded = yes; then
12644 if test "$HAVE_DBUS" = yes; then
12645 LIBS="$LIBS $DBUS_LIBS"
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_DBUS 1
12652 for ac_func in dbus_watch_get_unix_fd
12654 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12655 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12656 $as_echo_n "checking for $ac_func... " >&6; }
12657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12658 $as_echo_n "(cached) " >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12668 #define $ac_func innocuous_$ac_func
12670 /* System header to define __stub macros and hopefully few prototypes,
12671 which can conflict with char $ac_func (); below.
12672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673 <limits.h> exists even on freestanding compilers. */
12676 # include <limits.h>
12678 # include <assert.h>
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12690 /* The GNU C library defines this for functions which it implements
12691 to always fail with ENOSYS. Some functions are actually named
12692 something starting with __ and the normal name is an alias. */
12693 #if defined __stub_$ac_func || defined __stub___$ac_func
12700 return $ac_func ();
12705 rm -f conftest.$ac_objext conftest$ac_exeext
12706 if { (ac_try="$ac_link"
12707 case "(($ac_try" in
12708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12709 *) ac_try_echo
=$ac_try;;
12711 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12712 $as_echo "$ac_try_echo") >&5
12713 (eval "$ac_link") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1
>conftest.err
12717 cat conftest.err
>&5
12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest
$ac_exeext && {
12723 test "$cross_compiling" = yes ||
12724 $as_test_x conftest
$ac_exeext
12726 eval "$as_ac_var=yes"
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.
$ac_ext >&5
12731 eval "$as_ac_var=no"
12734 rm -rf conftest.dSYM
12735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12736 conftest
$ac_exeext conftest.
$ac_ext
12738 ac_res
=`eval 'as_val=${'$as_ac_var'}
12739 $as_echo "$as_val"'`
12740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12741 $as_echo "$ac_res" >&6; }
12742 as_val
=`eval 'as_val=${'$as_ac_var'}
12743 $as_echo "$as_val"'`
12744 if test "x$as_val" = x
""yes; then
12745 cat >>confdefs.h
<<_ACEOF
12746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12756 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12760 # Extract the first word of "pkg-config", so it can be a program name with args.
12761 set dummy pkg-config
; ac_word
=$2
12762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12767 case $PKG_CONFIG in
12769 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12773 for as_dir
in $PATH
12776 test -z "$as_dir" && as_dir
=.
12777 for ac_exec_ext
in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12791 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12792 if test -n "$PKG_CONFIG"; then
12793 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12794 $as_echo "$PKG_CONFIG" >&6; }
12796 { $as_echo "$as_me:$LINENO: result: no" >&5
12797 $as_echo "no" >&6; }
12802 if test "$PKG_CONFIG" = "no" ; then
12805 PKG_CONFIG_MIN_VERSION
=0.9.0
12806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12807 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12808 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12810 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12811 { $as_echo "$as_me:$LINENO: result: yes" >&5
12812 $as_echo "yes" >&6; }
12815 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12816 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12817 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12818 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12819 $as_echo "$GCONF_CFLAGS" >&6; }
12821 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12822 $as_echo_n "checking GCONF_LIBS... " >&6; }
12823 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12824 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12825 $as_echo "$GCONF_LIBS" >&6; }
12827 { $as_echo "$as_me:$LINENO: result: no" >&5
12828 $as_echo "no" >&6; }
12831 ## If we have a custom action on failure, don't print errors, but
12832 ## do set a variable so people can do so.
12833 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12845 if test $succeeded = yes; then
12851 if test "$HAVE_GCONF" = yes; then
12853 cat >>confdefs.h
<<\_ACEOF
12854 #define HAVE_GCONF 1
12861 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12862 if test "$with_xaw3d" != no
; then
12863 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12864 $as_echo_n "checking for xaw3d... " >&6; }
12865 if test "${emacs_cv_xaw3d+set}" = set; then
12866 $as_echo_n "(cached) " >&6
12868 cat >conftest.
$ac_ext <<_ACEOF
12871 cat confdefs.h
>>conftest.
$ac_ext
12872 cat >>conftest.
$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12875 #include <X11/Intrinsic.h>
12876 #include <X11/Xaw3d/Simple.h>
12885 rm -f conftest.
$ac_objext conftest
$ac_exeext
12886 if { (ac_try
="$ac_link"
12887 case "(($ac_try" in
12888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892 $as_echo "$ac_try_echo") >&5
12893 (eval "$ac_link") 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } && {
12900 test -z "$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12902 } && test -s conftest$ac_exeext && {
12903 test "$cross_compiling" = yes ||
12904 $as_test_x conftest$ac_exeext
12908 $as_echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12914 rm -rf conftest.dSYM
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916 conftest$ac_exeext conftest.$ac_ext
12922 if test $emacs_cv_xaw3d = yes; then
12923 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12924 $as_echo "yes; using Lucid toolkit" >&6; }
12925 USE_X_TOOLKIT=LUCID
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_XAW3D 1
12933 { $as_echo "$as_me:$LINENO: result: no" >&5
12934 $as_echo "no" >&6; }
12935 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12936 $as_echo_n "checking for libXaw... " >&6; }
12937 if test "${emacs_cv_xaw+set}" = set; then
12938 $as_echo_n "(cached) " >&6
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 #include <X11/Intrinsic.h>
12948 #include <X11/Xaw/Simple.h>
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12961 *) ac_try_echo
=$ac_try;;
12963 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12964 $as_echo "$ac_try_echo") >&5
12965 (eval "$ac_link") 2>conftest.er1
12967 grep -v '^ *+' conftest.er1
>conftest.err
12969 cat conftest.err
>&5
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest
$ac_exeext && {
12975 test "$cross_compiling" = yes ||
12976 $as_test_x conftest
$ac_exeext
12980 $as_echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.
$ac_ext >&5
12986 rm -rf conftest.dSYM
12987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12988 conftest
$ac_exeext conftest.
$ac_ext
12991 if test $emacs_cv_xaw = yes; then
12992 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12993 $as_echo "yes; using Lucid toolkit" >&6; }
12994 USE_X_TOOLKIT
=LUCID
12995 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12996 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12997 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12998 { (exit 1); exit 1; }; }
13000 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13001 $as_echo "no; do not use toolkit by default" >&6; }
13007 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
13009 if test "${USE_X_TOOLKIT}" != "none"; then
13010 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13011 $as_echo_n "checking X11 toolkit version... " >&6; }
13012 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13013 $as_echo_n "(cached) " >&6
13015 cat >conftest.
$ac_ext <<_ACEOF
13018 cat confdefs.h
>>conftest.
$ac_ext
13019 cat >>conftest.
$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13021 #include <X11/Intrinsic.h>
13025 #if XtSpecificationRelease < 6
13033 rm -f conftest.
$ac_objext conftest
$ac_exeext
13034 if { (ac_try
="$ac_link"
13035 case "(($ac_try" in
13036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13054 emacs_cv_x11_toolkit_version_6=yes
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 emacs_cv_x11_toolkit_version_6=no
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13067 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13068 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13069 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13070 $as_echo "6 or newer" >&6; }
13072 cat >>confdefs.h <<\_ACEOF
13073 #define HAVE_X11XTR6 1
13077 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13078 $as_echo "before 6" >&6; }
13082 if test x$HAVE_X11XTR6 = xyes; then
13083 LIBS="-lXt -lSM -lICE $LIBS"
13088 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13089 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13090 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13091 $as_echo_n "(cached) " >&6
13093 ac_check_lib_save_LIBS=$LIBS
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13108 char XmuConvertStandardSelection ();
13112 return XmuConvertStandardSelection ();
13117 rm -f conftest.$ac_objext conftest$ac_exeext
13118 if { (ac_try="$ac_link"
13119 case "(($ac_try" in
13120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13121 *) ac_try_echo
=$ac_try;;
13123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125 (eval "$ac_link") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1
>conftest.err
13129 cat conftest.err
>&5
13130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest
$ac_exeext && {
13135 test "$cross_compiling" = yes ||
13136 $as_test_x conftest
$ac_exeext
13138 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
13140 $as_echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.
$ac_ext >&5
13143 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
13146 rm -rf conftest.dSYM
13147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13148 conftest
$ac_exeext conftest.
$ac_ext
13149 LIBS
=$ac_check_lib_save_LIBS
13151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13152 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13153 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x
""yes; then
13154 cat >>confdefs.h
<<_ACEOF
13155 #define HAVE_LIBXMU 1
13162 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13165 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13166 if test "${HAVE_X11}" = "yes"; then
13167 if test "${USE_X_TOOLKIT}" != "none"; then
13169 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13170 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13171 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13172 $as_echo_n "(cached) " >&6
13174 ac_check_lib_save_LIBS
=$LIBS
13175 LIBS
="-lXext $LIBS"
13176 cat >conftest.
$ac_ext <<_ACEOF
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13189 char XShapeQueryExtension ();
13193 return XShapeQueryExtension ();
13198 rm -f conftest.
$ac_objext conftest
$ac_exeext
13199 if { (ac_try
="$ac_link"
13200 case "(($ac_try" in
13201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13205 $as_echo "$ac_try_echo") >&5
13206 (eval "$ac_link") 2>conftest.er1
13208 grep -v '^ *+' conftest.er1 >conftest.err
13210 cat conftest.err >&5
13211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && {
13213 test -z "$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 } && test -s conftest$ac_exeext && {
13216 test "$cross_compiling" = yes ||
13217 $as_test_x conftest$ac_exeext
13219 ac_cv_lib_Xext_XShapeQueryExtension=yes
13221 $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13224 ac_cv_lib_Xext_XShapeQueryExtension=no
13227 rm -rf conftest.dSYM
13228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13233 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13234 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_LIBXEXT 1
13239 LIBS="-lXext $LIBS"
13246 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13247 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13248 $as_echo_n "checking for Motif version 2.1... " >&6; }
13249 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13262 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13265 Motif version prior to 2.1.
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13275 *) ac_try_echo
=$ac_try;;
13277 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_compile") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1
>conftest.err
13283 cat conftest.err
>&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest.
$ac_objext; then
13289 emacs_cv_motif_version_2_1
=yes
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.
$ac_ext >&5
13294 emacs_cv_motif_version_2_1
=no
13297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13299 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13300 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13301 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13302 if test $emacs_cv_motif_version_2_1 = yes; then
13305 cat >>confdefs.h
<<\_ACEOF
13306 #define HAVE_MOTIF_2_1 1
13309 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13310 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13311 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13312 $as_echo_n "(cached) " >&6
13314 ac_check_lib_save_LIBS
=$LIBS
13316 cat >conftest.
$ac_ext <<_ACEOF
13319 cat confdefs.h
>>conftest.
$ac_ext
13320 cat >>conftest.
$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13329 char XpCreateContext ();
13333 return XpCreateContext ();
13338 rm -f conftest.
$ac_objext conftest
$ac_exeext
13339 if { (ac_try
="$ac_link"
13340 case "(($ac_try" in
13341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_link") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1 >conftest.err
13350 cat conftest.err >&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } && {
13353 test -z "$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13355 } && test -s conftest$ac_exeext && {
13356 test "$cross_compiling" = yes ||
13357 $as_test_x conftest$ac_exeext
13359 ac_cv_lib_Xp_XpCreateContext=yes
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_cv_lib_Xp_XpCreateContext=no
13367 rm -rf conftest.dSYM
13368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13373 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13374 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13378 if test ${HAVE_LIBXP} = yes; then
13380 cat >>confdefs.h <<\_ACEOF
13381 #define HAVE_LIBXP 1
13386 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13387 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13388 if test "${emacs_cv_lesstif+set}" = set; then
13389 $as_echo_n "(cached) " >&6
13391 # We put this in CFLAGS temporarily to precede other -I options
13392 # that might be in CFLAGS temporarily.
13393 # We put this in CPPFLAGS where it precedes the other -I options.
13394 OLD_CPPFLAGS=$CPPFLAGS
13396 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13397 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13398 cat >conftest.$ac_ext <<_ACEOF
13401 cat confdefs.h >>conftest.$ac_ext
13402 cat >>conftest.$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13413 rm -f conftest.$ac_objext
13414 if { (ac_try="$ac_compile"
13415 case "(($ac_try" in
13416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13417 *) ac_try_echo
=$ac_try;;
13419 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13420 $as_echo "$ac_try_echo") >&5
13421 (eval "$ac_compile") 2>conftest.er1
13423 grep -v '^ *+' conftest.er1
>conftest.err
13425 cat conftest.err
>&5
13426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } && {
13428 test -z "$ac_c_werror_flag" ||
13429 test ! -s conftest.err
13430 } && test -s conftest.
$ac_objext; then
13431 emacs_cv_lesstif
=yes
13433 $as_echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.
$ac_ext >&5
13436 emacs_cv_lesstif
=no
13439 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13441 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13442 $as_echo "$emacs_cv_lesstif" >&6; }
13443 if test $emacs_cv_lesstif = yes; then
13444 # Make sure this -I option remains in CPPFLAGS after it is set
13445 # back to REAL_CPPFLAGS.
13446 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13447 # have those other -I options anyway. Ultimately, having this
13448 # directory ultimately in CPPFLAGS will be enough.
13449 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13450 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13453 CPPFLAGS
=$OLD_CPPFLAGS
13460 USE_TOOLKIT_SCROLL_BARS
=no
13461 if test "${with_toolkit_scroll_bars}" != "no"; then
13462 if test "${USE_X_TOOLKIT}" != "none"; then
13463 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13464 cat >>confdefs.h
<<\_ACEOF
13465 #define USE_TOOLKIT_SCROLL_BARS 1
13469 USE_TOOLKIT_SCROLL_BARS
=yes
13470 elif test "${HAVE_XAW3D}" = "yes"; then
13471 cat >>confdefs.h
<<\_ACEOF
13472 #define USE_TOOLKIT_SCROLL_BARS 1
13475 USE_TOOLKIT_SCROLL_BARS
=yes
13477 elif test "${HAVE_GTK}" = "yes"; then
13478 cat >>confdefs.h
<<\_ACEOF
13479 #define USE_TOOLKIT_SCROLL_BARS 1
13482 USE_TOOLKIT_SCROLL_BARS
=yes
13483 elif test "${HAVE_NS}" = "yes"; then
13484 cat >>confdefs.h
<<\_ACEOF
13485 #define USE_TOOLKIT_SCROLL_BARS 1
13488 USE_TOOLKIT_SCROLL_BARS
=yes
13492 cat >conftest.
$ac_ext <<_ACEOF
13495 cat confdefs.h
>>conftest.
$ac_ext
13496 cat >>conftest.
$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13499 #include <X11/Xlib.h>
13500 #include <X11/Xresource.h>
13509 rm -f conftest.
$ac_objext
13510 if { (ac_try
="$ac_compile"
13511 case "(($ac_try" in
13512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13516 $as_echo "$ac_try_echo") >&5
13517 (eval "$ac_compile") 2>conftest.er1
13519 grep -v '^ *+' conftest.er1 >conftest.err
13521 cat conftest.err >&5
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && {
13524 test -z "$ac_c_werror_flag" ||
13525 test ! -s conftest.err
13526 } && test -s conftest.$ac_objext; then
13529 cat >>confdefs.h <<\_ACEOF
13534 $as_echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 if test "${with_xim}" != "no"; then
13545 cat >>confdefs.h <<\_ACEOF
13552 if test "${HAVE_XIM}" != "no"; then
13553 late_CFLAGS=$CFLAGS
13554 if test "$GCC" = yes; then
13555 CFLAGS="$CFLAGS --pedantic-errors"
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 #include <X11/Xlib.h>
13565 #include <X11/Xresource.h>
13574 XPointer *client_data;
13576 /* If we're not using GCC, it's probably not XFree86, and this is
13577 probably right, but we can't use something like --pedantic-errors. */
13578 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13579 char*, XIMProc, XPointer*);
13581 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13587 rm -f conftest.$ac_objext
13588 if { (ac_try="$ac_compile"
13589 case "(($ac_try" in
13590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13591 *) ac_try_echo
=$ac_try;;
13593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13594 $as_echo "$ac_try_echo") >&5
13595 (eval "$ac_compile") 2>conftest.er1
13597 grep -v '^ *+' conftest.er1
>conftest.err
13599 cat conftest.err
>&5
13600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } && {
13602 test -z "$ac_c_werror_flag" ||
13603 test ! -s conftest.err
13604 } && test -s conftest.
$ac_objext; then
13605 emacs_cv_arg6_star
=yes
13607 $as_echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.
$ac_ext >&5
13613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13615 if test "$emacs_cv_arg6_star" = yes; then
13616 cat >>confdefs.h
<<\_ACEOF
13617 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13621 cat >>confdefs.h
<<\_ACEOF
13622 #define XRegisterIMInstantiateCallback_arg6 XPointer
13626 CFLAGS
=$late_CFLAGS
13629 ### Start of font-backend (under any platform) section.
13630 # (nothing here yet -- this is a placeholder)
13631 ### End of font-backend (under any platform) section.
13633 ### Start of font-backend (under X11) section.
13634 if test "${HAVE_X11}" = "yes"; then
13638 # Extract the first word of "pkg-config", so it can be a program name with args.
13639 set dummy pkg-config
; ac_word
=$2
13640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13643 $as_echo_n "(cached) " >&6
13645 case $PKG_CONFIG in
13647 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13651 for as_dir
in $PATH
13654 test -z "$as_dir" && as_dir
=.
13655 for ac_exec_ext
in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13665 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13669 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13670 if test -n "$PKG_CONFIG"; then
13671 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13672 $as_echo "$PKG_CONFIG" >&6; }
13674 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13680 if test "$PKG_CONFIG" = "no" ; then
13683 PKG_CONFIG_MIN_VERSION
=0.9.0
13684 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13685 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13686 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13688 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690 $as_echo "yes" >&6; }
13693 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13694 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13695 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13696 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13697 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13699 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13700 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13701 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13702 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13703 $as_echo "$FONTCONFIG_LIBS" >&6; }
13705 { $as_echo "$as_me:$LINENO: result: no" >&5
13706 $as_echo "no" >&6; }
13707 FONTCONFIG_CFLAGS
=""
13709 ## If we have a custom action on failure, don't print errors, but
13710 ## do set a variable so people can do so.
13711 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13718 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13719 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13723 if test $succeeded = yes; then
13730 ## Use -lXft if available, unless `--with-xft=no'.
13732 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13735 if test "x${with_xft}" != "xno"; then
13740 # Extract the first word of "pkg-config", so it can be a program name with args.
13741 set dummy pkg-config
; ac_word
=$2
13742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13743 $as_echo_n "checking for $ac_word... " >&6; }
13744 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13745 $as_echo_n "(cached) " >&6
13747 case $PKG_CONFIG in
13749 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13753 for as_dir
in $PATH
13756 test -z "$as_dir" && as_dir
=.
13757 for ac_exec_ext
in '' $ac_executable_extensions; do
13758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13759 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13771 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13772 if test -n "$PKG_CONFIG"; then
13773 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13774 $as_echo "$PKG_CONFIG" >&6; }
13776 { $as_echo "$as_me:$LINENO: result: no" >&5
13777 $as_echo "no" >&6; }
13782 if test "$PKG_CONFIG" = "no" ; then
13785 PKG_CONFIG_MIN_VERSION
=0.9.0
13786 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13787 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13788 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13790 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13791 { $as_echo "$as_me:$LINENO: result: yes" >&5
13792 $as_echo "yes" >&6; }
13795 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13796 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13797 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13798 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13799 $as_echo "$XFT_CFLAGS" >&6; }
13801 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13802 $as_echo_n "checking XFT_LIBS... " >&6; }
13803 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13804 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13805 $as_echo "$XFT_LIBS" >&6; }
13807 { $as_echo "$as_me:$LINENO: result: no" >&5
13808 $as_echo "no" >&6; }
13811 ## If we have a custom action on failure, don't print errors, but
13812 ## do set a variable so people can do so.
13813 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13825 if test $succeeded = yes; then
13831 ## Because xftfont.c uses XRenderQueryExtension, we also
13832 ## need to link to -lXrender.
13834 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13835 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13836 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13837 $as_echo_n "(cached) " >&6
13839 ac_check_lib_save_LIBS
=$LIBS
13840 LIBS
="-lXrender $LIBS"
13841 cat >conftest.
$ac_ext <<_ACEOF
13844 cat confdefs.h
>>conftest.
$ac_ext
13845 cat >>conftest.
$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13854 char XRenderQueryExtension ();
13858 return XRenderQueryExtension ();
13863 rm -f conftest.
$ac_objext conftest
$ac_exeext
13864 if { (ac_try
="$ac_link"
13865 case "(($ac_try" in
13866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13870 $as_echo "$ac_try_echo") >&5
13871 (eval "$ac_link") 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest$ac_exeext && {
13881 test "$cross_compiling" = yes ||
13882 $as_test_x conftest$ac_exeext
13884 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_cv_lib_Xrender_XRenderQueryExtension=no
13892 rm -rf conftest.dSYM
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894 conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13898 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13899 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
13903 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13904 OLD_CPPFLAGS="$CPPFLAGS"
13905 OLD_CFLAGS="$CFLAGS"
13907 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13908 CFLAGS="$CFLAGS $XFT_CFLAGS"
13909 XFT_LIBS="-lXrender $XFT_LIBS"
13910 LIBS="$XFT_LIBS $LIBS"
13911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13912 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13913 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13914 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13915 $as_echo_n "(cached) " >&6
13917 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13918 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13920 # Is the header compilable?
13921 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13922 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <X11/Xft/Xft.h>
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13936 *) ac_try_echo
=$ac_try;;
13938 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13939 $as_echo "$ac_try_echo") >&5
13940 (eval "$ac_compile") 2>conftest.er1
13942 grep -v '^ *+' conftest.er1
>conftest.err
13944 cat conftest.err
>&5
13945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && {
13947 test -z "$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 } && test -s conftest.
$ac_objext; then
13950 ac_header_compiler
=yes
13952 $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.
$ac_ext >&5
13955 ac_header_compiler
=no
13958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13959 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13960 $as_echo "$ac_header_compiler" >&6; }
13962 # Is the header present?
13963 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13964 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13965 cat >conftest.
$ac_ext <<_ACEOF
13968 cat confdefs.h
>>conftest.
$ac_ext
13969 cat >>conftest.
$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 #include <X11/Xft/Xft.h>
13973 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13974 case "(($ac_try" in
13975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13979 $as_echo "$ac_try_echo") >&5
13980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } >/dev/null && {
13987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13990 ac_header_preproc=yes
13992 $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13995 ac_header_preproc=no
13998 rm -f conftest.err conftest.$ac_ext
13999 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14000 $as_echo "$ac_header_preproc" >&6; }
14002 # So? What about this header?
14003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14005 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14006 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14007 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14008 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14009 ac_header_preproc=yes
14012 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14013 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14014 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14015 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14016 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14017 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14018 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14019 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14020 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14021 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14022 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14023 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14027 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14028 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14029 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14030 $as_echo_n "(cached) " >&6
14032 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14035 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14038 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14039 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14040 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14041 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14042 $as_echo_n "(cached) " >&6
14044 ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-lXft $XFT_LIBS $LIBS"
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14053 /* Override any GCC internal prototype to avoid an error.
14054 Use char because int might match the return type of a GCC
14055 builtin and then its argument prototype would still apply. */
14059 char XftFontOpen ();
14063 return XftFontOpen ();
14068 rm -f conftest.$ac_objext conftest$ac_exeext
14069 if { (ac_try="$ac_link"
14070 case "(($ac_try" in
14071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14072 *) ac_try_echo
=$ac_try;;
14074 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076 (eval "$ac_link") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1
>conftest.err
14080 cat conftest.err
>&5
14081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest
$ac_exeext && {
14086 test "$cross_compiling" = yes ||
14087 $as_test_x conftest
$ac_exeext
14089 ac_cv_lib_Xft_XftFontOpen
=yes
14091 $as_echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.
$ac_ext >&5
14094 ac_cv_lib_Xft_XftFontOpen
=no
14097 rm -rf conftest.dSYM
14098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14099 conftest
$ac_exeext conftest.
$ac_ext
14100 LIBS
=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14103 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14104 if test "x$ac_cv_lib_Xft_XftFontOpen" = x
""yes; then
14112 if test "${HAVE_XFT}" = "yes"; then
14114 cat >>confdefs.h
<<\_ACEOF
14119 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14121 CPPFLAGS
="$OLD_CPPFLAGS"
14122 CFLAGS
="$OLD_CFLAGS"
14124 fi # "${HAVE_XFT}" = "yes"
14125 fi # "$HAVE_XFT" != no
14126 fi # "x${with_xft}" != "xno"
14128 if test "$HAVE_XFT" != "yes"; then
14134 ## We used to allow building with FreeType and without Xft.
14135 ## However, the ftx font backend driver is not in good shape.
14136 if test "${HAVE_XFT}" = "yes"; then
14143 if test "${HAVE_FREETYPE}" = "yes"; then
14145 cat >>confdefs.h
<<\_ACEOF
14146 #define HAVE_FREETYPE 1
14149 if test "${with_libotf}" != "no"; then
14153 # Extract the first word of "pkg-config", so it can be a program name with args.
14154 set dummy pkg-config
; ac_word
=$2
14155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 $as_echo_n "checking for $ac_word... " >&6; }
14157 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14158 $as_echo_n "(cached) " >&6
14160 case $PKG_CONFIG in
14162 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14166 for as_dir
in $PATH
14169 test -z "$as_dir" && as_dir
=.
14170 for ac_exec_ext
in '' $ac_executable_extensions; do
14171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14172 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14184 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14185 if test -n "$PKG_CONFIG"; then
14186 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14187 $as_echo "$PKG_CONFIG" >&6; }
14189 { $as_echo "$as_me:$LINENO: result: no" >&5
14190 $as_echo "no" >&6; }
14195 if test "$PKG_CONFIG" = "no" ; then
14198 PKG_CONFIG_MIN_VERSION
=0.9.0
14199 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14200 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14201 $as_echo_n "checking for libotf... " >&6; }
14203 if $PKG_CONFIG --exists "libotf" 2>&5; then
14204 { $as_echo "$as_me:$LINENO: result: yes" >&5
14205 $as_echo "yes" >&6; }
14208 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14209 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14210 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14211 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14212 $as_echo "$LIBOTF_CFLAGS" >&6; }
14214 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14215 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14216 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14217 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14218 $as_echo "$LIBOTF_LIBS" >&6; }
14220 { $as_echo "$as_me:$LINENO: result: no" >&5
14221 $as_echo "no" >&6; }
14224 ## If we have a custom action on failure, don't print errors, but
14225 ## do set a variable so people can do so.
14226 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14233 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14234 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14238 if test $succeeded = yes; then
14244 if test "$HAVE_LIBOTF" = "yes"; then
14246 cat >>confdefs.h
<<\_ACEOF
14247 #define HAVE_LIBOTF 1
14250 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14251 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14252 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14253 $as_echo_n "(cached) " >&6
14255 ac_check_lib_save_LIBS
=$LIBS
14257 cat >conftest.
$ac_ext <<_ACEOF
14260 cat confdefs.h
>>conftest.
$ac_ext
14261 cat >>conftest.
$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14270 char OTF_get_variation_glyphs ();
14274 return OTF_get_variation_glyphs ();
14279 rm -f conftest.
$ac_objext conftest
$ac_exeext
14280 if { (ac_try
="$ac_link"
14281 case "(($ac_try" in
14282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14286 $as_echo "$ac_try_echo") >&5
14287 (eval "$ac_link") 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext && {
14297 test "$cross_compiling" = yes ||
14298 $as_test_x conftest$ac_exeext
14300 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14308 rm -rf conftest.dSYM
14309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14310 conftest$ac_exeext conftest.$ac_ext
14311 LIBS=$ac_check_lib_save_LIBS
14313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14314 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14315 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14316 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14318 HAVE_OTF_GET_VARIATION_GLYPHS=no
14321 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14323 cat >>confdefs.h <<\_ACEOF
14324 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14333 if test "${HAVE_LIBOTF}" = yes; then
14334 if test "${with_m17n_flt}" != "no"; then
14338 # Extract the first word of "pkg-config", so it can be a program name with args.
14339 set dummy pkg-config; ac_word=$2
14340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14343 $as_echo_n "(cached) " >&6
14345 case $PKG_CONFIG in
14347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14370 if test -n "$PKG_CONFIG"; then
14371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14372 $as_echo "$PKG_CONFIG" >&6; }
14374 { $as_echo "$as_me:$LINENO: result: no" >&5
14375 $as_echo "no" >&6; }
14380 if test "$PKG_CONFIG" = "no" ; then
14383 PKG_CONFIG_MIN_VERSION=0.9.0
14384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14385 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14386 $as_echo_n "checking for m17n-flt... " >&6; }
14388 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14389 { $as_echo "$as_me:$LINENO: result: yes" >&5
14390 $as_echo "yes" >&6; }
14393 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14394 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14395 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14396 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14397 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14399 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14400 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14401 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14402 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14403 $as_echo "$M17N_FLT_LIBS" >&6; }
14405 { $as_echo "$as_me:$LINENO: result: no" >&5
14406 $as_echo "no" >&6; }
14409 ## If we have a custom action on failure, don't print errors, but
14410 ## do set a variable so people can do so.
14411 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14423 if test $succeeded = yes; then
14429 if test "$HAVE_M17N_FLT" = "yes"; then
14431 cat >>confdefs.h <<\_ACEOF
14432 #define HAVE_M17N_FLT 1
14444 ### End of font-backend (under X11) section.
14455 ### Use -lXpm if available, unless `--with-xpm=no
'.
14458 if test "${HAVE_X11}" = "yes"; then
14459 if test "${with_xpm}" != "no"; then
14460 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14461 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14462 $as_echo_n "checking for X11/xpm.h... " >&6; }
14463 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14464 $as_echo_n "(cached) " >&6
14466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14467 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14469 # Is the header compilable?
14470 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14471 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <X11/xpm.h>
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14488 $as_echo "$ac_try_echo") >&5
14489 (eval "$ac_compile") 2>conftest.er1
14491 grep -v '^
*+' conftest.er1 >conftest.err
14493 cat conftest.err >&5
14494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } && {
14496 test -z "$ac_c_werror_flag" ||
14497 test ! -s conftest.err
14498 } && test -s conftest.$ac_objext; then
14499 ac_header_compiler=yes
14501 $as_echo "$as_me: failed program was:" >&5
14502 sed 's
/^
/|
/' conftest.$ac_ext >&5
14504 ac_header_compiler=no
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509 $as_echo "$ac_header_compiler" >&6; }
14511 # Is the header present?
14512 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14513 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <X11/xpm.h>
14522 if { (ac_try="$ac_cpp conftest.$ac_ext"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14528 $as_echo "$ac_try_echo") >&5
14529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14531 grep -v '^
*+' conftest.er1 >conftest.err
14533 cat conftest.err >&5
14534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } >/dev/null && {
14536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14537 test ! -s conftest.err
14539 ac_header_preproc=yes
14541 $as_echo "$as_me: failed program was:" >&5
14542 sed 's
/^
/|
/' conftest.$ac_ext >&5
14544 ac_header_preproc=no
14547 rm -f conftest.err conftest.$ac_ext
14548 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14549 $as_echo "$ac_header_preproc" >&6; }
14551 # So? What about this header?
14552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14554 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14555 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14556 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14557 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14558 ac_header_preproc=yes
14561 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14562 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14564 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14566 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14568 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14569 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14570 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14572 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14576 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14577 $as_echo_n "checking for X11/xpm.h... " >&6; }
14578 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14579 $as_echo_n "(cached) " >&6
14581 ac_cv_header_X11_xpm_h=$ac_header_preproc
14583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14584 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14587 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14588 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14589 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14590 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lXpm -lX11 $LIBS"
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14602 /* Override any GCC internal prototype to avoid an error.
14603 Use char because int might match the return type of a GCC
14604 builtin and then its argument prototype would still apply. */
14608 char XpmReadFileToPixmap ();
14612 return XpmReadFileToPixmap ();
14617 rm -f conftest.$ac_objext conftest$ac_exeext
14618 if { (ac_try="$ac_link"
14619 case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14624 $as_echo "$ac_try_echo") >&5
14625 (eval "$ac_link") 2>conftest.er1
14627 grep -v '^
*+' conftest.er1 >conftest.err
14629 cat conftest.err >&5
14630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && {
14632 test -z "$ac_c_werror_flag" ||
14633 test ! -s conftest.err
14634 } && test -s conftest$ac_exeext && {
14635 test "$cross_compiling" = yes ||
14636 $as_test_x conftest$ac_exeext
14638 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14640 $as_echo "$as_me: failed program was:" >&5
14641 sed 's
/^
/|
/' conftest.$ac_ext >&5
14643 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14646 rm -rf conftest.dSYM
14647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14648 conftest$ac_exeext conftest.$ac_ext
14649 LIBS=$ac_check_lib_save_LIBS
14651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14652 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14653 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
14660 if test "${HAVE_XPM}" = "yes"; then
14661 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14662 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include "X11/xpm.h"
14670 #ifndef XpmReturnAllocPixels
14671 no_return_alloc_pixels
14675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14676 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14684 if test "${HAVE_XPM}" = "yes"; then
14685 { $as_echo "$as_me:$LINENO: result: yes" >&5
14686 $as_echo "yes" >&6; }
14688 { $as_echo "$as_me:$LINENO: result: no" >&5
14689 $as_echo "no" >&6; }
14694 if test "${HAVE_XPM}" = "yes"; then
14696 cat >>confdefs.h <<\_ACEOF
14705 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14708 if test "${HAVE_X11}" = "yes"; then
14709 if test "${with_jpeg}" != "no"; then
14710 if test "${ac_cv_header_jerror_h+set}" = set; then
14711 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14712 $as_echo_n "checking for jerror.h... " >&6; }
14713 if test "${ac_cv_header_jerror_h+set}" = set; then
14714 $as_echo_n "(cached) " >&6
14716 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14717 $as_echo "$ac_cv_header_jerror_h" >&6; }
14719 # Is the header compilable?
14720 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14721 $as_echo_n "checking jerror.h usability... " >&6; }
14722 cat >conftest.
$ac_ext <<_ACEOF
14725 cat confdefs.h
>>conftest.
$ac_ext
14726 cat >>conftest.
$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 $ac_includes_default
14729 #include <jerror.h>
14731 rm -f conftest.
$ac_objext
14732 if { (ac_try
="$ac_compile"
14733 case "(($ac_try" in
14734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14738 $as_echo "$ac_try_echo") >&5
14739 (eval "$ac_compile") 2>conftest.er1
14741 grep -v '^ *+' conftest.er1 >conftest.err
14743 cat conftest.err >&5
14744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest.$ac_objext; then
14749 ac_header_compiler=yes
14751 $as_echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_header_compiler=no
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 $as_echo "$ac_header_compiler" >&6; }
14761 # Is the header present?
14762 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14763 $as_echo_n "checking jerror.h presence... " >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <jerror.h>
14772 if { (ac_try="$ac_cpp conftest.$ac_ext"
14773 case "(($ac_try" in
14774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14775 *) ac_try_echo
=$ac_try;;
14777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14778 $as_echo "$ac_try_echo") >&5
14779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1
>conftest.err
14783 cat conftest.err
>&5
14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } >/dev
/null
&& {
14786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14789 ac_header_preproc
=yes
14791 $as_echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.
$ac_ext >&5
14794 ac_header_preproc
=no
14797 rm -f conftest.err conftest.
$ac_ext
14798 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 $as_echo "$ac_header_preproc" >&6; }
14801 # So? What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14805 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14807 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14808 ac_header_preproc
=yes
14811 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14812 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14813 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14814 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14815 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14816 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14817 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14818 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14819 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14820 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14821 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14822 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14826 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14827 $as_echo_n "checking for jerror.h... " >&6; }
14828 if test "${ac_cv_header_jerror_h+set}" = set; then
14829 $as_echo_n "(cached) " >&6
14831 ac_cv_header_jerror_h
=$ac_header_preproc
14833 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14834 $as_echo "$ac_cv_header_jerror_h" >&6; }
14837 if test "x$ac_cv_header_jerror_h" = x
""yes; then
14838 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14839 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14840 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14841 $as_echo_n "(cached) " >&6
14843 ac_check_lib_save_LIBS
=$LIBS
14844 LIBS
="-ljpeg $LIBS"
14845 cat >conftest.
$ac_ext <<_ACEOF
14848 cat confdefs.h
>>conftest.
$ac_ext
14849 cat >>conftest.
$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14852 /* Override any GCC internal prototype to avoid an error.
14853 Use char because int might match the return type of a GCC
14854 builtin and then its argument prototype would still apply. */
14858 char jpeg_destroy_compress ();
14862 return jpeg_destroy_compress ();
14867 rm -f conftest.
$ac_objext conftest
$ac_exeext
14868 if { (ac_try
="$ac_link"
14869 case "(($ac_try" in
14870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14874 $as_echo "$ac_try_echo") >&5
14875 (eval "$ac_link") 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest$ac_exeext && {
14885 test "$cross_compiling" = yes ||
14886 $as_test_x conftest$ac_exeext
14888 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14890 $as_echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14896 rm -rf conftest.dSYM
14897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14898 conftest$ac_exeext conftest.$ac_ext
14899 LIBS=$ac_check_lib_save_LIBS
14901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14902 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14903 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14913 if test "${HAVE_JPEG}" = "yes"; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_JPEG 1
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <jpeglib.h>
14925 version=JPEG_LIB_VERSION
14928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14929 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_JPEG 1
14935 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14936 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14942 if test "${HAVE_JPEG}" = "yes"; then
14948 ### Use -lpng if available, unless `--with-png=no
'.
14951 if test "${HAVE_X11}" = "yes"; then
14952 if test "${with_png}" != "no"; then
14953 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14954 # in /usr/include/libpng.
14957 for ac_header in png.h libpng/png.h
14959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14962 $as_echo_n "checking for $ac_header... " >&6; }
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14964 $as_echo_n "(cached) " >&6
14966 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14967 $as_echo "$as_val"'`
14968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14969 $as_echo "$ac_res" >&6; }
14971 # Is the header compilable?
14972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14973 $as_echo_n "checking $ac_header usability... " >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 $ac_includes_default
14981 #include <$ac_header>
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^
*+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.$ac_objext; then
15001 ac_header_compiler=yes
15003 $as_echo "$as_me: failed program was:" >&5
15004 sed 's
/^
/|
/' conftest.$ac_ext >&5
15006 ac_header_compiler=no
15009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15011 $as_echo "$ac_header_compiler" >&6; }
15013 # Is the header present?
15014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15015 $as_echo_n "checking $ac_header presence... " >&6; }
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 #include <$ac_header>
15024 if { (ac_try="$ac_cpp conftest.$ac_ext"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15033 grep -v '^
*+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null && {
15038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15041 ac_header_preproc=yes
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's
/^
/|
/' conftest.$ac_ext >&5
15046 ac_header_preproc=no
15049 rm -f conftest.err conftest.$ac_ext
15050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 $as_echo "$ac_header_preproc" >&6; }
15053 # So? What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15059 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15060 ac_header_preproc=yes
15063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15072 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15079 $as_echo_n "checking for $ac_header... " >&6; }
15080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15081 $as_echo_n "(cached) " >&6
15083 eval "$as_ac_Header=\$ac_header_preproc"
15085 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15086 $as_echo "$as_val"'`
15087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15088 $as_echo "$ac_res" >&6; }
15091 as_val=`eval 'as_val
=${'$as_ac_Header'}
15092 $as_echo "$as_val"'`
15093 if test "x$as_val" = x""yes; then
15094 cat >>confdefs.h <<_ACEOF
15095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15102 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15103 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15104 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15105 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15108 ac_check_lib_save_LIBS=$LIBS
15109 LIBS="-lpng -lz -lm $LIBS"
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15123 char png_get_channels ();
15127 return png_get_channels ();
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_link") 2>conftest.er1
15142 grep -v '^
*+' conftest.er1 >conftest.err
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest$ac_exeext && {
15150 test "$cross_compiling" = yes ||
15151 $as_test_x conftest$ac_exeext
15153 ac_cv_lib_png_png_get_channels=yes
15155 $as_echo "$as_me: failed program was:" >&5
15156 sed 's
/^
/|
/' conftest.$ac_ext >&5
15158 ac_cv_lib_png_png_get_channels=no
15161 rm -rf conftest.dSYM
15162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163 conftest$ac_exeext conftest.$ac_ext
15164 LIBS=$ac_check_lib_save_LIBS
15166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15167 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15168 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15175 if test "${HAVE_PNG}" = "yes"; then
15177 cat >>confdefs.h <<\_ACEOF
15181 LIBPNG="-lpng -lz -lm"
15186 ### Use -ltiff if available, unless `--with-tiff=no'.
15189 if test "${HAVE_X11}" = "yes"; then
15190 if test "${with_tiff}" != "no"; then
15191 if test "${ac_cv_header_tiffio_h+set}" = set; then
15192 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15193 $as_echo_n "checking for tiffio.h... " >&6; }
15194 if test "${ac_cv_header_tiffio_h+set}" = set; then
15195 $as_echo_n "(cached) " >&6
15197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15198 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15200 # Is the header compilable?
15201 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15202 $as_echo_n "checking tiffio.h usability... " >&6; }
15203 cat >conftest.
$ac_ext <<_ACEOF
15206 cat confdefs.h
>>conftest.
$ac_ext
15207 cat >>conftest.
$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 $ac_includes_default
15210 #include <tiffio.h>
15212 rm -f conftest.
$ac_objext
15213 if { (ac_try
="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15219 $as_echo "$ac_try_echo") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest.$ac_objext; then
15230 ac_header_compiler=yes
15232 $as_echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_header_compiler=no
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15240 $as_echo "$ac_header_compiler" >&6; }
15242 # Is the header present?
15243 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15244 $as_echo_n "checking tiffio.h presence... " >&6; }
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <tiffio.h>
15253 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
15267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15270 ac_header_preproc
=yes
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.
$ac_ext >&5
15275 ac_header_preproc
=no
15278 rm -f conftest.err conftest.
$ac_ext
15279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15280 $as_echo "$ac_header_preproc" >&6; }
15282 # So? What about this header?
15283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15286 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15288 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15289 ac_header_preproc
=yes
15292 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15293 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15294 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15295 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15296 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15297 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15299 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15301 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15303 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15307 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15308 $as_echo_n "checking for tiffio.h... " >&6; }
15309 if test "${ac_cv_header_tiffio_h+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15312 ac_cv_header_tiffio_h
=$ac_header_preproc
15314 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15315 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15318 if test "x$ac_cv_header_tiffio_h" = x
""yes; then
15320 # At least one tiff package requires the jpeg library.
15321 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15322 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15323 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15324 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15327 ac_check_lib_save_LIBS
=$LIBS
15328 LIBS
="-ltiff $tifflibs $LIBS"
15329 cat >conftest.
$ac_ext <<_ACEOF
15332 cat confdefs.h
>>conftest.
$ac_ext
15333 cat >>conftest.
$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15342 char TIFFGetVersion ();
15346 return TIFFGetVersion ();
15351 rm -f conftest.
$ac_objext conftest
$ac_exeext
15352 if { (ac_try
="$ac_link"
15353 case "(($ac_try" in
15354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_link") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext && {
15369 test "$cross_compiling" = yes ||
15370 $as_test_x conftest$ac_exeext
15372 ac_cv_lib_tiff_TIFFGetVersion=yes
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_lib_tiff_TIFFGetVersion=no
15380 rm -rf conftest.dSYM
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15386 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15387 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15396 if test "${HAVE_TIFF}" = "yes"; then
15398 cat >>confdefs.h <<\_ACEOF
15399 #define HAVE_TIFF 1
15407 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15410 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15411 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15412 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15413 $as_echo_n "checking for gif_lib.h... " >&6; }
15414 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15415 $as_echo_n "(cached) " >&6
15417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15418 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15420 # Is the header compilable?
15421 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15422 $as_echo_n "checking gif_lib.h usability... " >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 $ac_includes_default
15430 #include <gif_lib.h>
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440 (eval "$ac_compile") 2>conftest.er1
15442 grep -v '^
*+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest.$ac_objext; then
15450 ac_header_compiler=yes
15452 $as_echo "$as_me: failed program was:" >&5
15453 sed 's
/^
/|
/' conftest.$ac_ext >&5
15455 ac_header_compiler=no
15458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 $as_echo "$ac_header_compiler" >&6; }
15462 # Is the header present?
15463 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15464 $as_echo_n "checking gif_lib.h presence... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <gif_lib.h>
15473 if { (ac_try="$ac_cpp conftest.$ac_ext"
15474 case "(($ac_try" in
15475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15479 $as_echo "$ac_try_echo") >&5
15480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15482 grep -v '^
*+' conftest.er1 >conftest.err
15484 cat conftest.err >&5
15485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } >/dev/null && {
15487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15490 ac_header_preproc=yes
15492 $as_echo "$as_me: failed program was:" >&5
15493 sed 's
/^
/|
/' conftest.$ac_ext >&5
15495 ac_header_preproc=no
15498 rm -f conftest.err conftest.$ac_ext
15499 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15500 $as_echo "$ac_header_preproc" >&6; }
15502 # So? What about this header?
15503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15506 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15507 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15508 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15509 ac_header_preproc=yes
15512 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15513 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15515 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15517 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15518 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15519 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15520 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15521 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15522 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15523 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15527 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15528 $as_echo_n "checking for gif_lib.h... " >&6; }
15529 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15530 $as_echo_n "(cached) " >&6
15532 ac_cv_header_gif_lib_h=$ac_header_preproc
15534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15535 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15538 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15539 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15540 # Earlier versions can crash Emacs.
15541 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15542 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15543 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15544 $as_echo_n "(cached) " >&6
15546 ac_check_lib_save_LIBS=$LIBS
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15561 char EGifPutExtensionLast ();
15565 return EGifPutExtensionLast ();
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (ac_try="$ac_link"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_link") 2>conftest.er1
15580 grep -v '^
*+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest$ac_exeext && {
15588 test "$cross_compiling" = yes ||
15589 $as_test_x conftest$ac_exeext
15591 ac_cv_lib_gif_EGifPutExtensionLast=yes
15593 $as_echo "$as_me: failed program was:" >&5
15594 sed 's
/^
/|
/' conftest.$ac_ext >&5
15596 ac_cv_lib_gif_EGifPutExtensionLast=no
15599 rm -rf conftest.dSYM
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15605 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15606 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
15616 if test "$HAVE_GIF" = yes; then
15618 elif test "$HAVE_GIF" = maybe; then
15619 # If gif_lib.h but no libgif, try libungif.
15620 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15621 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15622 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15623 $as_echo_n "(cached) " >&6
15625 ac_check_lib_save_LIBS=$LIBS
15626 LIBS="-lungif $LIBS"
15627 cat >conftest.$ac_ext <<_ACEOF
15630 cat confdefs.h >>conftest.$ac_ext
15631 cat >>conftest.$ac_ext <<_ACEOF
15632 /* end confdefs.h. */
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15640 char EGifPutExtensionLast ();
15644 return EGifPutExtensionLast ();
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_link") 2>conftest.er1
15659 grep -v '^
*+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext && {
15667 test "$cross_compiling" = yes ||
15668 $as_test_x conftest$ac_exeext
15670 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15672 $as_echo "$as_me: failed program was:" >&5
15673 sed 's
/^
/|
/' conftest.$ac_ext >&5
15675 ac_cv_lib_ungif_EGifPutExtensionLast=no
15678 rm -rf conftest.dSYM
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15681 LIBS=$ac_check_lib_save_LIBS
15683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15684 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15685 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
15691 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15694 if test "${HAVE_GIF}" = "yes"; then
15696 cat >>confdefs.h <<\_ACEOF
15704 if test "${HAVE_X11}" = "yes"; then
15707 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15708 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15709 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15710 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15711 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15712 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15713 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15714 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15715 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15716 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15718 if test "X${MISSING}" != X; then
15719 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15721 Maybe some development libraries/packages are missing?
15722 If you don't want to link with them give
15724 as options to configure
" >&5
15725 $as_echo "$as_me: error
: The following required libraries were not found
:
15727 Maybe some development libraries
/packages are missing?
15728 If you don
't want to link with them give
15730 as options to configure" >&2;}
15731 { (exit 1); exit 1; }; }
15735 ### Use -lgpm if available, unless `--with-gpm=no'.
15738 if test "${with_gpm}" != "no"; then
15739 if test "${ac_cv_header_gpm_h+set}" = set; then
15740 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15741 $as_echo_n "checking for gpm.h... " >&6; }
15742 if test "${ac_cv_header_gpm_h+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15746 $as_echo "$ac_cv_header_gpm_h" >&6; }
15748 # Is the header compilable?
15749 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15750 $as_echo_n "checking gpm.h usability... " >&6; }
15751 cat >conftest.
$ac_ext <<_ACEOF
15754 cat confdefs.h
>>conftest.
$ac_ext
15755 cat >>conftest.
$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15760 rm -f conftest.
$ac_objext
15761 if { (ac_try
="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_header_compiler=yes
15780 $as_echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 $as_echo "$ac_header_compiler" >&6; }
15790 # Is the header present?
15791 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15792 $as_echo_n "checking gpm.h presence... " >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15804 *) ac_try_echo
=$ac_try;;
15806 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15807 $as_echo "$ac_try_echo") >&5
15808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15810 grep -v '^ *+' conftest.er1
>conftest.err
15812 cat conftest.err
>&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } >/dev
/null
&& {
15815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15818 ac_header_preproc
=yes
15820 $as_echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.
$ac_ext >&5
15823 ac_header_preproc
=no
15826 rm -f conftest.err conftest.
$ac_ext
15827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15828 $as_echo "$ac_header_preproc" >&6; }
15830 # So? What about this header?
15831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15833 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15834 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15835 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15836 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15837 ac_header_preproc
=yes
15840 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15841 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15842 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15843 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15845 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15847 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15849 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15850 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15851 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15855 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15856 $as_echo_n "checking for gpm.h... " >&6; }
15857 if test "${ac_cv_header_gpm_h+set}" = set; then
15858 $as_echo_n "(cached) " >&6
15860 ac_cv_header_gpm_h
=$ac_header_preproc
15862 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15863 $as_echo "$ac_cv_header_gpm_h" >&6; }
15866 if test "x$ac_cv_header_gpm_h" = x
""yes; then
15867 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15868 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15869 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15870 $as_echo_n "(cached) " >&6
15872 ac_check_lib_save_LIBS
=$LIBS
15874 cat >conftest.
$ac_ext <<_ACEOF
15877 cat confdefs.h
>>conftest.
$ac_ext
15878 cat >>conftest.
$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 /* Override any GCC internal prototype to avoid an error.
15882 Use char because int might match the return type of a GCC
15883 builtin and then its argument prototype would still apply. */
15891 return Gpm_Open ();
15896 rm -f conftest.
$ac_objext conftest
$ac_exeext
15897 if { (ac_try
="$ac_link"
15898 case "(($ac_try" in
15899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15903 $as_echo "$ac_try_echo") >&5
15904 (eval "$ac_link") 2>conftest.er1
15906 grep -v '^ *+' conftest.er1 >conftest.err
15908 cat conftest.err >&5
15909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } && {
15911 test -z "$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 } && test -s conftest$ac_exeext && {
15914 test "$cross_compiling" = yes ||
15915 $as_test_x conftest$ac_exeext
15917 ac_cv_lib_gpm_Gpm_Open=yes
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_cv_lib_gpm_Gpm_Open=no
15925 rm -rf conftest.dSYM
15926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS=$ac_check_lib_save_LIBS
15930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15931 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15932 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15940 if test "${HAVE_GPM}" = "yes"; then
15942 cat >>confdefs.h <<\_ACEOF
15951 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15952 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15953 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15954 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15955 $as_echo_n "(cached) " >&6
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15958 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15960 # Is the header compilable?
15961 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15962 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15963 cat >conftest.$ac_ext <<_ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15969 $ac_includes_default
15970 #include <malloc/malloc.h>
15972 rm -f conftest.$ac_objext
15973 if { (ac_try="$ac_compile"
15974 case "(($ac_try" in
15975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15976 *) ac_try_echo
=$ac_try;;
15978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15979 $as_echo "$ac_try_echo") >&5
15980 (eval "$ac_compile") 2>conftest.er1
15982 grep -v '^ *+' conftest.er1
>conftest.err
15984 cat conftest.err
>&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest.
$ac_objext; then
15990 ac_header_compiler
=yes
15992 $as_echo "$as_me: failed program was:" >&5
15993 sed 's/^/| /' conftest.
$ac_ext >&5
15995 ac_header_compiler
=no
15998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15999 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16000 $as_echo "$ac_header_compiler" >&6; }
16002 # Is the header present?
16003 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16004 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16005 cat >conftest.
$ac_ext <<_ACEOF
16008 cat confdefs.h
>>conftest.
$ac_ext
16009 cat >>conftest.
$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 #include <malloc/malloc.h>
16013 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16014 case "(($ac_try" in
16015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16016 *) ac_try_echo=$ac_try;;
16018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16019 $as_echo "$ac_try_echo") >&5
16020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } >/dev/null && {
16027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16028 test ! -s conftest.err
16030 ac_header_preproc=yes
16032 $as_echo "$as_me: failed program was:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ac_header_preproc=no
16038 rm -f conftest.err conftest.$ac_ext
16039 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16040 $as_echo "$ac_header_preproc" >&6; }
16042 # So? What about this header?
16043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16045 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16046 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16047 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16048 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16049 ac_header_preproc=yes
16052 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16053 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16054 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16055 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16056 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16057 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16059 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16060 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16061 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16062 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16063 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16067 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16068 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16069 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16070 $as_echo_n "(cached) " >&6
16072 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16075 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16078 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_MALLOC_MALLOC_H 1
16088 ### Use NeXTstep API to implement GUI.
16089 if test "${HAVE_NS}" = "yes"; then
16091 cat >>confdefs.h <<\_ACEOF
16095 if test "${NS_IMPL_COCOA}" = "yes"; then
16097 cat >>confdefs.h <<\_ACEOF
16098 #define NS_IMPL_COCOA 1
16103 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define NS_IMPL_GNUSTEP 1
16109 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16111 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16113 cat >>confdefs.h <<\_ACEOF
16114 #define NS_HAVE_NSINTEGER 1
16118 # We also have mouse menus.
16124 ### Use session management (-lSM -lICE) if available
16126 if test "${HAVE_X11}" = "yes"; then
16127 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16128 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16129 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16130 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16131 $as_echo_n "(cached) " >&6
16133 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16134 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16136 # Is the header compilable?
16137 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16138 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 $ac_includes_default
16146 #include <X11/SM/SMlib.h>
16148 rm -f conftest.$ac_objext
16149 if { (ac_try="$ac_compile"
16150 case "(($ac_try" in
16151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16152 *) ac_try_echo
=$ac_try;;
16154 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_compile") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1
>conftest.err
16160 cat conftest.err
>&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest.
$ac_objext; then
16166 ac_header_compiler
=yes
16168 $as_echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.
$ac_ext >&5
16171 ac_header_compiler
=no
16174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16176 $as_echo "$ac_header_compiler" >&6; }
16178 # Is the header present?
16179 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16180 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16181 cat >conftest.
$ac_ext <<_ACEOF
16184 cat confdefs.h
>>conftest.
$ac_ext
16185 cat >>conftest.
$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <X11/SM/SMlib.h>
16189 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16190 case "(($ac_try" in
16191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16195 $as_echo "$ac_try_echo") >&5
16196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16198 grep -v '^ *+' conftest.er1 >conftest.err
16200 cat conftest.err >&5
16201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } >/dev/null && {
16203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16206 ac_header_preproc=yes
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 ac_header_preproc=no
16214 rm -f conftest.err conftest.$ac_ext
16215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16216 $as_echo "$ac_header_preproc" >&6; }
16218 # So? What about this header?
16219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16221 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16222 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16223 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16224 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16225 ac_header_preproc=yes
16228 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16229 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16230 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16231 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16232 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16233 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16234 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16235 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16236 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16237 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16238 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16239 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16243 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16244 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16245 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16248 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16251 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16254 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16255 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16256 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16257 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16258 $as_echo_n "(cached) " >&6
16260 ac_check_lib_save_LIBS=$LIBS
16261 LIBS="-lSM -lICE $LIBS"
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16269 /* Override any GCC internal prototype to avoid an error.
16270 Use char because int might match the return type of a GCC
16271 builtin and then its argument prototype would still apply. */
16275 char SmcOpenConnection ();
16279 return SmcOpenConnection ();
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (ac_try="$ac_link"
16286 case "(($ac_try" in
16287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16288 *) ac_try_echo
=$ac_try;;
16290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16291 $as_echo "$ac_try_echo") >&5
16292 (eval "$ac_link") 2>conftest.er1
16294 grep -v '^ *+' conftest.er1
>conftest.err
16296 cat conftest.err
>&5
16297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } && {
16299 test -z "$ac_c_werror_flag" ||
16300 test ! -s conftest.err
16301 } && test -s conftest
$ac_exeext && {
16302 test "$cross_compiling" = yes ||
16303 $as_test_x conftest
$ac_exeext
16305 ac_cv_lib_SM_SmcOpenConnection
=yes
16307 $as_echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.
$ac_ext >&5
16310 ac_cv_lib_SM_SmcOpenConnection
=no
16313 rm -rf conftest.dSYM
16314 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16315 conftest
$ac_exeext conftest.
$ac_ext
16316 LIBS
=$ac_check_lib_save_LIBS
16318 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16319 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16320 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x
""yes; then
16328 if test "${HAVE_X_SM}" = "yes"; then
16330 cat >>confdefs.h
<<\_ACEOF
16331 #define HAVE_X_SM 1
16336 *) LIBS
="-lSM -lICE $LIBS" ;;
16341 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16342 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16343 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16344 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16345 $as_echo_n "(cached) " >&6
16347 cat >conftest.
$ac_ext <<_ACEOF
16350 cat confdefs.h
>>conftest.
$ac_ext
16351 cat >>conftest.
$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16362 rm -f conftest.
$ac_objext conftest
$ac_exeext
16363 if { (ac_try
="$ac_link"
16364 case "(($ac_try" in
16365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16366 *) ac_try_echo=$ac_try;;
16368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16369 $as_echo "$ac_try_echo") >&5
16370 (eval "$ac_link") 2>conftest.er1
16372 grep -v '^ *+' conftest.er1 >conftest.err
16374 cat conftest.err >&5
16375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext && {
16380 test "$cross_compiling" = yes ||
16381 $as_test_x conftest$ac_exeext
16383 emacs_cv_netdb_declares_h_errno=yes
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 emacs_cv_netdb_declares_h_errno=no
16391 rm -rf conftest.dSYM
16392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16393 conftest$ac_exeext conftest.$ac_ext
16395 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16396 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16397 if test $emacs_cv_netdb_declares_h_errno = yes; then
16399 cat >>confdefs.h <<\_ACEOF
16400 #define HAVE_H_ERRNO 1
16405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16406 # for constant arguments. Useless!
16407 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16408 $as_echo_n "checking for working alloca.h... " >&6; }
16409 if test "${ac_cv_working_alloca_h+set}" = set; then
16410 $as_echo_n "(cached) " >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <alloca.h>
16422 char *p = (char *) alloca (2 * sizeof (int));
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16432 *) ac_try_echo
=$ac_try;;
16434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436 (eval "$ac_link") 2>conftest.er1
16438 grep -v '^ *+' conftest.er1
>conftest.err
16440 cat conftest.err
>&5
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest
$ac_exeext && {
16446 test "$cross_compiling" = yes ||
16447 $as_test_x conftest
$ac_exeext
16449 ac_cv_working_alloca_h
=yes
16451 $as_echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.
$ac_ext >&5
16454 ac_cv_working_alloca_h
=no
16457 rm -rf conftest.dSYM
16458 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16459 conftest
$ac_exeext conftest.
$ac_ext
16461 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16462 $as_echo "$ac_cv_working_alloca_h" >&6; }
16463 if test $ac_cv_working_alloca_h = yes; then
16465 cat >>confdefs.h
<<\_ACEOF
16466 #define HAVE_ALLOCA_H 1
16471 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16472 $as_echo_n "checking for alloca... " >&6; }
16473 if test "${ac_cv_func_alloca_works+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16476 cat >conftest.
$ac_ext <<_ACEOF
16479 cat confdefs.h
>>conftest.
$ac_ext
16480 cat >>conftest.
$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16483 # define alloca __builtin_alloca
16486 # include <malloc.h>
16487 # define alloca _alloca
16489 # ifdef HAVE_ALLOCA_H
16490 # include <alloca.h>
16495 # ifndef alloca /* predefined by HP cc +Olibcalls */
16506 char *p = (char *) alloca (1);
16512 rm -f conftest.
$ac_objext conftest
$ac_exeext
16513 if { (ac_try
="$ac_link"
16514 case "(($ac_try" in
16515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16519 $as_echo "$ac_try_echo") >&5
16520 (eval "$ac_link") 2>conftest.er1
16522 grep -v '^ *+' conftest.er1 >conftest.err
16524 cat conftest.err >&5
16525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && {
16527 test -z "$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16529 } && test -s conftest$ac_exeext && {
16530 test "$cross_compiling" = yes ||
16531 $as_test_x conftest$ac_exeext
16533 ac_cv_func_alloca_works=yes
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_func_alloca_works=no
16541 rm -rf conftest.dSYM
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543 conftest$ac_exeext conftest.$ac_ext
16545 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16546 $as_echo "$ac_cv_func_alloca_works" >&6; }
16548 if test $ac_cv_func_alloca_works = yes; then
16550 cat >>confdefs.h <<\_ACEOF
16551 #define HAVE_ALLOCA 1
16555 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16556 # that cause trouble. Some versions do not even contain alloca or
16557 # contain a buggy version. If you still want to use their alloca,
16558 # use ar to extract alloca.o from them instead of compiling alloca.c.
16560 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16562 cat >>confdefs.h <<\_ACEOF
16567 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16569 if test "${ac_cv_os_cray+set}" = set; then
16570 $as_echo_n "(cached
) " >&6
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 #if defined CRAY && ! defined CRAY2
16585 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16586 $EGREP "webecray
" >/dev/null 2>&1; then
16594 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16595 $as_echo "$ac_cv_os_cray" >&6; }
16596 if test $ac_cv_os_cray = yes; then
16597 for ac_func in _getb67 GETB67 getb67; do
16598 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16599 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16600 $as_echo_n "checking
for $ac_func...
" >&6; }
16601 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16602 $as_echo_n "(cached
) " >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16612 #define $ac_func innocuous_$ac_func
16614 /* System header to define __stub macros and hopefully few prototypes,
16615 which can conflict with char $ac_func (); below.
16616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16617 <limits.h> exists even on freestanding compilers. */
16620 # include <limits.h>
16622 # include <assert.h>
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16634 /* The GNU C library defines this for functions which it implements
16635 to always fail with ENOSYS. Some functions are actually named
16636 something starting with __ and the normal name is an alias. */
16637 #if defined __stub_$ac_func || defined __stub___$ac_func
16644 return $ac_func ();
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_link") 2>conftest.er1
16659 grep -v '^ *+' conftest.er1 >conftest.err
16661 cat conftest.err >&5
16662 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16663 (exit $ac_status); } && {
16664 test -z "$ac_c_werror_flag" ||
16665 test ! -s conftest.err
16666 } && test -s conftest$ac_exeext && {
16667 test "$cross_compiling" = yes ||
16668 $as_test_x conftest$ac_exeext
16670 eval "$as_ac_var=yes"
16672 $as_echo "$as_me: failed program was
:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 eval "$as_ac_var=no
"
16678 rm -rf conftest.dSYM
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16682 ac_res=`eval 'as_val=${'$as_ac_var'}
16683 $as_echo "$as_val"'`
16684 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16685 $as_echo "$ac_res" >&6; }
16686 as_val=`eval 'as_val=${'$as_ac_var'}
16687 $as_echo "$as_val"'`
16688 if test "x
$as_val" = x""yes; then
16690 cat >>confdefs.h <<_ACEOF
16691 #define CRAY_STACKSEG_END $ac_func
16700 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16701 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16702 if test "${ac_cv_c_stack_direction+set}" = set; then
16703 $as_echo_n "(cached
) " >&6
16705 if test "$cross_compiling" = yes; then
16706 ac_cv_c_stack_direction=0
16708 cat >conftest.$ac_ext <<_ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 $ac_includes_default
16716 find_stack_direction ()
16718 static char *addr = 0;
16723 return find_stack_direction ();
16726 return (&dummy > addr) ? 1 : -1;
16732 return find_stack_direction () < 0;
16735 rm -f conftest$ac_exeext
16736 if { (ac_try="$ac_link"
16737 case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16742 $as_echo "$ac_try_echo") >&5
16743 (eval "$ac_link") 2>&5
16745 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_try") 2>&5
16755 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 ac_cv_c_stack_direction=1
16759 $as_echo "$as_me: program exited with status
$ac_status" >&5
16760 $as_echo "$as_me: failed program was
:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ( exit $ac_status )
16764 ac_cv_c_stack_direction=-1
16766 rm -rf conftest.dSYM
16767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16773 $as_echo "$ac_cv_c_stack_direction" >&6; }
16775 cat >>confdefs.h <<_ACEOF
16776 #define STACK_DIRECTION $ac_cv_c_stack_direction
16783 if test x"$ac_cv_func_alloca_works" != xyes; then
16784 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16785 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16786 { (exit 1); exit 1; }; }
16789 # fmod, logb, and frexp are found in -lm on most systems.
16790 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16792 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16793 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16794 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16795 $as_echo_n "(cached
) " >&6
16797 ac_check_lib_save_LIBS=$LIBS
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829 (eval "$ac_link") 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16835 (exit $ac_status); } && {
16836 test -z "$ac_c_werror_flag" ||
16837 test ! -s conftest.err
16838 } && test -s conftest$ac_exeext && {
16839 test "$cross_compiling" = yes ||
16840 $as_test_x conftest$ac_exeext
16842 ac_cv_lib_m_sqrt=yes
16844 $as_echo "$as_me: failed program was
:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_cv_lib_m_sqrt=no
16850 rm -rf conftest.dSYM
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16856 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16857 if test "x
$ac_cv_lib_m_sqrt" = x""yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBM 1
16867 # Check for mail-locking functions in a "mail" library. Probably this should
16868 # have the same check as for liblockfile below.
16869 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16870 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16871 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16872 $as_echo_n "(cached
) " >&6
16874 ac_check_lib_save_LIBS=$LIBS
16875 LIBS="-lmail $LIBS"
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16883 /* Override any GCC internal prototype to avoid an error.
16884 Use char because int might match the return type of a GCC
16885 builtin and then its argument prototype would still apply. */
16893 return maillock ();
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (ac_try="$ac_link"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16905 $as_echo "$ac_try_echo") >&5
16906 (eval "$ac_link") 2>conftest.er1
16908 grep -v '^ *+' conftest.er1 >conftest.err
16910 cat conftest.err >&5
16911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest$ac_exeext && {
16916 test "$cross_compiling" = yes ||
16917 $as_test_x conftest$ac_exeext
16919 ac_cv_lib_mail_maillock=yes
16921 $as_echo "$as_me: failed program was
:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_lib_mail_maillock=no
16927 rm -rf conftest.dSYM
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16933 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16934 if test "x
$ac_cv_lib_mail_maillock" = x""yes; then
16940 if test $have_mail = yes; then
16942 LIBS="$LIBS_MAIL $LIBS"
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_LIBMAIL 1
16951 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16952 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16953 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16954 $as_echo_n "(cached
) " >&6
16956 ac_check_lib_save_LIBS=$LIBS
16957 LIBS="-llockfile $LIBS"
16958 cat >conftest.$ac_ext <<_ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16965 /* Override any GCC internal prototype to avoid an error.
16966 Use char because int might match the return type of a GCC
16967 builtin and then its argument prototype would still apply. */
16975 return maillock ();
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext && {
16998 test "$cross_compiling" = yes ||
16999 $as_test_x conftest$ac_exeext
17001 ac_cv_lib_lockfile_maillock=yes
17003 $as_echo "$as_me: failed program was
:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_cv_lib_lockfile_maillock=no
17009 rm -rf conftest.dSYM
17010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17011 conftest$ac_exeext conftest.$ac_ext
17012 LIBS=$ac_check_lib_save_LIBS
17014 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17015 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17016 if test "x
$ac_cv_lib_lockfile_maillock" = x""yes; then
17022 if test $have_lockfile = yes; then
17023 LIBS_MAIL=-llockfile
17024 LIBS="$LIBS_MAIL $LIBS"
17026 cat >>confdefs.h <<\_ACEOF
17027 #define HAVE_LIBLOCKFILE 1
17031 # If we have the shared liblockfile, assume we must use it for mail
17032 # locking (e.g. Debian). If we couldn't link against liblockfile
17033 # (no liblockfile.a installed), ensure that we don't need to.
17034 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17035 set dummy liblockfile.so; ac_word=$2
17036 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17037 $as_echo_n "checking
for $ac_word...
" >&6; }
17038 if test "${ac_cv_prog_liblockfile+set}" = set; then
17039 $as_echo_n "(cached
) " >&6
17041 if test -n "$liblockfile"; then
17042 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17045 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17046 for as_dir in $as_dummy
17049 test -z "$as_dir" && as_dir=.
17050 for ac_exec_ext in '' $ac_executable_extensions; do
17051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17052 ac_cv_prog_liblockfile="yes"
17053 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17060 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17063 liblockfile=$ac_cv_prog_liblockfile
17064 if test -n "$liblockfile"; then
17065 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17066 $as_echo "$liblockfile" >&6; }
17068 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17069 $as_echo "no
" >&6; }
17073 if test $ac_cv_prog_liblockfile = yes; then
17074 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17075 This probably means that movemail could lose mail.
17076 There may be a \`development' package to
install containing liblockfile.
" >&5
17077 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17078 This probably means that movemail could lose mail.
17079 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17080 { (exit 1); exit 1; }; }
17084 for ac_func in touchlock
17086 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17087 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17088 $as_echo_n "checking
for $ac_func...
" >&6; }
17089 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17090 $as_echo_n "(cached
) " >&6
17092 cat >conftest.$ac_ext <<_ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17100 #define $ac_func innocuous_$ac_func
17102 /* System header to define __stub macros and hopefully few prototypes,
17103 which can conflict with char $ac_func (); below.
17104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17105 <limits.h> exists even on freestanding compilers. */
17108 # include <limits.h>
17110 # include <assert.h>
17115 /* Override any GCC internal prototype to avoid an error.
17116 Use char because int might match the return type of a GCC
17117 builtin and then its argument prototype would still apply. */
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined __stub_$ac_func || defined __stub___$ac_func
17132 return $ac_func ();
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (ac_try="$ac_link"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17144 $as_echo "$ac_try_echo") >&5
17145 (eval "$ac_link") 2>conftest.er1
17147 grep -v '^ *+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17151 (exit $ac_status); } && {
17152 test -z "$ac_c_werror_flag" ||
17153 test ! -s conftest.err
17154 } && test -s conftest$ac_exeext && {
17155 test "$cross_compiling" = yes ||
17156 $as_test_x conftest$ac_exeext
17158 eval "$as_ac_var=yes"
17160 $as_echo "$as_me: failed program was
:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no
"
17166 rm -rf conftest.dSYM
17167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17168 conftest$ac_exeext conftest.$ac_ext
17170 ac_res=`eval 'as_val=${'$as_ac_var'}
17171 $as_echo "$as_val"'`
17172 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17173 $as_echo "$ac_res" >&6; }
17174 as_val=`eval 'as_val=${'$as_ac_var'}
17175 $as_echo "$as_val"'`
17176 if test "x
$as_val" = x""yes; then
17177 cat >>confdefs.h <<_ACEOF
17178 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17185 for ac_header in maillock.h
17187 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17189 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17190 $as_echo_n "checking
for $ac_header...
" >&6; }
17191 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17192 $as_echo_n "(cached
) " >&6
17194 ac_res=`eval 'as_val=${'$as_ac_Header'}
17195 $as_echo "$as_val"'`
17196 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17197 $as_echo "$ac_res" >&6; }
17199 # Is the header compilable?
17200 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17201 $as_echo_n "checking
$ac_header usability...
" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 $ac_includes_default
17209 #include <$ac_header>
17211 rm -f conftest.$ac_objext
17212 if { (ac_try="$ac_compile"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17218 $as_echo "$ac_try_echo") >&5
17219 (eval "$ac_compile") 2>conftest.er1
17221 grep -v '^ *+' conftest.er1 >conftest.err
17223 cat conftest.err >&5
17224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17225 (exit $ac_status); } && {
17226 test -z "$ac_c_werror_flag" ||
17227 test ! -s conftest.err
17228 } && test -s conftest.$ac_objext; then
17229 ac_header_compiler=yes
17231 $as_echo "$as_me: failed program was
:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 ac_header_compiler=no
17237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17238 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17239 $as_echo "$ac_header_compiler" >&6; }
17241 # Is the header present?
17242 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17243 $as_echo_n "checking
$ac_header presence...
" >&6; }
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 #include <$ac_header>
17252 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17265 (exit $ac_status); } >/dev/null && {
17266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17269 ac_header_preproc=yes
17271 $as_echo "$as_me: failed program was
:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_header_preproc=no
17277 rm -f conftest.err conftest.$ac_ext
17278 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17279 $as_echo "$ac_header_preproc" >&6; }
17281 # So? What about this header?
17282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17284 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17285 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17286 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17287 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17288 ac_header_preproc=yes
17291 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17292 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17293 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17294 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17295 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17296 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17297 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17298 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17299 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17301 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17302 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17306 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17307 $as_echo_n "checking
for $ac_header...
" >&6; }
17308 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17309 $as_echo_n "(cached
) " >&6
17311 eval "$as_ac_Header=\
$ac_header_preproc"
17313 ac_res=`eval 'as_val=${'$as_ac_Header'}
17314 $as_echo "$as_val"'`
17315 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17316 $as_echo "$ac_res" >&6; }
17319 as_val=`eval 'as_val=${'$as_ac_Header'}
17320 $as_echo "$as_val"'`
17321 if test "x
$as_val" = x""yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17403 for ac_func in gethostname getdomainname dup2 \
17404 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17405 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17406 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17407 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17408 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17409 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17410 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17411 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17412 cfmakeraw cfsetspeed
17414 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17415 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17416 $as_echo_n "checking
for $ac_func...
" >&6; }
17417 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17418 $as_echo_n "(cached
) " >&6
17420 cat >conftest.$ac_ext <<_ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17428 #define $ac_func innocuous_$ac_func
17430 /* System header to define __stub macros and hopefully few prototypes,
17431 which can conflict with char $ac_func (); below.
17432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433 <limits.h> exists even on freestanding compilers. */
17436 # include <limits.h>
17438 # include <assert.h>
17443 /* Override any GCC internal prototype to avoid an error.
17444 Use char because int might match the return type of a GCC
17445 builtin and then its argument prototype would still apply. */
17450 /* The GNU C library defines this for functions which it implements
17451 to always fail with ENOSYS. Some functions are actually named
17452 something starting with __ and the normal name is an alias. */
17453 #if defined __stub_$ac_func || defined __stub___$ac_func
17460 return $ac_func ();
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (ac_try="$ac_link"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17472 $as_echo "$ac_try_echo") >&5
17473 (eval "$ac_link") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest$ac_exeext && {
17483 test "$cross_compiling" = yes ||
17484 $as_test_x conftest$ac_exeext
17486 eval "$as_ac_var=yes"
17488 $as_echo "$as_me: failed program was
:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17491 eval "$as_ac_var=no
"
17494 rm -rf conftest.dSYM
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17498 ac_res=`eval 'as_val=${'$as_ac_var'}
17499 $as_echo "$as_val"'`
17500 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17501 $as_echo "$ac_res" >&6; }
17502 as_val=`eval 'as_val=${'$as_ac_var'}
17503 $as_echo "$as_val"'`
17504 if test "x
$as_val" = x""yes; then
17505 cat >>confdefs.h <<_ACEOF
17506 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17514 for ac_header in sys/un.h
17516 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17518 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17519 $as_echo_n "checking
for $ac_header...
" >&6; }
17520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17521 $as_echo_n "(cached
) " >&6
17523 ac_res=`eval 'as_val=${'$as_ac_Header'}
17524 $as_echo "$as_val"'`
17525 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17526 $as_echo "$ac_res" >&6; }
17528 # Is the header compilable?
17529 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17530 $as_echo_n "checking
$ac_header usability...
" >&6; }
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 $ac_includes_default
17538 #include <$ac_header>
17540 rm -f conftest.$ac_objext
17541 if { (ac_try="$ac_compile"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17547 $as_echo "$ac_try_echo") >&5
17548 (eval "$ac_compile") 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest.$ac_objext; then
17558 ac_header_compiler=yes
17560 $as_echo "$as_me: failed program was
:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17563 ac_header_compiler=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17568 $as_echo "$ac_header_compiler" >&6; }
17570 # Is the header present?
17571 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17572 $as_echo_n "checking
$ac_header presence...
" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 #include <$ac_header>
17581 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17587 $as_echo "$ac_try_echo") >&5
17588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17594 (exit $ac_status); } >/dev/null && {
17595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17598 ac_header_preproc=yes
17600 $as_echo "$as_me: failed program was
:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_header_preproc=no
17606 rm -f conftest.err conftest.$ac_ext
17607 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17608 $as_echo "$ac_header_preproc" >&6; }
17610 # So? What about this header?
17611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17613 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17614 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17617 ac_header_preproc=yes
17620 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17621 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17623 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17625 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17627 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17631 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17635 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17636 $as_echo_n "checking
for $ac_header...
" >&6; }
17637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17638 $as_echo_n "(cached
) " >&6
17640 eval "$as_ac_Header=\
$ac_header_preproc"
17642 ac_res=`eval 'as_val=${'$as_ac_Header'}
17643 $as_echo "$as_val"'`
17644 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17645 $as_echo "$ac_res" >&6; }
17648 as_val=`eval 'as_val=${'$as_ac_Header'}
17649 $as_echo "$as_val"'`
17650 if test "x
$as_val" = x""yes; then
17651 cat >>confdefs.h <<_ACEOF
17652 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17664 for ac_header in $ac_header_list
17666 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17668 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17669 $as_echo_n "checking
for $ac_header...
" >&6; }
17670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17671 $as_echo_n "(cached
) " >&6
17673 ac_res=`eval 'as_val=${'$as_ac_Header'}
17674 $as_echo "$as_val"'`
17675 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17676 $as_echo "$ac_res" >&6; }
17678 # Is the header compilable?
17679 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17680 $as_echo_n "checking
$ac_header usability...
" >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <$ac_header>
17690 rm -f conftest.$ac_objext
17691 if { (ac_try="$ac_compile"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17697 $as_echo "$ac_try_echo") >&5
17698 (eval "$ac_compile") 2>conftest.er1
17700 grep -v '^ *+' conftest.er1 >conftest.err
17702 cat conftest.err >&5
17703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest.$ac_objext; then
17708 ac_header_compiler=yes
17710 $as_echo "$as_me: failed program was
:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17713 ac_header_compiler=no
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17718 $as_echo "$ac_header_compiler" >&6; }
17720 # Is the header present?
17721 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17722 $as_echo_n "checking
$ac_header presence...
" >&6; }
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <$ac_header>
17731 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17737 $as_echo "$ac_try_echo") >&5
17738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1 >conftest.err
17742 cat conftest.err >&5
17743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17744 (exit $ac_status); } >/dev/null && {
17745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17748 ac_header_preproc=yes
17750 $as_echo "$as_me: failed program was
:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17753 ac_header_preproc=no
17756 rm -f conftest.err conftest.$ac_ext
17757 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17758 $as_echo "$ac_header_preproc" >&6; }
17760 # So? What about this header?
17761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17763 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17764 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17767 ac_header_preproc=yes
17770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17771 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17773 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17775 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17777 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17781 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17785 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17786 $as_echo_n "checking
for $ac_header...
" >&6; }
17787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17788 $as_echo_n "(cached
) " >&6
17790 eval "$as_ac_Header=\
$ac_header_preproc"
17792 ac_res=`eval 'as_val=${'$as_ac_Header'}
17793 $as_echo "$as_val"'`
17794 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17795 $as_echo "$ac_res" >&6; }
17798 as_val=`eval 'as_val=${'$as_ac_Header'}
17799 $as_echo "$as_val"'`
17800 if test "x
$as_val" = x""yes; then
17801 cat >>confdefs.h <<_ACEOF
17802 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17817 for ac_func in $ac_func_list
17819 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17820 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17821 $as_echo_n "checking
for $ac_func...
" >&6; }
17822 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17823 $as_echo_n "(cached
) " >&6
17825 cat >conftest.$ac_ext <<_ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h. */
17831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17833 #define $ac_func innocuous_$ac_func
17835 /* System header to define __stub macros and hopefully few prototypes,
17836 which can conflict with char $ac_func (); below.
17837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17838 <limits.h> exists even on freestanding compilers. */
17841 # include <limits.h>
17843 # include <assert.h>
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17855 /* The GNU C library defines this for functions which it implements
17856 to always fail with ENOSYS. Some functions are actually named
17857 something starting with __ and the normal name is an alias. */
17858 #if defined __stub_$ac_func || defined __stub___$ac_func
17865 return $ac_func ();
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (ac_try="$ac_link"
17872 case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17877 $as_echo "$ac_try_echo") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext && {
17888 test "$cross_compiling" = yes ||
17889 $as_test_x conftest$ac_exeext
17891 eval "$as_ac_var=yes"
17893 $as_echo "$as_me: failed program was
:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 eval "$as_ac_var=no
"
17899 rm -rf conftest.dSYM
17900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901 conftest$ac_exeext conftest.$ac_ext
17903 ac_res=`eval 'as_val=${'$as_ac_var'}
17904 $as_echo "$as_val"'`
17905 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17906 $as_echo "$ac_res" >&6; }
17907 as_val=`eval 'as_val=${'$as_ac_var'}
17908 $as_echo "$as_val"'`
17909 if test "x
$as_val" = x""yes; then
17910 cat >>confdefs.h <<_ACEOF
17911 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17933 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17934 $as_echo_n "checking
for working mktime...
" >&6; }
17935 if test "${ac_cv_func_working_mktime+set}" = set; then
17936 $as_echo_n "(cached
) " >&6
17938 if test "$cross_compiling" = yes; then
17939 ac_cv_func_working_mktime=no
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 /* Test program from Paul Eggert and Tony Leneis. */
17948 #ifdef TIME_WITH_SYS_TIME
17949 # include <sys/time.h>
17952 # ifdef HAVE_SYS_TIME_H
17953 # include <sys/time.h>
17959 #include <limits.h>
17960 #include <stdlib.h>
17962 #ifdef HAVE_UNISTD_H
17963 # include <unistd.h>
17967 # define alarm(X) /* empty */
17970 /* Work around redefinition to rpl_putenv by other config tests. */
17973 static time_t time_t_max;
17974 static time_t time_t_min;
17976 /* Values we'll use to set the TZ environment variable. */
17977 static char *tz_strings[] = {
17978 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17979 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17981 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17983 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17984 Based on a problem report from Andreas Jaeger. */
17986 spring_forward_gap ()
17988 /* glibc (up to about 1998-10-07) failed this test. */
17991 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17992 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17993 on systems that don't support the Olson extension, or don't have the
17994 full zoneinfo tables installed. */
17995 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18004 return mktime (&tm) != (time_t) -1;
18012 return ! (lt = localtime (&now)) || mktime (lt) == now;
18019 return (mktime_test1 (now)
18020 && mktime_test1 ((time_t) (time_t_max - now))
18021 && mktime_test1 ((time_t) (time_t_min + now)));
18027 /* Based on code from Ariel Faigon. */
18037 return tm.tm_mon == 2 && tm.tm_mday == 31;
18046 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18047 now = mktime (&tm);
18048 if (now != (time_t) -1)
18050 struct tm *lt = localtime (&now);
18052 && lt->tm_year == tm.tm_year
18053 && lt->tm_mon == tm.tm_mon
18054 && lt->tm_mday == tm.tm_mday
18055 && lt->tm_hour == tm.tm_hour
18056 && lt->tm_min == tm.tm_min
18057 && lt->tm_sec == tm.tm_sec
18058 && lt->tm_yday == tm.tm_yday
18059 && lt->tm_wday == tm.tm_wday
18060 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18061 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18070 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18071 ignoring leap seconds. */
18072 unsigned long int answer = 2527315200UL;
18076 tm.tm_year = 2050 - 1900;
18079 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18082 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18083 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18084 on systems that don't support the Olson extension, or don't have the
18085 full zoneinfo tables installed. */
18086 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18090 /* Check that the result is either a failure, or close enough
18091 to the correct answer that we can assume the discrepancy is
18092 due to leap seconds. */
18093 return (t == (time_t) -1
18094 || (0 < t && answer - 120 <= t && t <= answer + 120));
18103 /* This test makes some buggy mktime implementations loop.
18104 Give up after 60 seconds; a mktime slower than that
18105 isn't worth using anyway. */
18110 t = (time_t_max << 1) + 1;
18111 if (t <= time_t_max)
18115 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18117 delta = time_t_max / 997; /* a suitable prime number */
18118 for (i = 0; i < N_STRINGS; i++)
18121 putenv (tz_strings[i]);
18123 for (t = 0; t <= time_t_max - delta; t += delta)
18124 if (! mktime_test (t))
18126 if (! (mktime_test ((time_t) 1)
18127 && mktime_test ((time_t) (60 * 60))
18128 && mktime_test ((time_t) (60 * 60 * 24))))
18131 for (j = 1; ; j <<= 1)
18132 if (! bigtime_test (j))
18134 else if (INT_MAX / 2 < j)
18136 if (! bigtime_test (INT_MAX))
18139 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18142 rm -f conftest$ac_exeext
18143 if { (ac_try="$ac_link"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18149 $as_echo "$ac_try_echo") >&5
18150 (eval "$ac_link") 2>&5
18152 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_try") 2>&5
18162 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_cv_func_working_mktime=yes
18166 $as_echo "$as_me: program exited with status
$ac_status" >&5
18167 $as_echo "$as_me: failed program was
:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18170 ( exit $ac_status )
18171 ac_cv_func_working_mktime=no
18173 rm -rf conftest.dSYM
18174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18179 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18180 $as_echo "$ac_cv_func_working_mktime" >&6; }
18181 if test $ac_cv_func_working_mktime = no; then
18182 case " $LIBOBJS " in
18183 *" mktime.
$ac_objext "* ) ;;
18184 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18190 if test "$ac_cv_func_working_mktime" = no; then
18192 cat >>confdefs.h <<\_ACEOF
18193 #define BROKEN_MKTIME 1
18198 ac_have_func=no # yes means we've found a way to get the load average.
18200 # Make sure getloadavg.c is where it belongs, at configure-time.
18201 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18202 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18203 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18204 { (exit 1); exit 1; }; }
18208 # Check for getloadavg, but be sure not to touch the cache variable.
18209 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18210 $as_echo_n "checking
for getloadavg...
" >&6; }
18211 if test "${ac_cv_func_getloadavg+set}" = set; then
18212 $as_echo_n "(cached
) " >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define getloadavg innocuous_getloadavg
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char getloadavg (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18230 # include <limits.h>
18232 # include <assert.h>
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18243 char getloadavg ();
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_getloadavg || defined __stub___getloadavg
18254 return getloadavg ();
18259 rm -f conftest.$ac_objext conftest$ac_exeext
18260 if { (ac_try="$ac_link"
18261 case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18266 $as_echo "$ac_try_echo") >&5
18267 (eval "$ac_link") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest$ac_exeext && {
18277 test "$cross_compiling" = yes ||
18278 $as_test_x conftest$ac_exeext
18280 ac_cv_func_getloadavg=yes
18282 $as_echo "$as_me: failed program was
:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_cv_func_getloadavg=no
18288 rm -rf conftest.dSYM
18289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18290 conftest$ac_exeext conftest.$ac_ext
18292 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18293 $as_echo "$ac_cv_func_getloadavg" >&6; }
18294 if test "x
$ac_cv_func_getloadavg" = x""yes; then
18299 ) && ac_have_func=yes
18301 # On HPUX9, an unprivileged user can get load averages through this function.
18303 for ac_func in pstat_getdynamic
18305 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18306 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18307 $as_echo_n "checking
for $ac_func...
" >&6; }
18308 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18309 $as_echo_n "(cached
) " >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18319 #define $ac_func innocuous_$ac_func
18321 /* System header to define __stub macros and hopefully few prototypes,
18322 which can conflict with char $ac_func (); below.
18323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18324 <limits.h> exists even on freestanding compilers. */
18327 # include <limits.h>
18329 # include <assert.h>
18334 /* Override any GCC internal prototype to avoid an error.
18335 Use char because int might match the return type of a GCC
18336 builtin and then its argument prototype would still apply. */
18341 /* The GNU C library defines this for functions which it implements
18342 to always fail with ENOSYS. Some functions are actually named
18343 something starting with __ and the normal name is an alias. */
18344 #if defined __stub_$ac_func || defined __stub___$ac_func
18351 return $ac_func ();
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (ac_try="$ac_link"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18363 $as_echo "$ac_try_echo") >&5
18364 (eval "$ac_link") 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest$ac_exeext && {
18374 test "$cross_compiling" = yes ||
18375 $as_test_x conftest$ac_exeext
18377 eval "$as_ac_var=yes"
18379 $as_echo "$as_me: failed program was
:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 eval "$as_ac_var=no
"
18385 rm -rf conftest.dSYM
18386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18387 conftest$ac_exeext conftest.$ac_ext
18389 ac_res=`eval 'as_val=${'$as_ac_var'}
18390 $as_echo "$as_val"'`
18391 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18392 $as_echo "$ac_res" >&6; }
18393 as_val=`eval 'as_val=${'$as_ac_var'}
18394 $as_echo "$as_val"'`
18395 if test "x
$as_val" = x""yes; then
18396 cat >>confdefs.h <<_ACEOF
18397 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18404 # Solaris has libkstat which does not require root.
18406 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18407 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18408 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18409 $as_echo_n "(cached
) " >&6
18411 ac_check_lib_save_LIBS=$LIBS
18412 LIBS="-lkstat $LIBS"
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18420 /* Override any GCC internal prototype to avoid an error.
18421 Use char because int might match the return type of a GCC
18422 builtin and then its argument prototype would still apply. */
18426 char kstat_open ();
18430 return kstat_open ();
18435 rm -f conftest.$ac_objext conftest$ac_exeext
18436 if { (ac_try="$ac_link"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext && {
18453 test "$cross_compiling" = yes ||
18454 $as_test_x conftest$ac_exeext
18456 ac_cv_lib_kstat_kstat_open=yes
18458 $as_echo "$as_me: failed program was
:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_cv_lib_kstat_kstat_open=no
18464 rm -rf conftest.dSYM
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18467 LIBS=$ac_check_lib_save_LIBS
18469 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18470 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18471 if test "x
$ac_cv_lib_kstat_kstat_open" = x""yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_LIBKSTAT 1
18476 LIBS="-lkstat $LIBS"
18480 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18484 # to get the right answer into the cache.
18485 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18486 if test $ac_have_func = no; then
18487 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18488 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18489 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18490 $as_echo_n "(cached
) " >&6
18492 ac_check_lib_save_LIBS=$LIBS
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18511 return elf_begin ();
18516 rm -f conftest.$ac_objext conftest$ac_exeext
18517 if { (ac_try="$ac_link"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18523 $as_echo "$ac_try_echo") >&5
18524 (eval "$ac_link") 2>conftest.er1
18526 grep -v '^ *+' conftest.er1 >conftest.err
18528 cat conftest.err >&5
18529 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest$ac_exeext && {
18534 test "$cross_compiling" = yes ||
18535 $as_test_x conftest$ac_exeext
18537 ac_cv_lib_elf_elf_begin=yes
18539 $as_echo "$as_me: failed program was
:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_lib_elf_elf_begin=no
18545 rm -rf conftest.dSYM
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18551 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18552 if test "x
$ac_cv_lib_elf_elf_begin" = x""yes; then
18557 if test $ac_have_func = no; then
18558 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18559 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18560 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18561 $as_echo_n "(cached
) " >&6
18563 ac_check_lib_save_LIBS=$LIBS
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18572 /* Override any GCC internal prototype to avoid an error.
18573 Use char because int might match the return type of a GCC
18574 builtin and then its argument prototype would still apply. */
18582 return kvm_open ();
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18594 $as_echo "$ac_try_echo") >&5
18595 (eval "$ac_link") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext && {
18605 test "$cross_compiling" = yes ||
18606 $as_test_x conftest$ac_exeext
18608 ac_cv_lib_kvm_kvm_open=yes
18610 $as_echo "$as_me: failed program was
:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_lib_kvm_kvm_open=no
18616 rm -rf conftest.dSYM
18617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18618 conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18621 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18622 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18623 if test "x
$ac_cv_lib_kvm_kvm_open" = x""yes; then
18627 # Check for the 4.4BSD definition of getloadavg.
18628 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18629 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18630 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18631 $as_echo_n "(cached
) " >&6
18633 ac_check_lib_save_LIBS=$LIBS
18634 LIBS="-lutil $LIBS"
18635 cat >conftest.$ac_ext <<_ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18648 char getloadavg ();
18652 return getloadavg ();
18657 rm -f conftest.$ac_objext conftest$ac_exeext
18658 if { (ac_try="$ac_link"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18664 $as_echo "$ac_try_echo") >&5
18665 (eval "$ac_link") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest$ac_exeext && {
18675 test "$cross_compiling" = yes ||
18676 $as_test_x conftest$ac_exeext
18678 ac_cv_lib_util_getloadavg=yes
18680 $as_echo "$as_me: failed program was
:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ac_cv_lib_util_getloadavg=no
18686 rm -rf conftest.dSYM
18687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18691 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18692 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18693 if test "x
$ac_cv_lib_util_getloadavg" = x""yes; then
18694 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18699 if test $ac_have_func = no; then
18700 # There is a commonly available library for RS/6000 AIX.
18701 # Since it is not a standard part of AIX, it might be installed locally.
18702 ac_getloadavg_LIBS=$LIBS
18703 LIBS="-L/usr
/local
/lib
$LIBS"
18704 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18705 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18706 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18707 $as_echo_n "(cached
) " >&6
18709 ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-lgetloadavg $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18718 /* Override any GCC internal prototype to avoid an error.
18719 Use char because int might match the return type of a GCC
18720 builtin and then its argument prototype would still apply. */
18724 char getloadavg ();
18728 return getloadavg ();
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18740 $as_echo "$ac_try_echo") >&5
18741 (eval "$ac_link") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext && {
18751 test "$cross_compiling" = yes ||
18752 $as_test_x conftest$ac_exeext
18754 ac_cv_lib_getloadavg_getloadavg=yes
18756 $as_echo "$as_me: failed program was
:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 ac_cv_lib_getloadavg_getloadavg=no
18762 rm -rf conftest.dSYM
18763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18764 conftest$ac_exeext conftest.$ac_ext
18765 LIBS=$ac_check_lib_save_LIBS
18767 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18768 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18769 if test "x
$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
18770 LIBS="-lgetloadavg $LIBS"
18772 LIBS=$ac_getloadavg_LIBS
18777 # Make sure it is really in the library, if we think we found it,
18778 # otherwise set up the replacement function.
18780 for ac_func in getloadavg
18782 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18783 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18784 $as_echo_n "checking
for $ac_func...
" >&6; }
18785 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18786 $as_echo_n "(cached
) " >&6
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18796 #define $ac_func innocuous_$ac_func
18798 /* System header to define __stub macros and hopefully few prototypes,
18799 which can conflict with char $ac_func (); below.
18800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18801 <limits.h> exists even on freestanding compilers. */
18804 # include <limits.h>
18806 # include <assert.h>
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18818 /* The GNU C library defines this for functions which it implements
18819 to always fail with ENOSYS. Some functions are actually named
18820 something starting with __ and the normal name is an alias. */
18821 #if defined __stub_$ac_func || defined __stub___$ac_func
18828 return $ac_func ();
18833 rm -f conftest.$ac_objext conftest$ac_exeext
18834 if { (ac_try="$ac_link"
18835 case "(($ac_try" in
18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18837 *) ac_try_echo=$ac_try;;
18839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18840 $as_echo "$ac_try_echo") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext && {
18851 test "$cross_compiling" = yes ||
18852 $as_test_x conftest$ac_exeext
18854 eval "$as_ac_var=yes"
18856 $as_echo "$as_me: failed program was
:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 eval "$as_ac_var=no
"
18862 rm -rf conftest.dSYM
18863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18864 conftest$ac_exeext conftest.$ac_ext
18866 ac_res=`eval 'as_val=${'$as_ac_var'}
18867 $as_echo "$as_val"'`
18868 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18869 $as_echo "$ac_res" >&6; }
18870 as_val=`eval 'as_val=${'$as_ac_var'}
18871 $as_echo "$as_val"'`
18872 if test "x
$as_val" = x""yes; then
18873 cat >>confdefs.h <<_ACEOF
18874 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18878 case " $LIBOBJS " in
18879 *" getloadavg.
$ac_objext "* ) ;;
18880 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18885 cat >>confdefs.h <<\_ACEOF
18886 #define C_GETLOADAVG 1
18889 # Figure out what our getloadavg.c needs.
18891 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18892 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18893 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18894 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18895 $as_echo_n "(cached
) " >&6
18897 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18898 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18900 # Is the header compilable?
18901 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18902 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18909 $ac_includes_default
18910 #include <sys/dg_sys_info.h>
18912 rm -f conftest.$ac_objext
18913 if { (ac_try="$ac_compile"
18914 case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18918 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18919 $as_echo "$ac_try_echo") >&5
18920 (eval "$ac_compile") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1 >conftest.err
18924 cat conftest.err >&5
18925 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest.$ac_objext; then
18930 ac_header_compiler=yes
18932 $as_echo "$as_me: failed program was
:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_header_compiler=no
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18939 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18940 $as_echo "$ac_header_compiler" >&6; }
18942 # Is the header present?
18943 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18944 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18945 cat >conftest.$ac_ext <<_ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951 #include <sys/dg_sys_info.h>
18953 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18954 case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18959 $as_echo "$ac_try_echo") >&5
18960 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18966 (exit $ac_status); } >/dev/null && {
18967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18970 ac_header_preproc=yes
18972 $as_echo "$as_me: failed program was
:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_header_preproc=no
18978 rm -f conftest.err conftest.$ac_ext
18979 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18980 $as_echo "$ac_header_preproc" >&6; }
18982 # So? What about this header?
18983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18985 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18986 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18987 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18988 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18989 ac_header_preproc=yes
18992 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18993 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18995 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18997 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18999 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19001 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19002 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19003 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19007 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19008 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19009 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19010 $as_echo_n "(cached
) " >&6
19012 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19014 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19015 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19018 if test "x
$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19021 cat >>confdefs.h <<\_ACEOF
19026 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19027 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19028 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19029 $as_echo_n "(cached
) " >&6
19031 ac_check_lib_save_LIBS=$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 dg_sys_info ();
19050 return dg_sys_info ();
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_dgc_dg_sys_info=yes
19078 $as_echo "$as_me: failed program was
:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_lib_dgc_dg_sys_info=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_dgc_dg_sys_info" >&5
19090 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19091 if test "x
$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_LIBDGC 1
19104 if test "${ac_cv_header_locale_h+set}" = set; then
19105 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19106 $as_echo_n "checking
for locale.h...
" >&6; }
19107 if test "${ac_cv_header_locale_h+set}" = set; then
19108 $as_echo_n "(cached
) " >&6
19110 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19111 $as_echo "$ac_cv_header_locale_h" >&6; }
19113 # Is the header compilable?
19114 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19115 $as_echo_n "checking locale.h usability...
" >&6; }
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19122 $ac_includes_default
19123 #include <locale.h>
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19132 $as_echo "$ac_try_echo") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.$ac_objext; then
19143 ac_header_compiler=yes
19145 $as_echo "$as_me: failed program was
:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_header_compiler=no
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19153 $as_echo "$ac_header_compiler" >&6; }
19155 # Is the header present?
19156 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19157 $as_echo_n "checking locale.h presence...
" >&6; }
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19164 #include <locale.h>
19166 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19167 case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19172 $as_echo "$ac_try_echo") >&5
19173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19179 (exit $ac_status); } >/dev/null && {
19180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19183 ac_header_preproc=yes
19185 $as_echo "$as_me: failed program was
:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_header_preproc=no
19191 rm -f conftest.err conftest.$ac_ext
19192 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19193 $as_echo "$ac_header_preproc" >&6; }
19195 # So? What about this header?
19196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19198 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19199 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19200 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19201 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19202 ac_header_preproc=yes
19205 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19206 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19208 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19210 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19212 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19214 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19216 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19220 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19221 $as_echo_n "checking
for locale.h...
" >&6; }
19222 if test "${ac_cv_header_locale_h+set}" = set; then
19223 $as_echo_n "(cached
) " >&6
19225 ac_cv_header_locale_h=$ac_header_preproc
19227 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19228 $as_echo "$ac_cv_header_locale_h" >&6; }
19234 for ac_func in setlocale
19236 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19237 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19238 $as_echo_n "checking
for $ac_func...
" >&6; }
19239 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19240 $as_echo_n "(cached
) " >&6
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define $ac_func innocuous_$ac_func
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char $ac_func (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19258 # include <limits.h>
19260 # include <assert.h>
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_$ac_func || defined __stub___$ac_func
19282 return $ac_func ();
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19294 $as_echo "$ac_try_echo") >&5
19295 (eval "$ac_link") 2>conftest.er1
19297 grep -v '^ *+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest$ac_exeext && {
19305 test "$cross_compiling" = yes ||
19306 $as_test_x conftest$ac_exeext
19308 eval "$as_ac_var=yes"
19310 $as_echo "$as_me: failed program was
:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 eval "$as_ac_var=no
"
19316 rm -rf conftest.dSYM
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
19320 ac_res=`eval 'as_val=${'$as_ac_var'}
19321 $as_echo "$as_val"'`
19322 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19323 $as_echo "$ac_res" >&6; }
19324 as_val=`eval 'as_val=${'$as_ac_var'}
19325 $as_echo "$as_val"'`
19326 if test "x
$as_val" = x""yes; then
19327 cat >>confdefs.h <<_ACEOF
19328 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19335 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19336 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19337 # Irix 4.0.5F has the header but not the library.
19338 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19341 cat >>confdefs.h <<\_ACEOF
19347 if test $ac_have_func = no; then
19348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19349 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19350 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19352 $as_echo_n "(cached
) " >&6
19354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19355 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19357 # Is the header compilable?
19358 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19359 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 $ac_includes_default
19367 #include <inq_stats/cpustats.h>
19369 rm -f conftest.$ac_objext
19370 if { (ac_try="$ac_compile"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19376 $as_echo "$ac_try_echo") >&5
19377 (eval "$ac_compile") 2>conftest.er1
19379 grep -v '^ *+' conftest.er1 >conftest.err
19381 cat conftest.err >&5
19382 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest.$ac_objext; then
19387 ac_header_compiler=yes
19389 $as_echo "$as_me: failed program was
:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_header_compiler=no
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19397 $as_echo "$ac_header_compiler" >&6; }
19399 # Is the header present?
19400 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19401 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <inq_stats/cpustats.h>
19410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19416 $as_echo "$ac_try_echo") >&5
19417 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19419 grep -v '^ *+' conftest.er1 >conftest.err
19421 cat conftest.err >&5
19422 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19423 (exit $ac_status); } >/dev/null && {
19424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19425 test ! -s conftest.err
19427 ac_header_preproc=yes
19429 $as_echo "$as_me: failed program was
:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19432 ac_header_preproc=no
19435 rm -f conftest.err conftest.$ac_ext
19436 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19437 $as_echo "$ac_header_preproc" >&6; }
19439 # So? What about this header?
19440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19442 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19443 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19444 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19445 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19446 ac_header_preproc=yes
19449 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19450 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19451 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19452 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19453 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19454 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19455 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19456 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19457 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19458 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19459 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19460 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19464 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19465 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19466 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19467 $as_echo_n "(cached
) " >&6
19469 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19471 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19472 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19475 if test "x
$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19478 cat >>confdefs.h <<\_ACEOF
19483 cat >>confdefs.h <<\_ACEOF
19492 if test $ac_have_func = no; then
19493 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19494 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19495 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19497 $as_echo_n "(cached
) " >&6
19499 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19500 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19502 # Is the header compilable?
19503 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19504 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 $ac_includes_default
19512 #include <sys/cpustats.h>
19514 rm -f conftest.$ac_objext
19515 if { (ac_try="$ac_compile"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19521 $as_echo "$ac_try_echo") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1 >conftest.err
19526 cat conftest.err >&5
19527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19528 (exit $ac_status); } && {
19529 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest.$ac_objext; then
19532 ac_header_compiler=yes
19534 $as_echo "$as_me: failed program was
:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_header_compiler=no
19540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19542 $as_echo "$ac_header_compiler" >&6; }
19544 # Is the header present?
19545 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19546 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19547 cat >conftest.$ac_ext <<_ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19553 #include <sys/cpustats.h>
19555 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19556 case "(($ac_try" in
19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558 *) ac_try_echo=$ac_try;;
19560 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19561 $as_echo "$ac_try_echo") >&5
19562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19568 (exit $ac_status); } >/dev/null && {
19569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19570 test ! -s conftest.err
19572 ac_header_preproc=yes
19574 $as_echo "$as_me: failed program was
:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 ac_header_preproc=no
19580 rm -f conftest.err conftest.$ac_ext
19581 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19582 $as_echo "$ac_header_preproc" >&6; }
19584 # So? What about this header?
19585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19587 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19588 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19589 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19590 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19591 ac_header_preproc=yes
19594 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19595 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19596 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19597 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19598 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19599 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19600 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19601 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19602 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19603 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19604 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19605 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19609 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19610 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19611 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19612 $as_echo_n "(cached
) " >&6
19614 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19616 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19617 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19620 if test "x
$ac_cv_header_sys_cpustats_h" = x""yes; then
19621 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19630 if test $ac_have_func = no; then
19632 for ac_header in mach/mach.h
19634 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19636 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19637 $as_echo_n "checking
for $ac_header...
" >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19639 $as_echo_n "(cached
) " >&6
19641 ac_res=`eval 'as_val=${'$as_ac_Header'}
19642 $as_echo "$as_val"'`
19643 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19644 $as_echo "$ac_res" >&6; }
19646 # Is the header compilable?
19647 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19648 $as_echo_n "checking
$ac_header usability...
" >&6; }
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 $ac_includes_default
19656 #include <$ac_header>
19658 rm -f conftest.$ac_objext
19659 if { (ac_try="$ac_compile"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19664 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19665 $as_echo "$ac_try_echo") >&5
19666 (eval "$ac_compile") 2>conftest.er1
19668 grep -v '^ *+' conftest.er1 >conftest.err
19670 cat conftest.err >&5
19671 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19672 (exit $ac_status); } && {
19673 test -z "$ac_c_werror_flag" ||
19674 test ! -s conftest.err
19675 } && test -s conftest.$ac_objext; then
19676 ac_header_compiler=yes
19678 $as_echo "$as_me: failed program was
:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 ac_header_compiler=no
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19686 $as_echo "$ac_header_compiler" >&6; }
19688 # Is the header present?
19689 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19690 $as_echo_n "checking
$ac_header presence...
" >&6; }
19691 cat >conftest.$ac_ext <<_ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697 #include <$ac_header>
19699 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19712 (exit $ac_status); } >/dev/null && {
19713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19716 ac_header_preproc=yes
19718 $as_echo "$as_me: failed program was
:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_header_preproc=no
19724 rm -f conftest.err conftest.$ac_ext
19725 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19726 $as_echo "$ac_header_preproc" >&6; }
19728 # So? What about this header?
19729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19731 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19732 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19733 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19735 ac_header_preproc=yes
19738 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19739 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19740 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19741 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19742 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19743 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19744 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19745 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19746 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19748 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19749 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19753 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19754 $as_echo_n "checking
for $ac_header...
" >&6; }
19755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19756 $as_echo_n "(cached
) " >&6
19758 eval "$as_ac_Header=\
$ac_header_preproc"
19760 ac_res=`eval 'as_val=${'$as_ac_Header'}
19761 $as_echo "$as_val"'`
19762 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19763 $as_echo "$ac_res" >&6; }
19766 as_val=`eval 'as_val=${'$as_ac_Header'}
19767 $as_echo "$as_val"'`
19768 if test "x
$as_val" = x""yes; then
19769 cat >>confdefs.h <<_ACEOF
19770 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19780 for ac_header in nlist.h
19782 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19784 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19785 $as_echo_n "checking
for $ac_header...
" >&6; }
19786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19787 $as_echo_n "(cached
) " >&6
19789 ac_res=`eval 'as_val=${'$as_ac_Header'}
19790 $as_echo "$as_val"'`
19791 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19792 $as_echo "$ac_res" >&6; }
19794 # Is the header compilable?
19795 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19796 $as_echo_n "checking
$ac_header usability...
" >&6; }
19797 cat >conftest.$ac_ext <<_ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19804 #include <$ac_header>
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19813 $as_echo "$ac_try_echo") >&5
19814 (eval "$ac_compile") 2>conftest.er1
19816 grep -v '^ *+' conftest.er1 >conftest.err
19818 cat conftest.err >&5
19819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19820 (exit $ac_status); } && {
19821 test -z "$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19823 } && test -s conftest.$ac_objext; then
19824 ac_header_compiler=yes
19826 $as_echo "$as_me: failed program was
:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_header_compiler=no
19832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19833 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19834 $as_echo "$ac_header_compiler" >&6; }
19836 # Is the header present?
19837 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19838 $as_echo_n "checking
$ac_header presence...
" >&6; }
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <$ac_header>
19847 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19848 case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19853 $as_echo "$ac_try_echo") >&5
19854 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19856 grep -v '^ *+' conftest.er1 >conftest.err
19858 cat conftest.err >&5
19859 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19860 (exit $ac_status); } >/dev/null && {
19861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19864 ac_header_preproc=yes
19866 $as_echo "$as_me: failed program was
:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_header_preproc=no
19872 rm -f conftest.err conftest.$ac_ext
19873 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19874 $as_echo "$ac_header_preproc" >&6; }
19876 # So? What about this header?
19877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19879 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19880 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19881 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19883 ac_header_preproc=yes
19886 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19887 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19889 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19891 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19892 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19893 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19894 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19896 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19897 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19901 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19902 $as_echo_n "checking
for $ac_header...
" >&6; }
19903 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19904 $as_echo_n "(cached
) " >&6
19906 eval "$as_ac_Header=\
$ac_header_preproc"
19908 ac_res=`eval 'as_val=${'$as_ac_Header'}
19909 $as_echo "$as_val"'`
19910 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19911 $as_echo "$ac_res" >&6; }
19914 as_val=`eval 'as_val=${'$as_ac_Header'}
19915 $as_echo "$as_val"'`
19916 if test "x
$as_val" = x""yes; then
19917 cat >>confdefs.h <<_ACEOF
19918 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19920 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19921 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19922 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19923 $as_echo_n "(cached
) " >&6
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19936 static struct nlist ac_aggr;
19937 if (ac_aggr.n_un.n_name)
19943 rm -f conftest.$ac_objext
19944 if { (ac_try="$ac_compile"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_compile") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest.$ac_objext; then
19961 ac_cv_member_struct_nlist_n_un_n_name=yes
19963 $as_echo "$as_me: failed program was
:" >&5
19964 sed 's/^/| /' conftest.$ac_ext >&5
19966 cat >conftest.$ac_ext <<_ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19977 static struct nlist ac_aggr;
19978 if (sizeof ac_aggr.n_un.n_name)
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19991 $as_echo "$ac_try_echo") >&5
19992 (eval "$ac_compile") 2>conftest.er1
19994 grep -v '^ *+' conftest.er1 >conftest.err
19996 cat conftest.err >&5
19997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest.$ac_objext; then
20002 ac_cv_member_struct_nlist_n_un_n_name=yes
20004 $as_echo "$as_me: failed program was
:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_member_struct_nlist_n_un_n_name=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20016 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20017 if test "x
$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20024 cat >>confdefs.h <<\_ACEOF
20025 #define NLIST_NAME_UNION 1
20039 # Some definitions of getloadavg require that the program be installed setgid.
20040 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20041 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20042 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20043 $as_echo_n "(cached
) " >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20052 #ifdef LDAV_PRIVILEGED
20053 Yowza Am I SETGID yet
20056 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20057 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20058 ac_cv_func_getloadavg_setgid=yes
20060 ac_cv_func_getloadavg_setgid=no
20065 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20066 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20067 if test $ac_cv_func_getloadavg_setgid = yes; then
20070 cat >>confdefs.h <<\_ACEOF
20071 #define GETLOADAVG_PRIVILEGED 1
20078 if test $ac_cv_func_getloadavg_setgid = yes; then
20079 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20080 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20081 if test "${ac_cv_group_kmem+set}" = set; then
20082 $as_echo_n "(cached
) " >&6
20084 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20085 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20086 # If we got an error (system does not support symlinks), try without -L.
20087 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20088 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20089 | sed -ne 's/[ ][ ]*/ /g;
20090 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20094 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20095 $as_echo "$ac_cv_group_kmem" >&6; }
20096 KMEM_GROUP=$ac_cv_group_kmem
20098 if test "x
$ac_save_LIBS" = x; then
20099 GETLOADAVG_LIBS=$LIBS
20101 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20107 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20108 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20109 if test "${ac_cv_sys_largefile_source+set}" = set; then
20110 $as_echo_n "(cached
) " >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 #include <sys/types.h> /* for off_t */
20124 int (*fp) (FILE *, off_t, int) = fseeko;
20125 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (ac_try="$ac_link"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_link") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest$ac_exeext && {
20148 test "$cross_compiling" = yes ||
20149 $as_test_x conftest$ac_exeext
20151 ac_cv_sys_largefile_source=no; break
20153 $as_echo "$as_me: failed program was
:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20159 rm -rf conftest.dSYM
20160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20161 conftest$ac_exeext conftest.$ac_ext
20162 cat >conftest.$ac_ext <<_ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #define _LARGEFILE_SOURCE 1
20169 #include <sys/types.h> /* for off_t */
20174 int (*fp) (FILE *, off_t, int) = fseeko;
20175 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20187 $as_echo "$ac_try_echo") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext && {
20198 test "$cross_compiling" = yes ||
20199 $as_test_x conftest$ac_exeext
20201 ac_cv_sys_largefile_source=1; break
20203 $as_echo "$as_me: failed program was
:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20209 rm -rf conftest.dSYM
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20212 ac_cv_sys_largefile_source=unknown
20216 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20217 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20218 case $ac_cv_sys_largefile_source in #(
20221 cat >>confdefs.h <<_ACEOF
20222 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20228 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20229 # in glibc 2.1.3, but that breaks too many other things.
20230 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20231 if test $ac_cv_sys_largefile_source != unknown; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_FSEEKO 1
20240 # Configure getopt.
20241 # getopt.m4 serial 10
20243 # The getopt module assume you want GNU getopt, with getopt_long etc,
20244 # rather than vanilla POSIX getopt. This means your your code should
20245 # always include <getopt.h> for the getopt prototypes.
20257 # Prerequisites of lib/getopt*.
20264 for ac_header in getopt.h
20266 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20268 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20269 $as_echo_n "checking
for $ac_header...
" >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20271 $as_echo_n "(cached
) " >&6
20273 ac_res=`eval 'as_val=${'$as_ac_Header'}
20274 $as_echo "$as_val"'`
20275 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20276 $as_echo "$ac_res" >&6; }
20278 # Is the header compilable?
20279 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20280 $as_echo_n "checking
$ac_header usability...
" >&6; }
20281 cat >conftest.$ac_ext <<_ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 $ac_includes_default
20288 #include <$ac_header>
20290 rm -f conftest.$ac_objext
20291 if { (ac_try="$ac_compile"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_header_compiler=yes
20310 $as_echo "$as_me: failed program was
:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_header_compiler=no
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20318 $as_echo "$ac_header_compiler" >&6; }
20320 # Is the header present?
20321 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20322 $as_echo_n "checking
$ac_header presence...
" >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <$ac_header>
20331 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20337 $as_echo "$ac_try_echo") >&5
20338 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20340 grep -v '^ *+' conftest.er1 >conftest.err
20342 cat conftest.err >&5
20343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20344 (exit $ac_status); } >/dev/null && {
20345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20346 test ! -s conftest.err
20348 ac_header_preproc=yes
20350 $as_echo "$as_me: failed program was
:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_header_preproc=no
20356 rm -f conftest.err conftest.$ac_ext
20357 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20358 $as_echo "$ac_header_preproc" >&6; }
20360 # So? What about this header?
20361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20364 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20366 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20367 ac_header_preproc=yes
20370 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20371 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20372 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20373 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20374 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20375 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20376 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20377 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20378 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20380 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20381 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20385 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20386 $as_echo_n "checking
for $ac_header...
" >&6; }
20387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20388 $as_echo_n "(cached
) " >&6
20390 eval "$as_ac_Header=\
$ac_header_preproc"
20392 ac_res=`eval 'as_val=${'$as_ac_Header'}
20393 $as_echo "$as_val"'`
20394 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20395 $as_echo "$ac_res" >&6; }
20398 as_val=`eval 'as_val=${'$as_ac_Header'}
20399 $as_echo "$as_val"'`
20400 if test "x
$as_val" = x""yes; then
20401 cat >>confdefs.h <<_ACEOF
20402 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20411 if test -z "$GETOPT_H"; then
20413 for ac_func in getopt_long_only
20415 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20416 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20417 $as_echo_n "checking
for $ac_func...
" >&6; }
20418 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20419 $as_echo_n "(cached
) " >&6
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20429 #define $ac_func innocuous_$ac_func
20431 /* System header to define __stub macros and hopefully few prototypes,
20432 which can conflict with char $ac_func (); below.
20433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20434 <limits.h> exists even on freestanding compilers. */
20437 # include <limits.h>
20439 # include <assert.h>
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20451 /* The GNU C library defines this for functions which it implements
20452 to always fail with ENOSYS. Some functions are actually named
20453 something starting with __ and the normal name is an alias. */
20454 #if defined __stub_$ac_func || defined __stub___$ac_func
20461 return $ac_func ();
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20472 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20473 $as_echo "$ac_try_echo") >&5
20474 (eval "$ac_link") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest$ac_exeext && {
20484 test "$cross_compiling" = yes ||
20485 $as_test_x conftest$ac_exeext
20487 eval "$as_ac_var=yes"
20489 $as_echo "$as_me: failed program was
:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 eval "$as_ac_var=no
"
20495 rm -rf conftest.dSYM
20496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20497 conftest$ac_exeext conftest.$ac_ext
20499 ac_res=`eval 'as_val=${'$as_ac_var'}
20500 $as_echo "$as_val"'`
20501 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20502 $as_echo "$ac_res" >&6; }
20503 as_val=`eval 'as_val=${'$as_ac_var'}
20504 $as_echo "$as_val"'`
20505 if test "x
$as_val" = x""yes; then
20506 cat >>confdefs.h <<_ACEOF
20507 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20517 if test -z "$GETOPT_H"; then
20518 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20519 $as_echo_n "checking whether optreset is declared...
" >&6; }
20520 if test "${ac_cv_have_decl_optreset+set}" = set; then
20521 $as_echo_n "(cached
) " >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 #include <getopt.h>
20542 rm -f conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20549 $as_echo "$ac_try_echo") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_cv_have_decl_optreset=yes
20562 $as_echo "$as_me: failed program was
:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_cv_have_decl_optreset=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20571 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20572 if test "x
$ac_cv_have_decl_optreset" = x""yes; then
20578 if test -z "$GETOPT_H"; then
20579 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20580 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20581 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20582 $as_echo_n "(cached
) " >&6
20584 if test "$cross_compiling" = yes; then
20585 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20586 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20587 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20588 $as_echo_n "(cached
) " >&6
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20596 #include <getopt.h>
20601 #ifndef getopt_clip
20602 (void) getopt_clip;
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_compile") 2>conftest.er1
20619 grep -v '^ *+' conftest.er1 >conftest.err
20621 cat conftest.err >&5
20622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20623 (exit $ac_status); } && {
20624 test -z "$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 } && test -s conftest.$ac_objext; then
20627 ac_cv_have_decl_getopt_clip=yes
20629 $as_echo "$as_me: failed program was
:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20632 ac_cv_have_decl_getopt_clip=no
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20637 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20638 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20639 if test "x
$ac_cv_have_decl_getopt_clip" = x""yes; then
20640 gl_cv_func_gnu_getopt=no
20642 gl_cv_func_gnu_getopt=yes
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <getopt.h>
20658 myargv[0] = "conftest
";
20661 return getopt (2, myargv, "+a
") != '?';
20667 rm -f conftest$ac_exeext
20668 if { (ac_try="$ac_link"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20674 $as_echo "$ac_try_echo") >&5
20675 (eval "$ac_link") 2>&5
20677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20679 { (case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20684 $as_echo "$ac_try_echo") >&5
20685 (eval "$ac_try") 2>&5
20687 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 gl_cv_func_gnu_getopt=yes
20691 $as_echo "$as_me: program exited with status
$ac_status" >&5
20692 $as_echo "$as_me: failed program was
:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ( exit $ac_status )
20696 gl_cv_func_gnu_getopt=no
20698 rm -rf conftest.dSYM
20699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20704 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20705 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20706 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20713 if test -n "$GETOPT_H"; then
20718 cat >>confdefs.h <<\_ACEOF
20719 #define __GETOPT_PREFIX rpl_
20725 GETOPTOBJS='getopt.o getopt1.o'
20732 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20733 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20734 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20735 $as_echo_n "(cached
) " >&6
20737 # Use it with a single arg.
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20760 $as_echo "$ac_try_echo") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20763 grep -v '^ *+' conftest.er1 >conftest.err
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20771 ac_cv_func_getpgrp_void=no
20773 $as_echo "$as_me: failed program was
:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_cv_func_getpgrp_void=yes
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20782 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20783 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20784 if test $ac_cv_func_getpgrp_void = yes; then
20786 cat >>confdefs.h <<\_ACEOF
20787 #define GETPGRP_VOID 1
20794 for ac_func in strftime
20796 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20797 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20798 $as_echo_n "checking
for $ac_func...
" >&6; }
20799 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20800 $as_echo_n "(cached
) " >&6
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20810 #define $ac_func innocuous_$ac_func
20812 /* System header to define __stub macros and hopefully few prototypes,
20813 which can conflict with char $ac_func (); below.
20814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20815 <limits.h> exists even on freestanding compilers. */
20818 # include <limits.h>
20820 # include <assert.h>
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20832 /* The GNU C library defines this for functions which it implements
20833 to always fail with ENOSYS. Some functions are actually named
20834 something starting with __ and the normal name is an alias. */
20835 #if defined __stub_$ac_func || defined __stub___$ac_func
20842 return $ac_func ();
20847 rm -f conftest.$ac_objext conftest$ac_exeext
20848 if { (ac_try="$ac_link"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20854 $as_echo "$ac_try_echo") >&5
20855 (eval "$ac_link") 2>conftest.er1
20857 grep -v '^ *+' conftest.er1 >conftest.err
20859 cat conftest.err >&5
20860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20861 (exit $ac_status); } && {
20862 test -z "$ac_c_werror_flag" ||
20863 test ! -s conftest.err
20864 } && test -s conftest$ac_exeext && {
20865 test "$cross_compiling" = yes ||
20866 $as_test_x conftest$ac_exeext
20868 eval "$as_ac_var=yes"
20870 $as_echo "$as_me: failed program was
:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 eval "$as_ac_var=no
"
20876 rm -rf conftest.dSYM
20877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20878 conftest$ac_exeext conftest.$ac_ext
20880 ac_res=`eval 'as_val=${'$as_ac_var'}
20881 $as_echo "$as_val"'`
20882 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20883 $as_echo "$ac_res" >&6; }
20884 as_val=`eval 'as_val=${'$as_ac_var'}
20885 $as_echo "$as_val"'`
20886 if test "x
$as_val" = x""yes; then
20887 cat >>confdefs.h <<_ACEOF
20888 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20892 # strftime is in -lintl on SCO UNIX.
20893 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20894 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20895 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20896 $as_echo_n "(cached
) " >&6
20898 ac_check_lib_save_LIBS=$LIBS
20899 LIBS="-lintl $LIBS"
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20907 /* Override any GCC internal prototype to avoid an error.
20908 Use char because int might match the return type of a GCC
20909 builtin and then its argument prototype would still apply. */
20917 return strftime ();
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (ac_try="$ac_link"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20929 $as_echo "$ac_try_echo") >&5
20930 (eval "$ac_link") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest$ac_exeext && {
20940 test "$cross_compiling" = yes ||
20941 $as_test_x conftest$ac_exeext
20943 ac_cv_lib_intl_strftime=yes
20945 $as_echo "$as_me: failed program was
:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_cv_lib_intl_strftime=no
20951 rm -rf conftest.dSYM
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20954 LIBS=$ac_check_lib_save_LIBS
20956 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20957 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20958 if test "x
$ac_cv_lib_intl_strftime" = x""yes; then
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_STRFTIME 1
20963 LIBS="-lintl $LIBS"
20972 for ac_func in grantpt
20974 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20975 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20976 $as_echo_n "checking
for $ac_func...
" >&6; }
20977 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20978 $as_echo_n "(cached
) " >&6
20980 cat >conftest.$ac_ext <<_ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h. */
20986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20988 #define $ac_func innocuous_$ac_func
20990 /* System header to define __stub macros and hopefully few prototypes,
20991 which can conflict with char $ac_func (); below.
20992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20993 <limits.h> exists even on freestanding compilers. */
20996 # include <limits.h>
20998 # include <assert.h>
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21010 /* The GNU C library defines this for functions which it implements
21011 to always fail with ENOSYS. Some functions are actually named
21012 something starting with __ and the normal name is an alias. */
21013 #if defined __stub_$ac_func || defined __stub___$ac_func
21020 return $ac_func ();
21025 rm -f conftest.$ac_objext conftest$ac_exeext
21026 if { (ac_try="$ac_link"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_link") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest$ac_exeext && {
21043 test "$cross_compiling" = yes ||
21044 $as_test_x conftest$ac_exeext
21046 eval "$as_ac_var=yes"
21048 $as_echo "$as_me: failed program was
:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21051 eval "$as_ac_var=no
"
21054 rm -rf conftest.dSYM
21055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21056 conftest$ac_exeext conftest.$ac_ext
21058 ac_res=`eval 'as_val=${'$as_ac_var'}
21059 $as_echo "$as_val"'`
21060 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21061 $as_echo "$ac_res" >&6; }
21062 as_val=`eval 'as_val=${'$as_ac_var'}
21063 $as_echo "$as_val"'`
21064 if test "x
$as_val" = x""yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21073 # PTY-related GNU extensions.
21075 for ac_func in getpt
21077 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21078 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21079 $as_echo_n "checking
for $ac_func...
" >&6; }
21080 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21081 $as_echo_n "(cached
) " >&6
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21091 #define $ac_func innocuous_$ac_func
21093 /* System header to define __stub macros and hopefully few prototypes,
21094 which can conflict with char $ac_func (); below.
21095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21096 <limits.h> exists even on freestanding compilers. */
21099 # include <limits.h>
21101 # include <assert.h>
21106 /* Override any GCC internal prototype to avoid an error.
21107 Use char because int might match the return type of a GCC
21108 builtin and then its argument prototype would still apply. */
21113 /* The GNU C library defines this for functions which it implements
21114 to always fail with ENOSYS. Some functions are actually named
21115 something starting with __ and the normal name is an alias. */
21116 #if defined __stub_$ac_func || defined __stub___$ac_func
21123 return $ac_func ();
21128 rm -f conftest.$ac_objext conftest$ac_exeext
21129 if { (ac_try="$ac_link"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21135 $as_echo "$ac_try_echo") >&5
21136 (eval "$ac_link") 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest$ac_exeext && {
21146 test "$cross_compiling" = yes ||
21147 $as_test_x conftest$ac_exeext
21149 eval "$as_ac_var=yes"
21151 $as_echo "$as_me: failed program was
:" >&5
21152 sed 's/^/| /' conftest.$ac_ext >&5
21154 eval "$as_ac_var=no
"
21157 rm -rf conftest.dSYM
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21161 ac_res=`eval 'as_val=${'$as_ac_var'}
21162 $as_echo "$as_val"'`
21163 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21164 $as_echo "$ac_res" >&6; }
21165 as_val=`eval 'as_val=${'$as_ac_var'}
21166 $as_echo "$as_val"'`
21167 if test "x
$as_val" = x""yes; then
21168 cat >>confdefs.h <<_ACEOF
21169 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21176 # Check this now, so that we will NOT find the above functions in ncurses.
21177 # That is because we have not set up to link ncurses in lib-src.
21178 # It's better to believe a function is not available
21179 # than to expect to find it in ncurses.
21180 # Also we need tputs and frieds to be able to build at all.
21181 have_tputs_et_al=true
21182 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21183 $as_echo_n "checking
for library containing tputs...
" >&6; }
21184 if test "${ac_cv_search_tputs+set}" = set; then
21185 $as_echo_n "(cached
) " >&6
21187 ac_func_search_save_LIBS=$LIBS
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21195 /* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21210 for ac_lib in '' ncurses terminfo termcap; do
21211 if test -z "$ac_lib"; then
21212 ac_res="none required
"
21215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21217 rm -f conftest.$ac_objext conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21224 $as_echo "$ac_try_echo") >&5
21225 (eval "$ac_link") 2>conftest.er1
21227 grep -v '^ *+' conftest.er1 >conftest.err
21229 cat conftest.err >&5
21230 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest$ac_exeext && {
21235 test "$cross_compiling" = yes ||
21236 $as_test_x conftest$ac_exeext
21238 ac_cv_search_tputs=$ac_res
21240 $as_echo "$as_me: failed program was
:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21246 rm -rf conftest.dSYM
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 if test "${ac_cv_search_tputs+set}" = set; then
21253 if test "${ac_cv_search_tputs+set}" = set; then
21256 ac_cv_search_tputs=no
21258 rm conftest.$ac_ext
21259 LIBS=$ac_func_search_save_LIBS
21261 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21262 $as_echo "$ac_cv_search_tputs" >&6; }
21263 ac_res=$ac_cv_search_tputs
21264 if test "$ac_res" != no; then
21265 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21268 have_tputs_et_al=false
21271 if test "$have_tputs_et_al" != true; then
21272 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21273 Maybe some development libraries/packages are missing? Try installing
21274 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21275 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21276 Maybe some development libraries
/packages are missing? Try installing
21277 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21278 { (exit 1); exit 1; }; }
21280 # Must define this when any termcap library is found.
21282 cat >>confdefs.h <<\_ACEOF
21283 #define HAVE_LIBNCURSES 1
21287 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #include <netinet/in.h>
21297 #include <arpa/nameser.h>
21298 #include <resolv.h>
21307 rm -f conftest.$ac_objext conftest$ac_exeext
21308 if { (ac_try="$ac_link"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21314 $as_echo "$ac_try_echo") >&5
21315 (eval "$ac_link") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest$ac_exeext && {
21325 test "$cross_compiling" = yes ||
21326 $as_test_x conftest$ac_exeext
21330 $as_echo "$as_me: failed program was
:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21336 rm -rf conftest.dSYM
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338 conftest$ac_exeext conftest.$ac_ext
21339 if test "$have_res_init" = no; then
21341 LIBS="$LIBS -lresolv"
21342 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21343 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 #include <netinet/in.h>
21351 #include <arpa/nameser.h>
21352 #include <resolv.h>
21361 rm -f conftest.$ac_objext conftest$ac_exeext
21362 if { (ac_try="$ac_link"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21368 $as_echo "$ac_try_echo") >&5
21369 (eval "$ac_link") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest$ac_exeext && {
21379 test "$cross_compiling" = yes ||
21380 $as_test_x conftest$ac_exeext
21384 $as_echo "$as_me: failed program was
:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21390 rm -rf conftest.dSYM
21391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21392 conftest$ac_exeext conftest.$ac_ext
21393 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21394 $as_echo "$have_res_init" >&6; }
21395 if test "$have_res_init" = yes ; then
21401 if test "$have_res_init" = yes; then
21403 cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_RES_INIT 1
21409 # Do we need the Hesiod library to provide the support routines?
21411 if test "$with_hesiod" != no ; then
21412 # Don't set $LIBS here -- see comments above. FIXME which comments?
21413 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21414 $as_echo_n "checking
for res_send...
" >&6; }
21415 if test "${ac_cv_func_res_send+set}" = set; then
21416 $as_echo_n "(cached
) " >&6
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21426 #define res_send innocuous_res_send
21428 /* System header to define __stub macros and hopefully few prototypes,
21429 which can conflict with char res_send (); below.
21430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21431 <limits.h> exists even on freestanding compilers. */
21434 # include <limits.h>
21436 # include <assert.h>
21441 /* Override any GCC internal prototype to avoid an error.
21442 Use char because int might match the return type of a GCC
21443 builtin and then its argument prototype would still apply. */
21448 /* The GNU C library defines this for functions which it implements
21449 to always fail with ENOSYS. Some functions are actually named
21450 something starting with __ and the normal name is an alias. */
21451 #if defined __stub_res_send || defined __stub___res_send
21458 return res_send ();
21463 rm -f conftest.$ac_objext conftest$ac_exeext
21464 if { (ac_try="$ac_link"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21470 $as_echo "$ac_try_echo") >&5
21471 (eval "$ac_link") 2>conftest.er1
21473 grep -v '^ *+' conftest.er1 >conftest.err
21475 cat conftest.err >&5
21476 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21477 (exit $ac_status); } && {
21478 test -z "$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 } && test -s conftest$ac_exeext && {
21481 test "$cross_compiling" = yes ||
21482 $as_test_x conftest$ac_exeext
21484 ac_cv_func_res_send=yes
21486 $as_echo "$as_me: failed program was
:" >&5
21487 sed 's/^/| /' conftest.$ac_ext >&5
21489 ac_cv_func_res_send=no
21492 rm -rf conftest.dSYM
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21496 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21497 $as_echo "$ac_cv_func_res_send" >&6; }
21498 if test "x
$ac_cv_func_res_send" = x""yes; then
21501 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21502 $as_echo_n "checking
for __res_send...
" >&6; }
21503 if test "${ac_cv_func___res_send+set}" = set; then
21504 $as_echo_n "(cached
) " >&6
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514 #define __res_send innocuous___res_send
21516 /* System header to define __stub macros and hopefully few prototypes,
21517 which can conflict with char __res_send (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21522 # include <limits.h>
21524 # include <assert.h>
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21535 char __res_send ();
21536 /* The GNU C library defines this for functions which it implements
21537 to always fail with ENOSYS. Some functions are actually named
21538 something starting with __ and the normal name is an alias. */
21539 #if defined __stub___res_send || defined __stub_____res_send
21546 return __res_send ();
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21558 $as_echo "$ac_try_echo") >&5
21559 (eval "$ac_link") 2>conftest.er1
21561 grep -v '^ *+' conftest.er1 >conftest.err
21563 cat conftest.err >&5
21564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21565 (exit $ac_status); } && {
21566 test -z "$ac_c_werror_flag" ||
21567 test ! -s conftest.err
21568 } && test -s conftest$ac_exeext && {
21569 test "$cross_compiling" = yes ||
21570 $as_test_x conftest$ac_exeext
21572 ac_cv_func___res_send=yes
21574 $as_echo "$as_me: failed program was
:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_func___res_send=no
21580 rm -rf conftest.dSYM
21581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21582 conftest$ac_exeext conftest.$ac_ext
21584 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21585 $as_echo "$ac_cv_func___res_send" >&6; }
21586 if test "x
$ac_cv_func___res_send" = x""yes; then
21589 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21590 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21591 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21592 $as_echo_n "(cached
) " >&6
21594 ac_check_lib_save_LIBS=$LIBS
21595 LIBS="-lresolv $LIBS"
21596 cat >conftest.$ac_ext <<_ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h. */
21603 /* Override any GCC internal prototype to avoid an error.
21604 Use char because int might match the return type of a GCC
21605 builtin and then its argument prototype would still apply. */
21613 return res_send ();
21618 rm -f conftest.$ac_objext conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21624 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21625 $as_echo "$ac_try_echo") >&5
21626 (eval "$ac_link") 2>conftest.er1
21628 grep -v '^ *+' conftest.er1 >conftest.err
21630 cat conftest.err >&5
21631 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest$ac_exeext && {
21636 test "$cross_compiling" = yes ||
21637 $as_test_x conftest$ac_exeext
21639 ac_cv_lib_resolv_res_send=yes
21641 $as_echo "$as_me: failed program was
:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_cv_lib_resolv_res_send=no
21647 rm -rf conftest.dSYM
21648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21649 conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21652 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21653 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21654 if test "x
$ac_cv_lib_resolv_res_send" = x""yes; then
21657 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21658 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21659 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21660 $as_echo_n "(cached
) " >&6
21662 ac_check_lib_save_LIBS=$LIBS
21663 LIBS="-lresolv $LIBS"
21664 cat >conftest.$ac_ext <<_ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h. */
21671 /* Override any GCC internal prototype to avoid an error.
21672 Use char because int might match the return type of a GCC
21673 builtin and then its argument prototype would still apply. */
21677 char __res_send ();
21681 return __res_send ();
21686 rm -f conftest.$ac_objext conftest$ac_exeext
21687 if { (ac_try="$ac_link"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21693 $as_echo "$ac_try_echo") >&5
21694 (eval "$ac_link") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest$ac_exeext && {
21704 test "$cross_compiling" = yes ||
21705 $as_test_x conftest$ac_exeext
21707 ac_cv_lib_resolv___res_send=yes
21709 $as_echo "$as_me: failed program was
:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 ac_cv_lib_resolv___res_send=no
21715 rm -rf conftest.dSYM
21716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21717 conftest$ac_exeext conftest.$ac_ext
21718 LIBS=$ac_check_lib_save_LIBS
21720 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21721 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21722 if test "x
$ac_cv_lib_resolv___res_send" = x""yes; then
21732 if test "$resolv" = yes ; then
21737 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21738 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21739 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21740 $as_echo_n "(cached
) " >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21750 #define hes_getmailhost innocuous_hes_getmailhost
21752 /* System header to define __stub macros and hopefully few prototypes,
21753 which can conflict with char hes_getmailhost (); below.
21754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21755 <limits.h> exists even on freestanding compilers. */
21758 # include <limits.h>
21760 # include <assert.h>
21763 #undef hes_getmailhost
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21771 char hes_getmailhost ();
21772 /* The GNU C library defines this for functions which it implements
21773 to always fail with ENOSYS. Some functions are actually named
21774 something starting with __ and the normal name is an alias. */
21775 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21782 return hes_getmailhost ();
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (ac_try="$ac_link"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21794 $as_echo "$ac_try_echo") >&5
21795 (eval "$ac_link") 2>conftest.er1
21797 grep -v '^ *+' conftest.er1 >conftest.err
21799 cat conftest.err >&5
21800 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21801 (exit $ac_status); } && {
21802 test -z "$ac_c_werror_flag" ||
21803 test ! -s conftest.err
21804 } && test -s conftest$ac_exeext && {
21805 test "$cross_compiling" = yes ||
21806 $as_test_x conftest$ac_exeext
21808 ac_cv_func_hes_getmailhost=yes
21810 $as_echo "$as_me: failed program was
:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_func_hes_getmailhost=no
21816 rm -rf conftest.dSYM
21817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21818 conftest$ac_exeext conftest.$ac_ext
21820 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21821 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21822 if test "x
$ac_cv_func_hes_getmailhost" = x""yes; then
21825 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21826 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21827 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21828 $as_echo_n "(cached
) " >&6
21830 ac_check_lib_save_LIBS=$LIBS
21831 LIBS="-lhesiod $RESOLVLIB $LIBS"
21832 cat >conftest.$ac_ext <<_ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21839 /* Override any GCC internal prototype to avoid an error.
21840 Use char because int might match the return type of a GCC
21841 builtin and then its argument prototype would still apply. */
21845 char hes_getmailhost ();
21849 return hes_getmailhost ();
21854 rm -f conftest.$ac_objext conftest$ac_exeext
21855 if { (ac_try="$ac_link"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21861 $as_echo "$ac_try_echo") >&5
21862 (eval "$ac_link") 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest$ac_exeext && {
21872 test "$cross_compiling" = yes ||
21873 $as_test_x conftest$ac_exeext
21875 ac_cv_lib_hesiod_hes_getmailhost=yes
21877 $as_echo "$as_me: failed program was
:" >&5
21878 sed 's/^/| /' conftest.$ac_ext >&5
21880 ac_cv_lib_hesiod_hes_getmailhost=no
21883 rm -rf conftest.dSYM
21884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21885 conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21888 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21889 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21890 if test "x
$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
21899 if test x"$hesiod" = xyes; then
21901 cat >>confdefs.h <<\_ACEOF
21902 #define HAVE_LIBHESIOD 1
21910 # Do we need libresolv (due to res_init or Hesiod)?
21911 if test "$resolv" = yes ; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_LIBRESOLV 1
21923 # These tell us which Kerberos-related libraries to use.
21930 if test "${with_kerberos}" != no; then
21931 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21932 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21933 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21934 $as_echo_n "(cached
) " >&6
21936 ac_check_lib_save_LIBS=$LIBS
21937 LIBS="-lcom_err $LIBS"
21938 cat >conftest.$ac_ext <<_ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21945 /* Override any GCC internal prototype to avoid an error.
21946 Use char because int might match the return type of a GCC
21947 builtin and then its argument prototype would still apply. */
21960 rm -f conftest.$ac_objext conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21967 $as_echo "$ac_try_echo") >&5
21968 (eval "$ac_link") 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21974 (exit $ac_status); } && {
21975 test -z "$ac_c_werror_flag" ||
21976 test ! -s conftest.err
21977 } && test -s conftest$ac_exeext && {
21978 test "$cross_compiling" = yes ||
21979 $as_test_x conftest$ac_exeext
21981 ac_cv_lib_com_err_com_err=yes
21983 $as_echo "$as_me: failed program was
:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_cv_lib_com_err_com_err=no
21989 rm -rf conftest.dSYM
21990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21991 conftest$ac_exeext conftest.$ac_ext
21992 LIBS=$ac_check_lib_save_LIBS
21994 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21995 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21996 if test "x
$ac_cv_lib_com_err_com_err" = x""yes; then
22002 if test $have_com_err = yes; then
22003 COM_ERRLIB=-lcom_err
22004 LIBS="$COM_ERRLIB $LIBS"
22006 cat >>confdefs.h <<\_ACEOF
22007 #define HAVE_LIBCOM_ERR 1
22011 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22012 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22013 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22014 $as_echo_n "(cached
) " >&6
22016 ac_check_lib_save_LIBS=$LIBS
22017 LIBS="-lcrypto $LIBS"
22018 cat >conftest.$ac_ext <<_ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h. */
22025 /* Override any GCC internal prototype to avoid an error.
22026 Use char because int might match the return type of a GCC
22027 builtin and then its argument prototype would still apply. */
22031 char mit_des_cbc_encrypt ();
22035 return mit_des_cbc_encrypt ();
22040 rm -f conftest.$ac_objext conftest$ac_exeext
22041 if { (ac_try="$ac_link"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22047 $as_echo "$ac_try_echo") >&5
22048 (eval "$ac_link") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest$ac_exeext && {
22058 test "$cross_compiling" = yes ||
22059 $as_test_x conftest$ac_exeext
22061 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22063 $as_echo "$as_me: failed program was
:" >&5
22064 sed 's/^/| /' conftest.$ac_ext >&5
22066 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22069 rm -rf conftest.dSYM
22070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22071 conftest$ac_exeext conftest.$ac_ext
22072 LIBS=$ac_check_lib_save_LIBS
22074 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22075 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22076 if test "x
$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22082 if test $have_crypto = yes; then
22084 LIBS="$CRYPTOLIB $LIBS"
22086 cat >>confdefs.h <<\_ACEOF
22087 #define HAVE_LIBCRYPTO 1
22091 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22092 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22093 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22094 $as_echo_n "(cached
) " >&6
22096 ac_check_lib_save_LIBS=$LIBS
22097 LIBS="-lk5crypto $LIBS"
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22105 /* Override any GCC internal prototype to avoid an error.
22106 Use char because int might match the return type of a GCC
22107 builtin and then its argument prototype would still apply. */
22111 char mit_des_cbc_encrypt ();
22115 return mit_des_cbc_encrypt ();
22120 rm -f conftest.$ac_objext conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22126 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22127 $as_echo "$ac_try_echo") >&5
22128 (eval "$ac_link") 2>conftest.er1
22130 grep -v '^ *+' conftest.er1 >conftest.err
22132 cat conftest.err >&5
22133 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22134 (exit $ac_status); } && {
22135 test -z "$ac_c_werror_flag" ||
22136 test ! -s conftest.err
22137 } && test -s conftest$ac_exeext && {
22138 test "$cross_compiling" = yes ||
22139 $as_test_x conftest$ac_exeext
22141 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22143 $as_echo "$as_me: failed program was
:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22149 rm -rf conftest.dSYM
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS=$ac_check_lib_save_LIBS
22154 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22155 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22156 if test "x
$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22162 if test $have_k5crypto = yes; then
22163 CRYPTOLIB=-lk5crypto
22164 LIBS="$CRYPTOLIB $LIBS"
22166 cat >>confdefs.h <<\_ACEOF
22167 #define HAVE_LIBK5CRYPTO 1
22171 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22172 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22173 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22174 $as_echo_n "(cached
) " >&6
22176 ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lkrb5 $LIBS"
22178 cat >conftest.$ac_ext <<_ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 /* Override any GCC internal prototype to avoid an error.
22186 Use char because int might match the return type of a GCC
22187 builtin and then its argument prototype would still apply. */
22191 char krb5_init_context ();
22195 return krb5_init_context ();
22200 rm -f conftest.$ac_objext conftest$ac_exeext
22201 if { (ac_try="$ac_link"
22202 case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22206 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22207 $as_echo "$ac_try_echo") >&5
22208 (eval "$ac_link") 2>conftest.er1
22210 grep -v '^ *+' conftest.er1 >conftest.err
22212 cat conftest.err >&5
22213 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest$ac_exeext && {
22218 test "$cross_compiling" = yes ||
22219 $as_test_x conftest$ac_exeext
22221 ac_cv_lib_krb5_krb5_init_context=yes
22223 $as_echo "$as_me: failed program was
:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ac_cv_lib_krb5_krb5_init_context=no
22229 rm -rf conftest.dSYM
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232 LIBS=$ac_check_lib_save_LIBS
22234 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22235 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22236 if test "x
$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22242 if test $have_krb5=yes; then
22244 LIBS="$KRB5LIB $LIBS"
22246 cat >>confdefs.h <<\_ACEOF
22247 #define HAVE_LIBKRB5 1
22251 if test "${with_kerberos5}" = no; then
22252 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22253 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22254 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22255 $as_echo_n "(cached
) " >&6
22257 ac_check_lib_save_LIBS=$LIBS
22258 LIBS="-ldes425 $LIBS"
22259 cat >conftest.$ac_ext <<_ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h. */
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22272 char des_cbc_encrypt ();
22276 return des_cbc_encrypt ();
22281 rm -f conftest.$ac_objext conftest$ac_exeext
22282 if { (ac_try="$ac_link"
22283 case "(($ac_try" in
22284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285 *) ac_try_echo=$ac_try;;
22287 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22288 $as_echo "$ac_try_echo") >&5
22289 (eval "$ac_link") 2>conftest.er1
22291 grep -v '^ *+' conftest.er1 >conftest.err
22293 cat conftest.err >&5
22294 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22295 (exit $ac_status); } && {
22296 test -z "$ac_c_werror_flag" ||
22297 test ! -s conftest.err
22298 } && test -s conftest$ac_exeext && {
22299 test "$cross_compiling" = yes ||
22300 $as_test_x conftest$ac_exeext
22302 ac_cv_lib_des425_des_cbc_encrypt=yes
22304 $as_echo "$as_me: failed program was
:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_cv_lib_des425_des_cbc_encrypt=no
22310 rm -rf conftest.dSYM
22311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22312 conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22315 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22316 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22317 if test "x
$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22323 if test $have_des425 = yes; then
22325 LIBS="$DESLIB $LIBS"
22327 cat >>confdefs.h <<\_ACEOF
22328 #define HAVE_LIBDES425 1
22332 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22333 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22334 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22335 $as_echo_n "(cached
) " >&6
22337 ac_check_lib_save_LIBS=$LIBS
22339 cat >conftest.$ac_ext <<_ACEOF
22342 cat confdefs.h >>conftest.$ac_ext
22343 cat >>conftest.$ac_ext <<_ACEOF
22344 /* end confdefs.h. */
22346 /* Override any GCC internal prototype to avoid an error.
22347 Use char because int might match the return type of a GCC
22348 builtin and then its argument prototype would still apply. */
22352 char des_cbc_encrypt ();
22356 return des_cbc_encrypt ();
22361 rm -f conftest.$ac_objext conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22368 $as_echo "$ac_try_echo") >&5
22369 (eval "$ac_link") 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest$ac_exeext && {
22379 test "$cross_compiling" = yes ||
22380 $as_test_x conftest$ac_exeext
22382 ac_cv_lib_des_des_cbc_encrypt=yes
22384 $as_echo "$as_me: failed program was
:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ac_cv_lib_des_des_cbc_encrypt=no
22390 rm -rf conftest.dSYM
22391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22392 conftest$ac_exeext conftest.$ac_ext
22393 LIBS=$ac_check_lib_save_LIBS
22395 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22396 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22397 if test "x
$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22403 if test $have_des = yes; then
22405 LIBS="$DESLIB $LIBS"
22407 cat >>confdefs.h <<\_ACEOF
22408 #define HAVE_LIBDES 1
22413 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22414 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22415 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22416 $as_echo_n "(cached
) " >&6
22418 ac_check_lib_save_LIBS=$LIBS
22419 LIBS="-lkrb4 $LIBS"
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22427 /* Override any GCC internal prototype to avoid an error.
22428 Use char because int might match the return type of a GCC
22429 builtin and then its argument prototype would still apply. */
22433 char krb_get_cred ();
22437 return krb_get_cred ();
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22449 $as_echo "$ac_try_echo") >&5
22450 (eval "$ac_link") 2>conftest.er1
22452 grep -v '^ *+' conftest.er1 >conftest.err
22454 cat conftest.err >&5
22455 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22456 (exit $ac_status); } && {
22457 test -z "$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 } && test -s conftest$ac_exeext && {
22460 test "$cross_compiling" = yes ||
22461 $as_test_x conftest$ac_exeext
22463 ac_cv_lib_krb4_krb_get_cred=yes
22465 $as_echo "$as_me: failed program was
:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_lib_krb4_krb_get_cred=no
22471 rm -rf conftest.dSYM
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22474 LIBS=$ac_check_lib_save_LIBS
22476 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22477 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22478 if test "x
$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
22484 if test $have_krb4 = yes; then
22486 LIBS="$KRB4LIB $LIBS"
22488 cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_LIBKRB4 1
22493 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22494 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22495 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22496 $as_echo_n "(cached
) " >&6
22498 ac_check_lib_save_LIBS=$LIBS
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22507 /* Override any GCC internal prototype to avoid an error.
22508 Use char because int might match the return type of a GCC
22509 builtin and then its argument prototype would still apply. */
22513 char krb_get_cred ();
22517 return krb_get_cred ();
22522 rm -f conftest.$ac_objext conftest$ac_exeext
22523 if { (ac_try="$ac_link"
22524 case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22528 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22529 $as_echo "$ac_try_echo") >&5
22530 (eval "$ac_link") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1 >conftest.err
22534 cat conftest.err >&5
22535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest$ac_exeext && {
22540 test "$cross_compiling" = yes ||
22541 $as_test_x conftest$ac_exeext
22543 ac_cv_lib_krb_krb_get_cred=yes
22545 $as_echo "$as_me: failed program was
:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22548 ac_cv_lib_krb_krb_get_cred=no
22551 rm -rf conftest.dSYM
22552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22553 conftest$ac_exeext conftest.$ac_ext
22554 LIBS=$ac_check_lib_save_LIBS
22556 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22557 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22558 if test "x
$ac_cv_lib_krb_krb_get_cred" = x""yes; then
22564 if test $have_krb = yes; then
22566 LIBS="$KRB4LIB $LIBS"
22568 cat >>confdefs.h <<\_ACEOF
22569 #define HAVE_LIBKRB 1
22576 if test "${with_kerberos5}" != no; then
22578 for ac_header in krb5.h
22580 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22582 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22583 $as_echo_n "checking
for $ac_header...
" >&6; }
22584 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22585 $as_echo_n "(cached
) " >&6
22587 ac_res=`eval 'as_val=${'$as_ac_Header'}
22588 $as_echo "$as_val"'`
22589 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22590 $as_echo "$ac_res" >&6; }
22592 # Is the header compilable?
22593 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22594 $as_echo_n "checking
$ac_header usability...
" >&6; }
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22602 #include <$ac_header>
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608 *) ac_try_echo=$ac_try;;
22610 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22611 $as_echo "$ac_try_echo") >&5
22612 (eval "$ac_compile") 2>conftest.er1
22614 grep -v '^ *+' conftest.er1 >conftest.err
22616 cat conftest.err >&5
22617 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22618 (exit $ac_status); } && {
22619 test -z "$ac_c_werror_flag" ||
22620 test ! -s conftest.err
22621 } && test -s conftest.$ac_objext; then
22622 ac_header_compiler=yes
22624 $as_echo "$as_me: failed program was
:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22627 ac_header_compiler=no
22630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22632 $as_echo "$ac_header_compiler" >&6; }
22634 # Is the header present?
22635 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22636 $as_echo_n "checking
$ac_header presence...
" >&6; }
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 #include <$ac_header>
22645 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22646 case "(($ac_try" in
22647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648 *) ac_try_echo=$ac_try;;
22650 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22651 $as_echo "$ac_try_echo") >&5
22652 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22658 (exit $ac_status); } >/dev/null && {
22659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22662 ac_header_preproc=yes
22664 $as_echo "$as_me: failed program was
:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22667 ac_header_preproc=no
22670 rm -f conftest.err conftest.$ac_ext
22671 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22672 $as_echo "$ac_header_preproc" >&6; }
22674 # So? What about this header?
22675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22677 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22678 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22679 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22681 ac_header_preproc=yes
22684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22685 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22686 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22687 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22688 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22689 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22691 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22695 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22699 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22700 $as_echo_n "checking
for $ac_header...
" >&6; }
22701 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22702 $as_echo_n "(cached
) " >&6
22704 eval "$as_ac_Header=\
$ac_header_preproc"
22706 ac_res=`eval 'as_val=${'$as_ac_Header'}
22707 $as_echo "$as_val"'`
22708 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22709 $as_echo "$ac_res" >&6; }
22712 as_val=`eval 'as_val=${'$as_ac_Header'}
22713 $as_echo "$as_val"'`
22714 if test "x
$as_val" = x""yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22718 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22719 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22720 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22721 $as_echo_n "(cached
) " >&6
22723 cat >conftest.$ac_ext <<_ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22734 static krb5_error ac_aggr;
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745 *) ac_try_echo=$ac_try;;
22747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22748 $as_echo "$ac_try_echo") >&5
22749 (eval "$ac_compile") 2>conftest.er1
22751 grep -v '^ *+' conftest.er1 >conftest.err
22753 cat conftest.err >&5
22754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22755 (exit $ac_status); } && {
22756 test -z "$ac_c_werror_flag" ||
22757 test ! -s conftest.err
22758 } && test -s conftest.$ac_objext; then
22759 ac_cv_member_krb5_error_text=yes
22761 $as_echo "$as_me: failed program was
:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22775 static krb5_error ac_aggr;
22776 if (sizeof ac_aggr.text)
22782 rm -f conftest.$ac_objext
22783 if { (ac_try="$ac_compile"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22789 $as_echo "$ac_try_echo") >&5
22790 (eval "$ac_compile") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest.$ac_objext; then
22800 ac_cv_member_krb5_error_text=yes
22802 $as_echo "$as_me: failed program was
:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_cv_member_krb5_error_text=no
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22814 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22815 if test "x
$ac_cv_member_krb5_error_text" = x""yes; then
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_KRB5_ERROR_TEXT 1
22823 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22824 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22825 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22826 $as_echo_n "(cached
) " >&6
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22839 static krb5_error ac_aggr;
22840 if (ac_aggr.e_text)
22846 rm -f conftest.$ac_objext
22847 if { (ac_try="$ac_compile"
22848 case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22853 $as_echo "$ac_try_echo") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22856 grep -v '^ *+' conftest.er1 >conftest.err
22858 cat conftest.err >&5
22859 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_member_krb5_error_e_text=yes
22866 $as_echo "$as_me: failed program was
:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22880 static krb5_error ac_aggr;
22881 if (sizeof ac_aggr.e_text)
22887 rm -f conftest.$ac_objext
22888 if { (ac_try="$ac_compile"
22889 case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22893 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22894 $as_echo "$ac_try_echo") >&5
22895 (eval "$ac_compile") 2>conftest.er1
22897 grep -v '^ *+' conftest.er1 >conftest.err
22899 cat conftest.err >&5
22900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22901 (exit $ac_status); } && {
22902 test -z "$ac_c_werror_flag" ||
22903 test ! -s conftest.err
22904 } && test -s conftest.$ac_objext; then
22905 ac_cv_member_krb5_error_e_text=yes
22907 $as_echo "$as_me: failed program was
:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_cv_member_krb5_error_e_text=no
22913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22918 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22919 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22920 if test "x
$ac_cv_member_krb5_error_e_text" = x""yes; then
22922 cat >>confdefs.h <<_ACEOF
22923 #define HAVE_KRB5_ERROR_E_TEXT 1
22935 for ac_header in des.h
22937 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22939 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22940 $as_echo_n "checking
for $ac_header...
" >&6; }
22941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22942 $as_echo_n "(cached
) " >&6
22944 ac_res=`eval 'as_val=${'$as_ac_Header'}
22945 $as_echo "$as_val"'`
22946 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22947 $as_echo "$ac_res" >&6; }
22949 # Is the header compilable?
22950 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22951 $as_echo_n "checking
$ac_header usability...
" >&6; }
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_header_compiler=yes
22981 $as_echo "$as_me: failed program was
:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_header_compiler=no
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22989 $as_echo "$ac_header_compiler" >&6; }
22991 # Is the header present?
22992 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22993 $as_echo_n "checking
$ac_header presence...
" >&6; }
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <$ac_header>
23002 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23003 case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23007 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1 >conftest.err
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23015 (exit $ac_status); } >/dev/null && {
23016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23019 ac_header_preproc=yes
23021 $as_echo "$as_me: failed program was
:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23024 ac_header_preproc=no
23027 rm -f conftest.err conftest.$ac_ext
23028 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23029 $as_echo "$ac_header_preproc" >&6; }
23031 # So? What about this header?
23032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23034 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23035 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23038 ac_header_preproc=yes
23041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23042 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23043 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23044 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23046 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23048 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23052 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23056 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23057 $as_echo_n "checking
for $ac_header...
" >&6; }
23058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23059 $as_echo_n "(cached
) " >&6
23061 eval "$as_ac_Header=\
$ac_header_preproc"
23063 ac_res=`eval 'as_val=${'$as_ac_Header'}
23064 $as_echo "$as_val"'`
23065 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23066 $as_echo "$ac_res" >&6; }
23069 as_val=`eval 'as_val=${'$as_ac_Header'}
23070 $as_echo "$as_val"'`
23071 if test "x
$as_val" = x""yes; then
23072 cat >>confdefs.h <<_ACEOF
23073 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23078 for ac_header in kerberosIV/des.h
23080 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23082 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23083 $as_echo_n "checking
for $ac_header...
" >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23085 $as_echo_n "(cached
) " >&6
23087 ac_res=`eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'`
23089 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23090 $as_echo "$ac_res" >&6; }
23092 # Is the header compilable?
23093 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23094 $as_echo_n "checking
$ac_header usability...
" >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23110 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 ac_header_compiler=yes
23124 $as_echo "$as_me: failed program was
:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_header_compiler=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23132 $as_echo "$ac_header_compiler" >&6; }
23134 # Is the header present?
23135 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23136 $as_echo_n "checking
$ac_header presence...
" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23158 (exit $ac_status); } >/dev/null && {
23159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23162 ac_header_preproc=yes
23164 $as_echo "$as_me: failed program was
:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ac_header_preproc=no
23170 rm -f conftest.err conftest.$ac_ext
23171 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23172 $as_echo "$ac_header_preproc" >&6; }
23174 # So? What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23178 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23181 ac_header_preproc=yes
23184 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23185 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23187 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23189 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23191 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23195 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23199 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23200 $as_echo_n "checking
for $ac_header...
" >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23202 $as_echo_n "(cached
) " >&6
23204 eval "$as_ac_Header=\
$ac_header_preproc"
23206 ac_res=`eval 'as_val=${'$as_ac_Header'}
23207 $as_echo "$as_val"'`
23208 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23209 $as_echo "$ac_res" >&6; }
23212 as_val=`eval 'as_val=${'$as_ac_Header'}
23213 $as_echo "$as_val"'`
23214 if test "x
$as_val" = x""yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23221 for ac_header in kerberos/des.h
23223 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23224 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23225 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23226 $as_echo_n "checking
for $ac_header...
" >&6; }
23227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23228 $as_echo_n "(cached
) " >&6
23230 ac_res=`eval 'as_val=${'$as_ac_Header'}
23231 $as_echo "$as_val"'`
23232 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23233 $as_echo "$ac_res" >&6; }
23235 # Is the header compilable?
23236 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23237 $as_echo_n "checking
$ac_header usability...
" >&6; }
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 #include <$ac_header>
23247 rm -f conftest.$ac_objext
23248 if { (ac_try="$ac_compile"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23254 $as_echo "$ac_try_echo") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23257 grep -v '^ *+' conftest.er1 >conftest.err
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 ac_header_compiler=yes
23267 $as_echo "$as_me: failed program was
:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ac_header_compiler=no
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23275 $as_echo "$ac_header_compiler" >&6; }
23277 # Is the header present?
23278 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23279 $as_echo_n "checking
$ac_header presence...
" >&6; }
23280 cat >conftest.$ac_ext <<_ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 #include <$ac_header>
23288 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23289 case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23293 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23294 $as_echo "$ac_try_echo") >&5
23295 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23297 grep -v '^ *+' conftest.er1 >conftest.err
23299 cat conftest.err >&5
23300 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23301 (exit $ac_status); } >/dev/null && {
23302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23305 ac_header_preproc=yes
23307 $as_echo "$as_me: failed program was
:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_preproc=no
23313 rm -f conftest.err conftest.$ac_ext
23314 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23315 $as_echo "$ac_header_preproc" >&6; }
23317 # So? What about this header?
23318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23320 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23321 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23324 ac_header_preproc=yes
23327 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23328 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23329 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23330 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23332 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23334 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23338 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23342 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23343 $as_echo_n "checking
for $ac_header...
" >&6; }
23344 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23345 $as_echo_n "(cached
) " >&6
23347 eval "$as_ac_Header=\
$ac_header_preproc"
23349 ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23352 $as_echo "$ac_res" >&6; }
23355 as_val=`eval 'as_val=${'$as_ac_Header'}
23356 $as_echo "$as_val"'`
23357 if test "x
$as_val" = x""yes; then
23358 cat >>confdefs.h <<_ACEOF
23359 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23375 for ac_header in krb.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 as_val=`eval 'as_val=${'$as_ac_Header'}
23510 $as_echo "$as_val"'`
23511 if test "x
$as_val" = x""yes; then
23512 cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23518 for ac_header in kerberosIV/krb.h
23520 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23522 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23523 $as_echo_n "checking
for $ac_header...
" >&6; }
23524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23525 $as_echo_n "(cached
) " >&6
23527 ac_res=`eval 'as_val=${'$as_ac_Header'}
23528 $as_echo "$as_val"'`
23529 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23530 $as_echo "$ac_res" >&6; }
23532 # Is the header compilable?
23533 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23534 $as_echo_n "checking
$ac_header usability...
" >&6; }
23535 cat >conftest.$ac_ext <<_ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 $ac_includes_default
23542 #include <$ac_header>
23544 rm -f conftest.$ac_objext
23545 if { (ac_try="$ac_compile"
23546 case "(($ac_try" in
23547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 ac_header_compiler=yes
23564 $as_echo "$as_me: failed program was
:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 ac_header_compiler=no
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23572 $as_echo "$ac_header_compiler" >&6; }
23574 # Is the header present?
23575 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23576 $as_echo_n "checking
$ac_header presence...
" >&6; }
23577 cat >conftest.$ac_ext <<_ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h. */
23583 #include <$ac_header>
23585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23591 $as_echo "$ac_try_echo") >&5
23592 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23594 grep -v '^ *+' conftest.er1 >conftest.err
23596 cat conftest.err >&5
23597 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23598 (exit $ac_status); } >/dev/null && {
23599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23602 ac_header_preproc=yes
23604 $as_echo "$as_me: failed program was
:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 ac_header_preproc=no
23610 rm -f conftest.err conftest.$ac_ext
23611 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23612 $as_echo "$ac_header_preproc" >&6; }
23614 # So? What about this header?
23615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23618 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23621 ac_header_preproc=yes
23624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23625 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23627 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23629 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23631 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23635 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23639 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23640 $as_echo_n "checking
for $ac_header...
" >&6; }
23641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23642 $as_echo_n "(cached
) " >&6
23644 eval "$as_ac_Header=\
$ac_header_preproc"
23646 ac_res=`eval 'as_val=${'$as_ac_Header'}
23647 $as_echo "$as_val"'`
23648 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23649 $as_echo "$ac_res" >&6; }
23652 as_val=`eval 'as_val=${'$as_ac_Header'}
23653 $as_echo "$as_val"'`
23654 if test "x
$as_val" = x""yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23661 for ac_header in kerberos/krb.h
23663 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23665 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23666 $as_echo_n "checking
for $ac_header...
" >&6; }
23667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23668 $as_echo_n "(cached
) " >&6
23670 ac_res=`eval 'as_val=${'$as_ac_Header'}
23671 $as_echo "$as_val"'`
23672 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23673 $as_echo "$ac_res" >&6; }
23675 # Is the header compilable?
23676 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23677 $as_echo_n "checking
$ac_header usability...
" >&6; }
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 $ac_includes_default
23685 #include <$ac_header>
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23693 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23694 $as_echo "$ac_try_echo") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23705 ac_header_compiler=yes
23707 $as_echo "$as_me: failed program was
:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_header_compiler=no
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23715 $as_echo "$ac_header_compiler" >&6; }
23717 # Is the header present?
23718 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23719 $as_echo_n "checking
$ac_header presence...
" >&6; }
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 #include <$ac_header>
23728 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23729 case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23734 $as_echo "$ac_try_echo") >&5
23735 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23741 (exit $ac_status); } >/dev/null && {
23742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23745 ac_header_preproc=yes
23747 $as_echo "$as_me: failed program was
:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23750 ac_header_preproc=no
23753 rm -f conftest.err conftest.$ac_ext
23754 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23755 $as_echo "$ac_header_preproc" >&6; }
23757 # So? What about this header?
23758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23760 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23761 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23762 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23763 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23764 ac_header_preproc=yes
23767 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23768 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23770 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23772 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23774 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23776 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23777 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23778 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23782 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23783 $as_echo_n "checking
for $ac_header...
" >&6; }
23784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23785 $as_echo_n "(cached
) " >&6
23787 eval "$as_ac_Header=\
$ac_header_preproc"
23789 ac_res=`eval 'as_val=${'$as_ac_Header'}
23790 $as_echo "$as_val"'`
23791 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23792 $as_echo "$ac_res" >&6; }
23795 as_val=`eval 'as_val=${'$as_ac_Header'}
23796 $as_echo "$as_val"'`
23797 if test "x
$as_val" = x""yes; then
23798 cat >>confdefs.h <<_ACEOF
23799 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23816 for ac_header in com_err.h
23818 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23819 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23820 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23821 $as_echo_n "checking
for $ac_header...
" >&6; }
23822 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23823 $as_echo_n "(cached
) " >&6
23825 ac_res=`eval 'as_val=${'$as_ac_Header'}
23826 $as_echo "$as_val"'`
23827 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23828 $as_echo "$ac_res" >&6; }
23830 # Is the header compilable?
23831 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23832 $as_echo_n "checking
$ac_header usability...
" >&6; }
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23839 $ac_includes_default
23840 #include <$ac_header>
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23849 $as_echo "$ac_try_echo") >&5
23850 (eval "$ac_compile") 2>conftest.er1
23852 grep -v '^ *+' conftest.er1 >conftest.err
23854 cat conftest.err >&5
23855 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23856 (exit $ac_status); } && {
23857 test -z "$ac_c_werror_flag" ||
23858 test ! -s conftest.err
23859 } && test -s conftest.$ac_objext; then
23860 ac_header_compiler=yes
23862 $as_echo "$as_me: failed program was
:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23865 ac_header_compiler=no
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23870 $as_echo "$ac_header_compiler" >&6; }
23872 # Is the header present?
23873 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23874 $as_echo_n "checking
$ac_header presence...
" >&6; }
23875 cat >conftest.$ac_ext <<_ACEOF
23878 cat confdefs.h >>conftest.$ac_ext
23879 cat >>conftest.$ac_ext <<_ACEOF
23880 /* end confdefs.h. */
23881 #include <$ac_header>
23883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23884 case "(($ac_try" in
23885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23888 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23892 grep -v '^ *+' conftest.er1 >conftest.err
23894 cat conftest.err >&5
23895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23896 (exit $ac_status); } >/dev/null && {
23897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23898 test ! -s conftest.err
23900 ac_header_preproc=yes
23902 $as_echo "$as_me: failed program was
:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23905 ac_header_preproc=no
23908 rm -f conftest.err conftest.$ac_ext
23909 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23910 $as_echo "$ac_header_preproc" >&6; }
23912 # So? What about this header?
23913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23915 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23916 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23917 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23919 ac_header_preproc=yes
23922 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23923 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23925 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23927 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23929 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23930 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23932 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23933 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23937 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23938 $as_echo_n "checking
for $ac_header...
" >&6; }
23939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23940 $as_echo_n "(cached
) " >&6
23942 eval "$as_ac_Header=\
$ac_header_preproc"
23944 ac_res=`eval 'as_val=${'$as_ac_Header'}
23945 $as_echo "$as_val"'`
23946 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23947 $as_echo "$ac_res" >&6; }
23950 as_val=`eval 'as_val=${'$as_ac_Header'}
23951 $as_echo "$as_val"'`
23952 if test "x
$as_val" = x""yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23969 # Solaris requires -lintl if you want strerror (which calls dgettext)
23970 # to return localized messages.
23972 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23973 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23974 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23975 $as_echo_n "(cached
) " >&6
23977 ac_check_lib_save_LIBS=$LIBS
23978 LIBS="-lintl $LIBS"
23979 cat >conftest.$ac_ext <<_ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23996 return dgettext ();
24001 rm -f conftest.$ac_objext conftest$ac_exeext
24002 if { (ac_try="$ac_link"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24008 $as_echo "$ac_try_echo") >&5
24009 (eval "$ac_link") 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest$ac_exeext && {
24019 test "$cross_compiling" = yes ||
24020 $as_test_x conftest$ac_exeext
24022 ac_cv_lib_intl_dgettext=yes
24024 $as_echo "$as_me: failed program was
:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ac_cv_lib_intl_dgettext=no
24030 rm -rf conftest.dSYM
24031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24032 conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24035 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24036 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24037 if test "x
$ac_cv_lib_intl_dgettext" = x""yes; then
24038 cat >>confdefs.h <<_ACEOF
24039 #define HAVE_LIBINTL 1
24042 LIBS="-lintl $LIBS"
24047 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24048 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24049 if test "${emacs_cv_localtime_cache+set}" = set; then
24050 $as_echo_n "(cached
) " >&6
24052 if test x$ac_cv_func_tzset = xyes; then
24053 if test "$cross_compiling" = yes; then
24054 # If we have tzset, assume the worst when cross-compiling.
24055 emacs_cv_localtime_cache=yes
24057 cat >conftest.$ac_ext <<_ACEOF
24060 cat confdefs.h >>conftest.$ac_ext
24061 cat >>conftest.$ac_ext <<_ACEOF
24062 /* end confdefs.h. */
24064 extern char **environ;
24068 for (to = from = environ; (*to = *from); from++)
24069 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24072 char TZ_GMT0[] = "TZ
=GMT0
";
24073 char TZ_PST8[] = "TZ
=PST8
";
24076 time_t now = time ((time_t *) 0);
24077 int hour_GMT0, hour_unset;
24078 if (putenv (TZ_GMT0) != 0)
24080 hour_GMT0 = localtime (&now)->tm_hour;
24082 hour_unset = localtime (&now)->tm_hour;
24083 if (putenv (TZ_PST8) != 0)
24085 if (localtime (&now)->tm_hour == hour_GMT0)
24088 if (localtime (&now)->tm_hour != hour_unset)
24093 rm -f conftest$ac_exeext
24094 if { (ac_try="$ac_link"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24100 $as_echo "$ac_try_echo") >&5
24101 (eval "$ac_link") 2>&5
24103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24105 { (case "(($ac_try" in
24106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107 *) ac_try_echo=$ac_try;;
24109 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24110 $as_echo "$ac_try_echo") >&5
24111 (eval "$ac_try") 2>&5
24113 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24114 (exit $ac_status); }; }; then
24115 emacs_cv_localtime_cache=no
24117 $as_echo "$as_me: program exited with status
$ac_status" >&5
24118 $as_echo "$as_me: failed program was
:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ( exit $ac_status )
24122 emacs_cv_localtime_cache=yes
24124 rm -rf conftest.dSYM
24125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24130 # If we lack tzset, report that localtime does not cache TZ,
24131 # since we can't invalidate the cache if we don't have tzset.
24132 emacs_cv_localtime_cache=no
24135 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24136 $as_echo "$emacs_cv_localtime_cache" >&6; }
24137 if test $emacs_cv_localtime_cache = yes; then
24139 cat >>confdefs.h <<\_ACEOF
24140 #define LOCALTIME_CACHE 1
24145 if test "x
$HAVE_TIMEVAL" = xyes; then
24147 for ac_func in gettimeofday
24149 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24150 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24151 $as_echo_n "checking
for $ac_func...
" >&6; }
24152 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24153 $as_echo_n "(cached
) " >&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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24163 #define $ac_func innocuous_$ac_func
24165 /* System header to define __stub macros and hopefully few prototypes,
24166 which can conflict with char $ac_func (); below.
24167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24168 <limits.h> exists even on freestanding compilers. */
24171 # include <limits.h>
24173 # include <assert.h>
24178 /* Override any GCC internal prototype to avoid an error.
24179 Use char because int might match the return type of a GCC
24180 builtin and then its argument prototype would still apply. */
24185 /* The GNU C library defines this for functions which it implements
24186 to always fail with ENOSYS. Some functions are actually named
24187 something starting with __ and the normal name is an alias. */
24188 #if defined __stub_$ac_func || defined __stub___$ac_func
24195 return $ac_func ();
24200 rm -f conftest.$ac_objext conftest$ac_exeext
24201 if { (ac_try="$ac_link"
24202 case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24206 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24207 $as_echo "$ac_try_echo") >&5
24208 (eval "$ac_link") 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest$ac_exeext && {
24218 test "$cross_compiling" = yes ||
24219 $as_test_x conftest$ac_exeext
24221 eval "$as_ac_var=yes"
24223 $as_echo "$as_me: failed program was
:" >&5
24224 sed 's/^/| /' conftest.$ac_ext >&5
24226 eval "$as_ac_var=no
"
24229 rm -rf conftest.dSYM
24230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24231 conftest$ac_exeext conftest.$ac_ext
24233 ac_res=`eval 'as_val=${'$as_ac_var'}
24234 $as_echo "$as_val"'`
24235 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24236 $as_echo "$ac_res" >&6; }
24237 as_val=`eval 'as_val=${'$as_ac_var'}
24238 $as_echo "$as_val"'`
24239 if test "x
$as_val" = x""yes; then
24240 cat >>confdefs.h <<_ACEOF
24241 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24247 if test $ac_cv_func_gettimeofday = yes; then
24248 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24249 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24250 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24251 $as_echo_n "(cached
) " >&6
24253 cat >conftest.$ac_ext <<_ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24260 #ifdef TIME_WITH_SYS_TIME
24261 #include <sys/time.h>
24264 #ifdef HAVE_SYS_TIME_H
24265 #include <sys/time.h>
24273 struct timeval time;
24274 gettimeofday (&time, 0);
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24286 $as_echo "$ac_try_echo") >&5
24287 (eval "$ac_compile") 2>conftest.er1
24289 grep -v '^ *+' conftest.er1 >conftest.err
24291 cat conftest.err >&5
24292 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24293 (exit $ac_status); } && {
24294 test -z "$ac_c_werror_flag" ||
24295 test ! -s conftest.err
24296 } && test -s conftest.$ac_objext; then
24297 emacs_cv_gettimeofday_two_arguments=yes
24299 $as_echo "$as_me: failed program was
:" >&5
24300 sed 's/^/| /' conftest.$ac_ext >&5
24302 emacs_cv_gettimeofday_two_arguments=no
24305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24308 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24309 if test $emacs_cv_gettimeofday_two_arguments = no; then
24311 cat >>confdefs.h <<\_ACEOF
24312 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24320 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24321 $as_echo_n "checking
for socket...
" >&6; }
24322 if test "${ac_cv_func_socket+set}" = set; then
24323 $as_echo_n "(cached
) " >&6
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24333 #define socket innocuous_socket
24335 /* System header to define __stub macros and hopefully few prototypes,
24336 which can conflict with char socket (); below.
24337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24338 <limits.h> exists even on freestanding compilers. */
24341 # include <limits.h>
24343 # include <assert.h>
24348 /* Override any GCC internal prototype to avoid an error.
24349 Use char because int might match the return type of a GCC
24350 builtin and then its argument prototype would still apply. */
24355 /* The GNU C library defines this for functions which it implements
24356 to always fail with ENOSYS. Some functions are actually named
24357 something starting with __ and the normal name is an alias. */
24358 #if defined __stub_socket || defined __stub___socket
24370 rm -f conftest.$ac_objext conftest$ac_exeext
24371 if { (ac_try="$ac_link"
24372 case "(($ac_try" in
24373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24374 *) ac_try_echo=$ac_try;;
24376 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24377 $as_echo "$ac_try_echo") >&5
24378 (eval "$ac_link") 2>conftest.er1
24380 grep -v '^ *+' conftest.er1 >conftest.err
24382 cat conftest.err >&5
24383 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24384 (exit $ac_status); } && {
24385 test -z "$ac_c_werror_flag" ||
24386 test ! -s conftest.err
24387 } && test -s conftest$ac_exeext && {
24388 test "$cross_compiling" = yes ||
24389 $as_test_x conftest$ac_exeext
24391 ac_cv_func_socket=yes
24393 $as_echo "$as_me: failed program was
:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ac_cv_func_socket=no
24399 rm -rf conftest.dSYM
24400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24401 conftest$ac_exeext conftest.$ac_ext
24403 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24404 $as_echo "$ac_cv_func_socket" >&6; }
24405 if test "x
$ac_cv_func_socket" = x""yes; then
24411 if test $ok_so_far = yes; then
24412 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24413 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24414 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24415 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24416 $as_echo_n "(cached
) " >&6
24418 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24419 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24421 # Is the header compilable?
24422 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24423 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <netinet/in.h>
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_header_compiler=yes
24453 $as_echo "$as_me: failed program was
:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_header_compiler=no
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24461 $as_echo "$ac_header_compiler" >&6; }
24463 # Is the header present?
24464 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24465 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <netinet/in.h>
24474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24480 $as_echo "$ac_try_echo") >&5
24481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24483 grep -v '^ *+' conftest.er1 >conftest.err
24485 cat conftest.err >&5
24486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24487 (exit $ac_status); } >/dev/null && {
24488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24489 test ! -s conftest.err
24491 ac_header_preproc=yes
24493 $as_echo "$as_me: failed program was
:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_header_preproc=no
24499 rm -f conftest.err conftest.$ac_ext
24500 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24501 $as_echo "$ac_header_preproc" >&6; }
24503 # So? What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24506 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24507 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24508 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24509 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24510 ac_header_preproc=yes
24513 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24514 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24516 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24517 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24518 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24520 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24522 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24524 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24528 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24529 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24530 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24531 $as_echo_n "(cached
) " >&6
24533 ac_cv_header_netinet_in_h=$ac_header_preproc
24535 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24536 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24539 if test "x
$ac_cv_header_netinet_in_h" = x""yes; then
24547 if test $ok_so_far = yes; then
24548 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24549 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24550 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24551 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24552 $as_echo_n "(cached
) " >&6
24554 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24555 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24557 # Is the header compilable?
24558 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24559 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24560 cat >conftest.$ac_ext <<_ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h. */
24566 $ac_includes_default
24567 #include <arpa/inet.h>
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24576 $as_echo "$ac_try_echo") >&5
24577 (eval "$ac_compile") 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24583 (exit $ac_status); } && {
24584 test -z "$ac_c_werror_flag" ||
24585 test ! -s conftest.err
24586 } && test -s conftest.$ac_objext; then
24587 ac_header_compiler=yes
24589 $as_echo "$as_me: failed program was
:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_header_compiler=no
24595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24597 $as_echo "$ac_header_compiler" >&6; }
24599 # Is the header present?
24600 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24601 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include <arpa/inet.h>
24610 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24611 case "(($ac_try" in
24612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24613 *) ac_try_echo=$ac_try;;
24615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24616 $as_echo "$ac_try_echo") >&5
24617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24619 grep -v '^ *+' conftest.er1 >conftest.err
24621 cat conftest.err >&5
24622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24623 (exit $ac_status); } >/dev/null && {
24624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24625 test ! -s conftest.err
24627 ac_header_preproc=yes
24629 $as_echo "$as_me: failed program was
:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24632 ac_header_preproc=no
24635 rm -f conftest.err conftest.$ac_ext
24636 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24637 $as_echo "$ac_header_preproc" >&6; }
24639 # So? What about this header?
24640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24642 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24643 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24644 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24645 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24646 ac_header_preproc=yes
24649 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24650 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24651 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24652 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24653 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24654 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24655 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24656 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24657 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24658 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24659 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24660 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24664 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24665 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24666 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24667 $as_echo_n "(cached
) " >&6
24669 ac_cv_header_arpa_inet_h=$ac_header_preproc
24671 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24672 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24675 if test "x
$ac_cv_header_arpa_inet_h" = x""yes; then
24683 if test $ok_so_far = yes; then
24685 cat >>confdefs.h <<\_ACEOF
24686 #define HAVE_INET_SOCKETS 1
24692 for ac_header in sys/ioctl.h
24694 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24695 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24696 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24697 $as_echo_n "checking
for $ac_header...
" >&6; }
24698 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24699 $as_echo_n "(cached
) " >&6
24701 ac_res=`eval 'as_val=${'$as_ac_Header'}
24702 $as_echo "$as_val"'`
24703 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24704 $as_echo "$ac_res" >&6; }
24706 # Is the header compilable?
24707 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24708 $as_echo_n "checking
$ac_header usability...
" >&6; }
24709 cat >conftest.$ac_ext <<_ACEOF
24712 cat confdefs.h >>conftest.$ac_ext
24713 cat >>conftest.$ac_ext <<_ACEOF
24714 /* end confdefs.h. */
24715 $ac_includes_default
24716 #include <$ac_header>
24718 rm -f conftest.$ac_objext
24719 if { (ac_try="$ac_compile"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24724 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_compile") 2>conftest.er1
24728 grep -v '^ *+' conftest.er1 >conftest.err
24730 cat conftest.err >&5
24731 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24732 (exit $ac_status); } && {
24733 test -z "$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 } && test -s conftest.$ac_objext; then
24736 ac_header_compiler=yes
24738 $as_echo "$as_me: failed program was
:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_header_compiler=no
24744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24745 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24746 $as_echo "$ac_header_compiler" >&6; }
24748 # Is the header present?
24749 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24750 $as_echo_n "checking
$ac_header presence...
" >&6; }
24751 cat >conftest.$ac_ext <<_ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 #include <$ac_header>
24759 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24765 $as_echo "$ac_try_echo") >&5
24766 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24768 grep -v '^ *+' conftest.er1 >conftest.err
24770 cat conftest.err >&5
24771 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24772 (exit $ac_status); } >/dev/null && {
24773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24774 test ! -s conftest.err
24776 ac_header_preproc=yes
24778 $as_echo "$as_me: failed program was
:" >&5
24779 sed 's/^/| /' conftest.$ac_ext >&5
24781 ac_header_preproc=no
24784 rm -f conftest.err conftest.$ac_ext
24785 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24786 $as_echo "$ac_header_preproc" >&6; }
24788 # So? What about this header?
24789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24791 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24792 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24793 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24795 ac_header_preproc=yes
24798 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24799 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24800 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24801 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24802 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24803 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24804 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24805 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24806 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24807 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24808 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24809 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24813 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24814 $as_echo_n "checking
for $ac_header...
" >&6; }
24815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24816 $as_echo_n "(cached
) " >&6
24818 eval "$as_ac_Header=\
$ac_header_preproc"
24820 ac_res=`eval 'as_val=${'$as_ac_Header'}
24821 $as_echo "$as_val"'`
24822 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24823 $as_echo "$ac_res" >&6; }
24826 as_val=`eval 'as_val=${'$as_ac_Header'}
24827 $as_echo "$as_val"'`
24828 if test "x
$as_val" = x""yes; then
24829 cat >>confdefs.h <<_ACEOF
24830 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24838 if test -f /usr/lpp/X11/bin/smt.exp; then
24840 cat >>confdefs.h <<\_ACEOF
24841 #define HAVE_AIX_SMT_EXP 1
24846 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24847 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24848 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24849 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24850 $as_echo "yes" >&6; }
24852 cat >>confdefs.h <<\_ACEOF
24853 #define HAVE_DEV_PTMX 1
24857 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24858 $as_echo "no
" >&6; }
24861 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24862 $as_echo_n "checking
for pid_t...
" >&6; }
24863 if test "${ac_cv_type_pid_t+set}" = set; then
24864 $as_echo_n "(cached
) " >&6
24866 ac_cv_type_pid_t=no
24867 cat >conftest.$ac_ext <<_ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h. */
24873 $ac_includes_default
24877 if (sizeof (pid_t))
24883 rm -f conftest.$ac_objext
24884 if { (ac_try="$ac_compile"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24890 $as_echo "$ac_try_echo") >&5
24891 (eval "$ac_compile") 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24897 (exit $ac_status); } && {
24898 test -z "$ac_c_werror_flag" ||
24899 test ! -s conftest.err
24900 } && test -s conftest.$ac_objext; then
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24907 $ac_includes_default
24911 if (sizeof ((pid_t)))
24917 rm -f conftest.$ac_objext
24918 if { (ac_try="$ac_compile"
24919 case "(($ac_try" in
24920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24923 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24924 $as_echo "$ac_try_echo") >&5
24925 (eval "$ac_compile") 2>conftest.er1
24927 grep -v '^ *+' conftest.er1 >conftest.err
24929 cat conftest.err >&5
24930 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24931 (exit $ac_status); } && {
24932 test -z "$ac_c_werror_flag" ||
24933 test ! -s conftest.err
24934 } && test -s conftest.$ac_objext; then
24937 $as_echo "$as_me: failed program was
:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24940 ac_cv_type_pid_t=yes
24943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 $as_echo "$as_me: failed program was
:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24953 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24954 $as_echo "$ac_cv_type_pid_t" >&6; }
24955 if test "x
$ac_cv_type_pid_t" = x""yes; then
24959 cat >>confdefs.h <<_ACEOF
24966 for ac_header in vfork.h
24968 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24970 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24971 $as_echo_n "checking
for $ac_header...
" >&6; }
24972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24973 $as_echo_n "(cached
) " >&6
24975 ac_res=`eval 'as_val=${'$as_ac_Header'}
24976 $as_echo "$as_val"'`
24977 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24978 $as_echo "$ac_res" >&6; }
24980 # Is the header compilable?
24981 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24982 $as_echo_n "checking
$ac_header usability...
" >&6; }
24983 cat >conftest.$ac_ext <<_ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24990 #include <$ac_header>
24992 rm -f conftest.$ac_objext
24993 if { (ac_try="$ac_compile"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24999 $as_echo "$ac_try_echo") >&5
25000 (eval "$ac_compile") 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25006 (exit $ac_status); } && {
25007 test -z "$ac_c_werror_flag" ||
25008 test ! -s conftest.err
25009 } && test -s conftest.$ac_objext; then
25010 ac_header_compiler=yes
25012 $as_echo "$as_me: failed program was
:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25015 ac_header_compiler=no
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25020 $as_echo "$ac_header_compiler" >&6; }
25022 # Is the header present?
25023 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25024 $as_echo_n "checking
$ac_header presence...
" >&6; }
25025 cat >conftest.$ac_ext <<_ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25031 #include <$ac_header>
25033 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25039 $as_echo "$ac_try_echo") >&5
25040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25042 grep -v '^ *+' conftest.er1 >conftest.err
25044 cat conftest.err >&5
25045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25046 (exit $ac_status); } >/dev/null && {
25047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25050 ac_header_preproc=yes
25052 $as_echo "$as_me: failed program was
:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_header_preproc=no
25058 rm -f conftest.err conftest.$ac_ext
25059 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25060 $as_echo "$ac_header_preproc" >&6; }
25062 # So? What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25066 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25069 ac_header_preproc=yes
25072 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25073 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25074 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25075 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25076 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25077 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25078 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25079 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25083 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25087 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25088 $as_echo_n "checking
for $ac_header...
" >&6; }
25089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25090 $as_echo_n "(cached
) " >&6
25092 eval "$as_ac_Header=\
$ac_header_preproc"
25094 ac_res=`eval 'as_val=${'$as_ac_Header'}
25095 $as_echo "$as_val"'`
25096 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25097 $as_echo "$ac_res" >&6; }
25100 as_val=`eval 'as_val=${'$as_ac_Header'}
25101 $as_echo "$as_val"'`
25102 if test "x
$as_val" = x""yes; then
25103 cat >>confdefs.h <<_ACEOF
25104 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25113 for ac_func in fork vfork
25115 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25116 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25117 $as_echo_n "checking
for $ac_func...
" >&6; }
25118 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25119 $as_echo_n "(cached
) " >&6
25121 cat >conftest.$ac_ext <<_ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h. */
25127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25129 #define $ac_func innocuous_$ac_func
25131 /* System header to define __stub macros and hopefully few prototypes,
25132 which can conflict with char $ac_func (); below.
25133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25134 <limits.h> exists even on freestanding compilers. */
25137 # include <limits.h>
25139 # include <assert.h>
25144 /* Override any GCC internal prototype to avoid an error.
25145 Use char because int might match the return type of a GCC
25146 builtin and then its argument prototype would still apply. */
25151 /* The GNU C library defines this for functions which it implements
25152 to always fail with ENOSYS. Some functions are actually named
25153 something starting with __ and the normal name is an alias. */
25154 #if defined __stub_$ac_func || defined __stub___$ac_func
25161 return $ac_func ();
25166 rm -f conftest.$ac_objext conftest$ac_exeext
25167 if { (ac_try="$ac_link"
25168 case "(($ac_try" in
25169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170 *) ac_try_echo=$ac_try;;
25172 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25173 $as_echo "$ac_try_echo") >&5
25174 (eval "$ac_link") 2>conftest.er1
25176 grep -v '^ *+' conftest.er1 >conftest.err
25178 cat conftest.err >&5
25179 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25180 (exit $ac_status); } && {
25181 test -z "$ac_c_werror_flag" ||
25182 test ! -s conftest.err
25183 } && test -s conftest$ac_exeext && {
25184 test "$cross_compiling" = yes ||
25185 $as_test_x conftest$ac_exeext
25187 eval "$as_ac_var=yes"
25189 $as_echo "$as_me: failed program was
:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25192 eval "$as_ac_var=no
"
25195 rm -rf conftest.dSYM
25196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25197 conftest$ac_exeext conftest.$ac_ext
25199 ac_res=`eval 'as_val=${'$as_ac_var'}
25200 $as_echo "$as_val"'`
25201 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25202 $as_echo "$ac_res" >&6; }
25203 as_val=`eval 'as_val=${'$as_ac_var'}
25204 $as_echo "$as_val"'`
25205 if test "x
$as_val" = x""yes; then
25206 cat >>confdefs.h <<_ACEOF
25207 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25213 if test "x
$ac_cv_func_fork" = xyes; then
25214 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25215 $as_echo_n "checking
for working fork...
" >&6; }
25216 if test "${ac_cv_func_fork_works+set}" = set; then
25217 $as_echo_n "(cached
) " >&6
25219 if test "$cross_compiling" = yes; then
25220 ac_cv_func_fork_works=cross
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 $ac_includes_default
25233 /* By Ruediger Kuhlmann. */
25234 return fork () < 0;
25240 rm -f conftest$ac_exeext
25241 if { (ac_try="$ac_link"
25242 case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25246 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25247 $as_echo "$ac_try_echo") >&5
25248 (eval "$ac_link") 2>&5
25250 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25252 { (case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25256 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_try") 2>&5
25260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25261 (exit $ac_status); }; }; then
25262 ac_cv_func_fork_works=yes
25264 $as_echo "$as_me: program exited with status
$ac_status" >&5
25265 $as_echo "$as_me: failed program was
:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ( exit $ac_status )
25269 ac_cv_func_fork_works=no
25271 rm -rf conftest.dSYM
25272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25277 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25278 $as_echo "$ac_cv_func_fork_works" >&6; }
25281 ac_cv_func_fork_works=$ac_cv_func_fork
25283 if test "x
$ac_cv_func_fork_works" = xcross; then
25285 *-*-amigaos* | *-*-msdosdjgpp*)
25286 # Override, as these systems have only a dummy fork() stub
25287 ac_cv_func_fork_works=no
25290 ac_cv_func_fork_works=yes
25293 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25294 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25296 ac_cv_func_vfork_works=$ac_cv_func_vfork
25297 if test "x
$ac_cv_func_vfork" = xyes; then
25298 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25299 $as_echo_n "checking
for working vfork...
" >&6; }
25300 if test "${ac_cv_func_vfork_works+set}" = set; then
25301 $as_echo_n "(cached
) " >&6
25303 if test "$cross_compiling" = yes; then
25304 ac_cv_func_vfork_works=cross
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 /* Thanks to Paul Eggert for this test. */
25313 $ac_includes_default
25314 #include <sys/wait.h>
25315 #ifdef HAVE_VFORK_H
25316 # include <vfork.h>
25318 /* On some sparc systems, changes by the child to local and incoming
25319 argument registers are propagated back to the parent. The compiler
25320 is told about this with #include <vfork.h>, but some compilers
25321 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25322 static variable whose address is put into a register that is
25323 clobbered by the vfork. */
25326 sparc_address_test (int arg)
25328 sparc_address_test (arg) int arg;
25331 static pid_t child;
25349 pid_t parent = getpid ();
25352 sparc_address_test (0);
25357 /* Here is another test for sparc vfork register problems. This
25358 test uses lots of local variables, at least as many local
25359 variables as main has allocated so far including compiler
25360 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25361 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25362 reuse the register of parent for one of the local variables,
25363 since it will think that parent can't possibly be used any more
25364 in this routine. Assigning to the local variable will thus
25365 munge parent in the parent process. */
25367 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25368 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25369 /* Convince the compiler that p..p7 are live; otherwise, it might
25370 use the same hardware register for all 8 local variables. */
25371 if (p != p1 || p != p2 || p != p3 || p != p4
25372 || p != p5 || p != p6 || p != p7)
25375 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25376 from child file descriptors. If the child closes a descriptor
25377 before it execs or exits, this munges the parent's descriptor
25378 as well. Test for this by closing stdout in the child. */
25379 _exit(close(fileno(stdout)) != 0);
25384 while (wait(&status) != child)
25387 /* Was there some problem with vforking? */
25390 /* Did the child fail? (This shouldn't happen.) */
25393 /* Did the vfork/compiler bug occur? */
25394 || parent != getpid()
25396 /* Did the file descriptor bug occur? */
25397 || fstat(fileno(stdout), &st) != 0
25402 rm -f conftest$ac_exeext
25403 if { (ac_try="$ac_link"
25404 case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410 (eval "$ac_link") 2>&5
25412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25414 { (case "(($ac_try" in
25415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25416 *) ac_try_echo=$ac_try;;
25418 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25419 $as_echo "$ac_try_echo") >&5
25420 (eval "$ac_try") 2>&5
25422 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25423 (exit $ac_status); }; }; then
25424 ac_cv_func_vfork_works=yes
25426 $as_echo "$as_me: program exited with status
$ac_status" >&5
25427 $as_echo "$as_me: failed program was
:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ( exit $ac_status )
25431 ac_cv_func_vfork_works=no
25433 rm -rf conftest.dSYM
25434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25439 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25440 $as_echo "$ac_cv_func_vfork_works" >&6; }
25443 if test "x
$ac_cv_func_fork_works" = xcross; then
25444 ac_cv_func_vfork_works=$ac_cv_func_vfork
25445 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25446 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25449 if test "x
$ac_cv_func_vfork_works" = xyes; then
25451 cat >>confdefs.h <<\_ACEOF
25452 #define HAVE_WORKING_VFORK 1
25457 cat >>confdefs.h <<\_ACEOF
25462 if test "x
$ac_cv_func_fork_works" = xyes; then
25464 cat >>confdefs.h <<\_ACEOF
25465 #define HAVE_WORKING_FORK 1
25471 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25472 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25473 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25474 $as_echo_n "(cached
) " >&6
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 #include <langinfo.h>
25486 char* cs = nl_langinfo(CODESET);
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495 *) ac_try_echo=$ac_try;;
25497 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25498 $as_echo "$ac_try_echo") >&5
25499 (eval "$ac_link") 2>conftest.er1
25501 grep -v '^ *+' conftest.er1 >conftest.err
25503 cat conftest.err >&5
25504 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25505 (exit $ac_status); } && {
25506 test -z "$ac_c_werror_flag" ||
25507 test ! -s conftest.err
25508 } && test -s conftest$ac_exeext && {
25509 test "$cross_compiling" = yes ||
25510 $as_test_x conftest$ac_exeext
25512 emacs_cv_langinfo_codeset=yes
25514 $as_echo "$as_me: failed program was
:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 emacs_cv_langinfo_codeset=no
25520 rm -rf conftest.dSYM
25521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25522 conftest$ac_exeext conftest.$ac_ext
25525 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25526 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25527 if test $emacs_cv_langinfo_codeset = yes; then
25529 cat >>confdefs.h <<\_ACEOF
25530 #define HAVE_LANGINFO_CODESET 1
25535 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25536 $as_echo_n "checking
for size_t...
" >&6; }
25537 if test "${ac_cv_type_size_t+set}" = set; then
25538 $as_echo_n "(cached
) " >&6
25540 ac_cv_type_size_t=no
25541 cat >conftest.$ac_ext <<_ACEOF
25544 cat confdefs.h >>conftest.$ac_ext
25545 cat >>conftest.$ac_ext <<_ACEOF
25546 /* end confdefs.h. */
25547 $ac_includes_default
25551 if (sizeof (size_t))
25557 rm -f conftest.$ac_objext
25558 if { (ac_try="$ac_compile"
25559 case "(($ac_try" in
25560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561 *) ac_try_echo=$ac_try;;
25563 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25564 $as_echo "$ac_try_echo") >&5
25565 (eval "$ac_compile") 2>conftest.er1
25567 grep -v '^ *+' conftest.er1 >conftest.err
25569 cat conftest.err >&5
25570 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25571 (exit $ac_status); } && {
25572 test -z "$ac_c_werror_flag" ||
25573 test ! -s conftest.err
25574 } && test -s conftest.$ac_objext; then
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25585 if (sizeof ((size_t)))
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25611 $as_echo "$as_me: failed program was
:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 ac_cv_type_size_t=yes
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619 $as_echo "$as_me: failed program was
:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25627 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25628 $as_echo "$ac_cv_type_size_t" >&6; }
25629 if test "x
$ac_cv_type_size_t" = x""yes; then
25631 cat >>confdefs.h <<_ACEOF
25632 #define HAVE_SIZE_T 1
25639 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25640 $as_echo_n "checking
for mbstate_t...
" >&6; }
25641 if test "${ac_cv_type_mbstate_t+set}" = set; then
25642 $as_echo_n "(cached
) " >&6
25644 cat >conftest.$ac_ext <<_ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25650 $ac_includes_default
25651 # include <wchar.h>
25655 mbstate_t x; return sizeof x;
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25667 $as_echo "$ac_try_echo") >&5
25668 (eval "$ac_compile") 2>conftest.er1
25670 grep -v '^ *+' conftest.er1 >conftest.err
25672 cat conftest.err >&5
25673 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25674 (exit $ac_status); } && {
25675 test -z "$ac_c_werror_flag" ||
25676 test ! -s conftest.err
25677 } && test -s conftest.$ac_objext; then
25678 ac_cv_type_mbstate_t=yes
25680 $as_echo "$as_me: failed program was
:" >&5
25681 sed 's/^/| /' conftest.$ac_ext >&5
25683 ac_cv_type_mbstate_t=no
25686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25688 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25689 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25690 if test $ac_cv_type_mbstate_t = yes; then
25692 cat >>confdefs.h <<\_ACEOF
25693 #define HAVE_MBSTATE_T 1
25698 cat >>confdefs.h <<\_ACEOF
25699 #define mbstate_t int
25704 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25705 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25706 if test "${emacs_cv_c_restrict+set}" = set; then
25707 $as_echo_n "(cached
) " >&6
25709 cat >conftest.$ac_ext <<_ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 void fred (int *restrict x);
25724 rm -f conftest.$ac_objext
25725 if { (ac_try="$ac_compile"
25726 case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25731 $as_echo "$ac_try_echo") >&5
25732 (eval "$ac_compile") 2>conftest.er1
25734 grep -v '^ *+' conftest.er1 >conftest.err
25736 cat conftest.err >&5
25737 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25738 (exit $ac_status); } && {
25739 test -z "$ac_c_werror_flag" ||
25740 test ! -s conftest.err
25741 } && test -s conftest.$ac_objext; then
25742 emacs_cv_c_restrict=yes
25744 $as_echo "$as_me: failed program was
:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25747 cat >conftest.$ac_ext <<_ACEOF
25750 cat confdefs.h >>conftest.$ac_ext
25751 cat >>conftest.$ac_ext <<_ACEOF
25752 /* end confdefs.h. */
25753 void fred (int *__restrict x);
25762 rm -f conftest.$ac_objext
25763 if { (ac_try="$ac_compile"
25764 case "(($ac_try" in
25765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25766 *) ac_try_echo=$ac_try;;
25768 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25769 $as_echo "$ac_try_echo") >&5
25770 (eval "$ac_compile") 2>conftest.er1
25772 grep -v '^ *+' conftest.er1 >conftest.err
25774 cat conftest.err >&5
25775 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25776 (exit $ac_status); } && {
25777 test -z "$ac_c_werror_flag" ||
25778 test ! -s conftest.err
25779 } && test -s conftest.$ac_objext; then
25780 emacs_cv_c_restrict=__restrict
25782 $as_echo "$as_me: failed program was
:" >&5
25783 sed 's/^/| /' conftest.$ac_ext >&5
25785 emacs_cv_c_restrict=no
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25793 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25794 $as_echo "$emacs_cv_c_restrict" >&6; }
25795 case "$emacs_cv_c_restrict" in
25796 yes) emacs_restrict=restrict;;
25797 no) emacs_restrict="";;
25798 *) emacs_restrict="$emacs_cv_c_restrict";;
25800 if test "$emacs_restrict" != __restrict; then
25802 cat >>confdefs.h <<_ACEOF
25803 #define __restrict $emacs_restrict
25808 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25809 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25810 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25811 $as_echo_n "(cached
) " >&6
25813 cat >conftest.$ac_ext <<_ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 void fred (int x[__restrict]);
25828 rm -f conftest.$ac_objext
25829 if { (ac_try="$ac_compile"
25830 case "(($ac_try" in
25831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25832 *) ac_try_echo=$ac_try;;
25834 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25835 $as_echo "$ac_try_echo") >&5
25836 (eval "$ac_compile") 2>conftest.er1
25838 grep -v '^ *+' conftest.er1 >conftest.err
25840 cat conftest.err >&5
25841 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25842 (exit $ac_status); } && {
25843 test -z "$ac_c_werror_flag" ||
25844 test ! -s conftest.err
25845 } && test -s conftest.$ac_objext; then
25846 emacs_cv_c_restrict_arr=yes
25848 $as_echo "$as_me: failed program was
:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25851 emacs_cv_c_restrict_arr=no
25854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25856 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25857 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25858 if test "$emacs_cv_c_restrict_arr" = yes; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define __restrict_arr __restrict
25868 # Set up the CFLAGS for real compilation, so we can substitute it.
25869 CFLAGS="$REAL_CFLAGS"
25870 CPPFLAGS="$REAL_CPPFLAGS"
25872 #### Find out which version of Emacs this is.
25873 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25874 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25875 if test x"${version}" = x; then
25876 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25877 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25878 { (exit 1); exit 1; }; }
25880 if test x"${version}" != x"$PACKAGE_VERSION"; then
25881 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25882 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25885 ### Specify what sort of things we'll be editing into Makefile and config.h.
25886 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25931 cat >>confdefs.h
<<_ACEOF
25932 #define EMACS_CONFIGURATION "${canonical}"
25936 cat >>confdefs.h
<<_ACEOF
25937 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25941 cat >>confdefs.h
<<_ACEOF
25942 #define config_machfile "${machfile}"
25946 cat >>confdefs.h
<<_ACEOF
25947 #define config_opsysfile "${opsysfile}"
25951 cat >>confdefs.h
<<_ACEOF
25952 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25956 cat >>confdefs.h
<<_ACEOF
25957 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25961 cat >>confdefs.h
<<_ACEOF
25962 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25966 cat >>confdefs.h
<<_ACEOF
25967 #define UNEXEC_SRC ${UNEXEC_SRC}
25971 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25973 cat >>confdefs.h
<<\_ACEOF
25974 #define HAVE_X_WINDOWS 1
25978 if test "${USE_X_TOOLKIT}" != "none" ; then
25980 cat >>confdefs.h
<<\_ACEOF
25981 #define USE_X_TOOLKIT 1
25984 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25986 cat >>confdefs.h
<<\_ACEOF
25987 #define USE_LUCID 1
25990 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25992 cat >>confdefs.h
<<\_ACEOF
25993 #define USE_MOTIF 1
25998 if test "${HAVE_X11}" = "yes" ; then
26000 cat >>confdefs.h
<<\_ACEOF
26005 if test "${HAVE_MENUS}" = "yes" ; then
26007 cat >>confdefs.h
<<\_ACEOF
26008 #define HAVE_MENUS 1
26012 if test "${GNU_MALLOC}" = "yes" ; then
26014 cat >>confdefs.h
<<\_ACEOF
26015 #define GNU_MALLOC 1
26019 if test "${REL_ALLOC}" = "yes" ; then
26021 cat >>confdefs.h
<<\_ACEOF
26022 #define REL_ALLOC 1
26032 #### Report on what we decided to do.
26033 #### Report GTK as a toolkit, even if it doesn't use Xt.
26034 #### It makes printing result more understandable as using GTK sets
26035 #### toolkit_scroll_bars to yes by default.
26036 if test "${HAVE_GTK}" = "yes"; then
26041 Configured for \`${canonical}'.
26043 Where should the build process find the source code? ${srcdir}
26044 What operating system and machine description files should Emacs use?
26045 \`${opsysfile}' and \`${machfile}'
26046 What compiler should emacs be built with? ${CC} ${CFLAGS}
26047 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26048 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26049 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26050 What window system should Emacs use? ${window_system}
26051 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26053 if test -n "${x_includes}"; then
26054 echo " Where do we find X Windows header files? ${x_includes}"
26056 echo " Where do we find X Windows header files? Standard dirs"
26058 if test -n "${x_libraries}"; then
26059 echo " Where do we find X Windows libraries? ${x_libraries}"
26061 echo " Where do we find X Windows libraries? Standard dirs"
26064 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26065 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26066 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26067 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26068 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26069 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26070 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26071 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26072 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26073 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26074 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26076 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26077 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26078 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26079 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26081 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26084 if test $USE_XASSERTS = yes; then
26085 echo " Compiling with asserts turned on."
26086 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26091 if test "$HAVE_NS" = "yes"; then
26093 echo "You must run \"make install\" in order to test the built application.
26094 The installed application will go to nextstep/Emacs.app and can be
26095 run or moved from there."
26096 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26097 echo "The application will be fully self-contained."
26099 echo "The lisp resources for the application will be installed under ${prefix}.
26100 You may need to run \"make install\" with sudo. The application will fail
26101 to run if these resources are not installed."
26106 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26107 echo "D-Bus integration has been tested for GNU/Linux only."
26112 # Remove any trailing slashes in these variables.
26113 test "${prefix}" != NONE
&&
26114 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26115 test "${exec_prefix}" != NONE
&&
26116 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26118 # Now get this: Some word that is part of the ${srcdir} directory name
26119 # or the ${configuration} value might, just might, happen to be an
26120 # identifier like `sun4' or `i386' or something, and be predefined by
26121 # the C preprocessor to some helpful value like 1, or maybe the empty
26122 # string. Needless to say consequent macro substitutions are less
26123 # than conducive to the makefile finding the correct directory.
26124 cpp_undefs
="`echo $srcdir $configuration $canonical |
26125 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26126 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26128 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26129 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26130 ## from Makefile.c can correctly provide the arg `-traditional' to the
26133 cat >conftest.
$ac_ext <<_ACEOF
26136 cat confdefs.h
>>conftest.
$ac_ext
26137 cat >>conftest.
$ac_ext <<_ACEOF
26138 /* end confdefs.h. */
26141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26142 $EGREP "yes..yes" >/dev
/null
2>&1; then
26143 CPP_NEED_TRADITIONAL
=no
26145 CPP_NEED_TRADITIONAL
=yes
26150 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26152 ac_config_commands
="$ac_config_commands default"
26154 cat >confcache
<<\_ACEOF
26155 # This file is a shell script that caches the results of configure
26156 # tests run on this system so they can be shared between configure
26157 # scripts and configure runs, see configure's option --config-cache.
26158 # It is not useful on other systems. If it contains results you don't
26159 # want to keep, you may remove or edit it.
26161 # config.status only pays attention to the cache file if you give it
26162 # the --recheck option to rerun configure.
26164 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26165 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26166 # following values.
26170 # The following way of writing the cache mishandles newlines in values,
26171 # but we know of no workaround that is simple, portable, and efficient.
26172 # So, we kill variables containing newlines.
26173 # Ultrix sh set writes to stderr and can't be redirected directly,
26174 # and sets the high bit in the cache file unless we assign to the vars.
26176 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26177 eval ac_val
=\$
$ac_var
26181 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26182 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26185 _ | IFS | as_nl
) ;; #(
26186 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26187 *) $as_unset $ac_var ;;
26193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26194 *${as_nl}ac_space
=\
*)
26195 # `set' does not quote correctly, so add quotes (double-quote
26196 # substitution turns \\\\ into \\, and sed turns \\ into \).
26199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26202 # `set' quotes correctly as required by POSIX, so do not add quotes.
26203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26216 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26217 if test -w "$cache_file"; then
26218 test "x$cache_file" != "x/dev/null" &&
26219 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26220 $as_echo "$as_me: updating cache $cache_file" >&6;}
26221 cat confcache
>$cache_file
26223 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26224 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26229 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26230 # Let make expand exec_prefix.
26231 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26233 DEFS
=-DHAVE_CONFIG_H
26237 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26238 # 1. Remove the extension, and $U if already installed.
26239 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26240 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26242 # will be set to the directory where LIBOBJS objects are built.
26243 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26244 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26246 LIBOBJS
=$ac_libobjs
26248 LTLIBOBJS
=$ac_ltlibobjs
26252 : ${CONFIG_STATUS=./config.status}
26254 ac_clean_files_save
=$ac_clean_files
26255 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26256 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26257 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26258 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26260 # Generated by $as_me.
26261 # Run this file to recreate the current configuration.
26262 # Compiler output produced by configure, useful for debugging
26263 # configure, is in config.log if it exists.
26266 ac_cs_recheck=false
26268 SHELL=\${CONFIG_SHELL-$SHELL}
26271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26272 ## --------------------- ##
26273 ## M4sh Initialization. ##
26274 ## --------------------- ##
26276 # Be more Bourne compatible
26277 DUALCASE
=1; export DUALCASE
# for MKS sh
26278 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26281 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26282 # is contrary to our usage. Disable this feature.
26283 alias -g '${1+"$@"}'='"$@"'
26284 setopt NO_GLOB_SUBST
26286 case `(set -o) 2>/dev/null` in
26287 *posix
*) set -o posix
;;
26296 # Avoid depending upon Character Ranges.
26297 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26298 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26299 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26300 as_cr_digits
='0123456789'
26301 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26307 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26310 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26311 as_echo='printf %s
\n'
26312 as_echo_n='printf %s
'
26314 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26315 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26316 as_echo_n='/usr
/ucb
/echo -n'
26318 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26319 as_echo_n_body='eval
26323 expr "X$arg" : "X\\(.*\\)$as_nl";
26324 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26326 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26328 export as_echo_n_body
26329 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26331 export as_echo_body
26332 as_echo='sh
-c $as_echo_body as_echo
'
26335 # The user is always right.
26336 if test "${PATH_SEPARATOR+set}" != set; then
26338 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26339 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26344 # Support unset when possible.
26345 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26353 # We need space, tab and new line, in precisely that order. Quoting is
26354 # there to prevent editors from complaining about space-tab.
26355 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26356 # splitting by setting IFS to empty value.)
26359 # Find who we are. Look in the path if we contain no directory separator.
26361 *[\\/]* ) as_myself=$0 ;;
26362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26363 for as_dir in $PATH
26366 test -z "$as_dir" && as_dir=.
26367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26373 # We did not find ourselves, most probably we were run as `sh COMMAND'
26374 # in which case we are not to be found in the path.
26375 if test "x$as_myself" = x
; then
26378 if test ! -f "$as_myself"; then
26379 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26380 { (exit 1); exit 1; }
26383 # Work around bugs in pre-3.0 UWIN ksh.
26384 for as_var
in ENV MAIL MAILPATH
26385 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26397 # Required to use basename.
26398 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26399 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26405 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26406 as_basename
=basename
26412 # Name of the executable.
26413 as_me
=`$as_basename -- "$0" ||
26414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26415 X"$0" : 'X\(//\)$' \| \
26416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26418 sed '/^.*\/\([^/][^/]*\)\/*$/{
26437 as_lineno_1
=$LINENO
26438 as_lineno_2
=$LINENO
26439 test "x$as_lineno_1" != "x$as_lineno_2" &&
26440 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26443 # uniformly replaced by the line number. The first 'sed' inserts a
26444 # line-number line after each line using $LINENO; the second 'sed'
26445 # does the real work. The second script uses 'N' to pair each
26446 # line-number line with the line containing $LINENO, and appends
26447 # trailing '-' during substitution so that $LINENO is not a special
26448 # case at line end.
26449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26450 # scripts with optimization help from Paolo Bonzini. Blame Lee
26451 # E. McMahon (1931-1989) for sed's syntax. :-)
26463 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26466 ' >$as_me.lineno
&&
26467 chmod +x
"$as_me.lineno" ||
26468 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26469 { (exit 1); exit 1; }; }
26471 # Don't try to exec as it changes $[0], causing all sort of problems
26472 # (the dirname of $[0] is not the place where we might find the
26473 # original and so on. Autoconf is especially sensitive to this).
26474 .
"./$as_me.lineno"
26475 # Exit status is that of the last command.
26480 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26486 ECHO_C
= ECHO_N
= ECHO_T
=
26487 case `echo -n x` in
26489 case `echo 'x\c'` in
26490 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26496 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26497 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26503 rm -f conf$$ conf$$.exe conf$$.
file
26504 if test -d conf$$.dir
; then
26505 rm -f conf$$.dir
/conf$$.
file
26508 mkdir conf$$.dir
2>/dev
/null
26510 if (echo >conf$$.
file) 2>/dev
/null
; then
26511 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26513 # ... but there are two gotchas:
26514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26516 # In both cases, we have to default to `cp -p'.
26517 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26519 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26527 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26528 rmdir conf$$.dir
2>/dev
/null
26530 if mkdir
-p .
2>/dev
/null
; then
26533 test -d .
/-p && rmdir .
/-p
26537 if test -x / >/dev
/null
2>&1; then
26538 as_test_x
='test -x'
26540 if ls -dL / >/dev
/null
2>&1; then
26547 if test -d "$1"; then
26553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26554 ???[sx]*):;;*)false;;esac;fi
26558 as_executable_p
=$as_test_x
26560 # Sed expression to map a string onto a valid CPP name.
26561 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26563 # Sed expression to map a string onto a valid variable name.
26564 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26569 # Save the log message, to keep $[0] and so on meaningful, and to
26570 # report actual input values of CONFIG_FILES etc. instead of their
26571 # values after options handling.
26573 This file was extended by emacs $as_me 24.0.50, which was
26574 generated by GNU Autoconf 2.63. Invocation command line was
26576 CONFIG_FILES = $CONFIG_FILES
26577 CONFIG_HEADERS = $CONFIG_HEADERS
26578 CONFIG_LINKS = $CONFIG_LINKS
26579 CONFIG_COMMANDS = $CONFIG_COMMANDS
26582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26587 case $ac_config_files in *"
26588 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26591 case $ac_config_headers in *"
26592 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26597 # Files that config.status was made for.
26598 config_files="$ac_config_files"
26599 config_headers="$ac_config_headers"
26600 config_commands="$ac_config_commands"
26604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26606 \`$as_me' instantiates files from templates according to the
26607 current configuration.
26609 Usage: $0 [OPTION]... [FILE]...
26611 -h, --help print this help, then exit
26612 -V, --version print version number and configuration settings, then exit
26613 -q, --quiet, --silent
26614 do not print progress messages
26615 -d, --debug don't remove temporary files
26616 --recheck update $as_me by reconfiguring in the same conditions
26617 --file=FILE[:TEMPLATE]
26618 instantiate the configuration file FILE
26619 --header=FILE[:TEMPLATE]
26620 instantiate the configuration header FILE
26622 Configuration files:
26625 Configuration headers:
26628 Configuration commands:
26631 Report bugs to <bug-autoconf@gnu.org>."
26634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26636 emacs config.status 24.0.50
26637 configured by $0, generated by GNU Autoconf 2.63,
26638 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26640 Copyright (C) 2008 Free Software Foundation, Inc.
26641 This config.status script is free software; the Free Software Foundation
26642 gives unlimited permission to copy, distribute and modify it."
26647 test -n "\$AWK" || AWK=awk
26650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26651 # The default lists apply if the user does not specify any file.
26657 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26658 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26669 # Handling of the options.
26670 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26672 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26673 $as_echo "$ac_cs_version"; exit ;;
26674 --debug |
--debu |
--deb |
--de |
--d |
-d )
26676 --file |
--fil |
--fi |
--f )
26679 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26681 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26682 ac_need_defaults
=false
;;
26683 --header |
--heade |
--head |
--hea )
26686 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26688 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26689 ac_need_defaults
=false
;;
26691 # Conflict between --help and --header
26692 { $as_echo "$as_me: error: ambiguous option: $1
26693 Try \`$0 --help' for more information." >&2
26694 { (exit 1); exit 1; }; };;
26695 --help |
--hel |
-h )
26696 $as_echo "$ac_cs_usage"; exit ;;
26697 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26698 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26701 # This is an error.
26702 -*) { $as_echo "$as_me: error: unrecognized option: $1
26703 Try \`$0 --help' for more information." >&2
26704 { (exit 1); exit 1; }; } ;;
26706 *) ac_config_targets
="$ac_config_targets $1"
26707 ac_need_defaults
=false
;;
26713 ac_configure_extra_args
=
26715 if $ac_cs_silent; then
26717 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26722 if \$ac_cs_recheck; then
26723 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26725 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26726 CONFIG_SHELL='$SHELL'
26727 export CONFIG_SHELL
26732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26737 ## Running $as_me. ##
26743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26747 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26753 # Handling of arguments.
26754 for ac_config_target
in $ac_config_targets
26756 case $ac_config_target in
26757 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26758 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26759 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26760 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26761 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26762 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26763 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26764 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26765 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26766 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26767 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26768 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26769 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26771 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26772 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26773 { (exit 1); exit 1; }; };;
26778 # If the user did not use the arguments to specify the items to instantiate,
26779 # then the envvar interface is used. Set only those that are not.
26780 # We use the long form for the default assignment because of an extremely
26781 # bizarre bug on SunOS 4.1.3.
26782 if $ac_need_defaults; then
26783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26788 # Have a temporary directory for convenience. Make it in the build tree
26789 # simply because there is no reason against having it here, and in addition,
26790 # creating and moving files from /tmp can sometimes cause problems.
26791 # Hook for its removal unless debugging.
26792 # Note that there is a small window in which the directory will not be cleaned:
26793 # after its creation but before its name has been assigned to `$tmp'.
26797 trap 'exit_status=$?
26798 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26800 trap '{ (exit 1); exit 1; }' 1 2 13 15
26802 # Create a (secure) tmp directory for tmp files.
26805 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26806 test -n "$tmp" && test -d "$tmp"
26809 tmp
=.
/conf$$
-$RANDOM
26810 (umask 077 && mkdir
"$tmp")
26813 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26814 { (exit 1); exit 1; }
26817 # Set up the scripts for CONFIG_FILES section.
26818 # No need to generate them if there are no CONFIG_FILES.
26819 # This happens for instance with `./config.status config.h'.
26820 if test -n "$CONFIG_FILES"; then
26824 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26828 ac_cs_awk_cr
=$ac_cr
26831 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26836 echo "cat >conf$$subs.awk <<_ACEOF" &&
26837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26839 } >conf$$subs.sh ||
26840 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26841 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26842 { (exit 1); exit 1; }; }
26843 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26845 for ac_last_try in false false false false false :; do
26846 . ./conf$$subs.sh ||
26847 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26848 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26849 { (exit 1); exit 1; }; }
26851 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26852 if test $ac_delim_n = $ac_delim_num; then
26854 elif $ac_last_try; then
26855 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26856 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26857 { (exit 1); exit 1; }; }
26859 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26862 rm -f conf$$subs.sh
26864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26865 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26869 s/^/S["/; s
/!.
*/"]=/
26879 s/\(.\{148\}\).*/\1/
26881 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26886 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26893 s/\(.\{148\}\).*/\1/
26895 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26899 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26904 ' <conf$$subs.awk | sed '
26909 ' >>$CONFIG_STATUS || ac_write_fail=1
26910 rm -f conf$$subs.awk
26911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26913 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26914 for (key in S) S_is_set[key] = 1
26920 nfields = split(line, field, "@
")
26922 len = length(field[1])
26923 for (i = 2; i < nfields; i++) {
26925 keylen = length(key)
26926 if (S_is_set[key]) {
26928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26929 len += length(value) + length(field[++i])
26940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26941 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26942 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26945 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26946 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26947 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26948 { (exit 1); exit 1; }; }
26951 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26952 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26953 # trailing colons and then remove the whole line if VPATH becomes empty
26954 # (actually we leave an empty line to preserve line numbers).
26955 if test "x
$srcdir" = x.; then
26956 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26957 s/:*\$(srcdir):*/:/
26958 s/:*\${srcdir}:*/:/
26960 s/^\([^=]*=[ ]*\):*/\1/
26966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26967 fi # test -n "$CONFIG_FILES"
26969 # Set up the scripts for CONFIG_HEADERS section.
26970 # No need to generate them if there are no CONFIG_HEADERS.
26971 # This happens for instance with `./config.status Makefile'.
26972 if test -n "$CONFIG_HEADERS"; then
26973 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26977 # Transform confdefs.h into an awk script `defines.awk', embedded as
26978 # here-document in config.status, that substitutes the proper values into
26979 # config.h.in to produce config.h.
26981 # Create a delimiter string that does not exist in confdefs.h, to ease
26982 # handling of long lines.
26984 for ac_last_try in false false :; do
26985 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26986 if test -z "$ac_t"; then
26988 elif $ac_last_try; then
26989 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26990 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26991 { (exit 1); exit 1; }; }
26993 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26997 # For the awk script, D is an array of macro values keyed by name,
26998 # likewise P contains macro parameters if any. Preserve backslash
26999 # newline sequences.
27001 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27003 s/.\{148\}/&'"$ac_delim"'/g
27006 s/^[ ]*#[ ]*define[ ][ ]*/ /
27013 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27015 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27020 D["\
1"]=" \
3\\\\\\n
"\\/p
27022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27027 s/.\{148\}/&'"$ac_delim"'/g
27032 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27035 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27037 ' <confdefs.h | sed '
27038 s/'"$ac_delim"'/"\\\
27039 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27042 for (key in D) D_is_set[key] = 1
27045 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27047 split(line, arg, " ")
27048 if (arg[1] == "#") {
27052 defundef
= substr
(arg
[1], 2)
27055 split(mac1
, mac2
, "(") #)
27057 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27058 if (D_is_set
[macro
]) {
27059 # Preserve the white space surrounding the "#".
27060 print prefix
"define", macro P
[macro
] D
[macro
]
27063 # Replace #undef with comments. This is necessary, for example,
27064 # in the case of _POSIX_SOURCE, which is predefined and required
27065 # on some systems where configure will not decide to define it.
27066 if (defundef
== "undef") {
27067 print
"/*", prefix defundef
, macro
, "*/"
27075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27076 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27077 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27078 { (exit 1); exit 1; }; }
27079 fi # test -n "$CONFIG_HEADERS"
27082 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27087 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27089 case $ac_mode$ac_tag in
27091 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27092 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27093 { (exit 1); exit 1; }; };;
27094 :[FH
]-) ac_tag
=-:-;;
27095 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27112 -) ac_f
="$tmp/stdin";;
27113 *) # Look for the file first in the build tree, then in the source tree
27114 # (if the path is not absolute). The absolute path cannot be DOS-style,
27115 # because $ac_f cannot contain `:'.
27119 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27121 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27122 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27123 { (exit 1); exit 1; }; };;
27125 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27126 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27129 # Let's still pretend it is `configure' which instantiates (i.e., don't
27130 # use $as_me), people would be surprised to read:
27131 # /* config.h. Generated by config.status. */
27132 configure_input
='Generated from '`
27133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27135 if test x
"$ac_file" != x-
; then
27136 configure_input
="$ac_file. $configure_input"
27137 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27138 $as_echo "$as_me: creating $ac_file" >&6;}
27140 # Neutralize special characters interpreted by sed in replacement strings.
27141 case $configure_input in #(
27142 *\
&* |
*\|
* |
*\\* )
27143 ac_sed_conf_input
=`$as_echo "$configure_input" |
27144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27145 *) ac_sed_conf_input
=$configure_input;;
27149 *:-:* |
*:-) cat >"$tmp/stdin" \
27150 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27151 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27152 { (exit 1); exit 1; }; } ;;
27157 ac_dir
=`$as_dirname -- "$ac_file" ||
27158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27159 X"$ac_file" : 'X\(//\)[^/]' \| \
27160 X"$ac_file" : 'X\(//\)$' \| \
27161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27162 $as_echo X"$ac_file" |
27163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27167 /^X\(\/\/\)[^/].*/{
27182 -*) as_dir
=.
/$as_dir;;
27184 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27188 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27189 *) as_qdir
=$as_dir;;
27191 as_dirs
="'$as_qdir' $as_dirs"
27192 as_dir
=`$as_dirname -- "$as_dir" ||
27193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27194 X"$as_dir" : 'X\(//\)[^/]' \| \
27195 X"$as_dir" : 'X\(//\)$' \| \
27196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27197 $as_echo X"$as_dir" |
27198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27202 /^X\(\/\/\)[^/].*/{
27215 test -d "$as_dir" && break
27217 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27218 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27219 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27220 { (exit 1); exit 1; }; }; }
27224 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27226 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27227 # A ".." for each directory in $ac_dir_suffix.
27228 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27229 case $ac_top_builddir_sub in
27230 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27231 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27234 ac_abs_top_builddir
=$ac_pwd
27235 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27236 # for backward compatibility:
27237 ac_top_builddir
=$ac_top_build_prefix
27240 .
) # We are building in place.
27242 ac_top_srcdir
=$ac_top_builddir_sub
27243 ac_abs_top_srcdir
=$ac_pwd ;;
27244 [\\/]* | ?
:[\\/]* ) # Absolute name.
27245 ac_srcdir
=$srcdir$ac_dir_suffix;
27246 ac_top_srcdir
=$srcdir
27247 ac_abs_top_srcdir
=$srcdir ;;
27248 *) # Relative name.
27249 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27250 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27251 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27253 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27263 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27264 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27269 # If the template does not know about datarootdir, expand it.
27270 # FIXME: This hack should be removed a few years after 2.60.
27271 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27285 *datarootdir
*) ac_datarootdir_seen
=yes;;
27286 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27287 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27291 ac_datarootdir_hack='
27292 s&@datadir@&$datadir&g
27293 s&@docdir@&$docdir&g
27294 s&@infodir@&$infodir&g
27295 s&@localedir@&$localedir&g
27296 s&@mandir@&$mandir&g
27297 s&\\\${datarootdir}&$datarootdir&g' ;;
27301 # Neutralize VPATH when `$srcdir' = `.'.
27302 # Shell code in configure.ac might set extrasub.
27303 # FIXME: do we really want to maintain this feature?
27304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27305 ac_sed_extra="$ac_vpsub
27308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27310 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27311 s|@configure_input@|
$ac_sed_conf_input|
;t t
27312 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27313 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27314 s
&@srcdir@
&$ac_srcdir&;t t
27315 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27316 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27317 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27318 s
&@builddir@
&$ac_builddir&;t t
27319 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27320 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27321 s
&@INSTALL@
&$ac_INSTALL&;t t
27322 $ac_datarootdir_hack
27324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27325 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27326 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27327 { (exit 1); exit 1; }; }
27329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27330 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27332 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27333 which seems to be undefined. Please make sure it is defined." >&5
27334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27335 which seems to be undefined. Please make sure it is defined." >&2;}
27339 -) cat "$tmp/out" && rm -f "$tmp/out";;
27340 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27342 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27343 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27344 { (exit 1); exit 1; }; }
27350 if test x"$ac_file" != x-; then
27352 $as_echo "/* $configure_input */" \
27353 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27354 } >"$tmp/config.h" \
27355 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27356 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27357 { (exit 1); exit 1; }; }
27358 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27359 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27360 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27363 mv "$tmp/config.h" "$ac_file" \
27364 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27365 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27366 { (exit 1); exit 1; }; }
27369 $as_echo "/* $configure_input */" \
27370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27371 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27372 $as_echo "$as_me: error: could not create -" >&2;}
27373 { (exit 1); exit 1; }; }
27377 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27378 $as_echo "$as_me: executing $ac_file commands" >&6;}
27383 case $ac_file$ac_mode in
27386 ### Make the necessary directories, if they don't exist.
27387 for dir
in etc lisp
; do
27388 test -d ${dir} || mkdir
${dir}
27391 # Build src/Makefile from ${srcdir}/src/Makefile.c
27392 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27393 # This must be done after src/config.h is built, since we rely on that file.
27395 echo creating src
/epaths.h
27396 ${MAKE-make} epaths-force
27398 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27399 # `..' to `. .' unless invoked with -traditional
27401 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27402 CPPFLAGS
="$CPPFLAGS -traditional"
27405 echo creating lib-src
/Makefile
27407 rm -f junk.c junk1.c junk2.c
27408 sed -e '/start of cpp stuff/q' \
27409 < Makefile.c
> junk1.c
27410 sed -e '1,/start of cpp stuff/d'\
27411 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27412 < Makefile.c
> junk.c
27413 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27414 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27415 cat junk1.c junk2.c
> Makefile.new
27416 rm -f junk.c junk1.c junk2.c
27417 chmod 444 Makefile.new
27418 mv -f Makefile.new Makefile
27421 echo creating src
/Makefile
27423 rm -f junk.c junk1.c junk2.c
27424 sed -e '/start of cpp stuff/q' \
27425 < Makefile.c
> junk1.c
27426 sed -e '1,/start of cpp stuff/d'\
27427 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27428 < Makefile.c
> junk.c
27429 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27430 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27431 cat junk1.c junk2.c
> Makefile.new
27432 rm -f junk.c junk1.c junk2.c
27433 chmod 444 Makefile.new
27434 mv -f Makefile.new Makefile
27437 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27438 echo creating src
/.gdbinit
27439 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27448 { (exit 0); exit 0; }
27450 chmod +x
$CONFIG_STATUS
27451 ac_clean_files
=$ac_clean_files_save
27453 test $ac_write_fail = 0 ||
27454 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27455 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27456 { (exit 1); exit 1; }; }
27459 # configure is writing to config.log, and then calls config.status.
27460 # config.status does its own redirection, appending to config.log.
27461 # Unfortunately, on DOS this fails, as config.log is still kept open
27462 # by configure, so config.status won't be able to write to it; its
27463 # output is simply discarded. So we exec the FD to /dev/null,
27464 # effectively closing config.log, so it can be properly (re)opened and
27465 # appended to by config.status. When coming back to configure, we
27466 # need to make the FD available again.
27467 if test "$no_create" != yes; then
27469 ac_config_status_args
=
27470 test "$silent" = yes &&
27471 ac_config_status_args
="$ac_config_status_args --quiet"
27473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27476 # would make configure fail if this is the last instruction.
27477 $ac_cs_success ||
{ (exit 1); exit 1; }
27479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27480 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}