2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
767 x_default_search_path
788 GNUSTEP_SYSTEM_HEADERS
789 GNUSTEP_SYSTEM_LIBRARIES
791 LIB_SRC_EXTRA_INSTALLABLES
800 enable_option_checking
820 with_toolkit_scroll_bars
834 enable_ns_self_contained
836 enable_maintainer_mode
844 ac_precious_vars
='build_alias
856 # Initialize some variables set by options.
858 ac_init_version
=false
859 ac_unrecognized_opts
=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name
=s
,x
,x
,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir
='${exec_prefix}/bin'
885 sbindir
='${exec_prefix}/sbin'
886 libexecdir
='${exec_prefix}/libexec'
887 datarootdir
='${prefix}/share'
888 datadir
='${datarootdir}'
889 sysconfdir
='${prefix}/etc'
890 sharedstatedir
='${prefix}/com'
891 localstatedir
='${prefix}/var'
892 includedir
='${prefix}/include'
893 oldincludedir
='/usr/include'
894 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir
='${datarootdir}/info'
900 libdir
='${exec_prefix}/lib'
901 localedir
='${datarootdir}/locale'
902 mandir
='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\
$ac_option
916 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
928 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
931 -build |
--build |
--buil |
--bui |
--bu)
932 ac_prev
=build_alias
;;
933 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
934 build_alias
=$ac_optarg ;;
936 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
937 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
938 ac_prev
=cache_file
;;
939 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
940 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
941 cache_file
=$ac_optarg ;;
944 cache_file
=config.cache
;;
946 -datadir |
--datadir |
--datadi |
--datad)
948 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
949 datadir
=$ac_optarg ;;
951 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
952 |
--dataroo |
--dataro |
--datar)
953 ac_prev
=datarootdir
;;
954 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
955 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
956 datarootdir
=$ac_optarg ;;
958 -disable-* |
--disable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
964 ac_useropt_orig
=$ac_useropt
965 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep
=', ';;
973 eval enable_
$ac_useropt=no
;;
975 -docdir |
--docdir |
--docdi |
--doc |
--do)
977 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
980 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
982 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
985 -enable-* |
--enable-*)
986 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig
=$ac_useropt
992 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep
=', ';;
1000 eval enable_
$ac_useropt=\
$ac_optarg ;;
1002 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1003 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1004 |
--exec |
--exe |
--ex)
1005 ac_prev
=exec_prefix
;;
1006 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1007 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1008 |
--exec=* |
--exe=* |
--ex=*)
1009 exec_prefix
=$ac_optarg ;;
1011 -gas |
--gas |
--ga |
--g)
1012 # Obsolete; use --with-gas.
1015 -help |
--help |
--hel |
--he |
-h)
1016 ac_init_help
=long
;;
1017 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1018 ac_init_help
=recursive
;;
1019 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1020 ac_init_help
=short
;;
1022 -host |
--host |
--hos |
--ho)
1023 ac_prev
=host_alias
;;
1024 -host=* |
--host=* |
--hos=* |
--ho=*)
1025 host_alias
=$ac_optarg ;;
1027 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1029 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1031 htmldir
=$ac_optarg ;;
1033 -includedir |
--includedir |
--includedi |
--included |
--include \
1034 |
--includ |
--inclu |
--incl |
--inc)
1035 ac_prev
=includedir
;;
1036 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1037 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1038 includedir
=$ac_optarg ;;
1040 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1042 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1043 infodir
=$ac_optarg ;;
1045 -libdir |
--libdir |
--libdi |
--libd)
1047 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1048 libdir
=$ac_optarg ;;
1050 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1051 |
--libexe |
--libex |
--libe)
1052 ac_prev
=libexecdir
;;
1053 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1054 |
--libexe=* |
--libex=* |
--libe=*)
1055 libexecdir
=$ac_optarg ;;
1057 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1058 ac_prev
=localedir
;;
1059 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1060 localedir
=$ac_optarg ;;
1062 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1063 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1064 ac_prev
=localstatedir
;;
1065 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1066 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1067 localstatedir
=$ac_optarg ;;
1069 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1071 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1072 mandir
=$ac_optarg ;;
1074 -nfp |
--nfp |
--nf)
1075 # Obsolete; use --without-fp.
1078 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1079 |
--no-cr |
--no-c |
-n)
1082 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1083 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1086 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1087 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1088 |
--oldin |
--oldi |
--old |
--ol |
--o)
1089 ac_prev
=oldincludedir
;;
1090 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1091 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1092 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1093 oldincludedir
=$ac_optarg ;;
1095 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1097 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1098 prefix
=$ac_optarg ;;
1100 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1101 |
--program-pre |
--program-pr |
--program-p)
1102 ac_prev
=program_prefix
;;
1103 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1104 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1105 program_prefix
=$ac_optarg ;;
1107 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1108 |
--program-suf |
--program-su |
--program-s)
1109 ac_prev
=program_suffix
;;
1110 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1111 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1112 program_suffix
=$ac_optarg ;;
1114 -program-transform-name |
--program-transform-name \
1115 |
--program-transform-nam |
--program-transform-na \
1116 |
--program-transform-n |
--program-transform- \
1117 |
--program-transform |
--program-transfor \
1118 |
--program-transfo |
--program-transf \
1119 |
--program-trans |
--program-tran \
1120 |
--progr-tra |
--program-tr |
--program-t)
1121 ac_prev
=program_transform_name
;;
1122 -program-transform-name=* |
--program-transform-name=* \
1123 |
--program-transform-nam=* |
--program-transform-na=* \
1124 |
--program-transform-n=* |
--program-transform-=* \
1125 |
--program-transform=* |
--program-transfor=* \
1126 |
--program-transfo=* |
--program-transf=* \
1127 |
--program-trans=* |
--program-tran=* \
1128 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1129 program_transform_name
=$ac_optarg ;;
1131 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1133 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1134 pdfdir
=$ac_optarg ;;
1136 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1138 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1141 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1142 |
-silent |
--silent |
--silen |
--sile |
--sil)
1145 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1147 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1149 sbindir
=$ac_optarg ;;
1151 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1152 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1153 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1155 ac_prev
=sharedstatedir
;;
1156 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1157 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1158 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1160 sharedstatedir
=$ac_optarg ;;
1162 -site |
--site |
--sit)
1164 -site=* |
--site=* |
--sit=*)
1167 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1169 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1170 srcdir
=$ac_optarg ;;
1172 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1173 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1174 ac_prev
=sysconfdir
;;
1175 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1176 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1177 sysconfdir
=$ac_optarg ;;
1179 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1180 ac_prev
=target_alias
;;
1181 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1182 target_alias
=$ac_optarg ;;
1184 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1187 -version |
--version |
--versio |
--versi |
--vers |
-V)
1188 ac_init_version
=: ;;
1191 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig
=$ac_useropt
1214 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep
=', ';;
1222 eval with_
$ac_useropt=no
;;
1225 # Obsolete; use --with-x.
1228 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1229 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1230 ac_prev
=x_includes
;;
1231 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1232 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1233 x_includes
=$ac_optarg ;;
1235 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1236 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1237 ac_prev
=x_libraries
;;
1238 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1239 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1240 x_libraries
=$ac_optarg ;;
1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1248 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\
$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 if test -n "$ac_prev"; then
1268 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 # Check all directory arguments for consistency.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1289 # Remove trailing slashes.
1292 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\
$ac_val;;
1295 # Be sure to have absolute directory names.
1297 [\\/$
]* | ?
:[\\/]* ) continue;;
1298 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target
=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x
; then
1313 if test "x$build_alias" = x
; then
1314 cross_compiling
=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1325 test "$silent" = yes && exec 6>/dev
/null
1328 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di
=`ls -di .` &&
1330 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1331 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted
=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir
=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted
=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1377 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1390 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 for ac_var
in $ac_precious_vars; do
1393 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1395 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1406 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1469 --x-includes=DIR X include files are
in DIR
1470 --x-libraries=DIR X library files are
in DIR
1473 --build=BUILD configure
for building on BUILD
[guessed
]
1474 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1485 --disable-option-checking ignore unrecognized
--enable/--with options
1486 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1487 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1488 --disable-ns-self-contained
1489 disable self contained build under NeXTstep
1490 --enable-asserts compile code with asserts enabled
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful
(and
1493 sometimes confusing
) to the casual installer
1494 --enable-locallisppath=PATH
1495 directories Emacs should search
for lisp files
1496 specific to this site
1497 --enable-checking[=LIST
]
1498 enable expensive run-time checks. With LIST
, enable
1499 only specific categories of checks. Categories are
:
1500 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1501 stringfreelist
, xmallocoverrun
, conslist
1502 --enable-profiling build emacs with profiling support. This might not
1503 work on all platforms
1504 --enable-autodepend automatically generate dependencies to .h-files.
1505 Requires GNU Make and Gcc. Enabled
if GNU Make and
1507 --disable-largefile omit support
for large files
1510 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1511 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1512 --without-pop don
't support POP mail retrieval with movemail
1513 --with-kerberos support Kerberos-authenticated POP
1514 --with-kerberos5 support Kerberos version 5 authenticated POP
1515 --with-hesiod support Hesiod to get the POP server host
1516 --with-mmdf support MMDF mailboxes
1517 --with-mail-unlink unlink, rather than empty, mail spool after reading
1518 --with-mailhost=HOSTNAME
1519 string giving default POP mail host
1520 --without-sound don't compile with sound support
1521 --without-sync-input process async input synchronously
1522 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1524 --without-xpm don
't compile with XPM image support
1525 --without-jpeg don't compile with JPEG image support
1526 --without-tiff don
't compile with TIFF image support
1527 --without-gif don't compile with GIF image support
1528 --without-png don
't compile with PNG image support
1529 --without-rsvg don't compile with SVG image support
1530 --without-xft don
't use XFT for anti aliased fonts
1531 --without-libotf don't use libotf
for OpenType font support
1532 --without-m17n-flt don
't use m17n-flt for text shaping
1533 --without-toolkit-scroll-bars
1534 don't use Motif or Xaw3d scroll bars
1535 --without-xaw3d don
't use Xaw3d
1536 --without-xim don't use X11 XIM
1537 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1538 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1540 --without-dbus don't compile with D-Bus support
1541 --without-gconf don
't compile with GConf support
1542 --without-selinux don't compile with SELinux support
1543 --without-makeinfo don
't require makeinfo for building manuals
1545 --with-pkg-config-prog=PATH
1546 path to pkg-config for finding GTK and librsvg
1547 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1548 /usr/lib, or /usr/lib64 on some platforms.
1549 --with-gnustep-conf=PATH
1550 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1551 or /etc/GNUstep/GNUstep.conf
1552 --with-x use the X Window System
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1563 XMKMF Path to xmkmf, Makefile generator for X Window System
1565 Use these variables to override the choices made by `configure' or to
help
1566 it to
find libraries and programs with nonstandard names
/locations.
1572 if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1581 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1583 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1588 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1591 ac_abs_top_builddir
=$ac_pwd
1592 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir
=$ac_top_build_prefix
1597 .
) # We are building in place.
1599 ac_top_srcdir
=$ac_top_builddir_sub
1600 ac_abs_top_srcdir
=$ac_pwd ;;
1601 [\\/]* | ?
:[\\/]* ) # Absolute name.
1602 ac_srcdir
=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir
=$srcdir
1604 ac_abs_top_srcdir
=$srcdir ;;
1606 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1610 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1612 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1630 emacs configure
24.0.50
1631 generated by GNU Autoconf
2.62
1633 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1635 This configure
script is free software
; the Free Software Foundation
1636 gives unlimited permission to copy
, distribute and modify it.
1640 cat >config.log
<<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1644 It was created by emacs $as_me 24.0.50, which was
1645 generated by GNU Autoconf 2.62. Invocation command line was
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir
=.
1681 $as_echo "PATH: $as_dir"
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_must_keep_next
=false
1711 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1712 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1713 |
-silent |
--silent |
--silen |
--sile |
--sil)
1716 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1721 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true
; then
1723 ac_must_keep_next
=false
# Got value, back to normal.
1726 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1727 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1728 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1729 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 -* ) ac_must_keep_next
=true
;;
1737 ac_configure_args
="$ac_configure_args '$ac_arg'"
1742 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1743 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log. We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1761 # The following way of writing the cache mishandles newlines in values,
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1769 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1772 _ | IFS | as_nl) ;; #(
1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 $as_echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var
in $ac_subst_files
1818 eval ac_val
=\$
$ac_var
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 $as_echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 $as_echo "$as_me: caught signal $ac_signal"
1839 $as_echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal
in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest
* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h
<<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h
<<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h
<<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h
<<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h
<<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 ac_site_file1
=$CONFIG_SITE
1886 elif test "x$prefix" != xNONE
; then
1887 ac_site_file1
=$prefix/share
/config.site
1888 ac_site_file2
=$prefix/etc
/config.site
1890 ac_site_file1
=$ac_default_prefix/share
/config.site
1891 ac_site_file2
=$ac_default_prefix/etc
/config.site
1893 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1895 test "x$ac_site_file" = xNONE
&& continue
1896 if test -r "$ac_site_file"; then
1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 $as_echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1912 *) .
"./$cache_file";;
1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 $as_echo "$as_me: creating cache $cache_file" >&6;}
1921 ac_header_list
="$ac_header_list sys/time.h"
1922 ac_header_list
="$ac_header_list unistd.h"
1923 ac_func_list
="$ac_func_list alarm"
1924 # Check that the precious variables saved in the cache have kept the same
1926 ac_cache_corrupted
=false
1927 for ac_var
in $ac_precious_vars; do
1928 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1929 eval ac_new_set
=\
$ac_env_${ac_var}_set
1930 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1931 eval ac_new_val
=\
$ac_env_${ac_var}_value
1932 case $ac_old_set,$ac_new_set in
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936 ac_cache_corrupted
=: ;;
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940 ac_cache_corrupted
=: ;;
1943 if test "x$ac_old_val" != "x$ac_new_val"; then
1944 # differences in whitespace do not lead to failure.
1945 ac_old_val_w
=`echo x $ac_old_val`
1946 ac_new_val_w
=`echo x $ac_new_val`
1947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1949 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1950 ac_cache_corrupted
=:
1952 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1953 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1954 eval $ac_var=\
$ac_old_val
1956 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1957 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1958 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1959 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1965 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 *) ac_arg
=$ac_var=$ac_new_val ;;
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1974 if $ac_cache_corrupted; then
1975 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
2007 ac_cpp
='$CPP $CPPFLAGS'
2008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2013 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2017 test "$program_prefix" != NONE
&&
2018 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2019 # Use a double $ so make ignores it.
2020 test "$program_suffix" != NONE
&&
2021 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2022 # Double any \ or $.
2023 # By default was `s,x,x', remove it if useless.
2024 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2025 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2028 lispdir
='${datadir}/emacs/${version}/lisp'
2029 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2030 '${datadir}/emacs/site-lisp'
2031 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2032 etcdir
='${datadir}/emacs/${version}/etc'
2033 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2034 docdir
='${datadir}/emacs/${version}/etc'
2035 gamedir
='${localstatedir}/games/emacs'
2042 # Check whether --with-pop was given.
2043 if test "${with_pop+set}" = set; then
2049 if test "$with_pop" = yes; then
2050 cat >>confdefs.h
<<\_ACEOF
2051 #define MAIL_USE_POP 1
2058 # Check whether --with-kerberos was given.
2059 if test "${with_kerberos+set}" = set; then
2060 withval
=$with_kerberos;
2065 if test "$with_kerberos" != no
; then
2066 cat >>confdefs.h
<<\_ACEOF
2074 # Check whether --with-kerberos5 was given.
2075 if test "${with_kerberos5+set}" = set; then
2076 withval
=$with_kerberos5;
2081 if test "${with_kerberos5}" != no
; then
2082 if test "${with_kerberos}" = no
; then
2084 cat >>confdefs.h
<<\_ACEOF
2090 cat >>confdefs.h
<<\_ACEOF
2097 # Check whether --with-hesiod was given.
2098 if test "${with_hesiod+set}" = set; then
2099 withval
=$with_hesiod;
2104 if test "$with_hesiod" != no
; then
2106 cat >>confdefs.h
<<\_ACEOF
2113 # Check whether --with-mmdf was given.
2114 if test "${with_mmdf+set}" = set; then
2120 if test "$with_mmdf" != no
; then
2122 cat >>confdefs.h
<<\_ACEOF
2123 #define MAIL_USE_MMDF 1
2129 # Check whether --with-mail-unlink was given.
2130 if test "${with_mail_unlink+set}" = set; then
2131 withval
=$with_mail_unlink;
2136 if test "$with_mail_unlink" != no
; then
2138 cat >>confdefs.h
<<\_ACEOF
2139 #define MAIL_UNLINK_SPOOL 1
2145 # Check whether --with-mailhost was given.
2146 if test "${with_mailhost+set}" = set; then
2147 withval
=$with_mailhost;
2148 cat >>confdefs.h
<<_ACEOF
2149 #define MAILHOST "$withval"
2156 # Check whether --with-sound was given.
2157 if test "${with_sound+set}" = set; then
2158 withval
=$with_sound;
2165 # Check whether --with-sync-input was given.
2166 if test "${with_sync_input+set}" = set; then
2167 withval
=$with_sync_input;
2172 if test "$with_sync_input" = yes; then
2174 cat >>confdefs.h
<<\_ACEOF
2175 #define SYNC_INPUT 1
2181 # Check whether --with-x-toolkit was given.
2182 if test "${with_x_toolkit+set}" = set; then
2183 withval
=$with_x_toolkit; case "${withval}" in
2184 y | ye |
yes ) val
=gtk
;;
2186 l | lu | luc | luci | lucid
) val
=lucid
;;
2187 a |
at | ath | athe | athen | athena
) val
=athena
;;
2188 m | mo | mot | moti | motif
) val
=motif
;;
2189 g | gt | gtk
) val
=gtk
;;
2191 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2192 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2193 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2194 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2195 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2196 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2197 { (exit 1); exit 1; }; }
2206 # Check whether --with-xpm was given.
2207 if test "${with_xpm+set}" = set; then
2214 # Check whether --with-jpeg was given.
2215 if test "${with_jpeg+set}" = set; then
2222 # Check whether --with-tiff was given.
2223 if test "${with_tiff+set}" = set; then
2230 # Check whether --with-gif was given.
2231 if test "${with_gif+set}" = set; then
2238 # Check whether --with-png was given.
2239 if test "${with_png+set}" = set; then
2246 # Check whether --with-rsvg was given.
2247 if test "${with_rsvg+set}" = set; then
2255 # Check whether --with-xft was given.
2256 if test "${with_xft+set}" = set; then
2263 # Check whether --with-libotf was given.
2264 if test "${with_libotf+set}" = set; then
2265 withval
=$with_libotf;
2271 # Check whether --with-m17n-flt was given.
2272 if test "${with_m17n_flt+set}" = set; then
2273 withval
=$with_m17n_flt;
2280 # Check whether --with-toolkit-scroll-bars was given.
2281 if test "${with_toolkit_scroll_bars+set}" = set; then
2282 withval
=$with_toolkit_scroll_bars;
2284 with_toolkit_scroll_bars
=yes
2288 # Check whether --with-xaw3d was given.
2289 if test "${with_xaw3d+set}" = set; then
2290 withval
=$with_xaw3d;
2296 # Check whether --with-xim was given.
2297 if test "${with_xim+set}" = set; then
2304 # Check whether --with-ns was given.
2305 if test "${with_ns+set}" = set; then
2313 # Check whether --with-gpm was given.
2314 if test "${with_gpm+set}" = set; then
2321 # Check whether --with-dbus was given.
2322 if test "${with_dbus+set}" = set; then
2329 # Check whether --with-gconf was given.
2330 if test "${with_gconf+set}" = set; then
2331 withval
=$with_gconf;
2337 # Check whether --with-selinux was given.
2338 if test "${with_selinux+set}" = set; then
2339 withval
=$with_selinux;
2345 ## For the times when you want to build Emacs but don't have
2346 ## a suitable makeinfo, and can live without the manuals.
2348 # Check whether --with-makeinfo was given.
2349 if test "${with_makeinfo+set}" = set; then
2350 withval
=$with_makeinfo;
2357 # Check whether --with-gtk was given.
2358 if test "${with_gtk+set}" = set; then
2359 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2360 specify a toolkit." >&5
2361 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2362 specify a toolkit." >&2;}
2363 { (exit 1); exit 1; }; }
2368 # Check whether --with-gcc was given.
2369 if test "${with_gcc+set}" = set; then
2370 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2371 variable to specify a compiler." >&5
2372 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2373 variable to specify a compiler." >&2;}
2374 { (exit 1); exit 1; }; }
2379 # Check whether --with-pkg-config-prog was given.
2380 if test "${with_pkg_config_prog+set}" = set; then
2381 withval
=$with_pkg_config_prog;
2384 if test "X${with_pkg_config_prog}" != X
; then
2385 if test "${with_pkg_config_prog}" != yes; then
2386 PKG_CONFIG
="${with_pkg_config_prog}"
2392 # Check whether --with-crt-dir was given.
2393 if test "${with_crt_dir+set}" = set; then
2394 withval
=$with_crt_dir;
2397 CRT_DIR
="${with_crt_dir}"
2400 # Check whether --with-gnustep-conf was given.
2401 if test "${with_gnustep_conf+set}" = set; then
2402 withval
=$with_gnustep_conf;
2405 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2406 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2407 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2408 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2410 # Check whether --enable-ns-self-contained was given.
2411 if test "${enable_ns_self_contained+set}" = set; then
2412 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2414 EN_NS_SELF_CONTAINED
=yes
2418 # Check whether --enable-asserts was given.
2419 if test "${enable_asserts+set}" = set; then
2420 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2426 # Check whether --enable-maintainer-mode was given.
2427 if test "${enable_maintainer_mode+set}" = set; then
2428 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2430 USE_MAINTAINER_MODE
=no
2433 if test $USE_MAINTAINER_MODE = yes; then
2440 # Check whether --enable-locallisppath was given.
2441 if test "${enable_locallisppath+set}" = set; then
2442 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2444 elif test "${enableval}" != "yes"; then
2445 locallisppath
=${enableval}
2450 # Check whether --enable-checking was given.
2451 if test "${enable_checking+set}" = set; then
2452 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2455 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2456 for check
in $ac_checking_flags
2459 # these set all the flags to specific states
2460 yes) ac_enable_checking
=1 ;;
2461 no
) ac_enable_checking
= ;
2462 ac_gc_check_stringbytes
= ;
2463 ac_gc_check_string_overrun
= ;
2464 ac_gc_check_string_free_list
= ;
2465 ac_xmalloc_overrun
= ;
2466 ac_gc_check_cons_list
= ;;
2467 all
) ac_enable_checking
=1 ;
2468 ac_gc_check_stringbytes
=1 ;
2469 ac_gc_check_string_overrun
=1 ;
2470 ac_gc_check_string_free_list
=1 ;
2471 ac_xmalloc_overrun
=1 ;
2472 ac_gc_check_cons_list
=1 ;;
2473 # these enable particular checks
2474 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2475 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2476 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2477 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2478 conslist
) ac_gc_check_cons_list
=1 ;;
2479 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2480 $as_echo "$as_me: error: unknown check category $check" >&2;}
2481 { (exit 1); exit 1; }; } ;;
2486 if test x
$ac_enable_checking != x
; then
2488 cat >>confdefs.h
<<\_ACEOF
2489 #define ENABLE_CHECKING 1
2493 if test x
$ac_gc_check_stringbytes != x
; then
2495 cat >>confdefs.h
<<\_ACEOF
2496 #define GC_CHECK_STRING_BYTES 1
2500 if test x
$ac_gc_check_stringoverrun != x
; then
2502 cat >>confdefs.h
<<\_ACEOF
2503 #define GC_CHECK_STRING_OVERRUN 1
2507 if test x
$ac_gc_check_string_free_list != x
; then
2509 cat >>confdefs.h
<<\_ACEOF
2510 #define GC_CHECK_STRING_FREE_LIST 1
2514 if test x
$ac_xmalloc_overrun != x
; then
2516 cat >>confdefs.h
<<\_ACEOF
2517 #define XMALLOC_OVERRUN_CHECK 1
2521 if test x
$ac_gc_check_cons_list != x
; then
2523 cat >>confdefs.h
<<\_ACEOF
2524 #define GC_CHECK_CONS_LIST 1
2529 # Check whether --enable-profiling was given.
2530 if test "${enable_profiling+set}" = set; then
2531 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2534 if test x
$ac_enable_profiling != x
; then
2535 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2536 PROFILING_LDFLAGS
="-pg"
2542 # Check whether --enable-autodepend was given.
2543 if test "${enable_autodepend+set}" = set; then
2544 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2546 ac_enable_autodepend
=yes
2550 #### Make srcdir absolute, if it isn't already. It's important to
2551 #### avoid running the path through pwd unnecessarily, since pwd can
2552 #### give you automounter prefixes, which can go away. We do all this
2553 #### so Emacs can find its files when run uninstalled.
2554 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2559 ## We may be able to use the $PWD environment variable to make this
2560 ## absolute. But sometimes PWD is inaccurate.
2561 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2562 ## but that tested only for a well-formed and valid PWD,
2563 ## it did not object when PWD was well-formed and valid but just wrong.
2564 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2568 srcdir
="`(cd ${srcdir}; pwd)`"
2571 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2574 #### Check if the source directory already has a configured system in it.
2575 if test `pwd` != `(cd ${srcdir} && pwd)` \
2576 && test -f "${srcdir}/src/config.h" ; then
2577 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2578 as a build directory right now; it has been configured in its own
2579 right. To configure in another directory as well, you MUST
2580 use GNU make. If you do not have GNU make, then you must
2581 now do \`make distclean' in ${srcdir},
2582 and then run $0 again." >&5
2583 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2584 as a build directory right now; it has been configured in its own
2585 right. To configure in another directory as well, you MUST
2586 use GNU make. If you do not have GNU make, then you must
2587 now do \`make distclean' in ${srcdir},
2588 and then run $0 again." >&2;}
2591 #### Given the configuration name, set machfile and opsysfile to the
2592 #### names of the m/*.h and s/*.h files we should use.
2594 ### Canonicalize the configuration name.
2597 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2598 if test -f "$ac_dir/install-sh"; then
2600 ac_install_sh
="$ac_aux_dir/install-sh -c"
2602 elif test -f "$ac_dir/install.sh"; then
2604 ac_install_sh
="$ac_aux_dir/install.sh -c"
2606 elif test -f "$ac_dir/shtool"; then
2608 ac_install_sh
="$ac_aux_dir/shtool install -c"
2612 if test -z "$ac_aux_dir"; then
2613 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2614 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2615 { (exit 1); exit 1; }; }
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2627 # Make sure we can run config.sub.
2628 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2629 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2630 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2631 { (exit 1); exit 1; }; }
2633 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if test "${ac_cv_build+set}" = set; then
2636 $as_echo_n "(cached) " >&6
2638 ac_build_alias
=$build_alias
2639 test "x$ac_build_alias" = x
&&
2640 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x
&&
2642 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2643 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2644 { (exit 1); exit 1; }; }
2645 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2647 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2648 { (exit 1); exit 1; }; }
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2652 $as_echo "$ac_cv_build" >&6; }
2653 case $ac_cv_build in
2655 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2656 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2657 { (exit 1); exit 1; }; };;
2660 ac_save_IFS
=$IFS; IFS
='-'
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2670 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2673 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2674 $as_echo_n "checking host system type... " >&6; }
2675 if test "${ac_cv_host+set}" = set; then
2676 $as_echo_n "(cached) " >&6
2678 if test "x$host_alias" = x
; then
2679 ac_cv_host
=$ac_cv_build
2681 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2682 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2683 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2684 { (exit 1); exit 1; }; }
2688 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2689 $as_echo "$ac_cv_host" >&6; }
2692 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2693 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2694 { (exit 1); exit 1; }; };;
2697 ac_save_IFS
=$IFS; IFS
='-'
2703 # Remember, the first character of IFS is used to create $*,
2704 # except with old shells:
2707 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2711 configuration
=${host_alias-${build_alias-$host}}
2715 ### If you add support for a new configuration, add code to this
2716 ### switch statement to recognize your configuration name and select
2717 ### the appropriate operating system and machine description files.
2719 ### You would hope that you could choose an m/*.h file pretty much
2720 ### based on the machine portion of the configuration name, and an s-
2721 ### file based on the operating system portion. However, it turns out
2722 ### that each m/*.h file is pretty manufacturer-specific - for
2723 ### example mips.h is MIPS
2724 ### So we basically have to have a special case for each
2725 ### configuration name.
2727 ### As far as handling version numbers on operating systems is
2728 ### concerned, make sure things will fail in a fixable way. If
2729 ### /etc/MACHINES doesn't say anything about version numbers, be
2730 ### prepared to handle anything reasonably. If version numbers
2731 ### matter, be sure /etc/MACHINES says something about it.
2733 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2734 ### "System V Release 4"; he writes, "The old convention encouraged
2735 ### confusion between `system' and `release' levels'."
2737 machine
='' opsys
='' unported
=no
2738 case "${canonical}" in
2743 case "${canonical}" in
2744 alpha
*-*-freebsd*) machine
=alpha
;;
2745 arm
*-*-freebsd*) machine
=arm
;;
2746 ia64-
*-freebsd*) machine
=ia64
;;
2747 sparc-
*-freebsd*) machine
=sparc
;;
2748 sparc64-
*-freebsd*) machine
=sparc
;;
2749 powerpc-
*-freebsd*) machine
=macppc
;;
2750 i
[3456]86-*-freebsd*) machine
=intel386
;;
2751 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2755 ## FreeBSD kernel + glibc based userland
2758 case "${canonical}" in
2759 alpha
*-*-kfreebsd*) machine
=alpha
;;
2760 ia64-
*-kfreebsd*) machine
=ia64
;;
2761 sparc-
*-kfreebsd*) machine
=sparc
;;
2762 sparc64-
*-kfreebsd*) machine
=sparc
;;
2763 powerpc-
*-kfreebsd*) machine
=macppc
;;
2764 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2765 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2772 if test -f /usr
/lib
/crti.o
; then
2774 cat >>confdefs.h
<<\_ACEOF
2775 #define HAVE_CRTIN /**/
2780 case "${canonical}" in
2781 alpha
*-*-netbsd*) machine
=alpha
;;
2782 i
[3456]86-*-netbsd*) machine
=intel386
;;
2783 mips-
*-netbsd*) machine
=mips
;;
2784 mipsel-
*-netbsd*) machine
=mips
;;
2785 mipseb-
*-netbsd*) machine
=mips
;;
2786 powerpc-
*-netbsd*) machine
=macppc
;;
2787 sparc
*-*-netbsd*) machine
=sparc
;;
2788 vax-
*-netbsd*) machine
=vax
;;
2789 arm-
*-netbsd*) machine
=arm
;;
2790 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2791 hppa-
*-netbsd*) machine
=hp800
;;
2792 m68k-
*-netbsd*) machine
=m68k
;;
2799 case "${canonical}" in
2800 alpha
*-*-openbsd*) machine
=alpha
;;
2801 arm-
*-openbsd*) machine
=arm
;;
2802 i386-
*-openbsd*) machine
=intel386
;;
2803 powerpc-
*-openbsd*) machine
=macppc
;;
2804 sparc
*-*-openbsd*) machine
=sparc
;;
2805 vax-
*-openbsd*) machine
=vax
;;
2806 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2807 hppa-
*-openbsd*) machine
=hp800
;;
2811 alpha
*-*-linux-gnu* )
2812 machine
=alpha opsys
=gnu-linux
2816 machine
=arm opsys
=gnu-linux
2819 ## Apple Darwin / Mac OS X
2821 case "${canonical}" in
2822 i
[3456]86-* ) machine
=intel386
;;
2823 powerpc-
* ) machine
=macppc
;;
2824 x86_64-
* ) machine
=amdx86-64
;;
2828 # Define CPP as follows to make autoconf work correctly.
2829 CPP
="${CC-cc} -E -no-cpp-precomp"
2830 # Use fink packages if available.
2831 if test -d /sw
/include
&& test -d /sw
/lib
; then
2832 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2833 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2834 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2838 ## HP 9000 series 700 and 800, running HP/UX
2839 hppa
*-hp-hpux10.2
* )
2840 machine
=hp800 opsys
=hpux10-20
2842 hppa
*-hp-hpux1[1-9]* )
2843 machine
=hp800 opsys
=hpux11
2844 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2847 hppa
*-*-linux-gnu* )
2848 machine
=hp800 opsys
=gnu-linux
2853 machine
=ibms390 opsys
=gnu-linux
2855 s390x-
*-linux-gnu* )
2856 machine
=ibms390x opsys
=gnu-linux
2858 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2859 machine
=ibmrs6000 opsys
=aix4-2
2861 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2862 machine
=ibmrs6000 opsys
=aix4-2
2864 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2865 machine
=ibmrs6000 opsys
=aix4-2
2867 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2868 machine
=ibmrs6000 opsys
=aix4-2
2871 ## Macintosh PowerPC
2872 powerpc
*-*-linux-gnu* )
2873 machine
=macppc opsys
=gnu-linux
2876 ## Silicon Graphics machines
2879 machine
=iris4d opsys
=irix6-5
2880 # Without defining _LANGUAGE_C, things get masked out in the headers
2881 # so that, for instance, grepping for `free' in stdlib.h fails and
2882 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2883 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2884 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2888 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2889 machine
=sparc opsys
=gnu-linux
2893 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2894 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2895 case "${canonical}" in
2896 i
[3456]86-*-* ) machine
=intel386
;;
2897 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2898 sparc
* ) machine
=sparc
;;
2901 case "${canonical}" in
2902 *-sunos5.6
* |
*-solaris2.6
* )
2904 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2907 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2909 emacs_check_sunpro_c
=yes
2910 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2912 *-sunos5* |
*-solaris* )
2914 emacs_check_sunpro_c
=yes
2915 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2918 ## Watch out for a compiler that we know will not work.
2919 case "${canonical}" in
2920 *-solaris* |
*-sunos5* )
2921 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2922 ## /usr/ucb/cc doesn't work;
2923 ## we should find some other compiler that does work.
2933 machine
=ia64 opsys
=gnu-linux
2936 ## Intel 386 machines where we don't care about the manufacturer
2939 case "${canonical}" in
2940 *-cygwin ) opsys
=cygwin
;;
2941 *-darwin* ) opsys
=darwin
2942 CPP
="${CC-cc} -E -no-cpp-precomp"
2944 *-linux-gnu* ) opsys
=gnu-linux
;;
2945 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2946 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2947 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2948 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2952 ## m68k Linux-based GNU system
2954 machine
=m68k opsys
=gnu-linux
2957 ## Mips Linux-based GNU system
2958 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2959 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2960 machine
=mips opsys
=gnu-linux
2963 ## AMD x86-64 Linux-based GNU system
2964 x86_64-
*-linux-gnu* )
2965 machine
=amdx86-64 opsys
=gnu-linux
2968 ## Tensilica Xtensa Linux-based GNU system
2969 xtensa
*-*-linux-gnu* )
2970 machine
=xtensa opsys
=gnu-linux
2973 ## SuperH Linux-based GNU system
2974 sh
[34]*-*-linux-gnu* )
2975 machine
=sh3 opsys
=gnu-linux
2983 ### If the code above didn't choose an operating system, just choose
2984 ### an operating system based on the configuration name. You really
2985 ### only want to use this when you have no idea what the right
2986 ### operating system is; if you know what operating systems a machine
2987 ### runs, it's cleaner to make it explicit in the case statement
2989 if test x
"${opsys}" = x
; then
2990 case "${canonical}" in
2991 *-gnu* ) opsys
=gnu
;;
3000 if test $unported = yes; then
3001 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3002 Check \`etc/MACHINES' for recognized configuration names." >&5
3003 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3004 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3005 { (exit 1); exit 1; }; }
3008 machfile
="m/${machine}.h"
3009 opsysfile
="s/${opsys}.h"
3012 #### Choose a compiler.
3013 test -n "$CC" && cc_specified
=yes
3015 # Save the value of CFLAGS that the user specified.
3016 SPECIFIED_CFLAGS
="$CFLAGS"
3019 ac_cpp
='$CPP $CPPFLAGS'
3020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3025 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3026 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if test "${ac_cv_prog_CC+set}" = set; then
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC
="$CC" # Let the user override the test.
3034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir
=.
3039 for ac_exec_ext
in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3041 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3056 { $as_echo "$as_me:$LINENO: result: no" >&5
3057 $as_echo "no" >&6; }
3062 if test -z "$ac_cv_prog_CC"; then
3064 # Extract the first word of "gcc", so it can be a program name with args.
3065 set dummy gcc
; ac_word
=$2
3066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3069 $as_echo_n "(cached) " >&6
3071 if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3078 test -z "$as_dir" && as_dir
=.
3079 for ac_exec_ext
in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_ac_ct_CC
="gcc"
3082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3092 if test -n "$ac_ct_CC"; then
3093 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094 $as_echo "$ac_ct_CC" >&6; }
3096 { $as_echo "$as_me:$LINENO: result: no" >&5
3097 $as_echo "no" >&6; }
3100 if test "x$ac_ct_CC" = x
; then
3103 case $cross_compiling:$ac_tool_warned in
3105 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3106 whose name does not start with the host triplet. If you think this
3107 configuration is useful to you, please write to autoconf@gnu.org." >&5
3108 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3109 whose name does not start with the host triplet. If you think this
3110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3111 ac_tool_warned
=yes ;;
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC
="$CC" # Let the user override the test.
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 for ac_exec_ext
in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3160 if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc
; ac_word
=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC
="$CC" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected
=yes
3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy
$ac_cv_prog_CC
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3200 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3216 if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
3218 for ac_prog
in cl.exe
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC
="$CC" # Let the user override the test.
3230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir
=.
3235 for ac_exec_ext
in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253 $as_echo "no" >&6; }
3257 test -n "$CC" && break
3260 if test -z "$CC"; then
3262 for ac_prog
in cl.exe
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy
$ac_prog; ac_word
=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3278 test -z "$as_dir" && as_dir
=.
3279 for ac_exec_ext
in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_ac_ct_CC
="$ac_prog"
3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3301 test -n "$ac_ct_CC" && break
3304 if test "x$ac_ct_CC" = x
; then
3307 case $cross_compiling:$ac_tool_warned in
3309 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3310 whose name does not start with the host triplet. If you think this
3311 configuration is useful to you, please write to autoconf@gnu.org." >&5
3312 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3313 whose name does not start with the host triplet. If you think this
3314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3315 ac_tool_warned
=yes ;;
3324 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&5
3326 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3327 See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3334 { (ac_try
="$ac_compiler --version >&5"
3336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compiler --version >&5") 2>&5
3343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }
3345 { (ac_try="$ac_compiler -v >&5"
3347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3348 *) ac_try_echo
=$ac_try;;
3350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_compiler -v >&5") 2>&5
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356 { (ac_try
="$ac_compiler -V >&5"
3358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363 (eval "$ac_compiler -V >&5") 2>&5
3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3383 ac_clean_files_save=$ac_clean_files
3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3385 # Try to create an executable without -o first, disregard a.out.
3386 # It will help us diagnose broken compilers, and finding out an intuition
3388 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3389 $as_echo_n "checking for C compiler default output file name... " >&6; }
3390 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3392 # The possible output files:
3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3396 for ac_file in $ac_files
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405 if { (ac_try="$ac_link_default"
3407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3408 *) ac_try_echo
=$ac_try;;
3410 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412 (eval "$ac_link_default") 2>&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; then
3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3418 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3419 # so that the user can short-circuit this test for compilers unknown to
3421 for ac_file
in $ac_files ''
3423 test -f "$ac_file" ||
continue
3425 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3428 # We found the default executable, but exeext='' is most
3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3434 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 # We set ac_cv_exeext here because the later test for it is not
3437 # safe: cross compilers may not add the suffix if given an `-o'
3438 # argument, so we may need to know it at that point already.
3439 # Even if this section looks crufty: it has the advantage of
3446 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3452 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3453 $as_echo "$ac_file" >&6; }
3454 if test -z "$ac_file"; then
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.
$ac_ext >&5
3458 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: C compiler cannot create executables
3461 See \`config.log' for more details." >&2;}
3462 { (exit 77); exit 77; }; }
3465 ac_exeext
=$ac_cv_exeext
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472 # If not cross compiling, check that we can run a simple program.
3473 if test "$cross_compiling" != yes; then
3474 if { ac_try
='./$ac_file'
3475 { (case "(($ac_try" in
3476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3487 if test "$cross_compiling" = maybe; then
3490 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3491 If you meant to cross compile, use \`--host'.
3492 See \`config.log' for more details.
" >&5
3493 $as_echo "$as_me: error
: cannot run C compiled programs.
3494 If you meant to cross compile
, use \
`--host'.
3495 See \`config.log
' for more details." >&2;}
3496 { (exit 1); exit 1; }; }
3500 { $as_echo "$as_me:$LINENO: result: yes" >&5
3501 $as_echo "yes" >&6; }
3503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3504 ac_clean_files=$ac_clean_files_save
3505 # Check that the compiler produces executables we can run. If not, either
3506 # the compiler is broken, or we cross compile.
3507 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3508 $as_echo_n "checking whether we are cross compiling... " >&6; }
3509 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3512 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3513 $as_echo_n "checking for suffix of executables... " >&6; }
3514 if { (ac_try="$ac_link"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520 $as_echo "$ac_try_echo") >&5
3521 (eval "$ac_link") 2>&5
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; then
3525 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3526 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3527 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3529 for ac_file
in conftest.exe conftest conftest.
*; do
3530 test -f "$ac_file" ||
continue
3532 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3533 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest
$ac_cv_exeext
3547 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3548 $as_echo "$ac_cv_exeext" >&6; }
3550 rm -f conftest.
$ac_ext
3551 EXEEXT
=$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3554 $as_echo_n "checking for suffix of object files... " >&6; }
3555 if test "${ac_cv_objext+set}" = set; then
3556 $as_echo_n "(cached) " >&6
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3573 rm -f conftest.o conftest.obj
3574 if { (ac_try
="$ac_compile"
3576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_compile") 2>&5
3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; then
3585 for ac_file in conftest.o conftest.obj conftest.*; do
3586 test -f "$ac_file" || continue;
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3598 See \`config.log
' for more details." >&5
3599 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3600 See \`config.log' for more details.
" >&2;}
3601 { (exit 1); exit 1; }; }
3604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3606 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3607 $as_echo "$ac_cv_objext" >&6; }
3608 OBJEXT=$ac_cv_objext
3610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3611 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3612 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3613 $as_echo_n "(cached
) " >&6
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3640 $as_echo "$ac_try_echo") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
3653 $as_echo "$as_me: failed program was
:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3664 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3665 if test $ac_compiler_gnu = yes; then
3670 ac_test_CFLAGS=${CFLAGS+set}
3671 ac_save_CFLAGS=$CFLAGS
3672 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3673 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3674 if test "${ac_cv_prog_cc_g+set}" = set; then
3675 $as_echo_n "(cached
) " >&6
3677 ac_save_c_werror_flag=$ac_c_werror_flag
3678 ac_c_werror_flag=yes
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3716 $as_echo "$as_me: failed program was
:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3742 $as_echo "$ac_try_echo") >&5
3743 (eval "$ac_compile") 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3749 (exit $ac_status); } && {
3750 test -z "$ac_c_werror_flag" ||
3751 test ! -s conftest.err
3752 } && test -s conftest.$ac_objext; then
3755 $as_echo "$as_me: failed program was
:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3775 rm -f conftest.$ac_objext
3776 if { (ac_try="$ac_compile"
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3781 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3782 $as_echo "$ac_try_echo") >&5
3783 (eval "$ac_compile") 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3789 (exit $ac_status); } && {
3790 test -z "$ac_c_werror_flag" ||
3791 test ! -s conftest.err
3792 } && test -s conftest.$ac_objext; then
3795 $as_echo "$as_me: failed program was
:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3810 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3821 if test "$GCC" = yes; then
3827 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3828 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3829 if test "${ac_cv_prog_cc_c89+set}" = set; then
3830 $as_echo_n "(cached
) " >&6
3832 ac_cv_prog_cc_c89=no
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3842 #include <sys/types.h>
3843 #include <sys/stat.h>
3844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3845 struct buf { int x; };
3846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3847 static char *e (p, i)
3853 static char *f (char * (*g) (char **, int), char **p, ...)
3858 s = g (p, va_arg (v,int));
3863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3864 function prototypes and stuff, but not '\xHH' hex character constants.
3865 These don't provoke an error unfortunately, instead are silently treated
3866 as 'x'. The following induces an error, until -std is added to get
3867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3868 array size at least. It's necessary to write '\x00'==0 to get something
3869 that's true only with -std. */
3870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3873 inside strings and character constants. */
3875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877 int test (int i, double x);
3878 struct s1 {int (*f) (int a);};
3879 struct s2 {int (*f) (double a);};
3880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 CC="$ac_save_CC $ac_arg"
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3902 $as_echo "$ac_try_echo") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3913 ac_cv_prog_cc_c89=$ac_arg
3915 $as_echo "$as_me: failed program was
:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3924 rm -f conftest.$ac_ext
3929 case "x
$ac_cv_prog_cc_c89" in
3931 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3932 $as_echo "none needed
" >&6; } ;;
3934 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3935 $as_echo "unsupported
" >&6; } ;;
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950 # On Suns, sometimes $CPP names a directory.
3951 if test -n "$CPP" && test -d "$CPP"; then
3955 ## If not using gcc, and on Solaris, and no CPP specified, see if
3956 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3957 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3958 test x"$CPP" = x; then
3959 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3960 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3962 if test "${emacs_cv_sunpro_c+set}" = set; then
3963 $as_echo_n "(cached
) " >&6
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3983 rm -f conftest.$ac_objext conftest$ac_exeext
3984 if { (ac_try="$ac_link"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991 (eval "$ac_link") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest$ac_exeext && {
4001 test "$cross_compiling" = yes ||
4002 $as_test_x conftest$ac_exeext
4004 emacs_cv_sunpro_c=yes
4006 $as_echo "$as_me: failed program was
:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4009 emacs_cv_sunpro_c=no
4012 rm -rf conftest.dSYM
4013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4014 conftest$ac_exeext conftest.$ac_ext
4017 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4018 $as_echo "$emacs_cv_sunpro_c" >&6; }
4020 if test x"$emacs_cv_sunpro_c" = xyes; then
4021 NON_GNU_CPP="$CC -E -Xs"
4025 #### Some systems specify a CPP to use unless we are using GCC.
4026 #### Now that we know whether we are using GCC, we can decide whether
4027 #### to use that one.
4028 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4033 #### Some systems specify a CC to use unless we are using GCC.
4034 #### Now that we know whether we are using GCC, we can decide whether
4035 #### to use that one.
4036 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4037 test x$cc_specified != xyes
4042 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4044 CC="$CC $GCC_TEST_OPTIONS"
4047 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4049 CC="$CC $NON_GCC_TEST_OPTIONS"
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4058 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4059 # On Suns, sometimes $CPP names a directory.
4060 if test -n "$CPP" && test -d "$CPP"; then
4063 if test -z "$CPP"; then
4064 if test "${ac_cv_prog_CPP+set}" = set; then
4065 $as_echo_n "(cached
) " >&6
4067 # Double quotes because CPP needs to be expanded
4068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4071 for ac_c_preproc_warn_flag in '' yes
4073 # Use a header file that comes with gcc, so configuring glibc
4074 # with a fresh cross-compiler works.
4075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4076 # <limits.h> exists even on freestanding compilers.
4077 # On the NeXT, cc -E runs the code through the compiler's parser,
4078 # not just through cpp. "Syntax error
" is here to catch this case.
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 # include <limits.h>
4088 # include <assert.h>
4092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4097 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4111 $as_echo "$as_me: failed program was
:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 # Broken: fails on valid input.
4118 rm -f conftest.err conftest.$ac_ext
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat >conftest.$ac_ext <<_ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128 #include <ac_nonexistent.h>
4130 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4136 $as_echo "$ac_try_echo") >&5
4137 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4143 (exit $ac_status); } >/dev/null && {
4144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145 test ! -s conftest.err
4147 # Broken: success on invalid input.
4150 $as_echo "$as_me: failed program was
:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 # Passes both tests.
4158 rm -f conftest.err conftest.$ac_ext
4161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162 rm -f conftest.err conftest.$ac_ext
4163 if $ac_preproc_ok; then
4175 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4176 $as_echo "$CPP" >&6; }
4178 for ac_c_preproc_warn_flag in '' yes
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error
" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4193 # include <limits.h>
4195 # include <assert.h>
4199 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4205 $as_echo "$ac_try_echo") >&5
4206 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4218 $as_echo "$as_me: failed program was
:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Broken: fails on valid input.
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4237 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4250 (exit $ac_status); } >/dev/null && {
4251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4254 # Broken: success on invalid input.
4257 $as_echo "$as_me: failed program was
:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 # Passes both tests.
4265 rm -f conftest.err conftest.$ac_ext
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.err conftest.$ac_ext
4270 if $ac_preproc_ok; then
4273 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4274 See \
`config.log' for more details." >&5
4275 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4276 See \`config.log
' for more details." >&2;}
4277 { (exit 1); exit 1; }; }
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4283 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4288 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4289 if test "${ac_cv_path_GREP+set}" = set; then
4290 $as_echo_n "(cached) " >&6
4292 if test -z "$GREP"; then
4293 ac_path_GREP_found=false
4294 # Loop through the user's path and
test for each of PROGNAME-LIST
4295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4296 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4299 test -z "$as_dir" && as_dir
=.
4300 for ac_prog
in grep ggrep
; do
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4303 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4304 # Check for GNU ac_path_GREP and select it if it is found.
4305 # Check for GNU $ac_path_GREP
4306 case `"$ac_path_GREP" --version 2>&1` in
4308 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4311 $as_echo_n 0123456789 >"conftest.in"
4314 cat "conftest.in" "conftest.in" >"conftest.tmp"
4315 mv "conftest.tmp" "conftest.in"
4316 cp "conftest.in" "conftest.nl"
4317 $as_echo 'GREP' >> "conftest.nl"
4318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4319 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4320 ac_count
=`expr $ac_count + 1`
4321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4322 # Best one so far, save it but keep looking for a better one
4323 ac_cv_path_GREP
="$ac_path_GREP"
4324 ac_path_GREP_max
=$ac_count
4326 # 10*(2^10) chars as input seems more than enough
4327 test $ac_count -gt 10 && break
4329 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4332 $ac_path_GREP_found && break 3
4337 if test -z "$ac_cv_path_GREP"; then
4338 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340 { (exit 1); exit 1; }; }
4343 ac_cv_path_GREP
=$GREP
4347 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4348 $as_echo "$ac_cv_path_GREP" >&6; }
4349 GREP
="$ac_cv_path_GREP"
4352 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4353 $as_echo_n "checking for egrep... " >&6; }
4354 if test "${ac_cv_path_EGREP+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4357 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4358 then ac_cv_path_EGREP
="$GREP -E"
4360 if test -z "$EGREP"; then
4361 ac_path_EGREP_found
=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4364 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4367 test -z "$as_dir" && as_dir
=.
4368 for ac_prog
in egrep; do
4369 for ac_exec_ext
in '' $ac_executable_extensions; do
4370 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4372 # Check for GNU ac_path_EGREP and select it if it is found.
4373 # Check for GNU $ac_path_EGREP
4374 case `"$ac_path_EGREP" --version 2>&1` in
4376 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4379 $as_echo_n 0123456789 >"conftest.in"
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo 'EGREP' >> "conftest.nl"
4386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4387 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4388 ac_count
=`expr $ac_count + 1`
4389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_EGREP
="$ac_path_EGREP"
4392 ac_path_EGREP_max
=$ac_count
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4397 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4400 $ac_path_EGREP_found && break 3
4405 if test -z "$ac_cv_path_EGREP"; then
4406 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408 { (exit 1); exit 1; }; }
4411 ac_cv_path_EGREP
=$EGREP
4416 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4417 $as_echo "$ac_cv_path_EGREP" >&6; }
4418 EGREP
="$ac_cv_path_EGREP"
4421 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4422 $as_echo_n "checking for ANSI C header files... " >&6; }
4423 if test "${ac_cv_header_stdc+set}" = set; then
4424 $as_echo_n "(cached) " >&6
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4445 rm -f conftest.
$ac_objext
4446 if { (ac_try
="$ac_compile"
4448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452 $as_echo "$ac_try_echo") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4463 ac_cv_header_stdc=yes
4465 $as_echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 ac_cv_header_stdc=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 if test $ac_cv_header_stdc = yes; then
4474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475 cat >conftest.$ac_ext <<_ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev/null 2>&1; then
4488 ac_cv_header_stdc=no
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506 $EGREP "free" >/dev/null 2>&1; then
4509 ac_cv_header_stdc=no
4515 if test $ac_cv_header_stdc = yes; then
4516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517 if test "$cross_compiling" = yes; then
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 # define ISLOWER(c) \
4533 (('a' <= (c) && (c) <= 'i') \
4534 || ('j' <= (c) && (c) <= 'r') \
4535 || ('s' <= (c) && (c) <= 'z'))
4536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4544 for (i = 0; i < 256; i++)
4545 if (XOR (islower (i), ISLOWER (i))
4546 || toupper (i) != TOUPPER (i))
4551 rm -f conftest$ac_exeext
4552 if { (ac_try="$ac_link"
4554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4555 *) ac_try_echo
=$ac_try;;
4557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4558 $as_echo "$ac_try_echo") >&5
4559 (eval "$ac_link") 2>&5
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4563 { (case "(($ac_try" in
4564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4568 $as_echo "$ac_try_echo") >&5
4569 (eval "$ac_try") 2>&5
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4575 $as_echo "$as_me: program exited with status $ac_status" >&5
4576 $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4580 ac_cv_header_stdc=no
4582 rm -rf conftest.dSYM
4583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4590 $as_echo "$ac_cv_header_stdc" >&6; }
4591 if test $ac_cv_header_stdc = yes; then
4593 cat >>confdefs.h <<\_ACEOF
4594 #define STDC_HEADERS 1
4599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4610 inttypes.h stdint.h unistd.h
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 $as_echo_n "checking for $ac_header... " >&6; }
4615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616 $as_echo_n "(cached) " >&6
4618 cat >conftest.$ac_ext <<_ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4626 #include <$ac_header>
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4632 *) ac_try_echo
=$ac_try;;
4634 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4635 $as_echo "$ac_try_echo") >&5
4636 (eval "$ac_compile") 2>conftest.er1
4638 grep -v '^ *+' conftest.er1
>conftest.err
4640 cat conftest.err
>&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && {
4643 test -z "$ac_c_werror_flag" ||
4644 test ! -s conftest.err
4645 } && test -s conftest.
$ac_objext; then
4646 eval "$as_ac_Header=yes"
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4651 eval "$as_ac_Header=no"
4654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4656 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4657 $as_echo "$as_val"'`
4658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4659 $as_echo "$ac_res" >&6; }
4660 if test `eval 'as_val=${'$as_ac_Header'}
4661 $as_echo "$as_val"'` = yes; then
4662 cat >>confdefs.h
<<_ACEOF
4663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4672 if test "${ac_cv_header_minix_config_h+set}" = set; then
4673 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4674 $as_echo_n "checking for minix/config.h... " >&6; }
4675 if test "${ac_cv_header_minix_config_h+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4679 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4681 # Is the header compilable?
4682 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4683 $as_echo_n "checking minix/config.h usability... " >&6; }
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 $ac_includes_default
4691 #include <minix/config.h>
4693 rm -f conftest.
$ac_objext
4694 if { (ac_try
="$ac_compile"
4696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4700 $as_echo "$ac_try_echo") >&5
4701 (eval "$ac_compile") 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && {
4708 test -z "$ac_c_werror_flag" ||
4709 test ! -s conftest.err
4710 } && test -s conftest.$ac_objext; then
4711 ac_header_compiler=yes
4713 $as_echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4716 ac_header_compiler=no
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4721 $as_echo "$ac_header_compiler" >&6; }
4723 # Is the header present?
4724 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4725 $as_echo_n "checking minix/config.h presence... " >&6; }
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <minix/config.h>
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4737 *) ac_try_echo
=$ac_try;;
4739 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4740 $as_echo "$ac_try_echo") >&5
4741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743 grep -v '^ *+' conftest.er1
>conftest.err
4745 cat conftest.err
>&5
4746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } >/dev
/null
&& {
4748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4751 ac_header_preproc
=yes
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.
$ac_ext >&5
4756 ac_header_preproc
=no
4759 rm -f conftest.err conftest.
$ac_ext
4760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4761 $as_echo "$ac_header_preproc" >&6; }
4763 # So? What about this header?
4764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4767 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4769 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4770 ac_header_preproc
=yes
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4788 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4789 $as_echo_n "checking for minix/config.h... " >&6; }
4790 if test "${ac_cv_header_minix_config_h+set}" = set; then
4791 $as_echo_n "(cached) " >&6
4793 ac_cv_header_minix_config_h
=$ac_header_preproc
4795 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4796 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4799 if test $ac_cv_header_minix_config_h = yes; then
4806 if test "$MINIX" = yes; then
4808 cat >>confdefs.h
<<\_ACEOF
4809 #define _POSIX_SOURCE 1
4813 cat >>confdefs.h
<<\_ACEOF
4814 #define _POSIX_1_SOURCE 2
4818 cat >>confdefs.h
<<\_ACEOF
4826 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4827 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4828 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4829 $as_echo_n "(cached) " >&6
4831 cat >conftest.
$ac_ext <<_ACEOF
4834 cat confdefs.h
>>conftest.
$ac_ext
4835 cat >>conftest.
$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 # define __EXTENSIONS__ 1
4839 $ac_includes_default
4848 rm -f conftest.
$ac_objext
4849 if { (ac_try
="$ac_compile"
4851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4855 $as_echo "$ac_try_echo") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest.$ac_objext; then
4866 ac_cv_safe_to_define___extensions__=yes
4868 $as_echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_cv_safe_to_define___extensions__=no
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4877 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4878 test $ac_cv_safe_to_define___extensions__ = yes &&
4879 cat >>confdefs.h <<\_ACEOF
4880 #define __EXTENSIONS__ 1
4883 cat >>confdefs.h <<\_ACEOF
4884 #define _ALL_SOURCE 1
4887 cat >>confdefs.h <<\_ACEOF
4888 #define _GNU_SOURCE 1
4891 cat >>confdefs.h <<\_ACEOF
4892 #define _POSIX_PTHREAD_SEMANTICS 1
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _TANDEM_SOURCE 1
4901 ### Use -Wno-pointer-sign if the compiler supports it
4902 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4903 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4904 SAVE_CFLAGS="$CFLAGS"
4905 CFLAGS="$CFLAGS -Wno-pointer-sign"
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4921 rm -f conftest.$ac_objext
4922 if { (ac_try="$ac_compile"
4924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4925 *) ac_try_echo
=$ac_try;;
4927 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_compile") 2>conftest.er1
4931 grep -v '^ *+' conftest.er1
>conftest.err
4933 cat conftest.err
>&5
4934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); } && {
4936 test -z "$ac_c_werror_flag" ||
4937 test ! -s conftest.err
4938 } && test -s conftest.
$ac_objext; then
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.
$ac_ext >&5
4947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4948 if test $has_option = yes; then
4949 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4951 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4952 $as_echo "$has_option" >&6; }
4953 CFLAGS
="$SAVE_CFLAGS"
4957 ### Use -Wdeclaration-after-statement if the compiler supports it
4958 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4959 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4960 SAVE_CFLAGS
="$CFLAGS"
4961 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4962 cat >conftest.
$ac_ext <<_ACEOF
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4977 rm -f conftest.
$ac_objext
4978 if { (ac_try
="$ac_compile"
4980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4984 $as_echo "$ac_try_echo") >&5
4985 (eval "$ac_compile") 2>conftest.er1
4987 grep -v '^ *+' conftest.er1 >conftest.err
4989 cat conftest.err >&5
4990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && {
4992 test -z "$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4994 } && test -s conftest.$ac_objext; then
4997 $as_echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 if test $has_option = yes; then
5005 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5007 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5008 $as_echo "$has_option" >&6; }
5009 CFLAGS="$SAVE_CFLAGS"
5013 #### Some other nice autoconf tests.
5015 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5018 if test "$LN_S" = "ln -s"; then
5019 { $as_echo "$as_me:$LINENO: result: yes" >&5
5020 $as_echo "yes" >&6; }
5022 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5033 # On Suns, sometimes $CPP names a directory.
5034 if test -n "$CPP" && test -d "$CPP"; then
5037 if test -z "$CPP"; then
5038 if test "${ac_cv_prog_CPP+set}" = set; then
5039 $as_echo_n "(cached) " >&6
5041 # Double quotes because CPP needs to be expanded
5042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5045 for ac_c_preproc_warn_flag in '' yes
5047 # Use a header file that comes with gcc, so configuring glibc
5048 # with a fresh cross-compiler works.
5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 # <limits.h> exists even on freestanding compilers.
5051 # On the NeXT, cc -E runs the code through the compiler's parser,
5052 # not just through cpp. "Syntax error" is here to catch this case.
5053 cat >conftest.$ac_ext <<_ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5060 # include <limits.h>
5062 # include <assert.h>
5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
5068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5069 *) ac_try_echo
=$ac_try;;
5071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1
>conftest.err
5077 cat conftest.err
>&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev
/null
&& {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.
$ac_ext >&5
5088 # Broken: fails on valid input.
5092 rm -f conftest.err conftest.
$ac_ext
5094 # OK, works on sane cases. Now check whether nonexistent headers
5095 # can be detected and how.
5096 cat >conftest.
$ac_ext <<_ACEOF
5099 cat confdefs.h
>>conftest.
$ac_ext
5100 cat >>conftest.
$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110 $as_echo "$ac_try_echo") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5121 # Broken: success on invalid input.
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 # Passes both tests.
5132 rm -f conftest.err conftest.$ac_ext
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.
$ac_ext
5137 if $ac_preproc_ok; then
5149 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5150 $as_echo "$CPP" >&6; }
5152 for ac_c_preproc_warn_flag
in '' yes
5154 # Use a header file that comes with gcc, so configuring glibc
5155 # with a fresh cross-compiler works.
5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 # <limits.h> exists even on freestanding compilers.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat >conftest.
$ac_ext <<_ACEOF
5163 cat confdefs.h
>>conftest.
$ac_ext
5164 cat >>conftest.
$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 # include <limits.h>
5169 # include <assert.h>
5173 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179 $as_echo "$ac_try_echo") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5182 grep -v '^ *+' conftest.er1 >conftest.err
5184 cat conftest.err >&5
5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5192 $as_echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5195 # Broken: fails on valid input.
5199 rm -f conftest.err conftest.$ac_ext
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5214 *) ac_try_echo
=$ac_try;;
5216 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5217 $as_echo "$ac_try_echo") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 grep -v '^ *+' conftest.er1
>conftest.err
5222 cat conftest.err
>&5
5223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev
/null
&& {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5228 # Broken: success on invalid input.
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.
$ac_ext >&5
5234 # Passes both tests.
5239 rm -f conftest.err conftest.
$ac_ext
5242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5243 rm -f conftest.err conftest.
$ac_ext
5244 if $ac_preproc_ok; then
5247 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5248 See \`config.log' for more details." >&5
5249 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5250 See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
5255 ac_cpp
='$CPP $CPPFLAGS'
5256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5260 # Find a good install program. We prefer a C program (faster),
5261 # so one script is as good as another. But avoid the broken or
5262 # incompatible versions:
5263 # SysV /etc/install, /usr/sbin/install
5264 # SunOS /usr/etc/install
5265 # IRIX /sbin/install
5267 # AmigaOS /C/install, which installs bootblocks on floppy discs
5268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5271 # OS/2's system install, which has a completely different semantic
5272 # ./install, which can be erroneously created by make from ./install.sh.
5273 # Reject install programs that cannot install multiple files.
5274 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5276 if test -z "$INSTALL"; then
5277 if test "${ac_cv_path_install+set}" = set; then
5278 $as_echo_n "(cached) " >&6
5280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir
=.
5285 # Account for people who put trailing slashes in PATH elements.
5287 .
/ | .
// |
/cC
/* | \
5288 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5289 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5292 # OSF1 and SCO ODT 3.0 have their own names for install.
5293 # Don't use installbsd from OSF since it installs stuff as root
5295 for ac_prog
in ginstall scoinst
install; do
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5298 if test $ac_prog = install &&
5299 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5300 # AIX install. It has an incompatible calling convention.
5302 elif test $ac_prog = install &&
5303 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5304 # program-specific install script used by HP pwplus--don't use.
5307 rm -rf conftest.one conftest.two conftest.dir
5308 echo one
> conftest.one
5309 echo two
> conftest.two
5311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5312 test -s conftest.one
&& test -s conftest.two
&&
5313 test -s conftest.dir
/conftest.one
&&
5314 test -s conftest.dir
/conftest.two
5316 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5329 rm -rf conftest.one conftest.two conftest.dir
5332 if test "${ac_cv_path_install+set}" = set; then
5333 INSTALL
=$ac_cv_path_install
5335 # As a last resort, use the slow shell script. Don't cache a
5336 # value for INSTALL within a source directory, because that will
5337 # break other packages using the cache if that directory is
5338 # removed, or if the value is a relative name.
5339 INSTALL
=$ac_install_sh
5342 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5343 $as_echo "$INSTALL" >&6; }
5345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5346 # It thinks the first close brace ends the variable substitution.
5347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5351 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5353 if test "x$RANLIB" = x
; then
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5356 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_RANLIB+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$RANLIB"; then
5363 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 RANLIB
=$ac_cv_prog_RANLIB
5383 if test -n "$RANLIB"; then
5384 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5385 $as_echo "$RANLIB" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_RANLIB"; then
5394 ac_ct_RANLIB
=$RANLIB
5395 # Extract the first word of "ranlib", so it can be a program name with args.
5396 set dummy ranlib
; ac_word
=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_RANLIB"; then
5403 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5423 if test -n "$ac_ct_RANLIB"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5425 $as_echo "$ac_ct_RANLIB" >&6; }
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_RANLIB" = x
; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5437 whose name does not start with the host triplet. If you think this
5438 configuration is useful to you, please write to autoconf@gnu.org." >&5
5439 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5440 whose name does not start with the host triplet. If you think this
5441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5442 ac_tool_warned
=yes ;;
5444 RANLIB
=$ac_ct_RANLIB
5447 RANLIB
="$ac_cv_prog_RANLIB"
5451 # Extract the first word of "install-info", so it can be a program name with args.
5452 set dummy install-info
; ac_word
=$2
5453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5458 case $INSTALL_INFO in
5460 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir
=.
5468 for ac_exec_ext
in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5482 if test -n "$INSTALL_INFO"; then
5483 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5484 $as_echo "$INSTALL_INFO" >&6; }
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5491 # Extract the first word of "install-info", so it can be a program name with args.
5492 set dummy install-info
; ac_word
=$2
5493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5496 $as_echo_n "(cached) " >&6
5498 case $INSTALL_INFO in
5500 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5504 for as_dir
in /usr
/sbin
5507 test -z "$as_dir" && as_dir
=.
5508 for ac_exec_ext
in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5522 if test -n "$INSTALL_INFO"; then
5523 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5524 $as_echo "$INSTALL_INFO" >&6; }
5526 { $as_echo "$as_me:$LINENO: result: no" >&5
5527 $as_echo "no" >&6; }
5531 # Extract the first word of "install-info", so it can be a program name with args.
5532 set dummy install-info
; ac_word
=$2
5533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5538 case $INSTALL_INFO in
5540 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir
=.
5548 for ac_exec_ext
in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5562 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5563 if test -n "$INSTALL_INFO"; then
5564 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5565 $as_echo "$INSTALL_INFO" >&6; }
5567 { $as_echo "$as_me:$LINENO: result: no" >&5
5568 $as_echo "no" >&6; }
5572 # Extract the first word of "gzip", so it can be a program name with args.
5573 set dummy
gzip; ac_word
=$2
5574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5581 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir
=.
5589 for ac_exec_ext
in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5603 if test -n "$GZIP_PROG"; then
5604 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5605 $as_echo "$GZIP_PROG" >&6; }
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5614 ## Need makeinfo >= 4.6 (?) to build the manuals.
5615 # Extract the first word of "makeinfo", so it can be a program name with args.
5616 set dummy makeinfo
; ac_word
=$2
5617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5620 $as_echo_n "(cached) " >&6
5624 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir
=.
5632 for ac_exec_ext
in '' $ac_executable_extensions; do
5633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5646 MAKEINFO
=$ac_cv_path_MAKEINFO
5647 if test -n "$MAKEINFO"; then
5648 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5649 $as_echo "$MAKEINFO" >&6; }
5651 { $as_echo "$as_me:$LINENO: result: no" >&5
5652 $as_echo "no" >&6; }
5656 if test "$MAKEINFO" != "no" && \
5657 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
5661 ## Makeinfo is unusual. For a released Emacs, the manuals are
5662 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5663 ## therefore in the category of "special tools" not normally required, which
5664 ## configure does not have to check for (eg autoconf itself).
5665 ## In a Bazaar checkout on the other hand, the manuals are not included.
5666 ## So makeinfo is a requirement to build from Bazaar, and configure
5667 ## should test for it as it does for any other build requirement.
5668 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5669 ## with pre-built manuals, from a Bazaar checkout.
5670 if test "$MAKEINFO" = "no"; then
5671 if test "x${with_makeinfo}" = "xno"; then
5673 elif test ! -e $srcdir/info
/emacs
; then
5674 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5675 source tree does not seem to have pre-built manuals in the \`info' directory.
5676 Either install a suitable version of makeinfo, or re-run configure
5677 with the \`--without-makeinfo' option to build without the manuals. " >&5
5678 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5679 source tree does not seem to have pre-built manuals in the \`info' directory.
5680 Either install a suitable version of makeinfo, or re-run configure
5681 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5682 { (exit 1); exit 1; }; }
5687 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5689 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5692 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5694 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5698 late_LDFLAGS
=$LDFLAGS
5699 if test "$GCC" = yes; then
5700 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5702 LDFLAGS
="$LDFLAGS -znocombreloc"
5705 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5706 $as_echo_n "checking for -znocombreloc... " >&6; }
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 rm -f conftest.
$ac_objext conftest
$ac_exeext
5711 if { (ac_try
="$ac_link"
5713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5717 $as_echo "$ac_try_echo") >&5
5718 (eval "$ac_link") 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && {
5725 test -z "$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest$ac_exeext && {
5728 test "$cross_compiling" = yes ||
5729 $as_test_x conftest$ac_exeext
5731 { $as_echo "$as_me:$LINENO: result: yes" >&5
5732 $as_echo "yes" >&6; }
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 LDFLAGS=$late_LDFLAGS
5738 { $as_echo "$as_me:$LINENO: result: no" >&5
5739 $as_echo "no" >&6; }
5742 rm -rf conftest.dSYM
5743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5753 ## Adding -lm confuses the dynamic linker, so omit it.
5760 #### Extract some information from the operating system and machine files.
5762 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5763 - which libraries the lib-src programs will want, and
5764 - whether the GNU malloc routines are usable..." >&5
5765 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5766 - which libraries the lib-src programs will want, and
5767 - whether the GNU malloc routines are usable..." >&6;}
5769 ### First figure out CFLAGS (which we use for running the compiler here)
5770 ### and REAL_CFLAGS (which we use for real compilation).
5771 ### The two are the same except on a few systems, where they are made
5772 ### different to work around various lossages. For example,
5773 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5774 ### as implying static linking.
5776 ### If the CFLAGS env var is specified, we use that value
5777 ### instead of the default.
5779 ### It's not important that this name contain the PID; you can't run
5780 ### two configures in the same directory and have anything work
5782 tempcname="conftest.c"
5785 #include "'${srcdir}'/src/'${opsysfile}'"
5786 #include "'${srcdir}'/src/'${machfile}'"
5790 #ifndef C_SWITCH_SYSTEM
5791 #define C_SWITCH_SYSTEM
5793 #ifndef C_SWITCH_MACHINE
5794 #define C_SWITCH_MACHINE
5796 configure___ libsrc_libs=LIBS_SYSTEM
5797 configure___ c_switch_system=C_SWITCH_SYSTEM
5798 configure___ c_switch_machine=C_SWITCH_MACHINE
5800 configure___ LIBX=-lX11
5802 configure___ unexec=UNEXEC
5804 #ifdef SYSTEM_MALLOC
5805 configure___ system_malloc=yes
5807 configure___ system_malloc=no
5810 #ifdef USE_MMAP_FOR_BUFFERS
5811 configure___ use_mmap_for_buffers=yes
5813 configure___ use_mmap_for_buffers=no
5816 #ifndef C_OPTIMIZE_SWITCH
5818 #define C_OPTIMIZE_SWITCH -O2
5820 #define C_OPTIMIZE_SWITCH -O
5824 #ifndef C_WARNINGS_SWITCH
5825 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5828 #ifndef LD_SWITCH_MACHINE
5829 #define LD_SWITCH_MACHINE
5832 #ifndef LD_SWITCH_SYSTEM
5833 #define LD_SWITCH_SYSTEM
5836 #ifndef LD_SWITCH_X_SITE_AUX
5837 #define LD_SWITCH_X_SITE_AUX
5840 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5841 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5843 #ifdef THIS_IS_CONFIGURE
5845 /* Get the CFLAGS for tests in configure. */
5847 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5849 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5852 #else /* not THIS_IS_CONFIGURE */
5854 /* Get the CFLAGS for real compilation. */
5856 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5858 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5861 #endif /* not THIS_IS_CONFIGURE */
5864 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5866 # The value of CPP is a quoted variable reference, so we need to do this
5867 # to get its actual value...
5868 CPP=`eval "echo $CPP"`
5869 eval `${CPP} -Isrc ${tempcname} \
5870 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5871 if test "x$SPECIFIED_CFLAGS" = x; then
5872 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5873 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5875 REAL_CFLAGS="$CFLAGS"
5879 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5881 ### Make sure subsequent tests use flags consistent with the build flags.
5883 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5884 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5886 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5891 # Check whether --enable-largefile was given.
5892 if test "${enable_largefile+set}" = set; then
5893 enableval=$enable_largefile;
5896 if test "$enable_largefile" != no; then
5898 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5899 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5900 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5901 $as_echo_n "(cached) " >&6
5903 ac_cv_sys_largefile_CC=no
5904 if test "$GCC" != yes; then
5907 # IRIX 6.2 and later do not support large files by default,
5908 # so use the C compiler's -n32 option if that helps.
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5915 #include <sys/types.h>
5916 /* Check that off_t can represent 2**63 - 1 correctly.
5917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5918 since some C++ compilers masquerading as C compilers
5919 incorrectly reject 9223372036854775807. */
5920 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5922 && LARGE_OFF_T % 2147483647 == 1)
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5936 *) ac_try_echo
=$ac_try;;
5938 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5939 $as_echo "$ac_try_echo") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1
>conftest.err
5944 cat conftest.err
>&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.
$ac_objext; then
5952 $as_echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5958 rm -f core conftest.err conftest.
$ac_objext
5960 rm -f conftest.
$ac_objext
5961 if { (ac_try
="$ac_compile"
5963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5967 $as_echo "$ac_try_echo") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1 >conftest.err
5972 cat conftest.err >&5
5973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.$ac_objext; then
5978 ac_cv_sys_largefile_CC=' -n32'; break
5980 $as_echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5986 rm -f core conftest.err conftest.$ac_objext
5990 rm -f conftest.$ac_ext
5993 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5994 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5995 if test "$ac_cv_sys_largefile_CC" != no; then
5996 CC=$CC$ac_cv_sys_largefile_CC
5999 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6000 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6001 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6028 rm -f conftest.$ac_objext
6029 if { (ac_try="$ac_compile"
6031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6032 *) ac_try_echo
=$ac_try;;
6034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6035 $as_echo "$ac_try_echo") >&5
6036 (eval "$ac_compile") 2>conftest.er1
6038 grep -v '^ *+' conftest.er1
>conftest.err
6040 cat conftest.err
>&5
6041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.
$ac_objext; then
6046 ac_cv_sys_file_offset_bits
=no
; break
6048 $as_echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.
$ac_ext >&5
6054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #define _FILE_OFFSET_BITS 64
6062 #include <sys/types.h>
6063 /* Check that off_t can represent 2**63 - 1 correctly.
6064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6065 since some C++ compilers masquerading as C compilers
6066 incorrectly reject 9223372036854775807. */
6067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6069 && LARGE_OFF_T % 2147483647 == 1)
6079 rm -f conftest.
$ac_objext
6080 if { (ac_try
="$ac_compile"
6082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6086 $as_echo "$ac_try_echo") >&5
6087 (eval "$ac_compile") 2>conftest.er1
6089 grep -v '^ *+' conftest.er1 >conftest.err
6091 cat conftest.err >&5
6092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest.$ac_objext; then
6097 ac_cv_sys_file_offset_bits=64; break
6099 $as_echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 ac_cv_sys_file_offset_bits=unknown
6110 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6111 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6112 case $ac_cv_sys_file_offset_bits in #(
6115 cat >>confdefs.h <<_ACEOF
6116 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6121 if test $ac_cv_sys_file_offset_bits = unknown; then
6122 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6123 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6124 if test "${ac_cv_sys_large_files+set}" = set; then
6125 $as_echo_n "(cached) " >&6
6128 cat >conftest.$ac_ext <<_ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6135 /* Check that off_t can represent 2**63 - 1 correctly.
6136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6137 since some C++ compilers masquerading as C compilers
6138 incorrectly reject 9223372036854775807. */
6139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6141 && LARGE_OFF_T % 2147483647 == 1)
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6155 *) ac_try_echo
=$ac_try;;
6157 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.
$ac_objext; then
6169 ac_cv_sys_large_files
=no
; break
6171 $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6178 cat >conftest.
$ac_ext <<_ACEOF
6181 cat confdefs.h
>>conftest.
$ac_ext
6182 cat >>conftest.
$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #define _LARGE_FILES 1
6185 #include <sys/types.h>
6186 /* Check that off_t can represent 2**63 - 1 correctly.
6187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6188 since some C++ compilers masquerading as C compilers
6189 incorrectly reject 9223372036854775807. */
6190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6192 && LARGE_OFF_T % 2147483647 == 1)
6202 rm -f conftest.
$ac_objext
6203 if { (ac_try
="$ac_compile"
6205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209 $as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_sys_large_files=1; break
6222 $as_echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 ac_cv_sys_large_files=unknown
6233 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6234 $as_echo "$ac_cv_sys_large_files" >&6; }
6235 case $ac_cv_sys_large_files in #(
6238 cat >>confdefs.h <<_ACEOF
6239 #define _LARGE_FILES $ac_cv_sys_large_files
6249 ## If user specified a crt-dir, use that unconditionally.
6250 if test "X$CRT_DIR" = "X"; then
6252 case "$canonical" in
6253 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6254 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6255 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6256 ## For anything else (eg /usr/lib32), it is up the user to specify
6257 ## the location (bug#5655).
6258 ## Test for crtn.o, not just the directory, because sometimes the
6259 ## directory exists but does not have the relevant files (bug#1287).
6260 ## FIXME better to test for binary compatibility somehow.
6261 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6264 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6268 hpux10-20) CRT_DIR=/lib ;;
6271 ## Default is /usr/lib.
6272 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6276 ## Some platforms don't use any of these files, so it is not
6277 ## appropriate to put this test outside the if block.
6278 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6279 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6280 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6281 { (exit 1); exit 1; }; }
6291 if test "${with_sound}" != "no"; then
6292 # Sound support for GNU/Linux and the free BSDs.
6296 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 $as_echo_n "checking for $ac_header... " >&6; }
6302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6303 $as_echo_n "(cached) " >&6
6305 ac_res=`eval 'as_val=${'$as_ac_Header'}
6306 $as_echo "$as_val"'`
6307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6308 $as_echo "$ac_res" >&6; }
6310 # Is the header compilable?
6311 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
6320 #include <$ac_header>
6322 rm -f conftest.$ac_objext
6323 if { (ac_try="$ac_compile"
6325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6326 *) ac_try_echo
=$ac_try;;
6328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6329 $as_echo "$ac_try_echo") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6332 grep -v '^ *+' conftest.er1
>conftest.err
6334 cat conftest.err
>&5
6335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.
$ac_objext; then
6340 ac_header_compiler
=yes
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.
$ac_ext >&5
6345 ac_header_compiler
=no
6348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6350 $as_echo "$ac_header_compiler" >&6; }
6352 # Is the header present?
6353 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6354 $as_echo_n "checking $ac_header presence... " >&6; }
6355 cat >conftest.
$ac_ext <<_ACEOF
6358 cat confdefs.h
>>conftest.
$ac_ext
6359 cat >>conftest.
$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <$ac_header>
6363 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369 $as_echo "$ac_try_echo") >&5
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null && {
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6380 ac_header_preproc=yes
6382 $as_echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 ac_header_preproc=no
6388 rm -f conftest.err conftest.$ac_ext
6389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6390 $as_echo "$ac_header_preproc" >&6; }
6392 # So? What about this header?
6393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6396 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6399 ac_header_preproc=yes
6402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6403 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6405 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6407 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6409 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6413 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 $as_echo_n "checking for $ac_header... " >&6; }
6419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6420 $as_echo_n "(cached) " >&6
6422 eval "$as_ac_Header=\$ac_header_preproc"
6424 ac_res=`eval 'as_val=${'$as_ac_Header'}
6425 $as_echo "$as_val"'`
6426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6427 $as_echo "$ac_res" >&6; }
6430 if test `eval 'as_val=${'$as_ac_Header'}
6431 $as_echo "$as_val"'` = yes; then
6432 cat >>confdefs.h <<_ACEOF
6433 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6440 # Emulation library used on NetBSD.
6441 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6442 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6443 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6446 ac_check_lib_save_LIBS=$LIBS
6447 LIBS="-lossaudio $LIBS"
6448 cat >conftest.$ac_ext <<_ACEOF
6451 cat confdefs.h >>conftest.$ac_ext
6452 cat >>conftest.$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6455 /* Override any GCC internal prototype to avoid an error.
6456 Use char because int might match the return type of a GCC
6457 builtin and then its argument prototype would still apply. */
6465 return _oss_ioctl ();
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (ac_try="$ac_link"
6473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6474 *) ac_try_echo
=$ac_try;;
6476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478 (eval "$ac_link") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1
>conftest.err
6482 cat conftest.err
>&5
6483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest
$ac_exeext && {
6488 test "$cross_compiling" = yes ||
6489 $as_test_x conftest
$ac_exeext
6491 ac_cv_lib_ossaudio__oss_ioctl
=yes
6493 $as_echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 ac_cv_lib_ossaudio__oss_ioctl
=no
6499 rm -rf conftest.dSYM
6500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6501 conftest
$ac_exeext conftest.
$ac_ext
6502 LIBS
=$ac_check_lib_save_LIBS
6504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6505 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6506 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6515 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6519 # Extract the first word of "pkg-config", so it can be a program name with args.
6520 set dummy pkg-config
; ac_word
=$2
6521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6524 $as_echo_n "(cached) " >&6
6528 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir
=.
6536 for ac_exec_ext
in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6550 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6551 if test -n "$PKG_CONFIG"; then
6552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6553 $as_echo "$PKG_CONFIG" >&6; }
6555 { $as_echo "$as_me:$LINENO: result: no" >&5
6556 $as_echo "no" >&6; }
6561 if test "$PKG_CONFIG" = "no" ; then
6564 PKG_CONFIG_MIN_VERSION
=0.9.0
6565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6566 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6567 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6569 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6570 { $as_echo "$as_me:$LINENO: result: yes" >&5
6571 $as_echo "yes" >&6; }
6574 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6575 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6576 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6577 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6578 $as_echo "$ALSA_CFLAGS" >&6; }
6580 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6581 $as_echo_n "checking ALSA_LIBS... " >&6; }
6582 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6583 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6584 $as_echo "$ALSA_LIBS" >&6; }
6586 { $as_echo "$as_me:$LINENO: result: no" >&5
6587 $as_echo "no" >&6; }
6590 ## If we have a custom action on failure, don't print errors, but
6591 ## do set a variable so people can do so.
6592 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6599 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6604 if test $succeeded = yes; then
6610 if test $HAVE_ALSA = yes; then
6611 SAVE_CFLAGS
="$CFLAGS"
6612 SAVE_LDFLAGS
="$LDFLAGS"
6613 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6614 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6615 cat >conftest.
$ac_ext <<_ACEOF
6618 cat confdefs.h
>>conftest.
$ac_ext
6619 cat >>conftest.
$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <asoundlib.h>
6625 snd_lib_error_set_handler (0);
6630 rm -f conftest.
$ac_objext
6631 if { (ac_try
="$ac_compile"
6633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
6648 emacs_alsa_normal=yes
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 emacs_alsa_normal=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 if test "$emacs_alsa_normal" != yes; then
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <alsa/asoundlib.h>
6668 snd_lib_error_set_handler (0);
6673 rm -f conftest.$ac_objext
6674 if { (ac_try="$ac_compile"
6676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6677 *) ac_try_echo
=$ac_try;;
6679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6680 $as_echo "$ac_try_echo") >&5
6681 (eval "$ac_compile") 2>conftest.er1
6683 grep -v '^ *+' conftest.er1
>conftest.err
6685 cat conftest.err
>&5
6686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } && {
6688 test -z "$ac_c_werror_flag" ||
6689 test ! -s conftest.err
6690 } && test -s conftest.
$ac_objext; then
6691 emacs_alsa_subdir
=yes
6693 $as_echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.
$ac_ext >&5
6696 emacs_alsa_subdir
=no
6699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6700 if test "$emacs_alsa_subdir" != yes; then
6701 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6702 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6703 { (exit 1); exit 1; }; }
6705 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6708 CFLAGS
="$SAVE_CFLAGS"
6709 LDFLAGS
="$SAVE_LDFLAGS"
6710 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6711 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6713 cat >>confdefs.h
<<\_ACEOF
6746 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6747 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6748 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6749 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6750 sys
/utsname.h
pwd.h utmp.h
6752 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6755 $as_echo_n "checking for $ac_header... " >&6; }
6756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6757 $as_echo_n "(cached) " >&6
6759 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6760 $as_echo "$as_val"'`
6761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6764 # Is the header compilable?
6765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6766 $as_echo_n "checking $ac_header usability... " >&6; }
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 #include <$ac_header>
6776 rm -f conftest.
$ac_objext
6777 if { (ac_try
="$ac_compile"
6779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6780 *) ac_try_echo=$ac_try;;
6782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6783 $as_echo "$ac_try_echo") >&5
6784 (eval "$ac_compile") 2>conftest.er1
6786 grep -v '^ *+' conftest.er1 >conftest.err
6788 cat conftest.err >&5
6789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && {
6791 test -z "$ac_c_werror_flag" ||
6792 test ! -s conftest.err
6793 } && test -s conftest.$ac_objext; then
6794 ac_header_compiler=yes
6796 $as_echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 ac_header_compiler=no
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6804 $as_echo "$ac_header_compiler" >&6; }
6806 # Is the header present?
6807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6808 $as_echo_n "checking $ac_header presence... " >&6; }
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <$ac_header>
6817 if { (ac_try="$ac_cpp conftest.$ac_ext"
6819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6820 *) ac_try_echo
=$ac_try;;
6822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev
/null
&& {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6834 ac_header_preproc
=yes
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.
$ac_ext >&5
6839 ac_header_preproc
=no
6842 rm -f conftest.err conftest.
$ac_ext
6843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6844 $as_echo "$ac_header_preproc" >&6; }
6846 # So? What about this header?
6847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6853 ac_header_preproc
=yes
6856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6872 $as_echo_n "checking for $ac_header... " >&6; }
6873 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6874 $as_echo_n "(cached) " >&6
6876 eval "$as_ac_Header=\$ac_header_preproc"
6878 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6879 $as_echo "$as_val"'`
6880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6881 $as_echo "$ac_res" >&6; }
6884 if test `eval 'as_val=${'$as_ac_Header'}
6885 $as_echo "$as_val"'` = yes; then
6886 cat >>confdefs.h
<<_ACEOF
6887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6896 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6897 cat >conftest.
$ac_ext <<_ACEOF
6900 cat confdefs.h
>>conftest.
$ac_ext
6901 cat >>conftest.
$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <sys/personality.h>
6907 personality (PER_LINUX32)
6912 rm -f conftest.
$ac_objext
6913 if { (ac_try
="$ac_compile"
6915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 emacs_cv_personality_linux32=yes
6932 $as_echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 emacs_cv_personality_linux32=no
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6940 $as_echo "$emacs_cv_personality_linux32" >&6; }
6942 if test $emacs_cv_personality_linux32 = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_PERSONALITY_LINUX32 1
6951 for ac_header in term.h
6953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6955 $as_echo_n "checking for $ac_header... " >&6; }
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 $as_echo_n "(cached) " >&6
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 #include <$ac_header>
6967 if { (ac_try="$ac_cpp conftest.$ac_ext"
6969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6970 *) ac_try_echo
=$ac_try;;
6972 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6973 $as_echo "$ac_try_echo") >&5
6974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6976 grep -v '^ *+' conftest.er1
>conftest.err
6978 cat conftest.err
>&5
6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } >/dev
/null
&& {
6981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6984 eval "$as_ac_Header=yes"
6986 $as_echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.
$ac_ext >&5
6989 eval "$as_ac_Header=no"
6992 rm -f conftest.err conftest.
$ac_ext
6994 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6995 $as_echo "$as_val"'`
6996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6997 $as_echo "$ac_res" >&6; }
6998 if test `eval 'as_val=${'$as_ac_Header'}
6999 $as_echo "$as_val"'` = yes; then
7000 cat >>confdefs.h
<<_ACEOF
7001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7009 $as_echo_n "checking for ANSI C header files... " >&6; }
7010 if test "${ac_cv_header_stdc+set}" = set; then
7011 $as_echo_n "(cached) " >&6
7013 cat >conftest.
$ac_ext <<_ACEOF
7016 cat confdefs.h
>>conftest.
$ac_ext
7017 cat >>conftest.
$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7032 rm -f conftest.
$ac_objext
7033 if { (ac_try
="$ac_compile"
7035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_header_stdc=yes
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_header_stdc=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 if test $ac_cv_header_stdc = yes; then
7061 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "memchr" >/dev/null 2>&1; then
7075 ac_cv_header_stdc=no
7081 if test $ac_cv_header_stdc = yes; then
7082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 $EGREP "free" >/dev/null 2>&1; then
7096 ac_cv_header_stdc=no
7102 if test $ac_cv_header_stdc = yes; then
7103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7104 if test "$cross_compiling" = yes; then
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7115 #if ((' ' & 0x0FF) == 0x020)
7116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7119 # define ISLOWER(c) \
7120 (('a' <= (c) && (c) <= 'i') \
7121 || ('j' <= (c) && (c) <= 'r') \
7122 || ('s' <= (c) && (c) <= 'z'))
7123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7131 for (i = 0; i < 256; i++)
7132 if (XOR (islower (i), ISLOWER (i))
7133 || toupper (i) != TOUPPER (i))
7138 rm -f conftest$ac_exeext
7139 if { (ac_try="$ac_link"
7141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7142 *) ac_try_echo
=$ac_try;;
7144 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146 (eval "$ac_link") 2>&5
7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7150 { (case "(($ac_try" in
7151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7155 $as_echo "$ac_try_echo") >&5
7156 (eval "$ac_try") 2>&5
7158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7162 $as_echo "$as_me: program exited with status $ac_status" >&5
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_cv_header_stdc=no
7169 rm -rf conftest.dSYM
7170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7177 $as_echo "$ac_cv_header_stdc" >&6; }
7178 if test $ac_cv_header_stdc = yes; then
7180 cat >>confdefs.h <<\_ACEOF
7181 #define STDC_HEADERS 1
7186 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7187 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7188 if test "${ac_cv_header_time+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <sys/types.h>
7198 #include <sys/time.h>
7204 if ((struct tm *) 0)
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7214 *) ac_try_echo
=$ac_try;;
7216 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7220 grep -v '^ *+' conftest.er1
>conftest.err
7222 cat conftest.err
>&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.
$ac_objext; then
7228 ac_cv_header_time
=yes
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.
$ac_ext >&5
7233 ac_cv_header_time
=no
7236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7238 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7239 $as_echo "$ac_cv_header_time" >&6; }
7240 if test $ac_cv_header_time = yes; then
7242 cat >>confdefs.h
<<\_ACEOF
7243 #define TIME_WITH_SYS_TIME 1
7248 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7249 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7250 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7253 cat >conftest.
$ac_ext <<_ACEOF
7256 cat confdefs.h
>>conftest.
$ac_ext
7257 cat >>conftest.
$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7271 rm -f conftest.
$ac_objext
7272 if { (ac_try
="$ac_compile"
7274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7278 $as_echo "$ac_try_echo") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_have_decl_sys_siglist=yes
7291 $as_echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_cv_have_decl_sys_siglist=no
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7300 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7301 if test $ac_cv_have_decl_sys_siglist = yes; then
7303 cat >>confdefs.h <<_ACEOF
7304 #define HAVE_DECL_SYS_SIGLIST 1
7309 cat >>confdefs.h <<_ACEOF
7310 #define HAVE_DECL_SYS_SIGLIST 0
7317 if test $ac_cv_have_decl_sys_siglist != yes; then
7318 # For Tru64, at least:
7319 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7320 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7321 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7334 #ifndef __sys_siglist
7335 (void) __sys_siglist;
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7346 *) ac_try_echo
=$ac_try;;
7348 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7349 $as_echo "$ac_try_echo") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1
>conftest.err
7354 cat conftest.err
>&5
7355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.
$ac_objext; then
7360 ac_cv_have_decl___sys_siglist
=yes
7362 $as_echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.
$ac_ext >&5
7365 ac_cv_have_decl___sys_siglist
=no
7368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7370 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7371 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7372 if test $ac_cv_have_decl___sys_siglist = yes; then
7374 cat >>confdefs.h
<<_ACEOF
7375 #define HAVE_DECL___SYS_SIGLIST 1
7380 cat >>confdefs.h
<<_ACEOF
7381 #define HAVE_DECL___SYS_SIGLIST 0
7388 if test $ac_cv_have_decl___sys_siglist = yes; then
7390 cat >>confdefs.h
<<\_ACEOF
7391 #define sys_siglist __sys_siglist
7396 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7397 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7398 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7401 cat >conftest.
$ac_ext <<_ACEOF
7404 cat confdefs.h
>>conftest.
$ac_ext
7405 cat >>conftest.
$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 #include <sys/types.h>
7408 #include <sys/wait.h>
7410 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7413 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7421 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7426 rm -f conftest.
$ac_objext
7427 if { (ac_try
="$ac_compile"
7429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7433 $as_echo "$ac_try_echo") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1 >conftest.err
7438 cat conftest.err >&5
7439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 ac_cv_header_sys_wait_h=yes
7446 $as_echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_cv_header_sys_wait_h=no
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7455 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7456 if test $ac_cv_header_sys_wait_h = yes; then
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_SYS_WAIT_H 1
7465 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7466 $as_echo_n "checking for struct utimbuf... " >&6; }
7467 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7468 $as_echo_n "(cached) " >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 #ifdef TIME_WITH_SYS_TIME
7477 #include <sys/time.h>
7480 #ifdef HAVE_SYS_TIME_H
7481 #include <sys/time.h>
7492 static struct utimbuf x; x.actime = x.modtime;
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7501 *) ac_try_echo
=$ac_try;;
7503 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.
$ac_objext; then
7515 emacs_cv_struct_utimbuf
=yes
7517 $as_echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.
$ac_ext >&5
7520 emacs_cv_struct_utimbuf
=no
7523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7526 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7527 if test $emacs_cv_struct_utimbuf = yes; then
7529 cat >>confdefs.h
<<\_ACEOF
7530 #define HAVE_STRUCT_UTIMBUF 1
7535 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7536 $as_echo_n "checking return type of signal handlers... " >&6; }
7537 if test "${ac_cv_type_signal+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7540 cat >conftest.
$ac_ext <<_ACEOF
7543 cat confdefs.h
>>conftest.
$ac_ext
7544 cat >>conftest.
$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 #include <sys/types.h>
7552 return *(signal (0, 0)) (0) == 1;
7557 rm -f conftest.
$ac_objext
7558 if { (ac_try
="$ac_compile"
7560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.$ac_objext; then
7575 ac_cv_type_signal=int
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_type_signal=void
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7586 $as_echo "$ac_cv_type_signal" >&6; }
7588 cat >>confdefs.h <<_ACEOF
7589 #define RETSIGTYPE $ac_cv_type_signal
7594 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7595 $as_echo_n "checking for speed_t... " >&6; }
7596 if test "${emacs_cv_speed_t+set}" = set; then
7597 $as_echo_n "(cached) " >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <termios.h>
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7618 *) ac_try_echo
=$ac_try;;
7620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.
$ac_objext; then
7632 emacs_cv_speed_t
=yes
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.
$ac_ext >&5
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7642 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7643 $as_echo "$emacs_cv_speed_t" >&6; }
7644 if test $emacs_cv_speed_t = yes; then
7646 cat >>confdefs.h
<<\_ACEOF
7647 #define HAVE_SPEED_T 1
7652 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7653 $as_echo_n "checking for struct timeval... " >&6; }
7654 if test "${emacs_cv_struct_timeval+set}" = set; then
7655 $as_echo_n "(cached) " >&6
7657 cat >conftest.
$ac_ext <<_ACEOF
7660 cat confdefs.h
>>conftest.
$ac_ext
7661 cat >>conftest.
$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 #ifdef TIME_WITH_SYS_TIME
7664 #include <sys/time.h>
7667 #ifdef HAVE_SYS_TIME_H
7668 #include <sys/time.h>
7676 static struct timeval x; x.tv_sec = x.tv_usec;
7681 rm -f conftest.
$ac_objext
7682 if { (ac_try
="$ac_compile"
7684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7699 emacs_cv_struct_timeval=yes
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 emacs_cv_struct_timeval=no
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7710 $as_echo "$emacs_cv_struct_timeval" >&6; }
7711 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7712 if test $emacs_cv_struct_timeval = yes; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_TIMEVAL 1
7720 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7721 $as_echo_n "checking for struct exception... " >&6; }
7722 if test "${emacs_cv_struct_exception+set}" = set; then
7723 $as_echo_n "(cached) " >&6
7725 cat >conftest.$ac_ext <<_ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7735 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7740 rm -f conftest.$ac_objext
7741 if { (ac_try="$ac_compile"
7743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7744 *) ac_try_echo
=$ac_try;;
7746 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7747 $as_echo "$ac_try_echo") >&5
7748 (eval "$ac_compile") 2>conftest.er1
7750 grep -v '^ *+' conftest.er1
>conftest.err
7752 cat conftest.err
>&5
7753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.
$ac_objext; then
7758 emacs_cv_struct_exception
=yes
7760 $as_echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.
$ac_ext >&5
7763 emacs_cv_struct_exception
=no
7766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7768 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7769 $as_echo "$emacs_cv_struct_exception" >&6; }
7770 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7771 if test $emacs_cv_struct_exception != yes; then
7773 cat >>confdefs.h
<<\_ACEOF
7774 #define NO_MATHERR 1
7780 for ac_header
in sys
/socket.h
7782 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 $as_echo_n "checking for $ac_header... " >&6; }
7786 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7787 $as_echo_n "(cached) " >&6
7789 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7790 $as_echo "$as_val"'`
7791 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7792 $as_echo "$ac_res" >&6; }
7794 # Is the header compilable?
7795 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7796 $as_echo_n "checking $ac_header usability... " >&6; }
7797 cat >conftest.
$ac_ext <<_ACEOF
7800 cat confdefs.h
>>conftest.
$ac_ext
7801 cat >>conftest.
$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 $ac_includes_default
7804 #include <$ac_header>
7806 rm -f conftest.
$ac_objext
7807 if { (ac_try
="$ac_compile"
7809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7813 $as_echo "$ac_try_echo") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_header_compiler=yes
7826 $as_echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 ac_header_compiler=no
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 $as_echo "$ac_header_compiler" >&6; }
7836 # Is the header present?
7837 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 $as_echo_n "checking $ac_header presence... " >&6; }
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 #include <$ac_header>
7847 if { (ac_try="$ac_cpp conftest.$ac_ext"
7849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7850 *) ac_try_echo
=$ac_try;;
7852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1
>conftest.err
7858 cat conftest.err
>&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } >/dev
/null
&& {
7861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7864 ac_header_preproc
=yes
7866 $as_echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.
$ac_ext >&5
7869 ac_header_preproc
=no
7872 rm -f conftest.err conftest.
$ac_ext
7873 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 $as_echo "$ac_header_preproc" >&6; }
7876 # So? What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883 ac_header_preproc
=yes
7886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7893 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7902 $as_echo_n "checking for $ac_header... " >&6; }
7903 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7904 $as_echo_n "(cached) " >&6
7906 eval "$as_ac_Header=\$ac_header_preproc"
7908 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7909 $as_echo "$as_val"'`
7910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7911 $as_echo "$ac_res" >&6; }
7914 if test `eval 'as_val=${'$as_ac_Header'}
7915 $as_echo "$as_val"'` = yes; then
7916 cat >>confdefs.h
<<_ACEOF
7917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925 for ac_header
in net
/if.h
7927 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 $as_echo_n "checking for $ac_header... " >&6; }
7930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7931 $as_echo_n "(cached) " >&6
7933 cat >conftest.
$ac_ext <<_ACEOF
7936 cat confdefs.h
>>conftest.
$ac_ext
7937 cat >>conftest.
$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7939 $ac_includes_default
7940 #if HAVE_SYS_SOCKET_H
7941 #include <sys/socket.h>
7944 #include <$ac_header>
7946 rm -f conftest.
$ac_objext
7947 if { (ac_try
="$ac_compile"
7949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7953 $as_echo "$ac_try_echo") >&5
7954 (eval "$ac_compile") 2>conftest.er1
7956 grep -v '^ *+' conftest.er1 >conftest.err
7958 cat conftest.err >&5
7959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest.$ac_objext; then
7964 eval "$as_ac_Header=yes"
7966 $as_echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 eval "$as_ac_Header=no"
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 ac_res=`eval 'as_val=${'$as_ac_Header'}
7975 $as_echo "$as_val"'`
7976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7977 $as_echo "$ac_res" >&6; }
7978 if test `eval 'as_val=${'$as_ac_Header'}
7979 $as_echo "$as_val"'` = yes; then
7980 cat >>confdefs.h <<_ACEOF
7981 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7989 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7990 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7991 if test "${ac_cv_struct_tm+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 #include <sys/types.h>
8007 int *p = &tm.tm_sec;
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8017 *) ac_try_echo
=$ac_try;;
8019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8020 $as_echo "$ac_try_echo") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1
>conftest.err
8025 cat conftest.err
>&5
8026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.
$ac_objext; then
8031 ac_cv_struct_tm
=time.h
8033 $as_echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.
$ac_ext >&5
8036 ac_cv_struct_tm
=sys
/time.h
8039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8041 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8042 $as_echo "$ac_cv_struct_tm" >&6; }
8043 if test $ac_cv_struct_tm = sys
/time.h
; then
8045 cat >>confdefs.h
<<\_ACEOF
8046 #define TM_IN_SYS_TIME 1
8051 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8052 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8053 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8056 cat >conftest.
$ac_ext <<_ACEOF
8059 cat confdefs.h
>>conftest.
$ac_ext
8060 cat >>conftest.
$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 #include <sys/types.h>
8063 #include <$ac_cv_struct_tm>
8069 static struct tm ac_aggr;
8070 if (ac_aggr.tm_zone)
8076 rm -f conftest.
$ac_objext
8077 if { (ac_try
="$ac_compile"
8079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8083 $as_echo "$ac_try_echo") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1 >conftest.err
8088 cat conftest.err >&5
8089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_zone=yes
8096 $as_echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <sys/types.h>
8106 #include <$ac_cv_struct_tm>
8112 static struct tm ac_aggr;
8113 if (sizeof ac_aggr.tm_zone)
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8123 *) ac_try_echo
=$ac_try;;
8125 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8126 $as_echo "$ac_try_echo") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8129 grep -v '^ *+' conftest.er1
>conftest.err
8131 cat conftest.err
>&5
8132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && {
8134 test -z "$ac_c_werror_flag" ||
8135 test ! -s conftest.err
8136 } && test -s conftest.
$ac_objext; then
8137 ac_cv_member_struct_tm_tm_zone
=yes
8139 $as_echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.
$ac_ext >&5
8142 ac_cv_member_struct_tm_tm_zone
=no
8145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8150 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8151 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8152 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8154 cat >>confdefs.h
<<_ACEOF
8155 #define HAVE_STRUCT_TM_TM_ZONE 1
8161 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8163 cat >>confdefs.h
<<\_ACEOF
8164 #define HAVE_TM_ZONE 1
8168 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8169 $as_echo_n "checking whether tzname is declared... " >&6; }
8170 if test "${ac_cv_have_decl_tzname+set}" = set; then
8171 $as_echo_n "(cached) " >&6
8173 cat >conftest.
$ac_ext <<_ACEOF
8176 cat confdefs.h
>>conftest.
$ac_ext
8177 cat >>conftest.
$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8192 rm -f conftest.
$ac_objext
8193 if { (ac_try
="$ac_compile"
8195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8199 $as_echo "$ac_try_echo") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_have_decl_tzname=yes
8212 $as_echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_have_decl_tzname=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8221 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8222 if test $ac_cv_have_decl_tzname = yes; then
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_DECL_TZNAME 1
8230 cat >>confdefs.h <<_ACEOF
8231 #define HAVE_DECL_TZNAME 0
8238 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8239 $as_echo_n "checking for tzname... " >&6; }
8240 if test "${ac_cv_var_tzname+set}" = set; then
8241 $as_echo_n "(cached) " >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8250 #if !HAVE_DECL_TZNAME
8251 extern char *tzname[];
8257 return tzname[0][0];
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (ac_try="$ac_link"
8265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8266 *) ac_try_echo
=$ac_try;;
8268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8269 $as_echo "$ac_try_echo") >&5
8270 (eval "$ac_link") 2>conftest.er1
8272 grep -v '^ *+' conftest.er1
>conftest.err
8274 cat conftest.err
>&5
8275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest
$ac_exeext && {
8280 test "$cross_compiling" = yes ||
8281 $as_test_x conftest
$ac_exeext
8283 ac_cv_var_tzname
=yes
8285 $as_echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.
$ac_ext >&5
8291 rm -rf conftest.dSYM
8292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8293 conftest
$ac_exeext conftest.
$ac_ext
8295 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8296 $as_echo "$ac_cv_var_tzname" >&6; }
8297 if test $ac_cv_var_tzname = yes; then
8299 cat >>confdefs.h
<<\_ACEOF
8300 #define HAVE_TZNAME 1
8306 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8307 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8308 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8311 cat >conftest.
$ac_ext <<_ACEOF
8314 cat confdefs.h
>>conftest.
$ac_ext
8315 cat >>conftest.
$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8322 static struct tm ac_aggr;
8323 if (ac_aggr.tm_gmtoff)
8329 rm -f conftest.
$ac_objext
8330 if { (ac_try
="$ac_compile"
8332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8336 $as_echo "$ac_try_echo") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_tm_tm_gmtoff=yes
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8363 static struct tm ac_aggr;
8364 if (sizeof ac_aggr.tm_gmtoff)
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8374 *) ac_try_echo
=$ac_try;;
8376 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8377 $as_echo "$ac_try_echo") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1
>conftest.err
8382 cat conftest.err
>&5
8383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.
$ac_objext; then
8388 ac_cv_member_struct_tm_tm_gmtoff
=yes
8390 $as_echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.
$ac_ext >&5
8393 ac_cv_member_struct_tm_tm_gmtoff
=no
8396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8402 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8403 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8405 cat >>confdefs.h
<<\_ACEOF
8406 #define HAVE_TM_GMTOFF 1
8411 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8412 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8413 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8414 $as_echo_n "(cached) " >&6
8416 cat >conftest.
$ac_ext <<_ACEOF
8419 cat confdefs.h
>>conftest.
$ac_ext
8420 cat >>conftest.
$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 $ac_includes_default
8423 #if HAVE_SYS_SOCKET_H
8424 #include <sys/socket.h>
8433 static struct ifreq ac_aggr;
8434 if (ac_aggr.ifr_flags)
8440 rm -f conftest.
$ac_objext
8441 if { (ac_try
="$ac_compile"
8443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8450 grep -v '^ *+' conftest.er1 >conftest.err
8452 cat conftest.err >&5
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && {
8455 test -z "$ac_c_werror_flag" ||
8456 test ! -s conftest.err
8457 } && test -s conftest.$ac_objext; then
8458 ac_cv_member_struct_ifreq_ifr_flags=yes
8460 $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 $ac_includes_default
8470 #if HAVE_SYS_SOCKET_H
8471 #include <sys/socket.h>
8480 static struct ifreq ac_aggr;
8481 if (sizeof ac_aggr.ifr_flags)
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8491 *) ac_try_echo
=$ac_try;;
8493 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8494 $as_echo "$ac_try_echo") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1
>conftest.err
8499 cat conftest.err
>&5
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.
$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_flags
=yes
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8510 ac_cv_member_struct_ifreq_ifr_flags
=no
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8519 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8520 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8522 cat >>confdefs.h
<<_ACEOF
8523 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8528 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8529 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8530 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8531 $as_echo_n "(cached) " >&6
8533 cat >conftest.
$ac_ext <<_ACEOF
8536 cat confdefs.h
>>conftest.
$ac_ext
8537 cat >>conftest.
$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 $ac_includes_default
8540 #if HAVE_SYS_SOCKET_H
8541 #include <sys/socket.h>
8550 static struct ifreq ac_aggr;
8551 if (ac_aggr.ifr_hwaddr)
8557 rm -f conftest.
$ac_objext
8558 if { (ac_try
="$ac_compile"
8560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest.$ac_objext; then
8575 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8577 $as_echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 #if HAVE_SYS_SOCKET_H
8588 #include <sys/socket.h>
8597 static struct ifreq ac_aggr;
8598 if (sizeof ac_aggr.ifr_hwaddr)
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8608 *) ac_try_echo
=$ac_try;;
8610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1
>conftest.err
8616 cat conftest.err
>&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.
$ac_objext; then
8622 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8624 $as_echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.
$ac_ext >&5
8627 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8635 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8636 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8637 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8639 cat >>confdefs.h
<<_ACEOF
8640 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8645 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8646 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8650 cat >conftest.
$ac_ext <<_ACEOF
8653 cat confdefs.h
>>conftest.
$ac_ext
8654 cat >>conftest.
$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_netmask)
8674 rm -f conftest.
$ac_objext
8675 if { (ac_try
="$ac_compile"
8677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681 $as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_netmask=yes
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_netmask)
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8725 *) ac_try_echo
=$ac_try;;
8727 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8731 grep -v '^ *+' conftest.er1
>conftest.err
8733 cat conftest.err
>&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.
$ac_objext; then
8739 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8741 $as_echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.
$ac_ext >&5
8744 ac_cv_member_struct_ifreq_ifr_netmask
=no
8747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8752 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8753 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8754 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8756 cat >>confdefs.h
<<_ACEOF
8757 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8762 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8763 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8764 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8767 cat >conftest.
$ac_ext <<_ACEOF
8770 cat confdefs.h
>>conftest.
$ac_ext
8771 cat >>conftest.
$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 $ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8784 static struct ifreq ac_aggr;
8785 if (ac_aggr.ifr_broadaddr)
8791 rm -f conftest.
$ac_objext
8792 if { (ac_try
="$ac_compile"
8794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8811 $as_echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 cat >conftest.$ac_ext <<_ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 #if HAVE_SYS_SOCKET_H
8822 #include <sys/socket.h>
8831 static struct ifreq ac_aggr;
8832 if (sizeof ac_aggr.ifr_broadaddr)
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8842 *) ac_try_echo
=$ac_try;;
8844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8848 grep -v '^ *+' conftest.er1
>conftest.err
8850 cat conftest.err
>&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.
$ac_objext; then
8856 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8870 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8871 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8873 cat >>confdefs.h
<<_ACEOF
8874 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8879 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8880 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8881 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 #if HAVE_SYS_SOCKET_H
8892 #include <sys/socket.h>
8901 static struct ifreq ac_aggr;
8902 if (ac_aggr.ifr_addr)
8908 rm -f conftest.
$ac_objext
8909 if { (ac_try
="$ac_compile"
8911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_addr=yes
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #if HAVE_SYS_SOCKET_H
8939 #include <sys/socket.h>
8948 static struct ifreq ac_aggr;
8949 if (sizeof ac_aggr.ifr_addr)
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8959 *) ac_try_echo
=$ac_try;;
8961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8962 $as_echo "$ac_try_echo") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8965 grep -v '^ *+' conftest.er1
>conftest.err
8967 cat conftest.err
>&5
8968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.
$ac_objext; then
8973 ac_cv_member_struct_ifreq_ifr_addr
=yes
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.
$ac_ext >&5
8978 ac_cv_member_struct_ifreq_ifr_addr
=no
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8987 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8988 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8990 cat >>confdefs.h
<<_ACEOF
8991 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8999 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9000 $as_echo_n "checking for function prototypes... " >&6; }
9001 if test "$ac_cv_prog_cc_c89" != no
; then
9002 { $as_echo "$as_me:$LINENO: result: yes" >&5
9003 $as_echo "yes" >&6; }
9005 cat >>confdefs.h
<<\_ACEOF
9006 #define PROTOTYPES 1
9010 cat >>confdefs.h
<<\_ACEOF
9011 #define __PROTOTYPES 1
9015 { $as_echo "$as_me:$LINENO: result: no" >&5
9016 $as_echo "no" >&6; }
9019 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9020 $as_echo_n "checking for working volatile... " >&6; }
9021 if test "${ac_cv_c_volatile+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9024 cat >conftest.
$ac_ext <<_ACEOF
9027 cat confdefs.h
>>conftest.
$ac_ext
9028 cat >>conftest.
$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9036 int * volatile y = (int *) 0;
9042 rm -f conftest.
$ac_objext
9043 if { (ac_try
="$ac_compile"
9045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9049 $as_echo "$ac_try_echo") >&5
9050 (eval "$ac_compile") 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && {
9057 test -z "$ac_c_werror_flag" ||
9058 test ! -s conftest.err
9059 } && test -s conftest.$ac_objext; then
9060 ac_cv_c_volatile=yes
9062 $as_echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9071 $as_echo "$ac_cv_c_volatile" >&6; }
9072 if test $ac_cv_c_volatile = no; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define volatile /**/
9080 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9081 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9082 if test "${ac_cv_c_const+set}" = set; then
9083 $as_echo_n "(cached) " >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h. */
9095 /* FIXME: Include the comments suggested by Paul. */
9097 /* Ultrix mips cc rejects this. */
9098 typedef int charset[2];
9100 /* SunOS 4.1.1 cc rejects this. */
9101 char const *const *pcpcc;
9103 /* NEC SVR4.0.2 mips cc rejects this. */
9104 struct point {int x, y;};
9105 static struct point const zero = {0,0};
9106 /* AIX XL C 1.02.0.0 rejects this.
9107 It does not let you subtract one const X* pointer from another in
9108 an arm of an if-expression whose if-part is not a constant
9110 const char *g = "string";
9111 pcpcc = &g + (g ? g-g : 0);
9112 /* HPUX 7.0 cc rejects these. */
9114 ppc = (char**) pcpcc;
9115 pcpcc = (char const *const *) ppc;
9116 { /* SCO 3.2v4 cc rejects this. */
9118 char const *s = 0 ? (char *) 0 : (char const *) 0;
9123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9125 const int *foo = &x[0];
9128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9129 typedef const int *iptr;
9133 { /* AIX XL C 1.02.0.0 rejects this saying
9134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9135 struct s { int j; const int *ap[3]; };
9136 struct s *b; b->j = 5;
9138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9142 return !cs[0] && !zero.x;
9149 rm -f conftest.$ac_objext
9150 if { (ac_try="$ac_compile"
9152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9153 *) ac_try_echo
=$ac_try;;
9155 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9156 $as_echo "$ac_try_echo") >&5
9157 (eval "$ac_compile") 2>conftest.er1
9159 grep -v '^ *+' conftest.er1
>conftest.err
9161 cat conftest.err
>&5
9162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } && {
9164 test -z "$ac_c_werror_flag" ||
9165 test ! -s conftest.err
9166 } && test -s conftest.
$ac_objext; then
9169 $as_echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.
$ac_ext >&5
9175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9177 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9178 $as_echo "$ac_cv_c_const" >&6; }
9179 if test $ac_cv_c_const = no
; then
9181 cat >>confdefs.h
<<\_ACEOF
9187 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9188 $as_echo_n "checking for void * support... " >&6; }
9189 if test "${emacs_cv_void_star+set}" = set; then
9190 $as_echo_n "(cached) " >&6
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9207 rm -f conftest.
$ac_objext
9208 if { (ac_try
="$ac_compile"
9210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9214 $as_echo "$ac_try_echo") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest.$ac_objext; then
9225 emacs_cv_void_star=yes
9227 $as_echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9230 emacs_cv_void_star=no
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9236 $as_echo "$emacs_cv_void_star" >&6; }
9237 if test $emacs_cv_void_star = yes; then
9238 cat >>confdefs.h <<\_ACEOF
9239 #define POINTER_TYPE void
9243 cat >>confdefs.h <<\_ACEOF
9244 #define POINTER_TYPE char
9253 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9254 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9256 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9258 $as_echo_n "(cached) " >&6
9260 cat >conftest.make <<\_ACEOF
9263 @echo '@@@%%%=$(MAKE)=@@@%%%'
9265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9266 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9268 eval ac_cv_prog_make_${ac_make}_set=yes;;
9270 eval ac_cv_prog_make_${ac_make}_set=no;;
9274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9275 { $as_echo "$as_me:$LINENO: result: yes" >&5
9276 $as_echo "yes" >&6; }
9279 { $as_echo "$as_me:$LINENO: result: no" >&5
9280 $as_echo "no" >&6; }
9281 SET_MAKE="MAKE=${MAKE-make}"
9285 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9286 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9287 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9289 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9290 if test "x$testval" != x; then
9293 ac_enable_autodepend=no
9295 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9296 $as_echo "$HAVE_GNU_MAKE" >&6; }
9297 if test $HAVE_GNU_MAKE = yes; then
9298 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9299 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9300 SAVE_CFLAGS="$CFLAGS"
9301 CFLAGS="$CFLAGS -MMD -MF deps.d"
9302 cat >conftest.$ac_ext <<_ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9317 rm -f conftest.$ac_objext
9318 if { (ac_try="$ac_compile"
9320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9321 *) ac_try_echo
=$ac_try;;
9323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9324 $as_echo "$ac_try_echo") >&5
9325 (eval "$ac_compile") 2>conftest.er1
9327 grep -v '^ *+' conftest.er1
>conftest.err
9329 cat conftest.err
>&5
9330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.
$ac_objext; then
9337 $as_echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.
$ac_ext >&5
9340 ac_enable_autodepend
=no
9343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9344 CFLAGS
="$SAVE_CFLAGS"
9345 test -f deps.d || ac_enable_autodepend
=no
9347 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9348 $as_echo "$ac_enable_autodepend" >&6; }
9350 if test $ac_enable_autodepend = yes; then
9352 cat >>confdefs.h
<<\_ACEOF
9353 #define AUTO_DEPEND 1
9359 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9360 $as_echo_n "checking for long file names... " >&6; }
9361 if test "${ac_cv_sys_long_file_names+set}" = set; then
9362 $as_echo_n "(cached) " >&6
9364 ac_cv_sys_long_file_names
=yes
9365 # Test for long file names in all the places we know might matter:
9366 # . the current directory, where building will happen
9367 # $prefix/lib where we will be installing things
9368 # $exec_prefix/lib likewise
9369 # $TMPDIR if set, where it might want to write temporary files
9370 # /tmp where it might want to write temporary files
9373 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9374 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9375 # in the usual case where exec_prefix is '${prefix}'.
9377 . |
/* | ?
:[\\/]*) ;; #(
9380 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9381 ac_xdir
=$ac_dir/cf$$
9382 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9383 ac_tf1
=$ac_xdir/conftest9012345
9384 ac_tf2
=$ac_xdir/conftest9012346
9385 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9386 ac_cv_sys_long_file_names
=no
9387 rm -f -r "$ac_xdir" 2>/dev
/null
9388 test $ac_cv_sys_long_file_names = no
&& break
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9392 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9393 if test $ac_cv_sys_long_file_names = yes; then
9395 cat >>confdefs.h
<<\_ACEOF
9396 #define HAVE_LONG_FILE_NAMES 1
9402 #### Choose a window system.
9404 { $as_echo "$as_me:$LINENO: checking for X" >&5
9405 $as_echo_n "checking for X... " >&6; }
9408 # Check whether --with-x was given.
9409 if test "${with_x+set}" = set; then
9413 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9414 if test "x$with_x" = xno
; then
9415 # The user explicitly disabled X.
9418 case $x_includes,$x_libraries in #(
9419 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9420 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9421 { (exit 1); exit 1; }; };; #(
9422 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9425 # One or both of the vars are not set, and there is no cached value.
9426 ac_x_includes
=no ac_x_libraries
=no
9427 rm -f -r conftest.dir
9428 if mkdir conftest.dir
; then
9430 cat >Imakefile
<<'_ACEOF'
9432 @echo incroot='${INCROOT}'
9434 @echo usrlibdir='${USRLIBDIR}'
9436 @echo libdir='${LIBDIR}'
9438 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9440 for ac_var
in incroot usrlibdir libdir
; do
9441 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9443 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9444 for ac_extension
in a so sl dylib la dll
; do
9445 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9446 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9447 ac_im_usrlibdir
=$ac_im_libdir; break
9450 # Screen out bogus values from the imake configuration. They are
9451 # bogus both because they are the default anyway, and because
9452 # using them would break gcc on systems where it needs fixed includes.
9453 case $ac_im_incroot in
9454 /usr
/include
) ac_x_includes
= ;;
9455 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9457 case $ac_im_usrlibdir in
9459 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9463 rm -f -r conftest.dir
9466 # Standard set of common directories for X headers.
9467 # Check X11 before X11Rn because it is often a symlink to the current release.
9479 /usr/local/X11/include
9480 /usr/local/X11R6/include
9481 /usr/local/X11R5/include
9482 /usr/local/X11R4/include
9484 /usr/local/include/X11
9485 /usr/local/include/X11R6
9486 /usr/local/include/X11R5
9487 /usr/local/include/X11R4
9491 /usr/XFree86/include/X11
9495 /usr/unsupported/include
9497 /usr/local/x11r5/include
9498 /usr/lpp/Xamples/include
9500 /usr/openwin/include
9501 /usr/openwin/share/include'
9503 if test "$ac_x_includes" = no
; then
9504 # Guess where to find include files, by looking for Xlib.h.
9505 # First, try using that file with no special directory specified.
9506 cat >conftest.
$ac_ext <<_ACEOF
9509 cat confdefs.h
>>conftest.
$ac_ext
9510 cat >>conftest.
$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 #include <X11/Xlib.h>
9514 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9520 $as_echo "$ac_try_echo") >&5
9521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9523 grep -v '^ *+' conftest.er1 >conftest.err
9525 cat conftest.err >&5
9526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null && {
9528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9529 test ! -s conftest.err
9531 # We can compile using X headers with no special include directory.
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 for ac_dir in $ac_x_header_dirs; do
9538 if test -r "$ac_dir/X11/Xlib.h"; then
9539 ac_x_includes=$ac_dir
9545 rm -f conftest.err conftest.$ac_ext
9546 fi # $ac_x_includes = no
9548 if test "$ac_x_libraries" = no; then
9549 # Check for the libraries.
9550 # See if we find them without any special options.
9551 # Don't add to $LIBS permanently.
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 #include <X11/Xlib.h>
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9573 *) ac_try_echo
=$ac_try;;
9575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9576 $as_echo "$ac_try_echo") >&5
9577 (eval "$ac_link") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1
>conftest.err
9581 cat conftest.err
>&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest
$ac_exeext && {
9587 test "$cross_compiling" = yes ||
9588 $as_test_x conftest
$ac_exeext
9591 # We can link X programs with no special library path.
9594 $as_echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.
$ac_ext >&5
9598 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9600 # Don't even attempt the hair of trying to link an X program!
9601 for ac_extension
in a so sl dylib la dll
; do
9602 if test -r "$ac_dir/libX11.$ac_extension"; then
9603 ac_x_libraries
=$ac_dir
9610 rm -rf conftest.dSYM
9611 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9612 conftest
$ac_exeext conftest.
$ac_ext
9613 fi # $ac_x_libraries = no
9615 case $ac_x_includes,$ac_x_libraries in #(
9617 # Didn't find X, or a directory has "'" in its name.
9618 ac_cv_have_x
="have_x=no";; #(
9620 # Record where we found X for the cache.
9621 ac_cv_have_x
="have_x=yes\
9622 ac_x_includes='$ac_x_includes'\
9623 ac_x_libraries='$ac_x_libraries'"
9629 eval "$ac_cv_have_x"
9632 if test "$have_x" != yes; then
9633 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9634 $as_echo "$have_x" >&6; }
9637 # If each of the values was on the command line, it overrides each guess.
9638 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9639 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9640 # Update the cache value to reflect the command line values.
9641 ac_cv_have_x
="have_x=yes\
9642 ac_x_includes='$x_includes'\
9643 ac_x_libraries='$x_libraries'"
9644 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9645 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9648 if test "$no_x" = yes; then
9654 ## Workaround for bug in autoconf <= 2.62.
9655 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9656 ## No need to do anything special for these standard directories.
9657 ## This is an experiment, take it out if it causes problems.
9658 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9660 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9664 if test "${x_libraries}" != NONE
; then
9665 if test -n "${x_libraries}"; then
9666 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9667 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9669 x_default_search_path
=""
9670 x_search_path
=${x_libraries}
9671 if test -z "${x_search_path}"; then
9672 x_search_path
=/usr
/lib
9674 for x_library
in `echo ${x_search_path}: | \
9675 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9677 ${x_library}/X11/%L/%T/%N%C%S:\
9678 ${x_library}/X11/%l/%T/%N%C%S:\
9679 ${x_library}/X11/%T/%N%C%S:\
9680 ${x_library}/X11/%L/%T/%N%S:\
9681 ${x_library}/X11/%l/%T/%N%S:\
9682 ${x_library}/X11/%T/%N%S"
9683 if test x
"${x_default_search_path}" = x
; then
9684 x_default_search_path
=${x_search_path}
9686 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9690 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9691 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9694 if test x
"${x_includes}" = x
; then
9695 bitmapdir
=/usr
/include
/X11
/bitmaps
9697 # accumulate include directories that have X11 bitmap subdirectories
9699 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9700 if test -d "${bmd}/X11/bitmaps"; then
9701 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9703 if test -d "${bmd}/bitmaps"; then
9704 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9707 if test ${bmd_acc} != "dummyval"; then
9708 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9715 tmp_CPPFLAGS
="$CPPFLAGS"
9716 tmp_CFLAGS
="$CFLAGS"
9717 CPPFLAGS
="$CPPFLAGS -x objective-c"
9718 CFLAGS
="$CFLAGS -x objective-c"
9719 if test "${with_ns}" != no
; then
9720 if test "${opsys}" = darwin
; then
9722 ns_appdir
=`pwd`/nextstep
/Emacs.app
9723 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9724 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9725 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9726 elif test -f $GNUSTEP_CONFIG_FILE; then
9728 ns_appdir
=`pwd`/nextstep
/Emacs.app
9729 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9730 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9731 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9732 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9733 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9734 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9735 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9736 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9737 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9738 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9740 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9741 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9742 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9743 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9747 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9749 # Is the header compilable?
9750 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9751 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9752 cat >conftest.
$ac_ext <<_ACEOF
9755 cat confdefs.h
>>conftest.
$ac_ext
9756 cat >>conftest.
$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 $ac_includes_default
9759 #include <AppKit/AppKit.h>
9761 rm -f conftest.
$ac_objext
9762 if { (ac_try
="$ac_compile"
9764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9768 $as_echo "$ac_try_echo") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1 >conftest.err
9773 cat conftest.err >&5
9774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_header_compiler=yes
9781 $as_echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_header_compiler=no
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 $as_echo "$ac_header_compiler" >&6; }
9791 # Is the header present?
9792 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9793 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 #include <AppKit/AppKit.h>
9802 if { (ac_try="$ac_cpp conftest.$ac_ext"
9804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9805 *) ac_try_echo
=$ac_try;;
9807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9811 grep -v '^ *+' conftest.er1
>conftest.err
9813 cat conftest.err
>&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } >/dev
/null
&& {
9816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9819 ac_header_preproc
=yes
9821 $as_echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.
$ac_ext >&5
9824 ac_header_preproc
=no
9827 rm -f conftest.err conftest.
$ac_ext
9828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 $as_echo "$ac_header_preproc" >&6; }
9831 # So? What about this header?
9832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9834 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9837 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9838 ac_header_preproc
=yes
9841 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9842 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9844 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9845 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9846 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9847 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9848 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9849 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9850 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9851 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9852 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9856 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9857 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9858 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9859 $as_echo_n "(cached) " >&6
9861 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9864 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9867 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9870 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9871 files are missing or cannot be compiled." >&5
9872 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9873 files are missing or cannot be compiled." >&2;}
9874 { (exit 1); exit 1; }; }
9878 NS_HAVE_NSINTEGER
=yes
9879 cat >conftest.
$ac_ext <<_ACEOF
9882 cat confdefs.h
>>conftest.
$ac_ext
9883 cat >>conftest.
$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9885 #include <Foundation/NSObjCRuntime.h>
9894 rm -f conftest.
$ac_objext
9895 if { (ac_try
="$ac_compile"
9897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9898 *) ac_try_echo=$ac_try;;
9900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9901 $as_echo "$ac_try_echo") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 ns_have_nsinteger=yes
9914 $as_echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ns_have_nsinteger=no
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 if test $ns_have_nsinteger = no; then
9922 NS_HAVE_NSINTEGER=no
9925 if test "${HAVE_NS}" = yes; then
9926 window_system=nextstep
9928 # set up packaging dirs
9929 exec_prefix=${ns_appbindir}
9930 libexecdir=${ns_appbindir}/libexec
9931 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9932 prefix=${ns_appresdir}
9935 CFLAGS="$tmp_CFLAGS"
9936 CPPFLAGS="$tmp_CPPFLAGS"
9938 case "${window_system}" in
9942 case "${with_x_toolkit}" in
9943 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9944 motif ) USE_X_TOOLKIT=MOTIF ;;
9946 USE_X_TOOLKIT=none ;;
9947 no ) USE_X_TOOLKIT=none ;;
9948 * ) USE_X_TOOLKIT=maybe ;;
9958 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9959 # Extract the first word of "X", so it can be a program name with args.
9960 set dummy X; ac_word=$2
9961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9964 $as_echo_n "(cached) " >&6
9966 if test -n "$HAVE_XSERVER"; then
9967 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_HAVE_XSERVER="true"
9977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9987 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9988 if test -n "$HAVE_XSERVER"; then
9989 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9990 $as_echo "$HAVE_XSERVER" >&6; }
9992 { $as_echo "$as_me:$LINENO: result: no" >&5
9993 $as_echo "no" >&6; }
9997 if test "$HAVE_XSERVER" = true ||
9998 test -n "$DISPLAY" ||
9999 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10000 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10001 were found. You should install the relevant development files for X
10002 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10003 sure you have development files for image handling, i.e.
10004 tiff, gif, jpeg, png and xpm.
10005 If you are sure you want Emacs compiled without X window support, pass
10008 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10009 were found. You should install the relevant development files for X
10010 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10011 sure you have development files for image handling, i.e.
10012 tiff, gif, jpeg, png and xpm.
10013 If you are sure you want Emacs compiled without X window support, pass
10015 to configure." >&2;}
10016 { (exit 1); exit 1; }; }
10020 ### If we're using X11, we should use the X menu package.
10022 case ${HAVE_X11} in
10023 yes ) HAVE_MENUS=yes ;;
10026 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10027 # Assume not, until told otherwise.
10029 doug_lea_malloc=yes
10030 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10031 $as_echo_n "checking for malloc_get_state... " >&6; }
10032 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10033 $as_echo_n "(cached) " >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043 #define malloc_get_state innocuous_malloc_get_state
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char malloc_get_state (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10051 # include <limits.h>
10053 # include <assert.h>
10056 #undef malloc_get_state
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10064 char malloc_get_state ();
10065 /* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
10068 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10075 return malloc_get_state ();
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10084 *) ac_try_echo
=$ac_try;;
10086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10087 $as_echo "$ac_try_echo") >&5
10088 (eval "$ac_link") 2>conftest.er1
10090 grep -v '^ *+' conftest.er1
>conftest.err
10092 cat conftest.err
>&5
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } && {
10095 test -z "$ac_c_werror_flag" ||
10096 test ! -s conftest.err
10097 } && test -s conftest
$ac_exeext && {
10098 test "$cross_compiling" = yes ||
10099 $as_test_x conftest
$ac_exeext
10101 ac_cv_func_malloc_get_state
=yes
10103 $as_echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.
$ac_ext >&5
10106 ac_cv_func_malloc_get_state
=no
10109 rm -rf conftest.dSYM
10110 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10111 conftest
$ac_exeext conftest.
$ac_ext
10113 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10114 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10115 if test $ac_cv_func_malloc_get_state = yes; then
10121 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10122 $as_echo_n "checking for malloc_set_state... " >&6; }
10123 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10124 $as_echo_n "(cached) " >&6
10126 cat >conftest.
$ac_ext <<_ACEOF
10129 cat confdefs.h
>>conftest.
$ac_ext
10130 cat >>conftest.
$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134 #define malloc_set_state innocuous_malloc_set_state
10136 /* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char malloc_set_state (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10142 # include <limits.h>
10144 # include <assert.h>
10147 #undef malloc_set_state
10149 /* Override any GCC internal prototype to avoid an error.
10150 Use char because int might match the return type of a GCC
10151 builtin and then its argument prototype would still apply. */
10155 char malloc_set_state ();
10156 /* The GNU C library defines this for functions which it implements
10157 to always fail with ENOSYS. Some functions are actually named
10158 something starting with __ and the normal name is an alias. */
10159 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10166 return malloc_set_state ();
10171 rm -f conftest.
$ac_objext conftest
$ac_exeext
10172 if { (ac_try
="$ac_link"
10173 case "(($ac_try" in
10174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10178 $as_echo "$ac_try_echo") >&5
10179 (eval "$ac_link") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest$ac_exeext && {
10189 test "$cross_compiling" = yes ||
10190 $as_test_x conftest$ac_exeext
10192 ac_cv_func_malloc_set_state=yes
10194 $as_echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_cv_func_malloc_set_state=no
10200 rm -rf conftest.dSYM
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10204 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10205 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10206 if test $ac_cv_func_malloc_set_state = yes; then
10212 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10213 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10214 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10215 $as_echo_n "(cached) " >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10223 extern void (* __after_morecore_hook)();
10227 __after_morecore_hook = 0
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10236 *) ac_try_echo
=$ac_try;;
10238 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10239 $as_echo "$ac_try_echo") >&5
10240 (eval "$ac_link") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1
>conftest.err
10244 cat conftest.err
>&5
10245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest
$ac_exeext && {
10250 test "$cross_compiling" = yes ||
10251 $as_test_x conftest
$ac_exeext
10253 emacs_cv_var___after_morecore_hook
=yes
10255 $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 emacs_cv_var___after_morecore_hook
=no
10261 rm -rf conftest.dSYM
10262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10263 conftest
$ac_exeext conftest.
$ac_ext
10265 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10266 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10267 if test $emacs_cv_var___after_morecore_hook = no
; then
10270 if test "${system_malloc}" = "yes"; then
10272 GNU_MALLOC_reason
="
10273 (The GNU allocators don't work with this system configuration.)"
10275 if test "$doug_lea_malloc" = "yes" ; then
10276 if test "$GNU_MALLOC" = yes ; then
10277 GNU_MALLOC_reason
="
10278 (Using Doug Lea's new malloc from the GNU C Library.)"
10281 cat >>confdefs.h
<<\_ACEOF
10282 #define DOUG_LEA_MALLOC 1
10287 if test x
"${REL_ALLOC}" = x
; then
10288 REL_ALLOC
=${GNU_MALLOC}
10294 for ac_header
in stdlib.h unistd.h
10296 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299 $as_echo_n "checking for $ac_header... " >&6; }
10300 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301 $as_echo_n "(cached) " >&6
10303 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10304 $as_echo "$as_val"'`
10305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306 $as_echo "$ac_res" >&6; }
10308 # Is the header compilable?
10309 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10310 $as_echo_n "checking $ac_header usability... " >&6; }
10311 cat >conftest.
$ac_ext <<_ACEOF
10314 cat confdefs.h
>>conftest.
$ac_ext
10315 cat >>conftest.
$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 $ac_includes_default
10318 #include <$ac_header>
10320 rm -f conftest.
$ac_objext
10321 if { (ac_try
="$ac_compile"
10322 case "(($ac_try" in
10323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327 $as_echo "$ac_try_echo") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_header_compiler=yes
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_header_compiler=no
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 $as_echo "$ac_header_compiler" >&6; }
10350 # Is the header present?
10351 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 $as_echo_n "checking $ac_header presence... " >&6; }
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 #include <$ac_header>
10361 if { (ac_try="$ac_cpp conftest.$ac_ext"
10362 case "(($ac_try" in
10363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10364 *) ac_try_echo
=$ac_try;;
10366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10367 $as_echo "$ac_try_echo") >&5
10368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10370 grep -v '^ *+' conftest.er1
>conftest.err
10372 cat conftest.err
>&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev
/null
&& {
10375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10378 ac_header_preproc
=yes
10380 $as_echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.
$ac_ext >&5
10383 ac_header_preproc
=no
10386 rm -f conftest.err conftest.
$ac_ext
10387 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388 $as_echo "$ac_header_preproc" >&6; }
10390 # So? What about this header?
10391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397 ac_header_preproc
=yes
10400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10403 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10407 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10416 $as_echo_n "checking for $ac_header... " >&6; }
10417 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 $as_echo_n "(cached) " >&6
10420 eval "$as_ac_Header=\$ac_header_preproc"
10422 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10423 $as_echo "$as_val"'`
10424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10425 $as_echo "$ac_res" >&6; }
10428 if test `eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'` = yes; then
10430 cat >>confdefs.h
<<_ACEOF
10431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10439 for ac_func
in getpagesize
10441 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10443 $as_echo_n "checking for $ac_func... " >&6; }
10444 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10445 $as_echo_n "(cached) " >&6
10447 cat >conftest.
$ac_ext <<_ACEOF
10450 cat confdefs.h
>>conftest.
$ac_ext
10451 cat >>conftest.
$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10455 #define $ac_func innocuous_$ac_func
10457 /* System header to define __stub macros and hopefully few prototypes,
10458 which can conflict with char $ac_func (); below.
10459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10460 <limits.h> exists even on freestanding compilers. */
10463 # include <limits.h>
10465 # include <assert.h>
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10477 /* The GNU C library defines this for functions which it implements
10478 to always fail with ENOSYS. Some functions are actually named
10479 something starting with __ and the normal name is an alias. */
10480 #if defined __stub_$ac_func || defined __stub___$ac_func
10487 return $ac_func ();
10492 rm -f conftest.
$ac_objext conftest
$ac_exeext
10493 if { (ac_try
="$ac_link"
10494 case "(($ac_try" in
10495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10499 $as_echo "$ac_try_echo") >&5
10500 (eval "$ac_link") 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext && {
10510 test "$cross_compiling" = yes ||
10511 $as_test_x conftest$ac_exeext
10513 eval "$as_ac_var=yes"
10515 $as_echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 eval "$as_ac_var=no"
10521 rm -rf conftest.dSYM
10522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10523 conftest$ac_exeext conftest.$ac_ext
10525 ac_res=`eval 'as_val=${'$as_ac_var'}
10526 $as_echo "$as_val"'`
10527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10528 $as_echo "$ac_res" >&6; }
10529 if test `eval 'as_val=${'$as_ac_var'}
10530 $as_echo "$as_val"'` = yes; then
10531 cat >>confdefs.h <<_ACEOF
10532 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10538 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10539 $as_echo_n "checking for working mmap... " >&6; }
10540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10541 $as_echo_n "(cached) " >&6
10543 if test "$cross_compiling" = yes; then
10544 ac_cv_func_mmap_fixed_mapped=no
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10552 $ac_includes_default
10553 /* malloc might have been renamed as rpl_malloc. */
10556 /* Thanks to Mike Haertel and Jim Avera for this test.
10557 Here is a matrix of mmap possibilities:
10558 mmap private not fixed
10559 mmap private fixed at somewhere currently unmapped
10560 mmap private fixed at somewhere already mapped
10561 mmap shared not fixed
10562 mmap shared fixed at somewhere currently unmapped
10563 mmap shared fixed at somewhere already mapped
10564 For private mappings, we should verify that changes cannot be read()
10565 back from the file, nor mmap's back from the file at a different
10566 address. (There have been systems where private was not correctly
10567 implemented like the infamous i386 svr4.0, and systems where the
10568 VM page cache was not coherent with the file system buffer cache
10569 like early versions of FreeBSD and possibly contemporary NetBSD.)
10570 For shared mappings, we should conversely verify that changes get
10571 propagated back to all the places they're supposed to be.
10573 Grep wants private fixed already mapped.
10574 The main things grep needs to know about mmap are:
10575 * does it exist and is it safe to write into the mmap'd area
10576 * how to use it (BSD variants) */
10579 #include <sys/mman.h>
10581 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10585 /* This mess was copied from the GNU getpagesize.h. */
10586 #ifndef HAVE_GETPAGESIZE
10587 /* Assume that all systems that can run configure have sys/param.h. */
10588 # ifndef HAVE_SYS_PARAM_H
10589 # define HAVE_SYS_PARAM_H 1
10592 # ifdef _SC_PAGESIZE
10593 # define getpagesize() sysconf(_SC_PAGESIZE)
10594 # else /* no _SC_PAGESIZE */
10595 # ifdef HAVE_SYS_PARAM_H
10596 # include <sys/param.h>
10597 # ifdef EXEC_PAGESIZE
10598 # define getpagesize() EXEC_PAGESIZE
10599 # else /* no EXEC_PAGESIZE */
10601 # define getpagesize() NBPG * CLSIZE
10604 # endif /* no CLSIZE */
10605 # else /* no NBPG */
10607 # define getpagesize() NBPC
10608 # else /* no NBPC */
10610 # define getpagesize() PAGESIZE
10611 # endif /* PAGESIZE */
10612 # endif /* no NBPC */
10613 # endif /* no NBPG */
10614 # endif /* no EXEC_PAGESIZE */
10615 # else /* no HAVE_SYS_PARAM_H */
10616 # define getpagesize() 8192 /* punt totally */
10617 # endif /* no HAVE_SYS_PARAM_H */
10618 # endif /* no _SC_PAGESIZE */
10620 #endif /* no HAVE_GETPAGESIZE */
10625 char *data, *data2, *data3;
10629 pagesize = getpagesize ();
10631 /* First, make a file with some known garbage in it. */
10632 data = (char *) malloc (pagesize);
10635 for (i = 0; i < pagesize; ++i)
10636 *(data + i) = rand ();
10638 fd = creat ("conftest.mmap", 0600);
10641 if (write (fd, data, pagesize) != pagesize)
10645 /* Next, try to mmap the file at a fixed address which already has
10646 something else allocated at it. If we can, also make sure that
10647 we see the same garbage. */
10648 fd = open ("conftest.mmap", O_RDWR);
10651 data2 = (char *) malloc (2 * pagesize);
10654 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10655 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10656 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10658 for (i = 0; i < pagesize; ++i)
10659 if (*(data + i) != *(data2 + i))
10662 /* Finally, make sure that changes to the mapped area do not
10663 percolate back to the file as seen by read(). (This is a bug on
10664 some variants of i386 svr4.0.) */
10665 for (i = 0; i < pagesize; ++i)
10666 *(data2 + i) = *(data2 + i) + 1;
10667 data3 = (char *) malloc (pagesize);
10670 if (read (fd, data3, pagesize) != pagesize)
10672 for (i = 0; i < pagesize; ++i)
10673 if (*(data + i) != *(data3 + i))
10679 rm -f conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10683 *) ac_try_echo
=$ac_try;;
10685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10691 { (case "(($ac_try" in
10692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_try") 2>&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
10701 ac_cv_func_mmap_fixed_mapped=yes
10703 $as_echo "$as_me: program exited with status $ac_status" >&5
10704 $as_echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ( exit $ac_status )
10708 ac_cv_func_mmap_fixed_mapped=no
10710 rm -rf conftest.dSYM
10711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10716 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10717 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_MMAP 1
10725 rm -f conftest.mmap
10727 if test $use_mmap_for_buffers = yes; then
10731 LIBS="$libsrc_libs $LIBS"
10734 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10735 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10736 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10737 $as_echo_n "(cached) " >&6
10739 ac_check_lib_save_LIBS=$LIBS
10740 LIBS="-ldnet $LIBS"
10741 cat >conftest.$ac_ext <<_ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10758 return dnet_ntoa ();
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10767 *) ac_try_echo
=$ac_try;;
10769 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>conftest.er1
10773 grep -v '^ *+' conftest.er1
>conftest.err
10775 cat conftest.err
>&5
10776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && {
10778 test -z "$ac_c_werror_flag" ||
10779 test ! -s conftest.err
10780 } && test -s conftest
$ac_exeext && {
10781 test "$cross_compiling" = yes ||
10782 $as_test_x conftest
$ac_exeext
10784 ac_cv_lib_dnet_dnet_ntoa
=yes
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.
$ac_ext >&5
10789 ac_cv_lib_dnet_dnet_ntoa
=no
10792 rm -rf conftest.dSYM
10793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10794 conftest
$ac_exeext conftest.
$ac_ext
10795 LIBS
=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10798 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10799 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10800 cat >>confdefs.h
<<_ACEOF
10801 #define HAVE_LIBDNET 1
10804 LIBS
="-ldnet $LIBS"
10809 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10810 $as_echo_n "checking for main in -lXbsd... " >&6; }
10811 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10812 $as_echo_n "(cached) " >&6
10814 ac_check_lib_save_LIBS
=$LIBS
10815 LIBS
="-lXbsd $LIBS"
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10832 rm -f conftest.
$ac_objext conftest
$ac_exeext
10833 if { (ac_try
="$ac_link"
10834 case "(($ac_try" in
10835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10839 $as_echo "$ac_try_echo") >&5
10840 (eval "$ac_link") 2>conftest.er1
10842 grep -v '^ *+' conftest.er1 >conftest.err
10844 cat conftest.err >&5
10845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest$ac_exeext && {
10850 test "$cross_compiling" = yes ||
10851 $as_test_x conftest$ac_exeext
10853 ac_cv_lib_Xbsd_main=yes
10855 $as_echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10858 ac_cv_lib_Xbsd_main=no
10861 rm -rf conftest.dSYM
10862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10863 conftest$ac_exeext conftest.$ac_ext
10864 LIBS=$ac_check_lib_save_LIBS
10866 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10867 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10868 if test $ac_cv_lib_Xbsd_main = yes; then
10869 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10874 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10875 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10876 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lpthreads $LIBS"
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10898 return cma_open ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10907 *) ac_try_echo
=$ac_try;;
10909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10910 $as_echo "$ac_try_echo") >&5
10911 (eval "$ac_link") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1
>conftest.err
10915 cat conftest.err
>&5
10916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest
$ac_exeext && {
10921 test "$cross_compiling" = yes ||
10922 $as_test_x conftest
$ac_exeext
10924 ac_cv_lib_pthreads_cma_open
=yes
10926 $as_echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.
$ac_ext >&5
10929 ac_cv_lib_pthreads_cma_open
=no
10932 rm -rf conftest.dSYM
10933 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10934 conftest
$ac_exeext conftest.
$ac_ext
10935 LIBS
=$ac_check_lib_save_LIBS
10937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10938 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10939 if test $ac_cv_lib_pthreads_cma_open = yes; then
10940 cat >>confdefs.h
<<_ACEOF
10941 #define HAVE_LIBPTHREADS 1
10944 LIBS
="-lpthreads $LIBS"
10952 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10953 $as_echo_n "checking for -bbigtoc option... " >&6; }
10954 if test "${gdb_cv_bigtoc+set}" = set; then
10955 $as_echo_n "(cached) " >&6
10959 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10960 *) gdb_cv_bigtoc
=-bbigtoc ;;
10963 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10979 rm -f conftest.
$ac_objext conftest
$ac_exeext
10980 if { (ac_try
="$ac_link"
10981 case "(($ac_try" in
10982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10986 $as_echo "$ac_try_echo") >&5
10987 (eval "$ac_link") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest$ac_exeext && {
10997 test "$cross_compiling" = yes ||
10998 $as_test_x conftest$ac_exeext
11002 $as_echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11008 rm -rf conftest.dSYM
11009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11010 conftest$ac_exeext conftest.$ac_ext
11013 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11014 $as_echo "$gdb_cv_bigtoc" >&6; }
11018 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11019 # used for the tests that follow. We set them back to REAL_CFLAGS and
11020 # REAL_CPPFLAGS later on.
11022 REAL_CPPFLAGS="$CPPFLAGS"
11024 if test "${HAVE_X11}" = "yes"; then
11025 DEFS="$C_SWITCH_X_SITE $DEFS"
11026 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11028 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11029 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11031 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11032 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11033 # but it's more convenient here to set LD_RUN_PATH
11034 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11035 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11036 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11040 if test "${opsys}" = "gnu-linux"; then
11041 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11042 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11053 XOpenDisplay ("foo");
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11062 *) ac_try_echo
=$ac_try;;
11064 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1
>conftest.err
11070 cat conftest.err
>&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest
$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest
$ac_exeext
11079 xlinux_first_failure
=no
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.
$ac_ext >&5
11084 xlinux_first_failure
=yes
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11089 conftest
$ac_exeext conftest.
$ac_ext
11090 if test "${xlinux_first_failure}" = "yes"; then
11091 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11092 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11093 OLD_CPPFLAGS
="$CPPFLAGS"
11095 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11096 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11097 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11098 LIBS
="$LIBS -b i486-linuxaout"
11099 cat >conftest.
$ac_ext <<_ACEOF
11102 cat confdefs.h
>>conftest.
$ac_ext
11103 cat >>conftest.
$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11109 XOpenDisplay ("foo");
11114 rm -f conftest.
$ac_objext conftest
$ac_exeext
11115 if { (ac_try
="$ac_link"
11116 case "(($ac_try" in
11117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122 (eval "$ac_link") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext && {
11132 test "$cross_compiling" = yes ||
11133 $as_test_x conftest$ac_exeext
11135 xlinux_second_failure=no
11137 $as_echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11140 xlinux_second_failure=yes
11143 rm -rf conftest.dSYM
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 if test "${xlinux_second_failure}" = "yes"; then
11147 # If we get the same failure with -b, there is no use adding -b.
11148 # So take it out. This plays safe.
11149 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11150 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11151 CPPFLAGS="$OLD_CPPFLAGS"
11153 { $as_echo "$as_me:$LINENO: result: no" >&5
11154 $as_echo "no" >&6; }
11156 { $as_echo "$as_me:$LINENO: result: yes" >&5
11157 $as_echo "yes" >&6; }
11160 { $as_echo "$as_me:$LINENO: result: no" >&5
11161 $as_echo "no" >&6; }
11165 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11166 # header files included from there.
11167 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11168 $as_echo_n "checking for Xkb... " >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <X11/Xlib.h>
11176 #include <X11/XKBlib.h>
11180 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11189 *) ac_try_echo
=$ac_try;;
11191 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1
>conftest.err
11197 cat conftest.err
>&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest
$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest
$ac_exeext
11208 $as_echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.
$ac_ext >&5
11214 rm -rf conftest.dSYM
11215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11216 conftest
$ac_exeext conftest.
$ac_ext
11217 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11218 $as_echo "$emacs_xkb" >&6; }
11219 if test $emacs_xkb = yes; then
11221 cat >>confdefs.h
<<\_ACEOF
11222 #define HAVE_XKBGETKEYBOARD 1
11231 for ac_func
in XrmSetDatabase XScreenResourceString \
11232 XScreenNumberOfScreen XSetWMProtocols
11234 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 $as_echo_n "checking for $ac_func... " >&6; }
11237 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11240 cat >conftest.
$ac_ext <<_ACEOF
11243 cat confdefs.h
>>conftest.
$ac_ext
11244 cat >>conftest.
$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11256 # include <limits.h>
11258 # include <assert.h>
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11280 return $ac_func ();
11285 rm -f conftest.
$ac_objext conftest
$ac_exeext
11286 if { (ac_try
="$ac_link"
11287 case "(($ac_try" in
11288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11292 $as_echo "$ac_try_echo") >&5
11293 (eval "$ac_link") 2>conftest.er1
11295 grep -v '^ *+' conftest.er1 >conftest.err
11297 cat conftest.err >&5
11298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest$ac_exeext && {
11303 test "$cross_compiling" = yes ||
11304 $as_test_x conftest$ac_exeext
11306 eval "$as_ac_var=yes"
11308 $as_echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 eval "$as_ac_var=no"
11314 rm -rf conftest.dSYM
11315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11316 conftest$ac_exeext conftest.$ac_ext
11318 ac_res=`eval 'as_val=${'$as_ac_var'}
11319 $as_echo "$as_val"'`
11320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11321 $as_echo "$ac_res" >&6; }
11322 if test `eval 'as_val=${'$as_ac_var'}
11323 $as_echo "$as_val"'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11333 if test "${window_system}" = "x11"; then
11334 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11335 $as_echo_n "checking X11 version 6... " >&6; }
11336 if test "${emacs_cv_x11_version_6+set}" = set; then
11337 $as_echo_n "(cached) " >&6
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <X11/Xlib.h>
11349 #if XlibSpecificationRelease < 6
11357 rm -f conftest.$ac_objext conftest$ac_exeext
11358 if { (ac_try="$ac_link"
11359 case "(($ac_try" in
11360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11361 *) ac_try_echo
=$ac_try;;
11363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11364 $as_echo "$ac_try_echo") >&5
11365 (eval "$ac_link") 2>conftest.er1
11367 grep -v '^ *+' conftest.er1
>conftest.err
11369 cat conftest.err
>&5
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && {
11372 test -z "$ac_c_werror_flag" ||
11373 test ! -s conftest.err
11374 } && test -s conftest
$ac_exeext && {
11375 test "$cross_compiling" = yes ||
11376 $as_test_x conftest
$ac_exeext
11378 emacs_cv_x11_version_6
=yes
11380 $as_echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 emacs_cv_x11_version_6
=no
11386 rm -rf conftest.dSYM
11387 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11388 conftest
$ac_exeext conftest.
$ac_ext
11391 if test $emacs_cv_x11_version_6 = yes; then
11392 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11393 $as_echo "6 or newer" >&6; }
11395 cat >>confdefs.h
<<\_ACEOF
11396 #define HAVE_X11R6 1
11400 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11401 $as_echo "before 6" >&6; }
11406 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11408 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11409 if test "${with_rsvg}" != "no"; then
11410 RSVG_REQUIRED
=2.11.0
11411 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11416 # Extract the first word of "pkg-config", so it can be a program name with args.
11417 set dummy pkg-config
; ac_word
=$2
11418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11421 $as_echo_n "(cached) " >&6
11423 case $PKG_CONFIG in
11425 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11429 for as_dir
in $PATH
11432 test -z "$as_dir" && as_dir
=.
11433 for ac_exec_ext
in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11447 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11448 if test -n "$PKG_CONFIG"; then
11449 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11450 $as_echo "$PKG_CONFIG" >&6; }
11452 { $as_echo "$as_me:$LINENO: result: no" >&5
11453 $as_echo "no" >&6; }
11458 if test "$PKG_CONFIG" = "no" ; then
11461 PKG_CONFIG_MIN_VERSION
=0.9.0
11462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11463 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11464 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11466 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11467 { $as_echo "$as_me:$LINENO: result: yes" >&5
11468 $as_echo "yes" >&6; }
11471 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11472 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11473 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11474 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11475 $as_echo "$RSVG_CFLAGS" >&6; }
11477 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11478 $as_echo_n "checking RSVG_LIBS... " >&6; }
11479 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11480 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11481 $as_echo "$RSVG_LIBS" >&6; }
11483 { $as_echo "$as_me:$LINENO: result: no" >&5
11484 $as_echo "no" >&6; }
11487 ## If we have a custom action on failure, don't print errors, but
11488 ## do set a variable so people can do so.
11489 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11501 if test $succeeded = yes; then
11510 if test ".${RSVG_CFLAGS}" != "."; then
11513 cat >>confdefs.h
<<\_ACEOF
11514 #define HAVE_RSVG 1
11517 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11518 LIBS
="$RSVG_LIBS $LIBS"
11525 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11528 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11533 # Extract the first word of "pkg-config", so it can be a program name with args.
11534 set dummy pkg-config
; ac_word
=$2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11540 case $PKG_CONFIG in
11542 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11546 for as_dir
in $PATH
11549 test -z "$as_dir" && as_dir
=.
11550 for ac_exec_ext
in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11552 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11564 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11565 if test -n "$PKG_CONFIG"; then
11566 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11567 $as_echo "$PKG_CONFIG" >&6; }
11569 { $as_echo "$as_me:$LINENO: result: no" >&5
11570 $as_echo "no" >&6; }
11575 if test "$PKG_CONFIG" = "no" ; then
11578 PKG_CONFIG_MIN_VERSION
=0.9.0
11579 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11580 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11581 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11583 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11584 { $as_echo "$as_me:$LINENO: result: yes" >&5
11585 $as_echo "yes" >&6; }
11588 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11589 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11590 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11591 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11592 $as_echo "$GTK_CFLAGS" >&6; }
11594 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11595 $as_echo_n "checking GTK_LIBS... " >&6; }
11596 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11597 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11598 $as_echo "$GTK_LIBS" >&6; }
11600 { $as_echo "$as_me:$LINENO: result: no" >&5
11601 $as_echo "no" >&6; }
11604 ## If we have a custom action on failure, don't print errors, but
11605 ## do set a variable so people can do so.
11606 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11618 if test $succeeded = yes; then
11624 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11625 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11626 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11627 { (exit 1); exit 1; }; }
11633 if test x
"$pkg_check_gtk" = xyes
; then
11637 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11638 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11639 LIBS
="$GTK_LIBS $LIBS"
11642 for ac_func
in gtk_main
11644 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11645 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11646 $as_echo_n "checking for $ac_func... " >&6; }
11647 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11648 $as_echo_n "(cached) " >&6
11650 cat >conftest.
$ac_ext <<_ACEOF
11653 cat confdefs.h
>>conftest.
$ac_ext
11654 cat >>conftest.
$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11658 #define $ac_func innocuous_$ac_func
11660 /* System header to define __stub macros and hopefully few prototypes,
11661 which can conflict with char $ac_func (); below.
11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11663 <limits.h> exists even on freestanding compilers. */
11666 # include <limits.h>
11668 # include <assert.h>
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined __stub_$ac_func || defined __stub___$ac_func
11690 return $ac_func ();
11695 rm -f conftest.
$ac_objext conftest
$ac_exeext
11696 if { (ac_try
="$ac_link"
11697 case "(($ac_try" in
11698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11699 *) ac_try_echo=$ac_try;;
11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11702 $as_echo "$ac_try_echo") >&5
11703 (eval "$ac_link") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest$ac_exeext && {
11713 test "$cross_compiling" = yes ||
11714 $as_test_x conftest$ac_exeext
11716 eval "$as_ac_var=yes"
11718 $as_echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 eval "$as_ac_var=no"
11724 rm -rf conftest.dSYM
11725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11726 conftest$ac_exeext conftest.$ac_ext
11728 ac_res=`eval 'as_val=${'$as_ac_var'}
11729 $as_echo "$as_val"'`
11730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11731 $as_echo "$ac_res" >&6; }
11732 if test `eval 'as_val=${'$as_ac_var'}
11733 $as_echo "$as_val"'` = yes; then
11734 cat >>confdefs.h <<_ACEOF
11735 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11741 if test "${GTK_COMPILES}" != "yes"; then
11742 if test "$USE_X_TOOLKIT" != "maybe"; then
11743 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11744 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11745 { (exit 1); exit 1; }; };
11750 cat >>confdefs.h <<\_ACEOF
11756 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11759 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11760 closing open displays. This is no problem if you just use
11761 one display, but if you use more than one and close one of them
11762 Emacs may crash." >&5
11763 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11764 closing open displays. This is no problem if you just use
11765 one display, but if you use more than one and close one of them
11766 Emacs may crash." >&2;}
11775 if test "${HAVE_GTK}" = "yes"; then
11777 if test "$with_toolkit_scroll_bars" != no; then
11778 with_toolkit_scroll_bars=yes
11781 HAVE_GTK_MULTIDISPLAY=no
11783 for ac_func in gdk_display_open
11785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11786 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 $as_echo_n "checking for $ac_func... " >&6; }
11788 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11789 $as_echo_n "(cached) " >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11799 #define $ac_func innocuous_$ac_func
11801 /* System header to define __stub macros and hopefully few prototypes,
11802 which can conflict with char $ac_func (); below.
11803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11804 <limits.h> exists even on freestanding compilers. */
11807 # include <limits.h>
11809 # include <assert.h>
11814 /* Override any GCC internal prototype to avoid an error.
11815 Use char because int might match the return type of a GCC
11816 builtin and then its argument prototype would still apply. */
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 return $ac_func ();
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (ac_try="$ac_link"
11838 case "(($ac_try" in
11839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11840 *) ac_try_echo
=$ac_try;;
11842 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11843 $as_echo "$ac_try_echo") >&5
11844 (eval "$ac_link") 2>conftest.er1
11846 grep -v '^ *+' conftest.er1
>conftest.err
11848 cat conftest.err
>&5
11849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } && {
11851 test -z "$ac_c_werror_flag" ||
11852 test ! -s conftest.err
11853 } && test -s conftest
$ac_exeext && {
11854 test "$cross_compiling" = yes ||
11855 $as_test_x conftest
$ac_exeext
11857 eval "$as_ac_var=yes"
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.
$ac_ext >&5
11862 eval "$as_ac_var=no"
11865 rm -rf conftest.dSYM
11866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11867 conftest
$ac_exeext conftest.
$ac_ext
11869 ac_res
=`eval 'as_val=${'$as_ac_var'}
11870 $as_echo "$as_val"'`
11871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11872 $as_echo "$ac_res" >&6; }
11873 if test `eval 'as_val=${'$as_ac_var'}
11874 $as_echo "$as_val"'` = yes; then
11875 cat >>confdefs.h
<<_ACEOF
11876 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11878 HAVE_GTK_MULTIDISPLAY
=yes
11882 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11884 cat >>confdefs.h
<<\_ACEOF
11885 #define HAVE_GTK_MULTIDISPLAY 1
11890 HAVE_GTK_FILE_SELECTION
=no
11891 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11892 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11893 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11896 cat >conftest.
$ac_ext <<_ACEOF
11899 cat confdefs.h
>>conftest.
$ac_ext
11900 cat >>conftest.
$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 #include <gtk/gtk.h>
11908 #ifndef GTK_TYPE_FILE_SELECTION
11909 (void) GTK_TYPE_FILE_SELECTION;
11916 rm -f conftest.
$ac_objext
11917 if { (ac_try
="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11945 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11946 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11947 HAVE_GTK_FILE_SELECTION=yes
11949 HAVE_GTK_FILE_SELECTION=no
11952 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11954 for ac_func in gtk_file_selection_new
11956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 $as_echo_n "checking for $ac_func... " >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 $as_echo_n "(cached) " >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define $ac_func innocuous_$ac_func
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
12002 return $ac_func ();
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12011 *) ac_try_echo
=$ac_try;;
12013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_link") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1
>conftest.err
12019 cat conftest.err
>&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest
$ac_exeext && {
12025 test "$cross_compiling" = yes ||
12026 $as_test_x conftest
$ac_exeext
12028 eval "$as_ac_var=yes"
12030 $as_echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.
$ac_ext >&5
12033 eval "$as_ac_var=no"
12036 rm -rf conftest.dSYM
12037 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12038 conftest
$ac_exeext conftest.
$ac_ext
12040 ac_res
=`eval 'as_val=${'$as_ac_var'}
12041 $as_echo "$as_val"'`
12042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12043 $as_echo "$ac_res" >&6; }
12044 if test `eval 'as_val=${'$as_ac_var'}
12045 $as_echo "$as_val"'` = yes; then
12046 cat >>confdefs.h
<<_ACEOF
12047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 HAVE_GTK_FILE_SELECTION
=yes
12051 HAVE_GTK_FILE_SELECTION
=no
12057 HAVE_GTK_FILE_CHOOSER
=no
12058 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12059 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12060 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12063 cat >conftest.
$ac_ext <<_ACEOF
12066 cat confdefs.h
>>conftest.
$ac_ext
12067 cat >>conftest.
$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <gtk/gtk.h>
12075 #ifndef GTK_TYPE_FILE_CHOOSER
12076 (void) GTK_TYPE_FILE_CHOOSER;
12083 rm -f conftest.
$ac_objext
12084 if { (ac_try
="$ac_compile"
12085 case "(($ac_try" in
12086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12090 $as_echo "$ac_try_echo") >&5
12091 (eval "$ac_compile") 2>conftest.er1
12093 grep -v '^ *+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest.$ac_objext; then
12101 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12103 $as_echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12106 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12111 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12112 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12113 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12114 HAVE_GTK_FILE_CHOOSER=yes
12116 HAVE_GTK_FILE_CHOOSER=no
12119 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12121 for ac_func in gtk_file_chooser_dialog_new
12123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12124 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12125 $as_echo_n "checking for $ac_func... " >&6; }
12126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12127 $as_echo_n "(cached) " >&6
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12137 #define $ac_func innocuous_$ac_func
12139 /* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below.
12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142 <limits.h> exists even on freestanding compilers. */
12145 # include <limits.h>
12147 # include <assert.h>
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined __stub_$ac_func || defined __stub___$ac_func
12169 return $ac_func ();
12174 rm -f conftest.$ac_objext conftest$ac_exeext
12175 if { (ac_try="$ac_link"
12176 case "(($ac_try" in
12177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12178 *) ac_try_echo
=$ac_try;;
12180 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12181 $as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1
>conftest.err
12186 cat conftest.err
>&5
12187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest
$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest
$ac_exeext
12195 eval "$as_ac_var=yes"
12197 $as_echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.
$ac_ext >&5
12200 eval "$as_ac_var=no"
12203 rm -rf conftest.dSYM
12204 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12205 conftest
$ac_exeext conftest.
$ac_ext
12207 ac_res
=`eval 'as_val=${'$as_ac_var'}
12208 $as_echo "$as_val"'`
12209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12210 $as_echo "$ac_res" >&6; }
12211 if test `eval 'as_val=${'$as_ac_var'}
12212 $as_echo "$as_val"'` = yes; then
12213 cat >>confdefs.h
<<_ACEOF
12214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12216 HAVE_GTK_FILE_CHOOSER
=yes
12218 HAVE_GTK_FILE_CHOOSER
=no
12224 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12225 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12227 cat >>confdefs.h
<<\_ACEOF
12228 #define HAVE_GTK_FILE_BOTH 1
12233 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12234 HAVE_GTK_AND_PTHREAD
=no
12236 for ac_header
in pthread.h
12238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12239 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12241 $as_echo_n "checking for $ac_header... " >&6; }
12242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12243 $as_echo_n "(cached) " >&6
12245 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12246 $as_echo "$as_val"'`
12247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12248 $as_echo "$ac_res" >&6; }
12250 # Is the header compilable?
12251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12252 $as_echo_n "checking $ac_header usability... " >&6; }
12253 cat >conftest.
$ac_ext <<_ACEOF
12256 cat confdefs.h
>>conftest.
$ac_ext
12257 cat >>conftest.
$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 $ac_includes_default
12260 #include <$ac_header>
12262 rm -f conftest.
$ac_objext
12263 if { (ac_try
="$ac_compile"
12264 case "(($ac_try" in
12265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12269 $as_echo "$ac_try_echo") >&5
12270 (eval "$ac_compile") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest.$ac_objext; then
12280 ac_header_compiler=yes
12282 $as_echo "$as_me: failed program was:" >&5
12283 sed 's/^/| /' conftest.$ac_ext >&5
12285 ac_header_compiler=no
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12290 $as_echo "$ac_header_compiler" >&6; }
12292 # Is the header present?
12293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12294 $as_echo_n "checking $ac_header presence... " >&6; }
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include <$ac_header>
12303 if { (ac_try="$ac_cpp conftest.$ac_ext"
12304 case "(($ac_try" in
12305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12306 *) ac_try_echo
=$ac_try;;
12308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12309 $as_echo "$ac_try_echo") >&5
12310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1
>conftest.err
12314 cat conftest.err
>&5
12315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } >/dev
/null
&& {
12317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12320 ac_header_preproc
=yes
12322 $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.
$ac_ext >&5
12325 ac_header_preproc
=no
12328 rm -f conftest.err conftest.
$ac_ext
12329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12330 $as_echo "$ac_header_preproc" >&6; }
12332 # So? What about this header?
12333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12339 ac_header_preproc
=yes
12342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12358 $as_echo_n "checking for $ac_header... " >&6; }
12359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12360 $as_echo_n "(cached) " >&6
12362 eval "$as_ac_Header=\$ac_header_preproc"
12364 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12365 $as_echo "$as_val"'`
12366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12367 $as_echo "$ac_res" >&6; }
12370 if test `eval 'as_val=${'$as_ac_Header'}
12371 $as_echo "$as_val"'` = yes; then
12372 cat >>confdefs.h
<<_ACEOF
12373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12380 if test "$ac_cv_header_pthread_h"; then
12381 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12382 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12383 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12384 $as_echo_n "(cached) " >&6
12386 ac_check_lib_save_LIBS
=$LIBS
12387 LIBS
="-lpthread $LIBS"
12388 cat >conftest.
$ac_ext <<_ACEOF
12391 cat confdefs.h
>>conftest.
$ac_ext
12392 cat >>conftest.
$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12395 /* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12401 char pthread_self ();
12405 return pthread_self ();
12410 rm -f conftest.
$ac_objext conftest
$ac_exeext
12411 if { (ac_try
="$ac_link"
12412 case "(($ac_try" in
12413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12417 $as_echo "$ac_try_echo") >&5
12418 (eval "$ac_link") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest$ac_exeext && {
12428 test "$cross_compiling" = yes ||
12429 $as_test_x conftest$ac_exeext
12431 ac_cv_lib_pthread_pthread_self=yes
12433 $as_echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_lib_pthread_pthread_self=no
12439 rm -rf conftest.dSYM
12440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12444 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12445 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12446 if test $ac_cv_lib_pthread_pthread_self = yes; then
12447 HAVE_GTK_AND_PTHREAD=yes
12451 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12452 case "${canonical}" in
12454 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12457 cat >>confdefs.h <<\_ACEOF
12458 #define HAVE_GTK_AND_PTHREAD 1
12467 if test "${with_dbus}" = "yes"; then
12471 # Extract the first word of "pkg-config", so it can be a program name with args.
12472 set dummy pkg-config; ac_word=$2
12473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12476 $as_echo_n "(cached) " >&6
12478 case $PKG_CONFIG in
12480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12503 if test -n "$PKG_CONFIG"; then
12504 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12505 $as_echo "$PKG_CONFIG" >&6; }
12507 { $as_echo "$as_me:$LINENO: result: no" >&5
12508 $as_echo "no" >&6; }
12513 if test "$PKG_CONFIG" = "no" ; then
12516 PKG_CONFIG_MIN_VERSION=0.9.0
12517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12518 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12519 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12521 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12522 { $as_echo "$as_me:$LINENO: result: yes" >&5
12523 $as_echo "yes" >&6; }
12526 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12527 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12528 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12529 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12530 $as_echo "$DBUS_CFLAGS" >&6; }
12532 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12533 $as_echo_n "checking DBUS_LIBS... " >&6; }
12534 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12535 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12536 $as_echo "$DBUS_LIBS" >&6; }
12538 { $as_echo "$as_me:$LINENO: result: no" >&5
12539 $as_echo "no" >&6; }
12542 ## If we have a custom action on failure, don't print errors, but
12543 ## do set a variable so people can do so.
12544 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12556 if test $succeeded = yes; then
12562 if test "$HAVE_DBUS" = yes; then
12563 LIBS="$LIBS $DBUS_LIBS"
12565 cat >>confdefs.h <<\_ACEOF
12566 #define HAVE_DBUS 1
12570 for ac_func in dbus_watch_get_unix_fd
12572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12573 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 $as_echo_n "checking for $ac_func... " >&6; }
12575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12576 $as_echo_n "(cached) " >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define $ac_func innocuous_$ac_func
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12594 # include <limits.h>
12596 # include <assert.h>
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12608 /* The GNU C library defines this for functions which it implements
12609 to always fail with ENOSYS. Some functions are actually named
12610 something starting with __ and the normal name is an alias. */
12611 #if defined __stub_$ac_func || defined __stub___$ac_func
12618 return $ac_func ();
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (ac_try="$ac_link"
12625 case "(($ac_try" in
12626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12627 *) ac_try_echo
=$ac_try;;
12629 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12630 $as_echo "$ac_try_echo") >&5
12631 (eval "$ac_link") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1
>conftest.err
12635 cat conftest.err
>&5
12636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest
$ac_exeext && {
12641 test "$cross_compiling" = yes ||
12642 $as_test_x conftest
$ac_exeext
12644 eval "$as_ac_var=yes"
12646 $as_echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 eval "$as_ac_var=no"
12652 rm -rf conftest.dSYM
12653 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12654 conftest
$ac_exeext conftest.
$ac_ext
12656 ac_res
=`eval 'as_val=${'$as_ac_var'}
12657 $as_echo "$as_val"'`
12658 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12659 $as_echo "$ac_res" >&6; }
12660 if test `eval 'as_val=${'$as_ac_var'}
12661 $as_echo "$as_val"'` = yes; then
12662 cat >>confdefs.h
<<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 DBUS_OBJ
=dbusbind.o
12675 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12679 # Extract the first word of "pkg-config", so it can be a program name with args.
12680 set dummy pkg-config
; ac_word
=$2
12681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12684 $as_echo_n "(cached) " >&6
12686 case $PKG_CONFIG in
12688 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12692 for as_dir
in $PATH
12695 test -z "$as_dir" && as_dir
=.
12696 for ac_exec_ext
in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12698 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12710 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12711 if test -n "$PKG_CONFIG"; then
12712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12713 $as_echo "$PKG_CONFIG" >&6; }
12715 { $as_echo "$as_me:$LINENO: result: no" >&5
12716 $as_echo "no" >&6; }
12721 if test "$PKG_CONFIG" = "no" ; then
12724 PKG_CONFIG_MIN_VERSION
=0.9.0
12725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12726 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12727 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12729 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }
12734 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12735 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12736 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12737 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12738 $as_echo "$GCONF_CFLAGS" >&6; }
12740 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12741 $as_echo_n "checking GCONF_LIBS... " >&6; }
12742 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12743 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12744 $as_echo "$GCONF_LIBS" >&6; }
12746 { $as_echo "$as_me:$LINENO: result: no" >&5
12747 $as_echo "no" >&6; }
12750 ## If we have a custom action on failure, don't print errors, but
12751 ## do set a variable so people can do so.
12752 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12764 if test $succeeded = yes; then
12770 if test "$HAVE_GCONF" = yes; then
12772 cat >>confdefs.h
<<\_ACEOF
12773 #define HAVE_GCONF 1
12781 if test "${with_selinux}" = "yes"; then
12782 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12783 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12784 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12785 $as_echo_n "(cached) " >&6
12787 ac_check_lib_save_LIBS
=$LIBS
12788 LIBS
="-lselinux $LIBS"
12789 cat >conftest.
$ac_ext <<_ACEOF
12792 cat confdefs.h
>>conftest.
$ac_ext
12793 cat >>conftest.
$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12796 /* Override any GCC internal prototype to avoid an error.
12797 Use char because int might match the return type of a GCC
12798 builtin and then its argument prototype would still apply. */
12802 char lgetfilecon ();
12806 return lgetfilecon ();
12811 rm -f conftest.
$ac_objext conftest
$ac_exeext
12812 if { (ac_try
="$ac_link"
12813 case "(($ac_try" in
12814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12832 ac_cv_lib_selinux_lgetfilecon=yes
12834 $as_echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_lib_selinux_lgetfilecon=no
12840 rm -rf conftest.dSYM
12841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12846 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12847 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12848 HAVE_LIBSELINUX=yes
12853 if test "$HAVE_LIBSELINUX" = yes; then
12855 cat >>confdefs.h <<\_ACEOF
12856 #define HAVE_LIBSELINUX 1
12859 LIBSELINUX_LIBS=-lselinux
12866 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12867 if test "$with_xaw3d" != no; then
12868 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12869 $as_echo_n "checking for xaw3d... " >&6; }
12870 if test "${emacs_cv_xaw3d+set}" = set; then
12871 $as_echo_n "(cached) " >&6
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 #include <X11/Intrinsic.h>
12881 #include <X11/Xaw3d/Simple.h>
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12894 *) ac_try_echo
=$ac_try;;
12896 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1
>conftest.err
12902 cat conftest.err
>&5
12903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } && {
12905 test -z "$ac_c_werror_flag" ||
12906 test ! -s conftest.err
12907 } && test -s conftest
$ac_exeext && {
12908 test "$cross_compiling" = yes ||
12909 $as_test_x conftest
$ac_exeext
12913 $as_echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.
$ac_ext >&5
12919 rm -rf conftest.dSYM
12920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12921 conftest
$ac_exeext conftest.
$ac_ext
12927 if test $emacs_cv_xaw3d = yes; then
12928 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12929 $as_echo "yes; using Lucid toolkit" >&6; }
12930 USE_X_TOOLKIT
=LUCID
12934 cat >>confdefs.h
<<\_ACEOF
12935 #define HAVE_XAW3D 1
12939 { $as_echo "$as_me:$LINENO: result: no" >&5
12940 $as_echo "no" >&6; }
12941 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12942 $as_echo_n "checking for libXaw... " >&6; }
12943 if test "${emacs_cv_xaw+set}" = set; then
12944 $as_echo_n "(cached) " >&6
12946 cat >conftest.
$ac_ext <<_ACEOF
12949 cat confdefs.h
>>conftest.
$ac_ext
12950 cat >>conftest.
$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12953 #include <X11/Intrinsic.h>
12954 #include <X11/Xaw/Simple.h>
12963 rm -f conftest.
$ac_objext conftest
$ac_exeext
12964 if { (ac_try
="$ac_link"
12965 case "(($ac_try" in
12966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12967 *) ac_try_echo=$ac_try;;
12969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12970 $as_echo "$ac_try_echo") >&5
12971 (eval "$ac_link") 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest$ac_exeext && {
12981 test "$cross_compiling" = yes ||
12982 $as_test_x conftest$ac_exeext
12986 $as_echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12992 rm -rf conftest.dSYM
12993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12994 conftest$ac_exeext conftest.$ac_ext
12997 if test $emacs_cv_xaw = yes; then
12998 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12999 $as_echo "yes; using Lucid toolkit" >&6; }
13000 USE_X_TOOLKIT=LUCID
13002 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13003 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13004 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13005 { (exit 1); exit 1; }; }
13007 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13008 $as_echo "no; do not use toolkit by default" >&6; }
13014 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13017 if test "${USE_X_TOOLKIT}" != "none"; then
13018 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13019 $as_echo_n "checking X11 toolkit version... " >&6; }
13020 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13021 $as_echo_n "(cached) " >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 #include <X11/Intrinsic.h>
13033 #if XtSpecificationRelease < 6
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13045 *) ac_try_echo
=$ac_try;;
13047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13048 $as_echo "$ac_try_echo") >&5
13049 (eval "$ac_link") 2>conftest.er1
13051 grep -v '^ *+' conftest.er1
>conftest.err
13053 cat conftest.err
>&5
13054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest
$ac_exeext && {
13059 test "$cross_compiling" = yes ||
13060 $as_test_x conftest
$ac_exeext
13062 emacs_cv_x11_toolkit_version_6
=yes
13064 $as_echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.
$ac_ext >&5
13067 emacs_cv_x11_toolkit_version_6
=no
13070 rm -rf conftest.dSYM
13071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13072 conftest
$ac_exeext conftest.
$ac_ext
13075 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13076 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13077 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13078 $as_echo "6 or newer" >&6; }
13080 cat >>confdefs.h
<<\_ACEOF
13081 #define HAVE_X11XTR6 1
13084 LIBXTR6
="-lSM -lICE"
13086 ## Use libw.a along with X11R6 Xt.
13087 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13090 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13091 $as_echo "before 6" >&6; }
13095 if test x
$HAVE_X11XTR6 = xyes
; then
13096 LIBS
="-lXt -lSM -lICE $LIBS"
13101 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13102 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13103 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13106 ac_check_lib_save_LIBS
=$LIBS
13108 cat >conftest.
$ac_ext <<_ACEOF
13111 cat confdefs.h
>>conftest.
$ac_ext
13112 cat >>conftest.
$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13121 char XmuConvertStandardSelection ();
13125 return XmuConvertStandardSelection ();
13130 rm -f conftest.
$ac_objext conftest
$ac_exeext
13131 if { (ac_try
="$ac_link"
13132 case "(($ac_try" in
13133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13137 $as_echo "$ac_try_echo") >&5
13138 (eval "$ac_link") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest$ac_exeext && {
13148 test "$cross_compiling" = yes ||
13149 $as_test_x conftest$ac_exeext
13151 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13153 $as_echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13156 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13159 rm -rf conftest.dSYM
13160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13161 conftest$ac_exeext conftest.$ac_ext
13162 LIBS=$ac_check_lib_save_LIBS
13164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13165 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13166 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168 #define HAVE_LIBXMU 1
13175 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13179 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13180 if test "${HAVE_X11}" = "yes"; then
13181 if test "${USE_X_TOOLKIT}" != "none"; then
13183 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13184 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13185 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13186 $as_echo_n "(cached) " >&6
13188 ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lXext $LIBS"
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13203 char XShapeQueryExtension ();
13207 return XShapeQueryExtension ();
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13216 *) ac_try_echo
=$ac_try;;
13218 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1
>conftest.err
13224 cat conftest.err
>&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest
$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest
$ac_exeext
13233 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.
$ac_ext >&5
13238 ac_cv_lib_Xext_XShapeQueryExtension
=no
13241 rm -rf conftest.dSYM
13242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13243 conftest
$ac_exeext conftest.
$ac_ext
13244 LIBS
=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13247 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13249 cat >>confdefs.h
<<_ACEOF
13250 #define HAVE_LIBXEXT 1
13253 LIBS
="-lXext $LIBS"
13261 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13262 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13263 $as_echo_n "checking for Motif version 2.1... " >&6; }
13264 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13265 $as_echo_n "(cached) " >&6
13267 cat >conftest.
$ac_ext <<_ACEOF
13270 cat confdefs.h
>>conftest.
$ac_ext
13271 cat >>conftest.
$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13277 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13280 Motif version prior to 2.1.
13286 rm -f conftest.
$ac_objext
13287 if { (ac_try
="$ac_compile"
13288 case "(($ac_try" in
13289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13293 $as_echo "$ac_try_echo") >&5
13294 (eval "$ac_compile") 2>conftest.er1
13296 grep -v '^ *+' conftest.er1 >conftest.err
13298 cat conftest.err >&5
13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest.$ac_objext; then
13304 emacs_cv_motif_version_2_1=yes
13306 $as_echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13309 emacs_cv_motif_version_2_1=no
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13315 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13316 if test $emacs_cv_motif_version_2_1 = yes; then
13317 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13318 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13319 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13320 $as_echo_n "(cached) " >&6
13322 ac_check_lib_save_LIBS=$LIBS
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13337 char XpCreateContext ();
13341 return XpCreateContext ();
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (ac_try="$ac_link"
13348 case "(($ac_try" in
13349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13350 *) ac_try_echo
=$ac_try;;
13352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13353 $as_echo "$ac_try_echo") >&5
13354 (eval "$ac_link") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1
>conftest.err
13358 cat conftest.err
>&5
13359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest
$ac_exeext && {
13364 test "$cross_compiling" = yes ||
13365 $as_test_x conftest
$ac_exeext
13367 ac_cv_lib_Xp_XpCreateContext
=yes
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.
$ac_ext >&5
13372 ac_cv_lib_Xp_XpCreateContext
=no
13375 rm -rf conftest.dSYM
13376 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13377 conftest
$ac_exeext conftest.
$ac_ext
13378 LIBS
=$ac_check_lib_save_LIBS
13380 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13381 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13382 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13387 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13388 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13389 if test "${emacs_cv_lesstif+set}" = set; then
13390 $as_echo_n "(cached) " >&6
13392 # We put this in CFLAGS temporarily to precede other -I options
13393 # that might be in CFLAGS temporarily.
13394 # We put this in CPPFLAGS where it precedes the other -I options.
13395 OLD_CPPFLAGS
=$CPPFLAGS
13397 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13398 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13399 cat >conftest.
$ac_ext <<_ACEOF
13402 cat confdefs.h
>>conftest.
$ac_ext
13403 cat >>conftest.
$ac_ext <<_ACEOF
13404 /* end confdefs.h. */
13405 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13414 rm -f conftest.
$ac_objext
13415 if { (ac_try
="$ac_compile"
13416 case "(($ac_try" in
13417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421 $as_echo "$ac_try_echo") >&5
13422 (eval "$ac_compile") 2>conftest.er1
13424 grep -v '^ *+' conftest.er1 >conftest.err
13426 cat conftest.err >&5
13427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } && {
13429 test -z "$ac_c_werror_flag" ||
13430 test ! -s conftest.err
13431 } && test -s conftest.$ac_objext; then
13432 emacs_cv_lesstif=yes
13434 $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 emacs_cv_lesstif=no
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13443 $as_echo "$emacs_cv_lesstif" >&6; }
13444 if test $emacs_cv_lesstif = yes; then
13445 # Make sure this -I option remains in CPPFLAGS after it is set
13446 # back to REAL_CPPFLAGS.
13447 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13448 # have those other -I options anyway. Ultimately, having this
13449 # directory ultimately in CPPFLAGS will be enough.
13450 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13451 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13454 CPPFLAGS=$OLD_CPPFLAGS
13461 USE_TOOLKIT_SCROLL_BARS=no
13462 if test "${with_toolkit_scroll_bars}" != "no"; then
13463 if test "${USE_X_TOOLKIT}" != "none"; then
13464 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13465 cat >>confdefs.h <<\_ACEOF
13466 #define USE_TOOLKIT_SCROLL_BARS 1
13470 USE_TOOLKIT_SCROLL_BARS=yes
13471 elif test "${HAVE_XAW3D}" = "yes"; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define USE_TOOLKIT_SCROLL_BARS 1
13476 USE_TOOLKIT_SCROLL_BARS=yes
13478 elif test "${HAVE_GTK}" = "yes"; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define USE_TOOLKIT_SCROLL_BARS 1
13483 USE_TOOLKIT_SCROLL_BARS=yes
13484 elif test "${HAVE_NS}" = "yes"; then
13485 cat >>confdefs.h <<\_ACEOF
13486 #define USE_TOOLKIT_SCROLL_BARS 1
13489 USE_TOOLKIT_SCROLL_BARS=yes
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 #include <X11/Xlib.h>
13501 #include <X11/Xresource.h>
13510 rm -f conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13514 *) ac_try_echo
=$ac_try;;
13516 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13517 $as_echo "$ac_try_echo") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13520 grep -v '^ *+' conftest.er1
>conftest.err
13522 cat conftest.err
>&5
13523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.
$ac_objext; then
13530 cat >>confdefs.h
<<\_ACEOF
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.
$ac_ext >&5
13541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13544 if test "${with_xim}" != "no"; then
13546 cat >>confdefs.h
<<\_ACEOF
13553 if test "${HAVE_XIM}" != "no"; then
13554 late_CFLAGS
=$CFLAGS
13555 if test "$GCC" = yes; then
13556 CFLAGS
="$CFLAGS --pedantic-errors"
13558 cat >conftest.
$ac_ext <<_ACEOF
13561 cat confdefs.h
>>conftest.
$ac_ext
13562 cat >>conftest.
$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 #include <X11/Xlib.h>
13566 #include <X11/Xresource.h>
13575 XPointer *client_data;
13577 /* If we're not using GCC, it's probably not XFree86, and this is
13578 probably right, but we can't use something like --pedantic-errors. */
13579 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13580 char*, XIMProc, XPointer*);
13582 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13588 rm -f conftest.
$ac_objext
13589 if { (ac_try
="$ac_compile"
13590 case "(($ac_try" in
13591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13592 *) ac_try_echo=$ac_try;;
13594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13595 $as_echo "$ac_try_echo") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest.$ac_objext; then
13606 emacs_cv_arg6_star=yes
13608 $as_echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 if test "$emacs_cv_arg6_star" = yes; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13622 cat >>confdefs.h <<\_ACEOF
13623 #define XRegisterIMInstantiateCallback_arg6 XPointer
13627 CFLAGS=$late_CFLAGS
13630 ### Start of font-backend (under any platform) section.
13631 # (nothing here yet -- this is a placeholder)
13632 ### End of font-backend (under any platform) section.
13634 ### Start of font-backend (under X11) section.
13635 if test "${HAVE_X11}" = "yes"; then
13639 # Extract the first word of "pkg-config", so it can be a program name with args.
13640 set dummy pkg-config; ac_word=$2
13641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13642 $as_echo_n "checking for $ac_word... " >&6; }
13643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13644 $as_echo_n "(cached) " >&6
13646 case $PKG_CONFIG in
13648 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13671 if test -n "$PKG_CONFIG"; then
13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13673 $as_echo "$PKG_CONFIG" >&6; }
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13681 if test "$PKG_CONFIG" = "no" ; then
13684 PKG_CONFIG_MIN_VERSION=0.9.0
13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13686 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13687 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13689 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
13691 $as_echo "yes" >&6; }
13694 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13695 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13696 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13697 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13698 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13700 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13701 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13702 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13703 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13704 $as_echo "$FONTCONFIG_LIBS" >&6; }
13706 { $as_echo "$as_me:$LINENO: result: no" >&5
13707 $as_echo "no" >&6; }
13708 FONTCONFIG_CFLAGS=""
13710 ## If we have a custom action on failure, don't print errors, but
13711 ## do set a variable so people can do so.
13712 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13719 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13720 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13724 if test $succeeded = yes; then
13731 ## Use -lXft if available, unless `--with-xft=no
'.
13733 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13736 if test "x${with_xft}" != "xno"; then
13741 # Extract the first word of "pkg-config", so it can be a program name with args.
13742 set dummy pkg-config; ac_word=$2
13743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13744 $as_echo_n "checking for $ac_word... " >&6; }
13745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13746 $as_echo_n "(cached) " >&6
13748 case $PKG_CONFIG in
13750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13773 if test -n "$PKG_CONFIG"; then
13774 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13775 $as_echo "$PKG_CONFIG" >&6; }
13777 { $as_echo "$as_me:$LINENO: result: no" >&5
13778 $as_echo "no" >&6; }
13783 if test "$PKG_CONFIG" = "no" ; then
13786 PKG_CONFIG_MIN_VERSION=0.9.0
13787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13788 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13789 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13791 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13792 { $as_echo "$as_me:$LINENO: result: yes" >&5
13793 $as_echo "yes" >&6; }
13796 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13797 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13798 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13799 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13800 $as_echo "$XFT_CFLAGS" >&6; }
13802 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13803 $as_echo_n "checking XFT_LIBS... " >&6; }
13804 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13805 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13806 $as_echo "$XFT_LIBS" >&6; }
13808 { $as_echo "$as_me:$LINENO: result: no" >&5
13809 $as_echo "no" >&6; }
13812 ## If we have a custom action on failure, don't print errors
, but
13813 ## do set a variable so people can do so.
13814 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13826 if test $succeeded = yes; then
13832 ## Because xftfont.c uses XRenderQueryExtension, we also
13833 ## need to link to -lXrender.
13835 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13836 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13837 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13838 $as_echo_n "(cached) " >&6
13840 ac_check_lib_save_LIBS
=$LIBS
13841 LIBS
="-lXrender $LIBS"
13842 cat >conftest.
$ac_ext <<_ACEOF
13845 cat confdefs.h
>>conftest.
$ac_ext
13846 cat >>conftest.
$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13855 char XRenderQueryExtension ();
13859 return XRenderQueryExtension ();
13864 rm -f conftest.
$ac_objext conftest
$ac_exeext
13865 if { (ac_try
="$ac_link"
13866 case "(($ac_try" in
13867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872 (eval "$ac_link") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && {
13879 test -z "$ac_c_werror_flag" ||
13880 test ! -s conftest.err
13881 } && test -s conftest$ac_exeext && {
13882 test "$cross_compiling" = yes ||
13883 $as_test_x conftest$ac_exeext
13885 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13887 $as_echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ac_cv_lib_Xrender_XRenderQueryExtension=no
13893 rm -rf conftest.dSYM
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13896 LIBS=$ac_check_lib_save_LIBS
13898 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13899 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13900 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13904 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13905 OLD_CPPFLAGS="$CPPFLAGS"
13906 OLD_CFLAGS="$CFLAGS"
13908 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13909 CFLAGS="$CFLAGS $XFT_CFLAGS"
13910 XFT_LIBS="-lXrender $XFT_LIBS"
13911 LIBS="$XFT_LIBS $LIBS"
13912 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13913 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13914 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13915 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13918 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13919 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13921 # Is the header compilable?
13922 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13923 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 #include <X11/Xft/Xft.h>
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13937 *) ac_try_echo
=$ac_try;;
13939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13940 $as_echo "$ac_try_echo") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13943 grep -v '^ *+' conftest.er1
>conftest.err
13945 cat conftest.err
>&5
13946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && {
13948 test -z "$ac_c_werror_flag" ||
13949 test ! -s conftest.err
13950 } && test -s conftest.
$ac_objext; then
13951 ac_header_compiler
=yes
13953 $as_echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.
$ac_ext >&5
13956 ac_header_compiler
=no
13959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13961 $as_echo "$ac_header_compiler" >&6; }
13963 # Is the header present?
13964 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13965 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13966 cat >conftest.
$ac_ext <<_ACEOF
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <X11/Xft/Xft.h>
13974 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13975 case "(($ac_try" in
13976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13980 $as_echo "$ac_try_echo") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null && {
13988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13991 ac_header_preproc=yes
13993 $as_echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_header_preproc=no
13999 rm -f conftest.err conftest.$ac_ext
14000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14001 $as_echo "$ac_header_preproc" >&6; }
14003 # So? What about this header?
14004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14006 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14007 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14008 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14009 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14010 ac_header_preproc=yes
14013 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14014 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14016 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14018 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14020 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14022 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14023 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14024 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14028 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14029 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14030 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14031 $as_echo_n "(cached) " >&6
14033 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14035 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14036 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14039 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14040 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14041 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14042 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14043 $as_echo_n "(cached) " >&6
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lXft $XFT_LIBS $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14060 char XftFontOpen ();
14064 return XftFontOpen ();
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14073 *) ac_try_echo
=$ac_try;;
14075 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14076 $as_echo "$ac_try_echo") >&5
14077 (eval "$ac_link") 2>conftest.er1
14079 grep -v '^ *+' conftest.er1
>conftest.err
14081 cat conftest.err
>&5
14082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest
$ac_exeext && {
14087 test "$cross_compiling" = yes ||
14088 $as_test_x conftest
$ac_exeext
14090 ac_cv_lib_Xft_XftFontOpen
=yes
14092 $as_echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.
$ac_ext >&5
14095 ac_cv_lib_Xft_XftFontOpen
=no
14098 rm -rf conftest.dSYM
14099 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14100 conftest
$ac_exeext conftest.
$ac_ext
14101 LIBS
=$ac_check_lib_save_LIBS
14103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14104 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14105 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14113 if test "${HAVE_XFT}" = "yes"; then
14115 cat >>confdefs.h
<<\_ACEOF
14120 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14122 CPPFLAGS
="$OLD_CPPFLAGS"
14123 CFLAGS
="$OLD_CFLAGS"
14125 fi # "${HAVE_XFT}" = "yes"
14126 fi # "$HAVE_XFT" != no
14127 fi # "x${with_xft}" != "xno"
14129 if test "$HAVE_XFT" != "yes"; then
14135 ## We used to allow building with FreeType and without Xft.
14136 ## However, the ftx font backend driver is not in good shape.
14137 if test "${HAVE_XFT}" = "yes"; then
14144 if test "${HAVE_FREETYPE}" = "yes"; then
14146 cat >>confdefs.h
<<\_ACEOF
14147 #define HAVE_FREETYPE 1
14150 if test "${with_libotf}" != "no"; then
14154 # Extract the first word of "pkg-config", so it can be a program name with args.
14155 set dummy pkg-config
; ac_word
=$2
14156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14157 $as_echo_n "checking for $ac_word... " >&6; }
14158 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14159 $as_echo_n "(cached) " >&6
14161 case $PKG_CONFIG in
14163 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14167 for as_dir
in $PATH
14170 test -z "$as_dir" && as_dir
=.
14171 for ac_exec_ext
in '' $ac_executable_extensions; do
14172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14173 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14185 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14186 if test -n "$PKG_CONFIG"; then
14187 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14188 $as_echo "$PKG_CONFIG" >&6; }
14190 { $as_echo "$as_me:$LINENO: result: no" >&5
14191 $as_echo "no" >&6; }
14196 if test "$PKG_CONFIG" = "no" ; then
14199 PKG_CONFIG_MIN_VERSION
=0.9.0
14200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14201 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14202 $as_echo_n "checking for libotf... " >&6; }
14204 if $PKG_CONFIG --exists "libotf" 2>&5; then
14205 { $as_echo "$as_me:$LINENO: result: yes" >&5
14206 $as_echo "yes" >&6; }
14209 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14210 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14211 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14212 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14213 $as_echo "$LIBOTF_CFLAGS" >&6; }
14215 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14216 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14217 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14218 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14219 $as_echo "$LIBOTF_LIBS" >&6; }
14221 { $as_echo "$as_me:$LINENO: result: no" >&5
14222 $as_echo "no" >&6; }
14225 ## If we have a custom action on failure, don't print errors, but
14226 ## do set a variable so people can do so.
14227 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14239 if test $succeeded = yes; then
14245 if test "$HAVE_LIBOTF" = "yes"; then
14247 cat >>confdefs.h
<<\_ACEOF
14248 #define HAVE_LIBOTF 1
14251 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14252 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14253 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14254 $as_echo_n "(cached) " >&6
14256 ac_check_lib_save_LIBS
=$LIBS
14258 cat >conftest.
$ac_ext <<_ACEOF
14261 cat confdefs.h
>>conftest.
$ac_ext
14262 cat >>conftest.
$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14271 char OTF_get_variation_glyphs ();
14275 return OTF_get_variation_glyphs ();
14280 rm -f conftest.
$ac_objext conftest
$ac_exeext
14281 if { (ac_try
="$ac_link"
14282 case "(($ac_try" in
14283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest$ac_exeext
14301 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LIBS=$ac_check_lib_save_LIBS
14314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14315 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14316 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14317 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14319 HAVE_OTF_GET_VARIATION_GLYPHS=no
14322 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14324 cat >>confdefs.h <<\_ACEOF
14325 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14334 if test "${HAVE_LIBOTF}" = yes; then
14335 if test "${with_m17n_flt}" != "no"; then
14339 # Extract the first word of "pkg-config", so it can be a program name with args.
14340 set dummy pkg-config; ac_word=$2
14341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14342 $as_echo_n "checking for $ac_word... " >&6; }
14343 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14344 $as_echo_n "(cached) " >&6
14346 case $PKG_CONFIG in
14348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14366 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14371 if test -n "$PKG_CONFIG"; then
14372 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14373 $as_echo "$PKG_CONFIG" >&6; }
14375 { $as_echo "$as_me:$LINENO: result: no" >&5
14376 $as_echo "no" >&6; }
14381 if test "$PKG_CONFIG" = "no" ; then
14384 PKG_CONFIG_MIN_VERSION=0.9.0
14385 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14386 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14387 $as_echo_n "checking for m17n-flt... " >&6; }
14389 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14390 { $as_echo "$as_me:$LINENO: result: yes" >&5
14391 $as_echo "yes" >&6; }
14394 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14395 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14396 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14397 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14398 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14400 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14401 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14402 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14403 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14404 $as_echo "$M17N_FLT_LIBS" >&6; }
14406 { $as_echo "$as_me:$LINENO: result: no" >&5
14407 $as_echo "no" >&6; }
14410 ## If we have a custom action on failure, don't print errors, but
14411 ## do set a variable so people can do so.
14412 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14424 if test $succeeded = yes; then
14430 if test "$HAVE_M17N_FLT" = "yes"; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_M17N_FLT 1
14445 ### End of font-backend (under X11) section.
14456 ### Use -lXpm if available, unless `--with-xpm=no
'.
14459 if test "${HAVE_X11}" = "yes"; then
14460 if test "${with_xpm}" != "no"; then
14461 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14462 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14463 $as_echo_n "checking for X11/xpm.h... " >&6; }
14464 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14465 $as_echo_n "(cached) " >&6
14467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14468 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14470 # Is the header compilable?
14471 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14472 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 $ac_includes_default
14480 #include <X11/xpm.h>
14482 rm -f conftest.$ac_objext
14483 if { (ac_try="$ac_compile"
14484 case "(($ac_try" in
14485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 *) ac_try_echo=$ac_try;;
14488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 $as_echo "$ac_try_echo") >&5
14490 (eval "$ac_compile") 2>conftest.er1
14492 grep -v '^
*+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest.$ac_objext; then
14500 ac_header_compiler=yes
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's
/^
/|
/' conftest.$ac_ext >&5
14505 ac_header_compiler=no
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14510 $as_echo "$ac_header_compiler" >&6; }
14512 # Is the header present?
14513 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14514 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <X11/xpm.h>
14523 if { (ac_try="$ac_cpp conftest.$ac_ext"
14524 case "(($ac_try" in
14525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526 *) ac_try_echo=$ac_try;;
14528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14529 $as_echo "$ac_try_echo") >&5
14530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14532 grep -v '^
*+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } >/dev/null && {
14537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14540 ac_header_preproc=yes
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's
/^
/|
/' conftest.$ac_ext >&5
14545 ac_header_preproc=no
14548 rm -f conftest.err conftest.$ac_ext
14549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14550 $as_echo "$ac_header_preproc" >&6; }
14552 # So? What about this header?
14553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14555 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14556 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14557 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14558 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14559 ac_header_preproc=yes
14562 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14563 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14565 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14567 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14569 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14571 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14573 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14577 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14578 $as_echo_n "checking for X11/xpm.h... " >&6; }
14579 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14580 $as_echo_n "(cached) " >&6
14582 ac_cv_header_X11_xpm_h=$ac_header_preproc
14584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14585 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14588 if test $ac_cv_header_X11_xpm_h = yes; then
14589 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14590 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14591 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14592 $as_echo_n "(cached) " >&6
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lXpm -lX11 $LIBS"
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
14609 char XpmReadFileToPixmap ();
14613 return XpmReadFileToPixmap ();
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626 (eval "$ac_link") 2>conftest.er1
14628 grep -v '^
*+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest$ac_exeext && {
14636 test "$cross_compiling" = yes ||
14637 $as_test_x conftest$ac_exeext
14639 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's
/^
/|
/' conftest.$ac_ext >&5
14644 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14647 rm -rf conftest.dSYM
14648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14653 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14654 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14661 if test "${HAVE_XPM}" = "yes"; then
14662 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14663 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include "X11/xpm.h"
14671 #ifndef XpmReturnAllocPixels
14672 no_return_alloc_pixels
14676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14677 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14685 if test "${HAVE_XPM}" = "yes"; then
14686 { $as_echo "$as_me:$LINENO: result: yes" >&5
14687 $as_echo "yes" >&6; }
14689 { $as_echo "$as_me:$LINENO: result: no" >&5
14690 $as_echo "no" >&6; }
14695 if test "${HAVE_XPM}" = "yes"; then
14697 cat >>confdefs.h <<\_ACEOF
14706 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14709 if test "${HAVE_X11}" = "yes"; then
14710 if test "${with_jpeg}" != "no"; then
14711 if test "${ac_cv_header_jerror_h+set}" = set; then
14712 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14713 $as_echo_n "checking for jerror.h... " >&6; }
14714 if test "${ac_cv_header_jerror_h+set}" = set; then
14715 $as_echo_n "(cached) " >&6
14717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14718 $as_echo "$ac_cv_header_jerror_h" >&6; }
14720 # Is the header compilable?
14721 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14722 $as_echo_n "checking jerror.h usability... " >&6; }
14723 cat >conftest.
$ac_ext <<_ACEOF
14726 cat confdefs.h
>>conftest.
$ac_ext
14727 cat >>conftest.
$ac_ext <<_ACEOF
14728 /* end confdefs.h. */
14729 $ac_includes_default
14730 #include <jerror.h>
14732 rm -f conftest.
$ac_objext
14733 if { (ac_try
="$ac_compile"
14734 case "(($ac_try" in
14735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14739 $as_echo "$ac_try_echo") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14742 grep -v '^ *+' conftest.er1 >conftest.err
14744 cat conftest.err >&5
14745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && {
14747 test -z "$ac_c_werror_flag" ||
14748 test ! -s conftest.err
14749 } && test -s conftest.$ac_objext; then
14750 ac_header_compiler=yes
14752 $as_echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_compiler=no
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14760 $as_echo "$ac_header_compiler" >&6; }
14762 # Is the header present?
14763 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14764 $as_echo_n "checking jerror.h presence... " >&6; }
14765 cat >conftest.$ac_ext <<_ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <jerror.h>
14773 if { (ac_try="$ac_cpp conftest.$ac_ext"
14774 case "(($ac_try" in
14775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14776 *) ac_try_echo
=$ac_try;;
14778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14779 $as_echo "$ac_try_echo") >&5
14780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14782 grep -v '^ *+' conftest.er1
>conftest.err
14784 cat conftest.err
>&5
14785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } >/dev
/null
&& {
14787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14790 ac_header_preproc
=yes
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.
$ac_ext >&5
14795 ac_header_preproc
=no
14798 rm -f conftest.err conftest.
$ac_ext
14799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14800 $as_echo "$ac_header_preproc" >&6; }
14802 # So? What about this header?
14803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14805 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14806 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14807 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14808 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14809 ac_header_preproc
=yes
14812 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14813 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14815 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14817 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14819 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14821 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14823 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14827 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14828 $as_echo_n "checking for jerror.h... " >&6; }
14829 if test "${ac_cv_header_jerror_h+set}" = set; then
14830 $as_echo_n "(cached) " >&6
14832 ac_cv_header_jerror_h
=$ac_header_preproc
14834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14835 $as_echo "$ac_cv_header_jerror_h" >&6; }
14838 if test $ac_cv_header_jerror_h = yes; then
14839 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14840 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14841 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14842 $as_echo_n "(cached) " >&6
14844 ac_check_lib_save_LIBS
=$LIBS
14845 LIBS
="-ljpeg $LIBS"
14846 cat >conftest.
$ac_ext <<_ACEOF
14849 cat confdefs.h
>>conftest.
$ac_ext
14850 cat >>conftest.
$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14853 /* Override any GCC internal prototype to avoid an error.
14854 Use char because int might match the return type of a GCC
14855 builtin and then its argument prototype would still apply. */
14859 char jpeg_destroy_compress ();
14863 return jpeg_destroy_compress ();
14868 rm -f conftest.
$ac_objext conftest
$ac_exeext
14869 if { (ac_try
="$ac_link"
14870 case "(($ac_try" in
14871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14875 $as_echo "$ac_try_echo") >&5
14876 (eval "$ac_link") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext && {
14886 test "$cross_compiling" = yes ||
14887 $as_test_x conftest$ac_exeext
14889 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14891 $as_echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14897 rm -rf conftest.dSYM
14898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14899 conftest$ac_exeext conftest.$ac_ext
14900 LIBS=$ac_check_lib_save_LIBS
14902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14903 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14904 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14914 if test "${HAVE_JPEG}" = "yes"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_JPEG 1
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14925 #include <jpeglib.h>
14926 version=JPEG_LIB_VERSION
14929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14930 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_JPEG 1
14936 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14937 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14943 if test "${HAVE_JPEG}" = "yes"; then
14949 ### Use -lpng if available, unless `--with-png=no
'.
14952 if test "${HAVE_X11}" = "yes"; then
14953 if test "${with_png}" != "no"; then
14954 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14955 # in /usr/include/libpng.
14958 for ac_header in png.h libpng/png.h
14960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 $as_echo_n "checking for $ac_header... " >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 $as_echo_n "(cached) " >&6
14967 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14968 $as_echo "$as_val"'`
14969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14970 $as_echo "$ac_res" >&6; }
14972 # Is the header compilable?
14973 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14974 $as_echo_n "checking $ac_header usability... " >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 $ac_includes_default
14982 #include <$ac_header>
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14991 $as_echo "$ac_try_echo") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14994 grep -v '^
*+' conftest.er1 >conftest.err
14996 cat conftest.err >&5
14997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } && {
14999 test -z "$ac_c_werror_flag" ||
15000 test ! -s conftest.err
15001 } && test -s conftest.$ac_objext; then
15002 ac_header_compiler=yes
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's
/^
/|
/' conftest.$ac_ext >&5
15007 ac_header_compiler=no
15010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15012 $as_echo "$ac_header_compiler" >&6; }
15014 # Is the header present?
15015 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15016 $as_echo_n "checking $ac_header presence... " >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 #include <$ac_header>
15025 if { (ac_try="$ac_cpp conftest.$ac_ext"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15034 grep -v '^
*+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } >/dev/null && {
15039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15042 ac_header_preproc=yes
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's
/^
/|
/' conftest.$ac_ext >&5
15047 ac_header_preproc=no
15050 rm -f conftest.err conftest.$ac_ext
15051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15052 $as_echo "$ac_header_preproc" >&6; }
15054 # So? What about this header?
15055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15058 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15060 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15061 ac_header_preproc=yes
15064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15065 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15067 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15069 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15071 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15073 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15075 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 $as_echo_n "checking for $ac_header... " >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 $as_echo_n "(cached) " >&6
15084 eval "$as_ac_Header=\$ac_header_preproc"
15086 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15087 $as_echo "$as_val"'`
15088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15089 $as_echo "$ac_res" >&6; }
15092 if test `eval 'as_val
=${'$as_ac_Header'}
15093 $as_echo "$as_val"'` = 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 $ac_cv_lib_png_png_get_channels = 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 $ac_cv_header_tiffio_h = 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 $ac_cv_lib_tiff_TIFFGetVersion = 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 $ac_cv_header_gif_lib_h = 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 $ac_cv_lib_gif_EGifPutExtensionLast = 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 $ac_cv_lib_ungif_EGifPutExtensionLast = 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 $ac_cv_header_gpm_h = 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 $ac_cv_lib_gpm_Gpm_Open = 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 $ac_cv_header_malloc_malloc_h = yes; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_MALLOC_MALLOC_H 1
16089 ### Use NeXTstep API to implement GUI.
16090 if test "${HAVE_NS}" = "yes"; then
16092 cat >>confdefs.h <<\_ACEOF
16096 if test "${NS_IMPL_COCOA}" = "yes"; then
16098 cat >>confdefs.h <<\_ACEOF
16099 #define NS_IMPL_COCOA 1
16104 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16106 cat >>confdefs.h <<\_ACEOF
16107 #define NS_IMPL_GNUSTEP 1
16110 # See also .m.o rule in Makefile.in */
16111 # FIXME: are all these flags really needed? Document here why. */
16112 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16113 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16115 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define NS_HAVE_NSINTEGER 1
16122 # We also have mouse menus.
16128 ### Use session management (-lSM -lICE) if available
16131 if test "${HAVE_X11}" = "yes"; then
16132 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16133 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16134 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16135 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16136 $as_echo_n "(cached) " >&6
16138 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16139 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16141 # Is the header compilable?
16142 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16143 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 $ac_includes_default
16151 #include <X11/SM/SMlib.h>
16153 rm -f conftest.$ac_objext
16154 if { (ac_try="$ac_compile"
16155 case "(($ac_try" in
16156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16157 *) ac_try_echo
=$ac_try;;
16159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16160 $as_echo "$ac_try_echo") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1
>conftest.err
16165 cat conftest.err
>&5
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.
$ac_objext; then
16171 ac_header_compiler
=yes
16173 $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.
$ac_ext >&5
16176 ac_header_compiler
=no
16179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16181 $as_echo "$ac_header_compiler" >&6; }
16183 # Is the header present?
16184 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16185 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16186 cat >conftest.
$ac_ext <<_ACEOF
16189 cat confdefs.h
>>conftest.
$ac_ext
16190 cat >>conftest.
$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <X11/SM/SMlib.h>
16194 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16195 case "(($ac_try" in
16196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16200 $as_echo "$ac_try_echo") >&5
16201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16203 grep -v '^ *+' conftest.er1 >conftest.err
16205 cat conftest.err >&5
16206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } >/dev/null && {
16208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16209 test ! -s conftest.err
16211 ac_header_preproc=yes
16213 $as_echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_header_preproc=no
16219 rm -f conftest.err conftest.$ac_ext
16220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16221 $as_echo "$ac_header_preproc" >&6; }
16223 # So? What about this header?
16224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16226 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16227 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16228 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16229 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16230 ac_header_preproc=yes
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16234 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16236 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16238 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16239 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16240 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16241 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16242 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16243 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16244 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16248 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16249 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16250 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16251 $as_echo_n "(cached) " >&6
16253 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16256 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16259 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16260 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16261 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16262 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16263 $as_echo_n "(cached) " >&6
16265 ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-lSM -lICE $LIBS"
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16274 /* Override any GCC internal prototype to avoid an error.
16275 Use char because int might match the return type of a GCC
16276 builtin and then its argument prototype would still apply. */
16280 char SmcOpenConnection ();
16284 return SmcOpenConnection ();
16289 rm -f conftest.$ac_objext conftest$ac_exeext
16290 if { (ac_try="$ac_link"
16291 case "(($ac_try" in
16292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16293 *) ac_try_echo
=$ac_try;;
16295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16296 $as_echo "$ac_try_echo") >&5
16297 (eval "$ac_link") 2>conftest.er1
16299 grep -v '^ *+' conftest.er1
>conftest.err
16301 cat conftest.err
>&5
16302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest
$ac_exeext && {
16307 test "$cross_compiling" = yes ||
16308 $as_test_x conftest
$ac_exeext
16310 ac_cv_lib_SM_SmcOpenConnection
=yes
16312 $as_echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.
$ac_ext >&5
16315 ac_cv_lib_SM_SmcOpenConnection
=no
16318 rm -rf conftest.dSYM
16319 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16320 conftest
$ac_exeext conftest.
$ac_ext
16321 LIBS
=$ac_check_lib_save_LIBS
16323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16324 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16325 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16333 if test "${HAVE_X_SM}" = "yes"; then
16335 cat >>confdefs.h
<<\_ACEOF
16336 #define HAVE_X_SM 1
16339 LIBXSM
="-lSM -lICE"
16342 *) LIBS
="$LIBXSM $LIBS" ;;
16348 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16349 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16350 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16351 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16352 $as_echo_n "(cached) " >&6
16354 cat >conftest.
$ac_ext <<_ACEOF
16357 cat confdefs.h
>>conftest.
$ac_ext
16358 cat >>conftest.
$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16369 rm -f conftest.
$ac_objext conftest
$ac_exeext
16370 if { (ac_try
="$ac_link"
16371 case "(($ac_try" in
16372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377 (eval "$ac_link") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext && {
16387 test "$cross_compiling" = yes ||
16388 $as_test_x conftest$ac_exeext
16390 emacs_cv_netdb_declares_h_errno=yes
16392 $as_echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 emacs_cv_netdb_declares_h_errno=no
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16402 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16403 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16404 if test $emacs_cv_netdb_declares_h_errno = yes; then
16406 cat >>confdefs.h <<\_ACEOF
16407 #define HAVE_H_ERRNO 1
16412 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16413 # for constant arguments. Useless!
16414 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16415 $as_echo_n "checking for working alloca.h... " >&6; }
16416 if test "${ac_cv_working_alloca_h+set}" = set; then
16417 $as_echo_n "(cached) " >&6
16419 cat >conftest.$ac_ext <<_ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 #include <alloca.h>
16429 char *p = (char *) alloca (2 * sizeof (int));
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (ac_try="$ac_link"
16437 case "(($ac_try" in
16438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16439 *) ac_try_echo
=$ac_try;;
16441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16442 $as_echo "$ac_try_echo") >&5
16443 (eval "$ac_link") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1
>conftest.err
16447 cat conftest.err
>&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest
$ac_exeext && {
16453 test "$cross_compiling" = yes ||
16454 $as_test_x conftest
$ac_exeext
16456 ac_cv_working_alloca_h
=yes
16458 $as_echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.
$ac_ext >&5
16461 ac_cv_working_alloca_h
=no
16464 rm -rf conftest.dSYM
16465 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16466 conftest
$ac_exeext conftest.
$ac_ext
16468 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16469 $as_echo "$ac_cv_working_alloca_h" >&6; }
16470 if test $ac_cv_working_alloca_h = yes; then
16472 cat >>confdefs.h
<<\_ACEOF
16473 #define HAVE_ALLOCA_H 1
16478 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16479 $as_echo_n "checking for alloca... " >&6; }
16480 if test "${ac_cv_func_alloca_works+set}" = set; then
16481 $as_echo_n "(cached) " >&6
16483 cat >conftest.
$ac_ext <<_ACEOF
16486 cat confdefs.h
>>conftest.
$ac_ext
16487 cat >>conftest.
$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 # define alloca __builtin_alloca
16493 # include <malloc.h>
16494 # define alloca _alloca
16496 # ifdef HAVE_ALLOCA_H
16497 # include <alloca.h>
16502 # ifndef alloca /* predefined by HP cc +Olibcalls */
16513 char *p = (char *) alloca (1);
16519 rm -f conftest.
$ac_objext conftest
$ac_exeext
16520 if { (ac_try
="$ac_link"
16521 case "(($ac_try" in
16522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526 $as_echo "$ac_try_echo") >&5
16527 (eval "$ac_link") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext && {
16537 test "$cross_compiling" = yes ||
16538 $as_test_x conftest$ac_exeext
16540 ac_cv_func_alloca_works=yes
16542 $as_echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16545 ac_cv_func_alloca_works=no
16548 rm -rf conftest.dSYM
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16552 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16553 $as_echo "$ac_cv_func_alloca_works" >&6; }
16555 if test $ac_cv_func_alloca_works = yes; then
16557 cat >>confdefs.h <<\_ACEOF
16558 #define HAVE_ALLOCA 1
16562 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16563 # that cause trouble. Some versions do not even contain alloca or
16564 # contain a buggy version. If you still want to use their alloca,
16565 # use ar to extract alloca.o from them instead of compiling alloca.c.
16567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16569 cat >>confdefs.h <<\_ACEOF
16574 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16575 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16576 if test "${ac_cv_os_cray+set}" = set; then
16577 $as_echo_n "(cached
) " >&6
16579 cat >conftest.$ac_ext <<_ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 #if defined CRAY && ! defined CRAY2
16592 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16593 $EGREP "webecray
" >/dev/null 2>&1; then
16601 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16602 $as_echo "$ac_cv_os_cray" >&6; }
16603 if test $ac_cv_os_cray = yes; then
16604 for ac_func in _getb67 GETB67 getb67; do
16605 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16606 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16607 $as_echo_n "checking
for $ac_func...
" >&6; }
16608 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16609 $as_echo_n "(cached
) " >&6
16611 cat >conftest.$ac_ext <<_ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16619 #define $ac_func innocuous_$ac_func
16621 /* System header to define __stub macros and hopefully few prototypes,
16622 which can conflict with char $ac_func (); below.
16623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16624 <limits.h> exists even on freestanding compilers. */
16627 # include <limits.h>
16629 # include <assert.h>
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16641 /* The GNU C library defines this for functions which it implements
16642 to always fail with ENOSYS. Some functions are actually named
16643 something starting with __ and the normal name is an alias. */
16644 #if defined __stub_$ac_func || defined __stub___$ac_func
16651 return $ac_func ();
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16663 $as_echo "$ac_try_echo") >&5
16664 (eval "$ac_link") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext && {
16674 test "$cross_compiling" = yes ||
16675 $as_test_x conftest$ac_exeext
16677 eval "$as_ac_var=yes"
16679 $as_echo "$as_me: failed program was
:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 eval "$as_ac_var=no
"
16685 rm -rf conftest.dSYM
16686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16689 ac_res=`eval 'as_val=${'$as_ac_var'}
16690 $as_echo "$as_val"'`
16691 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16692 $as_echo "$ac_res" >&6; }
16693 if test `eval 'as_val=${'$as_ac_var'}
16694 $as_echo "$as_val"'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define CRAY_STACKSEG_END $ac_func
16706 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16707 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16708 if test "${ac_cv_c_stack_direction+set}" = set; then
16709 $as_echo_n "(cached
) " >&6
16711 if test "$cross_compiling" = yes; then
16712 ac_cv_c_stack_direction=0
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16722 find_stack_direction ()
16724 static char *addr = 0;
16729 return find_stack_direction ();
16732 return (&dummy > addr) ? 1 : -1;
16738 return find_stack_direction () < 0;
16741 rm -f conftest$ac_exeext
16742 if { (ac_try="$ac_link"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16748 $as_echo "$ac_try_echo") >&5
16749 (eval "$ac_link") 2>&5
16751 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_try") 2>&5
16761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_c_stack_direction=1
16765 $as_echo "$as_me: program exited with status
$ac_status" >&5
16766 $as_echo "$as_me: failed program was
:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 ( exit $ac_status )
16770 ac_cv_c_stack_direction=-1
16772 rm -rf conftest.dSYM
16773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16778 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16779 $as_echo "$ac_cv_c_stack_direction" >&6; }
16781 cat >>confdefs.h <<_ACEOF
16782 #define STACK_DIRECTION $ac_cv_c_stack_direction
16789 if test x"$ac_cv_func_alloca_works" != xyes; then
16790 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16791 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16792 { (exit 1); exit 1; }; }
16795 # fmod, logb, and frexp are found in -lm on most systems.
16796 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16798 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16799 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16800 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16801 $as_echo_n "(cached
) " >&6
16803 ac_check_lib_save_LIBS=$LIBS
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (ac_try="$ac_link"
16829 case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16833 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16834 $as_echo "$ac_try_echo") >&5
16835 (eval "$ac_link") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1 >conftest.err
16839 cat conftest.err >&5
16840 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest$ac_exeext && {
16845 test "$cross_compiling" = yes ||
16846 $as_test_x conftest$ac_exeext
16848 ac_cv_lib_m_sqrt=yes
16850 $as_echo "$as_me: failed program was
:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_cv_lib_m_sqrt=no
16856 rm -rf conftest.dSYM
16857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16858 conftest$ac_exeext conftest.$ac_ext
16859 LIBS=$ac_check_lib_save_LIBS
16861 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16862 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16863 if test $ac_cv_lib_m_sqrt = yes; then
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_LIBM 1
16873 # Check for mail-locking functions in a "mail" library. Probably this should
16874 # have the same check as for liblockfile below.
16875 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16876 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16877 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16878 $as_echo_n "(cached
) " >&6
16880 ac_check_lib_save_LIBS=$LIBS
16881 LIBS="-lmail $LIBS"
16882 cat >conftest.$ac_ext <<_ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16889 /* Override any GCC internal prototype to avoid an error.
16890 Use char because int might match the return type of a GCC
16891 builtin and then its argument prototype would still apply. */
16899 return maillock ();
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16911 $as_echo "$ac_try_echo") >&5
16912 (eval "$ac_link") 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest$ac_exeext && {
16922 test "$cross_compiling" = yes ||
16923 $as_test_x conftest$ac_exeext
16925 ac_cv_lib_mail_maillock=yes
16927 $as_echo "$as_me: failed program was
:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 ac_cv_lib_mail_maillock=no
16933 rm -rf conftest.dSYM
16934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16935 conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16938 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16939 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16940 if test $ac_cv_lib_mail_maillock = yes; then
16946 if test $have_mail = yes; then
16948 LIBS="$LIBS_MAIL $LIBS"
16950 cat >>confdefs.h <<\_ACEOF
16951 #define HAVE_LIBMAIL 1
16957 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16958 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16959 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16960 $as_echo_n "(cached
) " >&6
16962 ac_check_lib_save_LIBS=$LIBS
16963 LIBS="-llockfile $LIBS"
16964 cat >conftest.$ac_ext <<_ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16981 return maillock ();
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16993 $as_echo "$ac_try_echo") >&5
16994 (eval "$ac_link") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest$ac_exeext && {
17004 test "$cross_compiling" = yes ||
17005 $as_test_x conftest$ac_exeext
17007 ac_cv_lib_lockfile_maillock=yes
17009 $as_echo "$as_me: failed program was
:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 ac_cv_lib_lockfile_maillock=no
17015 rm -rf conftest.dSYM
17016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17017 conftest$ac_exeext conftest.$ac_ext
17018 LIBS=$ac_check_lib_save_LIBS
17020 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17021 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17022 if test $ac_cv_lib_lockfile_maillock = yes; then
17028 if test $have_lockfile = yes; then
17029 LIBS_MAIL=-llockfile
17030 LIBS="$LIBS_MAIL $LIBS"
17032 cat >>confdefs.h <<\_ACEOF
17033 #define HAVE_LIBLOCKFILE 1
17037 # If we have the shared liblockfile, assume we must use it for mail
17038 # locking (e.g. Debian). If we couldn't link against liblockfile
17039 # (no liblockfile.a installed), ensure that we don't need to.
17040 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17041 set dummy liblockfile.so; ac_word=$2
17042 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17043 $as_echo_n "checking
for $ac_word...
" >&6; }
17044 if test "${ac_cv_prog_liblockfile+set}" = set; then
17045 $as_echo_n "(cached
) " >&6
17047 if test -n "$liblockfile"; then
17048 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17051 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17052 for as_dir in $as_dummy
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17058 ac_cv_prog_liblockfile="yes"
17059 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17066 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17069 liblockfile=$ac_cv_prog_liblockfile
17070 if test -n "$liblockfile"; then
17071 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17072 $as_echo "$liblockfile" >&6; }
17074 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17075 $as_echo "no
" >&6; }
17079 if test $ac_cv_prog_liblockfile = yes; then
17080 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17081 This probably means that movemail could lose mail.
17082 There may be a \`development' package to
install containing liblockfile.
" >&5
17083 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17084 This probably means that movemail could lose mail.
17085 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17086 { (exit 1); exit 1; }; }
17090 for ac_func in touchlock
17092 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17093 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17094 $as_echo_n "checking
for $ac_func...
" >&6; }
17095 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17096 $as_echo_n "(cached
) " >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106 #define $ac_func innocuous_$ac_func
17108 /* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char $ac_func (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17114 # include <limits.h>
17116 # include <assert.h>
17121 /* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17128 /* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131 #if defined __stub_$ac_func || defined __stub___$ac_func
17138 return $ac_func ();
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (ac_try="$ac_link"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17150 $as_echo "$ac_try_echo") >&5
17151 (eval "$ac_link") 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17157 (exit $ac_status); } && {
17158 test -z "$ac_c_werror_flag" ||
17159 test ! -s conftest.err
17160 } && test -s conftest$ac_exeext && {
17161 test "$cross_compiling" = yes ||
17162 $as_test_x conftest$ac_exeext
17164 eval "$as_ac_var=yes"
17166 $as_echo "$as_me: failed program was
:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 eval "$as_ac_var=no
"
17172 rm -rf conftest.dSYM
17173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17174 conftest$ac_exeext conftest.$ac_ext
17176 ac_res=`eval 'as_val=${'$as_ac_var'}
17177 $as_echo "$as_val"'`
17178 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17179 $as_echo "$ac_res" >&6; }
17180 if test `eval 'as_val=${'$as_ac_var'}
17181 $as_echo "$as_val"'` = yes; then
17182 cat >>confdefs.h <<_ACEOF
17183 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17190 for ac_header in maillock.h
17192 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17193 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17194 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17195 $as_echo_n "checking
for $ac_header...
" >&6; }
17196 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17197 $as_echo_n "(cached
) " >&6
17199 ac_res=`eval 'as_val=${'$as_ac_Header'}
17200 $as_echo "$as_val"'`
17201 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17202 $as_echo "$ac_res" >&6; }
17204 # Is the header compilable?
17205 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17206 $as_echo_n "checking
$ac_header usability...
" >&6; }
17207 cat >conftest.$ac_ext <<_ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 $ac_includes_default
17214 #include <$ac_header>
17216 rm -f conftest.$ac_objext
17217 if { (ac_try="$ac_compile"
17218 case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17223 $as_echo "$ac_try_echo") >&5
17224 (eval "$ac_compile") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest.$ac_objext; then
17234 ac_header_compiler=yes
17236 $as_echo "$as_me: failed program was
:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_compiler=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17244 $as_echo "$ac_header_compiler" >&6; }
17246 # Is the header present?
17247 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17248 $as_echo_n "checking
$ac_header presence...
" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 #include <$ac_header>
17257 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17270 (exit $ac_status); } >/dev/null && {
17271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17274 ac_header_preproc=yes
17276 $as_echo "$as_me: failed program was
:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17279 ac_header_preproc=no
17282 rm -f conftest.err conftest.$ac_ext
17283 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17284 $as_echo "$ac_header_preproc" >&6; }
17286 # So? What about this header?
17287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17289 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17290 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17291 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17293 ac_header_preproc=yes
17296 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17297 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17299 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17300 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17301 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17302 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17303 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17304 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17306 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17307 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17311 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17312 $as_echo_n "checking
for $ac_header...
" >&6; }
17313 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17314 $as_echo_n "(cached
) " >&6
17316 eval "$as_ac_Header=\
$ac_header_preproc"
17318 ac_res=`eval 'as_val=${'$as_ac_Header'}
17319 $as_echo "$as_val"'`
17320 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17321 $as_echo "$ac_res" >&6; }
17324 if test `eval 'as_val=${'$as_ac_Header'}
17325 $as_echo "$as_val"'` = yes; then
17326 cat >>confdefs.h <<_ACEOF
17327 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17407 for ac_func in gethostname getdomainname dup2 \
17408 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17409 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17410 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17411 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17412 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17413 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17414 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17415 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17416 cfmakeraw cfsetspeed
17418 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17419 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17420 $as_echo_n "checking
for $ac_func...
" >&6; }
17421 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17422 $as_echo_n "(cached
) " >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define $ac_func innocuous_$ac_func
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17440 # include <limits.h>
17442 # include <assert.h>
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined __stub_$ac_func || defined __stub___$ac_func
17464 return $ac_func ();
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17476 $as_echo "$ac_try_echo") >&5
17477 (eval "$ac_link") 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest$ac_exeext && {
17487 test "$cross_compiling" = yes ||
17488 $as_test_x conftest$ac_exeext
17490 eval "$as_ac_var=yes"
17492 $as_echo "$as_me: failed program was
:" >&5
17493 sed 's/^/| /' conftest.$ac_ext >&5
17495 eval "$as_ac_var=no
"
17498 rm -rf conftest.dSYM
17499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17500 conftest$ac_exeext conftest.$ac_ext
17502 ac_res=`eval 'as_val=${'$as_ac_var'}
17503 $as_echo "$as_val"'`
17504 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17505 $as_echo "$ac_res" >&6; }
17506 if test `eval 'as_val=${'$as_ac_var'}
17507 $as_echo "$as_val"'` = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17517 for ac_header in sys/un.h
17519 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17521 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17522 $as_echo_n "checking
for $ac_header...
" >&6; }
17523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17524 $as_echo_n "(cached
) " >&6
17526 ac_res=`eval 'as_val=${'$as_ac_Header'}
17527 $as_echo "$as_val"'`
17528 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17529 $as_echo "$ac_res" >&6; }
17531 # Is the header compilable?
17532 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17533 $as_echo_n "checking
$ac_header usability...
" >&6; }
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17540 $ac_includes_default
17541 #include <$ac_header>
17543 rm -f conftest.$ac_objext
17544 if { (ac_try="$ac_compile"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17550 $as_echo "$ac_try_echo") >&5
17551 (eval "$ac_compile") 2>conftest.er1
17553 grep -v '^ *+' conftest.er1 >conftest.err
17555 cat conftest.err >&5
17556 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17557 (exit $ac_status); } && {
17558 test -z "$ac_c_werror_flag" ||
17559 test ! -s conftest.err
17560 } && test -s conftest.$ac_objext; then
17561 ac_header_compiler=yes
17563 $as_echo "$as_me: failed program was
:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 ac_header_compiler=no
17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17570 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17571 $as_echo "$ac_header_compiler" >&6; }
17573 # Is the header present?
17574 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17575 $as_echo_n "checking
$ac_header presence...
" >&6; }
17576 cat >conftest.$ac_ext <<_ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17582 #include <$ac_header>
17584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17590 $as_echo "$ac_try_echo") >&5
17591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17593 grep -v '^ *+' conftest.er1 >conftest.err
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17597 (exit $ac_status); } >/dev/null && {
17598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17601 ac_header_preproc=yes
17603 $as_echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_header_preproc=no
17609 rm -f conftest.err conftest.$ac_ext
17610 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17611 $as_echo "$ac_header_preproc" >&6; }
17613 # So? What about this header?
17614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17616 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17617 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17618 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17620 ac_header_preproc=yes
17623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17624 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17626 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17628 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17630 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17633 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17634 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17638 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17639 $as_echo_n "checking
for $ac_header...
" >&6; }
17640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17641 $as_echo_n "(cached
) " >&6
17643 eval "$as_ac_Header=\
$ac_header_preproc"
17645 ac_res=`eval 'as_val=${'$as_ac_Header'}
17646 $as_echo "$as_val"'`
17647 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17648 $as_echo "$ac_res" >&6; }
17651 if test `eval 'as_val=${'$as_ac_Header'}
17652 $as_echo "$as_val"'` = yes; then
17653 cat >>confdefs.h <<_ACEOF
17654 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17666 for ac_header in $ac_header_list
17668 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17670 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17671 $as_echo_n "checking
for $ac_header...
" >&6; }
17672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17673 $as_echo_n "(cached
) " >&6
17675 ac_res=`eval 'as_val=${'$as_ac_Header'}
17676 $as_echo "$as_val"'`
17677 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17678 $as_echo "$ac_res" >&6; }
17680 # Is the header compilable?
17681 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17682 $as_echo_n "checking
$ac_header usability...
" >&6; }
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #include <$ac_header>
17692 rm -f conftest.$ac_objext
17693 if { (ac_try="$ac_compile"
17694 case "(($ac_try" in
17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696 *) ac_try_echo=$ac_try;;
17698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17699 $as_echo "$ac_try_echo") >&5
17700 (eval "$ac_compile") 2>conftest.er1
17702 grep -v '^ *+' conftest.er1 >conftest.err
17704 cat conftest.err >&5
17705 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17706 (exit $ac_status); } && {
17707 test -z "$ac_c_werror_flag" ||
17708 test ! -s conftest.err
17709 } && test -s conftest.$ac_objext; then
17710 ac_header_compiler=yes
17712 $as_echo "$as_me: failed program was
:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17715 ac_header_compiler=no
17718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17719 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17720 $as_echo "$ac_header_compiler" >&6; }
17722 # Is the header present?
17723 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17724 $as_echo_n "checking
$ac_header presence...
" >&6; }
17725 cat >conftest.$ac_ext <<_ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 #include <$ac_header>
17733 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17739 $as_echo "$ac_try_echo") >&5
17740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17746 (exit $ac_status); } >/dev/null && {
17747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17748 test ! -s conftest.err
17750 ac_header_preproc=yes
17752 $as_echo "$as_me: failed program was
:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 ac_header_preproc=no
17758 rm -f conftest.err conftest.$ac_ext
17759 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17760 $as_echo "$ac_header_preproc" >&6; }
17762 # So? What about this header?
17763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17766 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17767 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17769 ac_header_preproc=yes
17772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17773 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17775 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17777 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17779 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17782 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17783 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17787 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17788 $as_echo_n "checking
for $ac_header...
" >&6; }
17789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17790 $as_echo_n "(cached
) " >&6
17792 eval "$as_ac_Header=\
$ac_header_preproc"
17794 ac_res=`eval 'as_val=${'$as_ac_Header'}
17795 $as_echo "$as_val"'`
17796 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17797 $as_echo "$ac_res" >&6; }
17800 if test `eval 'as_val=${'$as_ac_Header'}
17801 $as_echo "$as_val"'` = yes; then
17802 cat >>confdefs.h <<_ACEOF
17803 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17818 for ac_func in $ac_func_list
17820 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17821 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17822 $as_echo_n "checking
for $ac_func...
" >&6; }
17823 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17824 $as_echo_n "(cached
) " >&6
17826 cat >conftest.$ac_ext <<_ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17834 #define $ac_func innocuous_$ac_func
17836 /* System header to define __stub macros and hopefully few prototypes,
17837 which can conflict with char $ac_func (); below.
17838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17839 <limits.h> exists even on freestanding compilers. */
17842 # include <limits.h>
17844 # include <assert.h>
17849 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17856 /* The GNU C library defines this for functions which it implements
17857 to always fail with ENOSYS. Some functions are actually named
17858 something starting with __ and the normal name is an alias. */
17859 #if defined __stub_$ac_func || defined __stub___$ac_func
17866 return $ac_func ();
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_link") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest$ac_exeext && {
17889 test "$cross_compiling" = yes ||
17890 $as_test_x conftest$ac_exeext
17892 eval "$as_ac_var=yes"
17894 $as_echo "$as_me: failed program was
:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17897 eval "$as_ac_var=no
"
17900 rm -rf conftest.dSYM
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval 'as_val=${'$as_ac_var'}
17905 $as_echo "$as_val"'`
17906 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17907 $as_echo "$ac_res" >&6; }
17908 if test `eval 'as_val=${'$as_ac_var'}
17909 $as_echo "$as_val"'` = 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 $ac_cv_func_getloadavg = 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 if test `eval 'as_val=${'$as_ac_var'}
18394 $as_echo "$as_val"'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18403 # Solaris has libkstat which does not require root.
18405 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18406 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18407 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18408 $as_echo_n "(cached
) " >&6
18410 ac_check_lib_save_LIBS=$LIBS
18411 LIBS="-lkstat $LIBS"
18412 cat >conftest.$ac_ext <<_ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18419 /* Override any GCC internal prototype to avoid an error.
18420 Use char because int might match the return type of a GCC
18421 builtin and then its argument prototype would still apply. */
18425 char kstat_open ();
18429 return kstat_open ();
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18441 $as_echo "$ac_try_echo") >&5
18442 (eval "$ac_link") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18448 (exit $ac_status); } && {
18449 test -z "$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 } && test -s conftest$ac_exeext && {
18452 test "$cross_compiling" = yes ||
18453 $as_test_x conftest$ac_exeext
18455 ac_cv_lib_kstat_kstat_open=yes
18457 $as_echo "$as_me: failed program was
:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_lib_kstat_kstat_open=no
18463 rm -rf conftest.dSYM
18464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18469 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18470 if test $ac_cv_lib_kstat_kstat_open = yes; then
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_LIBKSTAT 1
18475 LIBS="-lkstat $LIBS"
18479 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18481 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18482 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18483 # to get the right answer into the cache.
18484 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18485 if test $ac_have_func = no; then
18486 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18487 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18488 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18489 $as_echo_n "(cached
) " >&6
18491 ac_check_lib_save_LIBS=$LIBS
18493 cat >conftest.$ac_ext <<_ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18500 /* Override any GCC internal prototype to avoid an error.
18501 Use char because int might match the return type of a GCC
18502 builtin and then its argument prototype would still apply. */
18510 return elf_begin ();
18515 rm -f conftest.$ac_objext conftest$ac_exeext
18516 if { (ac_try="$ac_link"
18517 case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18521 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18522 $as_echo "$ac_try_echo") >&5
18523 (eval "$ac_link") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest$ac_exeext && {
18533 test "$cross_compiling" = yes ||
18534 $as_test_x conftest$ac_exeext
18536 ac_cv_lib_elf_elf_begin=yes
18538 $as_echo "$as_me: failed program was
:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18541 ac_cv_lib_elf_elf_begin=no
18544 rm -rf conftest.dSYM
18545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18546 conftest$ac_exeext conftest.$ac_ext
18547 LIBS=$ac_check_lib_save_LIBS
18549 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18550 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18551 if test $ac_cv_lib_elf_elf_begin = yes; then
18556 if test $ac_have_func = no; then
18557 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18558 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18559 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18560 $as_echo_n "(cached
) " >&6
18562 ac_check_lib_save_LIBS=$LIBS
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18581 return kvm_open ();
18586 rm -f conftest.$ac_objext conftest$ac_exeext
18587 if { (ac_try="$ac_link"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18593 $as_echo "$ac_try_echo") >&5
18594 (eval "$ac_link") 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest$ac_exeext && {
18604 test "$cross_compiling" = yes ||
18605 $as_test_x conftest$ac_exeext
18607 ac_cv_lib_kvm_kvm_open=yes
18609 $as_echo "$as_me: failed program was
:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 ac_cv_lib_kvm_kvm_open=no
18615 rm -rf conftest.dSYM
18616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18617 conftest$ac_exeext conftest.$ac_ext
18618 LIBS=$ac_check_lib_save_LIBS
18620 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18621 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18622 if test $ac_cv_lib_kvm_kvm_open = yes; then
18626 # Check for the 4.4BSD definition of getloadavg.
18627 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18628 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18629 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18630 $as_echo_n "(cached
) " >&6
18632 ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lutil $LIBS"
18634 cat >conftest.$ac_ext <<_ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18647 char getloadavg ();
18651 return getloadavg ();
18656 rm -f conftest.$ac_objext conftest$ac_exeext
18657 if { (ac_try="$ac_link"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18663 $as_echo "$ac_try_echo") >&5
18664 (eval "$ac_link") 2>conftest.er1
18666 grep -v '^ *+' conftest.er1 >conftest.err
18668 cat conftest.err >&5
18669 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest$ac_exeext && {
18674 test "$cross_compiling" = yes ||
18675 $as_test_x conftest$ac_exeext
18677 ac_cv_lib_util_getloadavg=yes
18679 $as_echo "$as_me: failed program was
:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_cv_lib_util_getloadavg=no
18685 rm -rf conftest.dSYM
18686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18691 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18692 if test $ac_cv_lib_util_getloadavg = yes; then
18693 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18698 if test $ac_have_func = no; then
18699 # There is a commonly available library for RS/6000 AIX.
18700 # Since it is not a standard part of AIX, it might be installed locally.
18701 ac_getloadavg_LIBS=$LIBS
18702 LIBS="-L/usr
/local
/lib
$LIBS"
18703 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18704 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18705 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18706 $as_echo_n "(cached
) " >&6
18708 ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lgetloadavg $LIBS"
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 /* Override any GCC internal prototype to avoid an error.
18718 Use char because int might match the return type of a GCC
18719 builtin and then its argument prototype would still apply. */
18723 char getloadavg ();
18727 return getloadavg ();
18732 rm -f conftest.$ac_objext conftest$ac_exeext
18733 if { (ac_try="$ac_link"
18734 case "(($ac_try" in
18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736 *) ac_try_echo=$ac_try;;
18738 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18739 $as_echo "$ac_try_echo") >&5
18740 (eval "$ac_link") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18746 (exit $ac_status); } && {
18747 test -z "$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18749 } && test -s conftest$ac_exeext && {
18750 test "$cross_compiling" = yes ||
18751 $as_test_x conftest$ac_exeext
18753 ac_cv_lib_getloadavg_getloadavg=yes
18755 $as_echo "$as_me: failed program was
:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18758 ac_cv_lib_getloadavg_getloadavg=no
18761 rm -rf conftest.dSYM
18762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18763 conftest$ac_exeext conftest.$ac_ext
18764 LIBS=$ac_check_lib_save_LIBS
18766 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18767 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18768 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18769 LIBS="-lgetloadavg $LIBS"
18771 LIBS=$ac_getloadavg_LIBS
18776 # Make sure it is really in the library, if we think we found it,
18777 # otherwise set up the replacement function.
18779 for ac_func in getloadavg
18781 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18782 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18783 $as_echo_n "checking
for $ac_func...
" >&6; }
18784 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18785 $as_echo_n "(cached
) " >&6
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18795 #define $ac_func innocuous_$ac_func
18797 /* System header to define __stub macros and hopefully few prototypes,
18798 which can conflict with char $ac_func (); below.
18799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18800 <limits.h> exists even on freestanding compilers. */
18803 # include <limits.h>
18805 # include <assert.h>
18810 /* Override any GCC internal prototype to avoid an error.
18811 Use char because int might match the return type of a GCC
18812 builtin and then its argument prototype would still apply. */
18817 /* The GNU C library defines this for functions which it implements
18818 to always fail with ENOSYS. Some functions are actually named
18819 something starting with __ and the normal name is an alias. */
18820 #if defined __stub_$ac_func || defined __stub___$ac_func
18827 return $ac_func ();
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18839 $as_echo "$ac_try_echo") >&5
18840 (eval "$ac_link") 2>conftest.er1
18842 grep -v '^ *+' conftest.er1 >conftest.err
18844 cat conftest.err >&5
18845 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18846 (exit $ac_status); } && {
18847 test -z "$ac_c_werror_flag" ||
18848 test ! -s conftest.err
18849 } && test -s conftest$ac_exeext && {
18850 test "$cross_compiling" = yes ||
18851 $as_test_x conftest$ac_exeext
18853 eval "$as_ac_var=yes"
18855 $as_echo "$as_me: failed program was
:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 eval "$as_ac_var=no
"
18861 rm -rf conftest.dSYM
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18865 ac_res=`eval 'as_val=${'$as_ac_var'}
18866 $as_echo "$as_val"'`
18867 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18868 $as_echo "$ac_res" >&6; }
18869 if test `eval 'as_val=${'$as_ac_var'}
18870 $as_echo "$as_val"'` = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18876 case " $LIBOBJS " in
18877 *" getloadavg.
$ac_objext "* ) ;;
18878 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18883 cat >>confdefs.h <<\_ACEOF
18884 #define C_GETLOADAVG 1
18887 # Figure out what our getloadavg.c needs.
18889 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18890 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18891 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18892 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18893 $as_echo_n "(cached
) " >&6
18895 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18896 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18898 # Is the header compilable?
18899 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18900 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 $ac_includes_default
18908 #include <sys/dg_sys_info.h>
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_compile") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest.$ac_objext; then
18928 ac_header_compiler=yes
18930 $as_echo "$as_me: failed program was
:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18933 ac_header_compiler=no
18936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18937 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18938 $as_echo "$ac_header_compiler" >&6; }
18940 # Is the header present?
18941 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18942 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18943 cat >conftest.$ac_ext <<_ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 #include <sys/dg_sys_info.h>
18951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18952 case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18956 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18957 $as_echo "$ac_try_echo") >&5
18958 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18960 grep -v '^ *+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18964 (exit $ac_status); } >/dev/null && {
18965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18968 ac_header_preproc=yes
18970 $as_echo "$as_me: failed program was
:" >&5
18971 sed 's/^/| /' conftest.$ac_ext >&5
18973 ac_header_preproc=no
18976 rm -f conftest.err conftest.$ac_ext
18977 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18978 $as_echo "$ac_header_preproc" >&6; }
18980 # So? What about this header?
18981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18983 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18984 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18985 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18986 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18987 ac_header_preproc=yes
18990 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18991 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18992 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18993 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18995 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18997 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18999 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19001 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19005 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19006 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19007 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19008 $as_echo_n "(cached
) " >&6
19010 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19012 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19013 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19016 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19019 cat >>confdefs.h <<\_ACEOF
19024 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19025 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19026 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19027 $as_echo_n "(cached
) " >&6
19029 ac_check_lib_save_LIBS=$LIBS
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19044 char dg_sys_info ();
19048 return dg_sys_info ();
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19060 $as_echo "$ac_try_echo") >&5
19061 (eval "$ac_link") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest$ac_exeext && {
19071 test "$cross_compiling" = yes ||
19072 $as_test_x conftest$ac_exeext
19074 ac_cv_lib_dgc_dg_sys_info=yes
19076 $as_echo "$as_me: failed program was
:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_lib_dgc_dg_sys_info=no
19082 rm -rf conftest.dSYM
19083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19084 conftest$ac_exeext conftest.$ac_ext
19085 LIBS=$ac_check_lib_save_LIBS
19087 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19088 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19089 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19090 cat >>confdefs.h <<_ACEOF
19091 #define HAVE_LIBDGC 1
19102 if test "${ac_cv_header_locale_h+set}" = set; then
19103 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19104 $as_echo_n "checking
for locale.h...
" >&6; }
19105 if test "${ac_cv_header_locale_h+set}" = set; then
19106 $as_echo_n "(cached
) " >&6
19108 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19109 $as_echo "$ac_cv_header_locale_h" >&6; }
19111 # Is the header compilable?
19112 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19113 $as_echo_n "checking locale.h usability...
" >&6; }
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 $ac_includes_default
19121 #include <locale.h>
19123 rm -f conftest.$ac_objext
19124 if { (ac_try="$ac_compile"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19130 $as_echo "$ac_try_echo") >&5
19131 (eval "$ac_compile") 2>conftest.er1
19133 grep -v '^ *+' conftest.er1 >conftest.err
19135 cat conftest.err >&5
19136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19137 (exit $ac_status); } && {
19138 test -z "$ac_c_werror_flag" ||
19139 test ! -s conftest.err
19140 } && test -s conftest.$ac_objext; then
19141 ac_header_compiler=yes
19143 $as_echo "$as_me: failed program was
:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_compiler=no
19149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19151 $as_echo "$ac_header_compiler" >&6; }
19153 # Is the header present?
19154 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19155 $as_echo_n "checking locale.h presence...
" >&6; }
19156 cat >conftest.$ac_ext <<_ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h. */
19162 #include <locale.h>
19164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19165 case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19170 $as_echo "$ac_try_echo") >&5
19171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19177 (exit $ac_status); } >/dev/null && {
19178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19181 ac_header_preproc=yes
19183 $as_echo "$as_me: failed program was
:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_header_preproc=no
19189 rm -f conftest.err conftest.$ac_ext
19190 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19191 $as_echo "$ac_header_preproc" >&6; }
19193 # So? What about this header?
19194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19196 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19197 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19198 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19199 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19200 ac_header_preproc=yes
19203 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19204 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19205 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19206 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19208 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19210 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19212 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19213 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19214 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19218 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19219 $as_echo_n "checking
for locale.h...
" >&6; }
19220 if test "${ac_cv_header_locale_h+set}" = set; then
19221 $as_echo_n "(cached
) " >&6
19223 ac_cv_header_locale_h=$ac_header_preproc
19225 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19226 $as_echo "$ac_cv_header_locale_h" >&6; }
19232 for ac_func in setlocale
19234 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19235 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19236 $as_echo_n "checking
for $ac_func...
" >&6; }
19237 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19238 $as_echo_n "(cached
) " >&6
19240 cat >conftest.$ac_ext <<_ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19248 #define $ac_func innocuous_$ac_func
19250 /* System header to define __stub macros and hopefully few prototypes,
19251 which can conflict with char $ac_func (); below.
19252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19253 <limits.h> exists even on freestanding compilers. */
19256 # include <limits.h>
19258 # include <assert.h>
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19270 /* The GNU C library defines this for functions which it implements
19271 to always fail with ENOSYS. Some functions are actually named
19272 something starting with __ and the normal name is an alias. */
19273 #if defined __stub_$ac_func || defined __stub___$ac_func
19280 return $ac_func ();
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest$ac_exeext
19306 eval "$as_ac_var=yes"
19308 $as_echo "$as_me: failed program was
:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 eval "$as_ac_var=no
"
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19318 ac_res=`eval 'as_val=${'$as_ac_var'}
19319 $as_echo "$as_val"'`
19320 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19321 $as_echo "$ac_res" >&6; }
19322 if test `eval 'as_val=${'$as_ac_var'}
19323 $as_echo "$as_val"'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19332 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19333 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19334 # Irix 4.0.5F has the header but not the library.
19335 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19344 if test $ac_have_func = no; then
19345 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19346 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19347 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19348 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19349 $as_echo_n "(cached
) " >&6
19351 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19352 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19354 # Is the header compilable?
19355 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19356 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 #include <inq_stats/cpustats.h>
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19373 $as_echo "$ac_try_echo") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19378 cat conftest.err >&5
19379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 ac_header_compiler=yes
19386 $as_echo "$as_me: failed program was
:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19394 $as_echo "$ac_header_compiler" >&6; }
19396 # Is the header present?
19397 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19398 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <inq_stats/cpustats.h>
19407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19420 (exit $ac_status); } >/dev/null && {
19421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19424 ac_header_preproc=yes
19426 $as_echo "$as_me: failed program was
:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 ac_header_preproc=no
19432 rm -f conftest.err conftest.$ac_ext
19433 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19434 $as_echo "$ac_header_preproc" >&6; }
19436 # So? What about this header?
19437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19439 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19440 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19441 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19442 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19443 ac_header_preproc=yes
19446 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19447 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19448 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19449 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19451 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19452 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19453 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19454 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19455 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19456 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19457 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19461 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19462 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19463 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19464 $as_echo_n "(cached
) " >&6
19466 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19468 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19469 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19472 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19475 cat >>confdefs.h <<\_ACEOF
19480 cat >>confdefs.h <<\_ACEOF
19489 if test $ac_have_func = no; then
19490 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19491 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19492 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19493 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19494 $as_echo_n "(cached
) " >&6
19496 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19497 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19499 # Is the header compilable?
19500 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19501 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 $ac_includes_default
19509 #include <sys/cpustats.h>
19511 rm -f conftest.$ac_objext
19512 if { (ac_try="$ac_compile"
19513 case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_compile") 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19525 (exit $ac_status); } && {
19526 test -z "$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19528 } && test -s conftest.$ac_objext; then
19529 ac_header_compiler=yes
19531 $as_echo "$as_me: failed program was
:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ac_header_compiler=no
19537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19539 $as_echo "$ac_header_compiler" >&6; }
19541 # Is the header present?
19542 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19543 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19550 #include <sys/cpustats.h>
19552 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19558 $as_echo "$ac_try_echo") >&5
19559 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19565 (exit $ac_status); } >/dev/null && {
19566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19569 ac_header_preproc=yes
19571 $as_echo "$as_me: failed program was
:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_header_preproc=no
19577 rm -f conftest.err conftest.$ac_ext
19578 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19579 $as_echo "$ac_header_preproc" >&6; }
19581 # So? What about this header?
19582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19584 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19585 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19586 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19587 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19588 ac_header_preproc=yes
19591 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19592 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19594 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19595 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19596 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19597 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19598 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19599 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19600 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19601 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19602 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19606 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19607 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19608 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19609 $as_echo_n "(cached
) " >&6
19611 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19614 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19617 if test $ac_cv_header_sys_cpustats_h = yes; then
19618 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19627 if test $ac_have_func = no; then
19629 for ac_header in mach/mach.h
19631 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19633 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19634 $as_echo_n "checking
for $ac_header...
" >&6; }
19635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19636 $as_echo_n "(cached
) " >&6
19638 ac_res=`eval 'as_val=${'$as_ac_Header'}
19639 $as_echo "$as_val"'`
19640 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19641 $as_echo "$ac_res" >&6; }
19643 # Is the header compilable?
19644 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19645 $as_echo_n "checking
$ac_header usability...
" >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19662 $as_echo "$ac_try_echo") >&5
19663 (eval "$ac_compile") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest.$ac_objext; then
19673 ac_header_compiler=yes
19675 $as_echo "$as_me: failed program was
:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19678 ac_header_compiler=no
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19682 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19683 $as_echo "$ac_header_compiler" >&6; }
19685 # Is the header present?
19686 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19687 $as_echo_n "checking
$ac_header presence...
" >&6; }
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19694 #include <$ac_header>
19696 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19702 $as_echo "$ac_try_echo") >&5
19703 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19709 (exit $ac_status); } >/dev/null && {
19710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19713 ac_header_preproc=yes
19715 $as_echo "$as_me: failed program was
:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_header_preproc=no
19721 rm -f conftest.err conftest.$ac_ext
19722 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19723 $as_echo "$ac_header_preproc" >&6; }
19725 # So? What about this header?
19726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19728 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19729 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19730 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19732 ac_header_preproc=yes
19735 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19736 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19738 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19740 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19742 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19745 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19746 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19750 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19751 $as_echo_n "checking
for $ac_header...
" >&6; }
19752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19753 $as_echo_n "(cached
) " >&6
19755 eval "$as_ac_Header=\
$ac_header_preproc"
19757 ac_res=`eval 'as_val=${'$as_ac_Header'}
19758 $as_echo "$as_val"'`
19759 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19760 $as_echo "$ac_res" >&6; }
19763 if test `eval 'as_val=${'$as_ac_Header'}
19764 $as_echo "$as_val"'` = yes; then
19765 cat >>confdefs.h <<_ACEOF
19766 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19776 for ac_header in nlist.h
19778 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19780 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19781 $as_echo_n "checking
for $ac_header...
" >&6; }
19782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19783 $as_echo_n "(cached
) " >&6
19785 ac_res=`eval 'as_val=${'$as_ac_Header'}
19786 $as_echo "$as_val"'`
19787 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19788 $as_echo "$ac_res" >&6; }
19790 # Is the header compilable?
19791 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19792 $as_echo_n "checking
$ac_header usability...
" >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19809 $as_echo "$ac_try_echo") >&5
19810 (eval "$ac_compile") 2>conftest.er1
19812 grep -v '^ *+' conftest.er1 >conftest.err
19814 cat conftest.err >&5
19815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19816 (exit $ac_status); } && {
19817 test -z "$ac_c_werror_flag" ||
19818 test ! -s conftest.err
19819 } && test -s conftest.$ac_objext; then
19820 ac_header_compiler=yes
19822 $as_echo "$as_me: failed program was
:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_header_compiler=no
19828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19830 $as_echo "$ac_header_compiler" >&6; }
19832 # Is the header present?
19833 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19834 $as_echo_n "checking
$ac_header presence...
" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 #include <$ac_header>
19843 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19849 $as_echo "$ac_try_echo") >&5
19850 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19852 grep -v '^ *+' conftest.er1 >conftest.err
19854 cat conftest.err >&5
19855 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19856 (exit $ac_status); } >/dev/null && {
19857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19860 ac_header_preproc=yes
19862 $as_echo "$as_me: failed program was
:" >&5
19863 sed 's/^/| /' conftest.$ac_ext >&5
19865 ac_header_preproc=no
19868 rm -f conftest.err conftest.$ac_ext
19869 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19870 $as_echo "$ac_header_preproc" >&6; }
19872 # So? What about this header?
19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19875 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19876 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19877 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19879 ac_header_preproc=yes
19882 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19883 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19884 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19885 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19886 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19887 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19889 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19892 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19893 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19897 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19898 $as_echo_n "checking
for $ac_header...
" >&6; }
19899 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19900 $as_echo_n "(cached
) " >&6
19902 eval "$as_ac_Header=\
$ac_header_preproc"
19904 ac_res=`eval 'as_val=${'$as_ac_Header'}
19905 $as_echo "$as_val"'`
19906 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19907 $as_echo "$ac_res" >&6; }
19910 if test `eval 'as_val=${'$as_ac_Header'}
19911 $as_echo "$as_val"'` = yes; then
19912 cat >>confdefs.h <<_ACEOF
19913 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19915 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19916 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19917 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19918 $as_echo_n "(cached
) " >&6
19920 cat >conftest.$ac_ext <<_ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h. */
19931 static struct nlist ac_aggr;
19932 if (ac_aggr.n_un.n_name)
19938 rm -f conftest.$ac_objext
19939 if { (ac_try="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19945 $as_echo "$ac_try_echo") >&5
19946 (eval "$ac_compile") 2>conftest.er1
19948 grep -v '^ *+' conftest.er1 >conftest.err
19950 cat conftest.err >&5
19951 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19952 (exit $ac_status); } && {
19953 test -z "$ac_c_werror_flag" ||
19954 test ! -s conftest.err
19955 } && test -s conftest.$ac_objext; then
19956 ac_cv_member_struct_nlist_n_un_n_name=yes
19958 $as_echo "$as_me: failed program was
:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19972 static struct nlist ac_aggr;
19973 if (sizeof ac_aggr.n_un.n_name)
19979 rm -f conftest.$ac_objext
19980 if { (ac_try="$ac_compile"
19981 case "(($ac_try" in
19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19983 *) ac_try_echo=$ac_try;;
19985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19986 $as_echo "$ac_try_echo") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
19997 ac_cv_member_struct_nlist_n_un_n_name=yes
19999 $as_echo "$as_me: failed program was
:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_member_struct_nlist_n_un_n_name=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20011 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20012 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20019 cat >>confdefs.h <<\_ACEOF
20020 #define NLIST_NAME_UNION 1
20034 # Some definitions of getloadavg require that the program be installed setgid.
20035 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20036 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20037 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20038 $as_echo_n "(cached
) " >&6
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20047 #ifdef LDAV_PRIVILEGED
20048 Yowza Am I SETGID yet
20051 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20052 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20053 ac_cv_func_getloadavg_setgid=yes
20055 ac_cv_func_getloadavg_setgid=no
20060 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20061 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20062 if test $ac_cv_func_getloadavg_setgid = yes; then
20065 cat >>confdefs.h <<\_ACEOF
20066 #define GETLOADAVG_PRIVILEGED 1
20073 if test $ac_cv_func_getloadavg_setgid = yes; then
20074 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20075 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20076 if test "${ac_cv_group_kmem+set}" = set; then
20077 $as_echo_n "(cached
) " >&6
20079 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20080 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20081 # If we got an error (system does not support symlinks), try without -L.
20082 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20083 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20084 | sed -ne 's/[ ][ ]*/ /g;
20085 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20089 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20090 $as_echo "$ac_cv_group_kmem" >&6; }
20091 KMEM_GROUP=$ac_cv_group_kmem
20093 if test "x
$ac_save_LIBS" = x; then
20094 GETLOADAVG_LIBS=$LIBS
20096 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20102 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20103 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20104 if test "${ac_cv_sys_largefile_source+set}" = set; then
20105 $as_echo_n "(cached
) " >&6
20108 cat >conftest.$ac_ext <<_ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20114 #include <sys/types.h> /* for off_t */
20119 int (*fp) (FILE *, off_t, int) = fseeko;
20120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20132 $as_echo "$ac_try_echo") >&5
20133 (eval "$ac_link") 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest$ac_exeext && {
20143 test "$cross_compiling" = yes ||
20144 $as_test_x conftest$ac_exeext
20146 ac_cv_sys_largefile_source=no; break
20148 $as_echo "$as_me: failed program was
:" >&5
20149 sed 's/^/| /' conftest.$ac_ext >&5
20154 rm -rf conftest.dSYM
20155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20156 conftest$ac_exeext conftest.$ac_ext
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #define _LARGEFILE_SOURCE 1
20164 #include <sys/types.h> /* for off_t */
20169 int (*fp) (FILE *, off_t, int) = fseeko;
20170 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20175 rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20182 $as_echo "$ac_try_echo") >&5
20183 (eval "$ac_link") 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20187 cat conftest.err >&5
20188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest$ac_exeext && {
20193 test "$cross_compiling" = yes ||
20194 $as_test_x conftest$ac_exeext
20196 ac_cv_sys_largefile_source=1; break
20198 $as_echo "$as_me: failed program was
:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -rf conftest.dSYM
20205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20206 conftest$ac_exeext conftest.$ac_ext
20207 ac_cv_sys_largefile_source=unknown
20211 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20212 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20213 case $ac_cv_sys_largefile_source in #(
20216 cat >>confdefs.h <<_ACEOF
20217 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20223 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20224 # in glibc 2.1.3, but that breaks too many other things.
20225 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20226 if test $ac_cv_sys_largefile_source != unknown; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define HAVE_FSEEKO 1
20235 # Configure getopt.
20236 # getopt.m4 serial 10
20238 # The getopt module assume you want GNU getopt, with getopt_long etc,
20239 # rather than vanilla POSIX getopt. This means your your code should
20240 # always include <getopt.h> for the getopt prototypes.
20252 # Prerequisites of lib/getopt*.
20259 for ac_header in getopt.h
20261 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20262 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20263 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20264 $as_echo_n "checking
for $ac_header...
" >&6; }
20265 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20266 $as_echo_n "(cached
) " >&6
20268 ac_res=`eval 'as_val=${'$as_ac_Header'}
20269 $as_echo "$as_val"'`
20270 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20271 $as_echo "$ac_res" >&6; }
20273 # Is the header compilable?
20274 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20275 $as_echo_n "checking
$ac_header usability...
" >&6; }
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 #include <$ac_header>
20285 rm -f conftest.$ac_objext
20286 if { (ac_try="$ac_compile"
20287 case "(($ac_try" in
20288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289 *) ac_try_echo=$ac_try;;
20291 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20292 $as_echo "$ac_try_echo") >&5
20293 (eval "$ac_compile") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest.$ac_objext; then
20303 ac_header_compiler=yes
20305 $as_echo "$as_me: failed program was
:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 ac_header_compiler=no
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20313 $as_echo "$ac_header_compiler" >&6; }
20315 # Is the header present?
20316 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20317 $as_echo_n "checking
$ac_header presence...
" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 #include <$ac_header>
20326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1 >conftest.err
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20339 (exit $ac_status); } >/dev/null && {
20340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20343 ac_header_preproc=yes
20345 $as_echo "$as_me: failed program was
:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_header_preproc=no
20351 rm -f conftest.err conftest.$ac_ext
20352 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20353 $as_echo "$ac_header_preproc" >&6; }
20355 # So? What about this header?
20356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20359 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20362 ac_header_preproc=yes
20365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20366 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20368 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20370 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20372 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20375 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20376 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20380 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20381 $as_echo_n "checking
for $ac_header...
" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20383 $as_echo_n "(cached
) " >&6
20385 eval "$as_ac_Header=\
$ac_header_preproc"
20387 ac_res=`eval 'as_val=${'$as_ac_Header'}
20388 $as_echo "$as_val"'`
20389 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20390 $as_echo "$ac_res" >&6; }
20393 if test `eval 'as_val=${'$as_ac_Header'}
20394 $as_echo "$as_val"'` = yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20405 if test -z "$GETOPT_H"; then
20407 for ac_func in getopt_long_only
20409 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20410 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20411 $as_echo_n "checking
for $ac_func...
" >&6; }
20412 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20413 $as_echo_n "(cached
) " >&6
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20423 #define $ac_func innocuous_$ac_func
20425 /* System header to define __stub macros and hopefully few prototypes,
20426 which can conflict with char $ac_func (); below.
20427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20428 <limits.h> exists even on freestanding compilers. */
20431 # include <limits.h>
20433 # include <assert.h>
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20445 /* The GNU C library defines this for functions which it implements
20446 to always fail with ENOSYS. Some functions are actually named
20447 something starting with __ and the normal name is an alias. */
20448 #if defined __stub_$ac_func || defined __stub___$ac_func
20455 return $ac_func ();
20460 rm -f conftest.$ac_objext conftest$ac_exeext
20461 if { (ac_try="$ac_link"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20467 $as_echo "$ac_try_echo") >&5
20468 (eval "$ac_link") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext && {
20478 test "$cross_compiling" = yes ||
20479 $as_test_x conftest$ac_exeext
20481 eval "$as_ac_var=yes"
20483 $as_echo "$as_me: failed program was
:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 eval "$as_ac_var=no
"
20489 rm -rf conftest.dSYM
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20493 ac_res=`eval 'as_val=${'$as_ac_var'}
20494 $as_echo "$as_val"'`
20495 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20496 $as_echo "$ac_res" >&6; }
20497 if test `eval 'as_val=${'$as_ac_var'}
20498 $as_echo "$as_val"'` = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20510 if test -z "$GETOPT_H"; then
20511 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20512 $as_echo_n "checking whether optreset is declared...
" >&6; }
20513 if test "${ac_cv_have_decl_optreset+set}" = set; then
20514 $as_echo_n "(cached
) " >&6
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 #include <getopt.h>
20535 rm -f conftest.$ac_objext
20536 if { (ac_try="$ac_compile"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20542 $as_echo "$ac_try_echo") >&5
20543 (eval "$ac_compile") 2>conftest.er1
20545 grep -v '^ *+' conftest.er1 >conftest.err
20547 cat conftest.err >&5
20548 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest.$ac_objext; then
20553 ac_cv_have_decl_optreset=yes
20555 $as_echo "$as_me: failed program was
:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 ac_cv_have_decl_optreset=no
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20564 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20565 if test $ac_cv_have_decl_optreset = yes; then
20571 if test -z "$GETOPT_H"; then
20572 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20573 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20574 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20575 $as_echo_n "(cached
) " >&6
20577 if test "$cross_compiling" = yes; then
20578 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20579 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20580 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20581 $as_echo_n "(cached
) " >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20589 #include <getopt.h>
20594 #ifndef getopt_clip
20595 (void) getopt_clip;
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 ac_cv_have_decl_getopt_clip=yes
20622 $as_echo "$as_me: failed program was
:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_have_decl_getopt_clip=no
20628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20630 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20631 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20632 if test $ac_cv_have_decl_getopt_clip = yes; then
20633 gl_cv_func_gnu_getopt=no
20635 gl_cv_func_gnu_getopt=yes
20639 cat >conftest.$ac_ext <<_ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20645 #include <getopt.h>
20651 myargv[0] = "conftest
";
20654 return getopt (2, myargv, "+a
") != '?';
20660 rm -f conftest$ac_exeext
20661 if { (ac_try="$ac_link"
20662 case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20666 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20667 $as_echo "$ac_try_echo") >&5
20668 (eval "$ac_link") 2>&5
20670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20672 { (case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20677 $as_echo "$ac_try_echo") >&5
20678 (eval "$ac_try") 2>&5
20680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 gl_cv_func_gnu_getopt=yes
20684 $as_echo "$as_me: program exited with status
$ac_status" >&5
20685 $as_echo "$as_me: failed program was
:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 ( exit $ac_status )
20689 gl_cv_func_gnu_getopt=no
20691 rm -rf conftest.dSYM
20692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20697 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20698 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20699 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20706 if test -n "$GETOPT_H"; then
20711 cat >>confdefs.h <<\_ACEOF
20712 #define __GETOPT_PREFIX rpl_
20718 GETOPTOBJS='getopt.o getopt1.o'
20725 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20726 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20727 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20728 $as_echo_n "(cached
) " >&6
20730 # Use it with a single arg.
20731 cat >conftest.$ac_ext <<_ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h. */
20737 $ac_includes_default
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20753 $as_echo "$ac_try_echo") >&5
20754 (eval "$ac_compile") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20760 (exit $ac_status); } && {
20761 test -z "$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 } && test -s conftest.$ac_objext; then
20764 ac_cv_func_getpgrp_void=no
20766 $as_echo "$as_me: failed program was
:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_func_getpgrp_void=yes
20772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20776 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20777 if test $ac_cv_func_getpgrp_void = yes; then
20779 cat >>confdefs.h <<\_ACEOF
20780 #define GETPGRP_VOID 1
20787 for ac_func in strftime
20789 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20790 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20791 $as_echo_n "checking
for $ac_func...
" >&6; }
20792 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20793 $as_echo_n "(cached
) " >&6
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20803 #define $ac_func innocuous_$ac_func
20805 /* System header to define __stub macros and hopefully few prototypes,
20806 which can conflict with char $ac_func (); below.
20807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20808 <limits.h> exists even on freestanding compilers. */
20811 # include <limits.h>
20813 # include <assert.h>
20818 /* Override any GCC internal prototype to avoid an error.
20819 Use char because int might match the return type of a GCC
20820 builtin and then its argument prototype would still apply. */
20825 /* The GNU C library defines this for functions which it implements
20826 to always fail with ENOSYS. Some functions are actually named
20827 something starting with __ and the normal name is an alias. */
20828 #if defined __stub_$ac_func || defined __stub___$ac_func
20835 return $ac_func ();
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20847 $as_echo "$ac_try_echo") >&5
20848 (eval "$ac_link") 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest$ac_exeext && {
20858 test "$cross_compiling" = yes ||
20859 $as_test_x conftest$ac_exeext
20861 eval "$as_ac_var=yes"
20863 $as_echo "$as_me: failed program was
:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 eval "$as_ac_var=no
"
20869 rm -rf conftest.dSYM
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20873 ac_res=`eval 'as_val=${'$as_ac_var'}
20874 $as_echo "$as_val"'`
20875 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20876 $as_echo "$ac_res" >&6; }
20877 if test `eval 'as_val=${'$as_ac_var'}
20878 $as_echo "$as_val"'` = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20884 # strftime is in -lintl on SCO UNIX.
20885 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20886 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20887 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20888 $as_echo_n "(cached
) " >&6
20890 ac_check_lib_save_LIBS=$LIBS
20891 LIBS="-lintl $LIBS"
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20899 /* Override any GCC internal prototype to avoid an error.
20900 Use char because int might match the return type of a GCC
20901 builtin and then its argument prototype would still apply. */
20909 return strftime ();
20914 rm -f conftest.$ac_objext conftest$ac_exeext
20915 if { (ac_try="$ac_link"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20921 $as_echo "$ac_try_echo") >&5
20922 (eval "$ac_link") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest$ac_exeext && {
20932 test "$cross_compiling" = yes ||
20933 $as_test_x conftest$ac_exeext
20935 ac_cv_lib_intl_strftime=yes
20937 $as_echo "$as_me: failed program was
:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_lib_intl_strftime=no
20943 rm -rf conftest.dSYM
20944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20945 conftest$ac_exeext conftest.$ac_ext
20946 LIBS=$ac_check_lib_save_LIBS
20948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20949 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20950 if test $ac_cv_lib_intl_strftime = yes; then
20951 cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_STRFTIME 1
20955 LIBS="-lintl $LIBS"
20964 for ac_func in grantpt
20966 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20967 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20968 $as_echo_n "checking
for $ac_func...
" >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20970 $as_echo_n "(cached
) " >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20980 #define $ac_func innocuous_$ac_func
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20988 # include <limits.h>
20990 # include <assert.h>
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21012 return $ac_func ();
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21024 $as_echo "$ac_try_echo") >&5
21025 (eval "$ac_link") 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest$ac_exeext && {
21035 test "$cross_compiling" = yes ||
21036 $as_test_x conftest$ac_exeext
21038 eval "$as_ac_var=yes"
21040 $as_echo "$as_me: failed program was
:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 eval "$as_ac_var=no
"
21046 rm -rf conftest.dSYM
21047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048 conftest$ac_exeext conftest.$ac_ext
21050 ac_res=`eval 'as_val=${'$as_ac_var'}
21051 $as_echo "$as_val"'`
21052 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21053 $as_echo "$ac_res" >&6; }
21054 if test `eval 'as_val=${'$as_ac_var'}
21055 $as_echo "$as_val"'` = yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21064 # PTY-related GNU extensions.
21066 for ac_func in getpt
21068 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21070 $as_echo_n "checking
for $ac_func...
" >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached
) " >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21090 # include <limits.h>
21092 # include <assert.h>
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21114 return $ac_func ();
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest$ac_exeext
21140 eval "$as_ac_var=yes"
21142 $as_echo "$as_me: failed program was
:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 eval "$as_ac_var=no
"
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21150 conftest$ac_exeext conftest.$ac_ext
21152 ac_res=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 if test `eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21166 # Check this now, so that we will NOT find the above functions in ncurses.
21167 # That is because we have not set up to link ncurses in lib-src.
21168 # It's better to believe a function is not available
21169 # than to expect to find it in ncurses.
21170 # Also we need tputs and frieds to be able to build at all.
21171 have_tputs_et_al=true
21172 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21173 $as_echo_n "checking
for library containing tputs...
" >&6; }
21174 if test "${ac_cv_search_tputs+set}" = set; then
21175 $as_echo_n "(cached
) " >&6
21177 ac_func_search_save_LIBS=$LIBS
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21200 for ac_lib in '' ncurses terminfo termcap; do
21201 if test -z "$ac_lib"; then
21202 ac_res="none required
"
21205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21207 rm -f conftest.$ac_objext conftest$ac_exeext
21208 if { (ac_try="$ac_link"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21214 $as_echo "$ac_try_echo") >&5
21215 (eval "$ac_link") 2>conftest.er1
21217 grep -v '^ *+' conftest.er1 >conftest.err
21219 cat conftest.err >&5
21220 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21221 (exit $ac_status); } && {
21222 test -z "$ac_c_werror_flag" ||
21223 test ! -s conftest.err
21224 } && test -s conftest$ac_exeext && {
21225 test "$cross_compiling" = yes ||
21226 $as_test_x conftest$ac_exeext
21228 ac_cv_search_tputs=$ac_res
21230 $as_echo "$as_me: failed program was
:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21236 rm -rf conftest.dSYM
21237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21239 if test "${ac_cv_search_tputs+set}" = set; then
21243 if test "${ac_cv_search_tputs+set}" = set; then
21246 ac_cv_search_tputs=no
21248 rm conftest.$ac_ext
21249 LIBS=$ac_func_search_save_LIBS
21251 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21252 $as_echo "$ac_cv_search_tputs" >&6; }
21253 ac_res=$ac_cv_search_tputs
21254 if test "$ac_res" != no; then
21255 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21258 have_tputs_et_al=false
21261 if test "$have_tputs_et_al" != true; then
21262 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21263 Maybe some development libraries/packages are missing? Try installing
21264 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21265 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21266 Maybe some development libraries
/packages are missing? Try installing
21267 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21268 { (exit 1); exit 1; }; }
21270 # Must define this when any termcap library is found.
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_LIBNCURSES 1
21277 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21280 cat >conftest.$ac_ext <<_ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286 #include <netinet/in.h>
21287 #include <arpa/nameser.h>
21288 #include <resolv.h>
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (ac_try="$ac_link"
21299 case "(($ac_try" in
21300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301 *) ac_try_echo=$ac_try;;
21303 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21304 $as_echo "$ac_try_echo") >&5
21305 (eval "$ac_link") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest$ac_exeext && {
21315 test "$cross_compiling" = yes ||
21316 $as_test_x conftest$ac_exeext
21320 $as_echo "$as_me: failed program was
:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21326 rm -rf conftest.dSYM
21327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21328 conftest$ac_exeext conftest.$ac_ext
21329 if test "$have_res_init" = no; then
21331 LIBS="$LIBS -lresolv"
21332 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21333 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <netinet/in.h>
21341 #include <arpa/nameser.h>
21342 #include <resolv.h>
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21358 $as_echo "$ac_try_echo") >&5
21359 (eval "$ac_link") 2>conftest.er1
21361 grep -v '^ *+' conftest.er1 >conftest.err
21363 cat conftest.err >&5
21364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21365 (exit $ac_status); } && {
21366 test -z "$ac_c_werror_flag" ||
21367 test ! -s conftest.err
21368 } && test -s conftest$ac_exeext && {
21369 test "$cross_compiling" = yes ||
21370 $as_test_x conftest$ac_exeext
21374 $as_echo "$as_me: failed program was
:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21380 rm -rf conftest.dSYM
21381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21382 conftest$ac_exeext conftest.$ac_ext
21383 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21384 $as_echo "$have_res_init" >&6; }
21385 if test "$have_res_init" = yes ; then
21391 if test "$have_res_init" = yes; then
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_RES_INIT 1
21399 # Do we need the Hesiod library to provide the support routines?
21401 if test "$with_hesiod" != no ; then
21402 # Don't set $LIBS here -- see comments above. FIXME which comments?
21403 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21404 $as_echo_n "checking
for res_send...
" >&6; }
21405 if test "${ac_cv_func_res_send+set}" = set; then
21406 $as_echo_n "(cached
) " >&6
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21414 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21416 #define res_send innocuous_res_send
21418 /* System header to define __stub macros and hopefully few prototypes,
21419 which can conflict with char res_send (); below.
21420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21421 <limits.h> exists even on freestanding compilers. */
21424 # include <limits.h>
21426 # include <assert.h>
21431 /* Override any GCC internal prototype to avoid an error.
21432 Use char because int might match the return type of a GCC
21433 builtin and then its argument prototype would still apply. */
21438 /* The GNU C library defines this for functions which it implements
21439 to always fail with ENOSYS. Some functions are actually named
21440 something starting with __ and the normal name is an alias. */
21441 #if defined __stub_res_send || defined __stub___res_send
21448 return res_send ();
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21459 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21460 $as_echo "$ac_try_echo") >&5
21461 (eval "$ac_link") 2>conftest.er1
21463 grep -v '^ *+' conftest.er1 >conftest.err
21465 cat conftest.err >&5
21466 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest$ac_exeext && {
21471 test "$cross_compiling" = yes ||
21472 $as_test_x conftest$ac_exeext
21474 ac_cv_func_res_send=yes
21476 $as_echo "$as_me: failed program was
:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_cv_func_res_send=no
21482 rm -rf conftest.dSYM
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484 conftest$ac_exeext conftest.$ac_ext
21486 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21487 $as_echo "$ac_cv_func_res_send" >&6; }
21488 if test $ac_cv_func_res_send = yes; then
21491 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21492 $as_echo_n "checking
for __res_send...
" >&6; }
21493 if test "${ac_cv_func___res_send+set}" = set; then
21494 $as_echo_n "(cached
) " >&6
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21504 #define __res_send innocuous___res_send
21506 /* System header to define __stub macros and hopefully few prototypes,
21507 which can conflict with char __res_send (); below.
21508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21509 <limits.h> exists even on freestanding compilers. */
21512 # include <limits.h>
21514 # include <assert.h>
21519 /* Override any GCC internal prototype to avoid an error.
21520 Use char because int might match the return type of a GCC
21521 builtin and then its argument prototype would still apply. */
21525 char __res_send ();
21526 /* The GNU C library defines this for functions which it implements
21527 to always fail with ENOSYS. Some functions are actually named
21528 something starting with __ and the normal name is an alias. */
21529 #if defined __stub___res_send || defined __stub_____res_send
21536 return __res_send ();
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (ac_try="$ac_link"
21543 case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21547 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21548 $as_echo "$ac_try_echo") >&5
21549 (eval "$ac_link") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest$ac_exeext && {
21559 test "$cross_compiling" = yes ||
21560 $as_test_x conftest$ac_exeext
21562 ac_cv_func___res_send=yes
21564 $as_echo "$as_me: failed program was
:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_cv_func___res_send=no
21570 rm -rf conftest.dSYM
21571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21572 conftest$ac_exeext conftest.$ac_ext
21574 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21575 $as_echo "$ac_cv_func___res_send" >&6; }
21576 if test $ac_cv_func___res_send = yes; then
21579 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21580 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21581 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21582 $as_echo_n "(cached
) " >&6
21584 ac_check_lib_save_LIBS=$LIBS
21585 LIBS="-lresolv $LIBS"
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21593 /* Override any GCC internal prototype to avoid an error.
21594 Use char because int might match the return type of a GCC
21595 builtin and then its argument prototype would still apply. */
21603 return res_send ();
21608 rm -f conftest.$ac_objext conftest$ac_exeext
21609 if { (ac_try="$ac_link"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21615 $as_echo "$ac_try_echo") >&5
21616 (eval "$ac_link") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext && {
21626 test "$cross_compiling" = yes ||
21627 $as_test_x conftest$ac_exeext
21629 ac_cv_lib_resolv_res_send=yes
21631 $as_echo "$as_me: failed program was
:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_cv_lib_resolv_res_send=no
21637 rm -rf conftest.dSYM
21638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21639 conftest$ac_exeext conftest.$ac_ext
21640 LIBS=$ac_check_lib_save_LIBS
21642 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21643 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21644 if test $ac_cv_lib_resolv_res_send = yes; then
21647 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21648 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21649 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21650 $as_echo_n "(cached
) " >&6
21652 ac_check_lib_save_LIBS=$LIBS
21653 LIBS="-lresolv $LIBS"
21654 cat >conftest.$ac_ext <<_ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21667 char __res_send ();
21671 return __res_send ();
21676 rm -f conftest.$ac_objext conftest$ac_exeext
21677 if { (ac_try="$ac_link"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21682 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21683 $as_echo "$ac_try_echo") >&5
21684 (eval "$ac_link") 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext && {
21694 test "$cross_compiling" = yes ||
21695 $as_test_x conftest$ac_exeext
21697 ac_cv_lib_resolv___res_send=yes
21699 $as_echo "$as_me: failed program was
:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_cv_lib_resolv___res_send=no
21705 rm -rf conftest.dSYM
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21708 LIBS=$ac_check_lib_save_LIBS
21710 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21711 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21712 if test $ac_cv_lib_resolv___res_send = yes; then
21722 if test "$resolv" = yes ; then
21727 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21728 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21729 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21730 $as_echo_n "(cached
) " >&6
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21740 #define hes_getmailhost innocuous_hes_getmailhost
21742 /* System header to define __stub macros and hopefully few prototypes,
21743 which can conflict with char hes_getmailhost (); below.
21744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21745 <limits.h> exists even on freestanding compilers. */
21748 # include <limits.h>
21750 # include <assert.h>
21753 #undef hes_getmailhost
21755 /* Override any GCC internal prototype to avoid an error.
21756 Use char because int might match the return type of a GCC
21757 builtin and then its argument prototype would still apply. */
21761 char hes_getmailhost ();
21762 /* The GNU C library defines this for functions which it implements
21763 to always fail with ENOSYS. Some functions are actually named
21764 something starting with __ and the normal name is an alias. */
21765 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21772 return hes_getmailhost ();
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21784 $as_echo "$ac_try_echo") >&5
21785 (eval "$ac_link") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest$ac_exeext && {
21795 test "$cross_compiling" = yes ||
21796 $as_test_x conftest$ac_exeext
21798 ac_cv_func_hes_getmailhost=yes
21800 $as_echo "$as_me: failed program was
:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 ac_cv_func_hes_getmailhost=no
21806 rm -rf conftest.dSYM
21807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21808 conftest$ac_exeext conftest.$ac_ext
21810 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21811 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21812 if test $ac_cv_func_hes_getmailhost = yes; then
21815 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21816 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21817 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21818 $as_echo_n "(cached
) " >&6
21820 ac_check_lib_save_LIBS=$LIBS
21821 LIBS="-lhesiod $RESOLVLIB $LIBS"
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21829 /* Override any GCC internal prototype to avoid an error.
21830 Use char because int might match the return type of a GCC
21831 builtin and then its argument prototype would still apply. */
21835 char hes_getmailhost ();
21839 return hes_getmailhost ();
21844 rm -f conftest.$ac_objext conftest$ac_exeext
21845 if { (ac_try="$ac_link"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21851 $as_echo "$ac_try_echo") >&5
21852 (eval "$ac_link") 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21858 (exit $ac_status); } && {
21859 test -z "$ac_c_werror_flag" ||
21860 test ! -s conftest.err
21861 } && test -s conftest$ac_exeext && {
21862 test "$cross_compiling" = yes ||
21863 $as_test_x conftest$ac_exeext
21865 ac_cv_lib_hesiod_hes_getmailhost=yes
21867 $as_echo "$as_me: failed program was
:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_lib_hesiod_hes_getmailhost=no
21873 rm -rf conftest.dSYM
21874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21875 conftest$ac_exeext conftest.$ac_ext
21876 LIBS=$ac_check_lib_save_LIBS
21878 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21879 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21880 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21889 if test x"$hesiod" = xyes; then
21891 cat >>confdefs.h <<\_ACEOF
21892 #define HAVE_LIBHESIOD 1
21900 # Do we need libresolv (due to res_init or Hesiod)?
21901 if test "$resolv" = yes ; then
21903 cat >>confdefs.h <<\_ACEOF
21904 #define HAVE_LIBRESOLV 1
21913 # These tell us which Kerberos-related libraries to use.
21920 if test "${with_kerberos}" != no; then
21921 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21922 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21923 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21924 $as_echo_n "(cached
) " >&6
21926 ac_check_lib_save_LIBS=$LIBS
21927 LIBS="-lcom_err $LIBS"
21928 cat >conftest.$ac_ext <<_ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h. */
21935 /* Override any GCC internal prototype to avoid an error.
21936 Use char because int might match the return type of a GCC
21937 builtin and then its argument prototype would still apply. */
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21956 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21957 $as_echo "$ac_try_echo") >&5
21958 (eval "$ac_link") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest$ac_exeext && {
21968 test "$cross_compiling" = yes ||
21969 $as_test_x conftest$ac_exeext
21971 ac_cv_lib_com_err_com_err=yes
21973 $as_echo "$as_me: failed program was
:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21976 ac_cv_lib_com_err_com_err=no
21979 rm -rf conftest.dSYM
21980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21981 conftest$ac_exeext conftest.$ac_ext
21982 LIBS=$ac_check_lib_save_LIBS
21984 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21985 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21986 if test $ac_cv_lib_com_err_com_err = yes; then
21992 if test $have_com_err = yes; then
21993 COM_ERRLIB=-lcom_err
21994 LIBS="$COM_ERRLIB $LIBS"
21996 cat >>confdefs.h <<\_ACEOF
21997 #define HAVE_LIBCOM_ERR 1
22001 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22002 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22003 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22004 $as_echo_n "(cached
) " >&6
22006 ac_check_lib_save_LIBS=$LIBS
22007 LIBS="-lcrypto $LIBS"
22008 cat >conftest.$ac_ext <<_ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22015 /* Override any GCC internal prototype to avoid an error.
22016 Use char because int might match the return type of a GCC
22017 builtin and then its argument prototype would still apply. */
22021 char mit_des_cbc_encrypt ();
22025 return mit_des_cbc_encrypt ();
22030 rm -f conftest.$ac_objext conftest$ac_exeext
22031 if { (ac_try="$ac_link"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22036 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22037 $as_echo "$ac_try_echo") >&5
22038 (eval "$ac_link") 2>conftest.er1
22040 grep -v '^ *+' conftest.er1 >conftest.err
22042 cat conftest.err >&5
22043 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22044 (exit $ac_status); } && {
22045 test -z "$ac_c_werror_flag" ||
22046 test ! -s conftest.err
22047 } && test -s conftest$ac_exeext && {
22048 test "$cross_compiling" = yes ||
22049 $as_test_x conftest$ac_exeext
22051 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22053 $as_echo "$as_me: failed program was
:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22056 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22059 rm -rf conftest.dSYM
22060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22061 conftest$ac_exeext conftest.$ac_ext
22062 LIBS=$ac_check_lib_save_LIBS
22064 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22065 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22066 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22072 if test $have_crypto = yes; then
22074 LIBS="$CRYPTOLIB $LIBS"
22076 cat >>confdefs.h <<\_ACEOF
22077 #define HAVE_LIBCRYPTO 1
22081 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22082 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22083 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22084 $as_echo_n "(cached
) " >&6
22086 ac_check_lib_save_LIBS=$LIBS
22087 LIBS="-lk5crypto $LIBS"
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22095 /* Override any GCC internal prototype to avoid an error.
22096 Use char because int might match the return type of a GCC
22097 builtin and then its argument prototype would still apply. */
22101 char mit_des_cbc_encrypt ();
22105 return mit_des_cbc_encrypt ();
22110 rm -f conftest.$ac_objext conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22117 $as_echo "$ac_try_echo") >&5
22118 (eval "$ac_link") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest$ac_exeext && {
22128 test "$cross_compiling" = yes ||
22129 $as_test_x conftest$ac_exeext
22131 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22133 $as_echo "$as_me: failed program was
:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22139 rm -rf conftest.dSYM
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141 conftest$ac_exeext conftest.$ac_ext
22142 LIBS=$ac_check_lib_save_LIBS
22144 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22145 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22146 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22152 if test $have_k5crypto = yes; then
22153 CRYPTOLIB=-lk5crypto
22154 LIBS="$CRYPTOLIB $LIBS"
22156 cat >>confdefs.h <<\_ACEOF
22157 #define HAVE_LIBK5CRYPTO 1
22161 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22162 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22163 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22164 $as_echo_n "(cached
) " >&6
22166 ac_check_lib_save_LIBS=$LIBS
22167 LIBS="-lkrb5 $LIBS"
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22181 char krb5_init_context ();
22185 return krb5_init_context ();
22190 rm -f conftest.$ac_objext conftest$ac_exeext
22191 if { (ac_try="$ac_link"
22192 case "(($ac_try" in
22193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22194 *) ac_try_echo=$ac_try;;
22196 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22197 $as_echo "$ac_try_echo") >&5
22198 (eval "$ac_link") 2>conftest.er1
22200 grep -v '^ *+' conftest.er1 >conftest.err
22202 cat conftest.err >&5
22203 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22204 (exit $ac_status); } && {
22205 test -z "$ac_c_werror_flag" ||
22206 test ! -s conftest.err
22207 } && test -s conftest$ac_exeext && {
22208 test "$cross_compiling" = yes ||
22209 $as_test_x conftest$ac_exeext
22211 ac_cv_lib_krb5_krb5_init_context=yes
22213 $as_echo "$as_me: failed program was
:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_cv_lib_krb5_krb5_init_context=no
22219 rm -rf conftest.dSYM
22220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22221 conftest$ac_exeext conftest.$ac_ext
22222 LIBS=$ac_check_lib_save_LIBS
22224 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22225 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22226 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22232 if test $have_krb5=yes; then
22234 LIBS="$KRB5LIB $LIBS"
22236 cat >>confdefs.h <<\_ACEOF
22237 #define HAVE_LIBKRB5 1
22241 if test "${with_kerberos5}" = no; then
22242 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22243 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22244 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22245 $as_echo_n "(cached
) " >&6
22247 ac_check_lib_save_LIBS=$LIBS
22248 LIBS="-ldes425 $LIBS"
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22256 /* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22262 char des_cbc_encrypt ();
22266 return des_cbc_encrypt ();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279 (eval "$ac_link") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest$ac_exeext && {
22289 test "$cross_compiling" = yes ||
22290 $as_test_x conftest$ac_exeext
22292 ac_cv_lib_des425_des_cbc_encrypt=yes
22294 $as_echo "$as_me: failed program was
:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297 ac_cv_lib_des425_des_cbc_encrypt=no
22300 rm -rf conftest.dSYM
22301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22302 conftest$ac_exeext conftest.$ac_ext
22303 LIBS=$ac_check_lib_save_LIBS
22305 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22306 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22307 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22313 if test $have_des425 = yes; then
22315 LIBS="$DESLIB $LIBS"
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_LIBDES425 1
22322 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22323 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22324 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22325 $as_echo_n "(cached
) " >&6
22327 ac_check_lib_save_LIBS=$LIBS
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22342 char des_cbc_encrypt ();
22346 return des_cbc_encrypt ();
22351 rm -f conftest.$ac_objext conftest$ac_exeext
22352 if { (ac_try="$ac_link"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22358 $as_echo "$ac_try_echo") >&5
22359 (eval "$ac_link") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest$ac_exeext && {
22369 test "$cross_compiling" = yes ||
22370 $as_test_x conftest$ac_exeext
22372 ac_cv_lib_des_des_cbc_encrypt=yes
22374 $as_echo "$as_me: failed program was
:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_lib_des_des_cbc_encrypt=no
22380 rm -rf conftest.dSYM
22381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 conftest$ac_exeext conftest.$ac_ext
22383 LIBS=$ac_check_lib_save_LIBS
22385 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22386 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22387 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22393 if test $have_des = yes; then
22395 LIBS="$DESLIB $LIBS"
22397 cat >>confdefs.h <<\_ACEOF
22398 #define HAVE_LIBDES 1
22403 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22404 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22405 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22406 $as_echo_n "(cached
) " >&6
22408 ac_check_lib_save_LIBS=$LIBS
22409 LIBS="-lkrb4 $LIBS"
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22417 /* Override any GCC internal prototype to avoid an error.
22418 Use char because int might match the return type of a GCC
22419 builtin and then its argument prototype would still apply. */
22423 char krb_get_cred ();
22427 return krb_get_cred ();
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22438 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22439 $as_echo "$ac_try_echo") >&5
22440 (eval "$ac_link") 2>conftest.er1
22442 grep -v '^ *+' conftest.er1 >conftest.err
22444 cat conftest.err >&5
22445 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22446 (exit $ac_status); } && {
22447 test -z "$ac_c_werror_flag" ||
22448 test ! -s conftest.err
22449 } && test -s conftest$ac_exeext && {
22450 test "$cross_compiling" = yes ||
22451 $as_test_x conftest$ac_exeext
22453 ac_cv_lib_krb4_krb_get_cred=yes
22455 $as_echo "$as_me: failed program was
:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_cv_lib_krb4_krb_get_cred=no
22461 rm -rf conftest.dSYM
22462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22463 conftest$ac_exeext conftest.$ac_ext
22464 LIBS=$ac_check_lib_save_LIBS
22466 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22467 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22468 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22474 if test $have_krb4 = yes; then
22476 LIBS="$KRB4LIB $LIBS"
22478 cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_LIBKRB4 1
22483 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22484 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22485 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22486 $as_echo_n "(cached
) " >&6
22488 ac_check_lib_save_LIBS=$LIBS
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22497 /* Override any GCC internal prototype to avoid an error.
22498 Use char because int might match the return type of a GCC
22499 builtin and then its argument prototype would still apply. */
22503 char krb_get_cred ();
22507 return krb_get_cred ();
22512 rm -f conftest.$ac_objext conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22519 $as_echo "$ac_try_echo") >&5
22520 (eval "$ac_link") 2>conftest.er1
22522 grep -v '^ *+' conftest.er1 >conftest.err
22524 cat conftest.err >&5
22525 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest$ac_exeext && {
22530 test "$cross_compiling" = yes ||
22531 $as_test_x conftest$ac_exeext
22533 ac_cv_lib_krb_krb_get_cred=yes
22535 $as_echo "$as_me: failed program was
:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ac_cv_lib_krb_krb_get_cred=no
22541 rm -rf conftest.dSYM
22542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22543 conftest$ac_exeext conftest.$ac_ext
22544 LIBS=$ac_check_lib_save_LIBS
22546 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22547 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22548 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22554 if test $have_krb = yes; then
22556 LIBS="$KRB4LIB $LIBS"
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_LIBKRB 1
22566 if test "${with_kerberos5}" != no; then
22568 for ac_header in krb5.h
22570 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22572 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22573 $as_echo_n "checking
for $ac_header...
" >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22575 $as_echo_n "(cached
) " >&6
22577 ac_res=`eval 'as_val=${'$as_ac_Header'}
22578 $as_echo "$as_val"'`
22579 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22580 $as_echo "$ac_res" >&6; }
22582 # Is the header compilable?
22583 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22584 $as_echo_n "checking
$ac_header usability...
" >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22592 #include <$ac_header>
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22601 $as_echo "$ac_try_echo") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_header_compiler=yes
22614 $as_echo "$as_me: failed program was
:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_compiler=no
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22622 $as_echo "$ac_header_compiler" >&6; }
22624 # Is the header present?
22625 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22626 $as_echo_n "checking
$ac_header presence...
" >&6; }
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 #include <$ac_header>
22635 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22648 (exit $ac_status); } >/dev/null && {
22649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22652 ac_header_preproc=yes
22654 $as_echo "$as_me: failed program was
:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_header_preproc=no
22660 rm -f conftest.err conftest.$ac_ext
22661 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22662 $as_echo "$ac_header_preproc" >&6; }
22664 # So? What about this header?
22665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22667 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22668 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22671 ac_header_preproc=yes
22674 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22675 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22677 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22679 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22681 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22685 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22689 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22690 $as_echo_n "checking
for $ac_header...
" >&6; }
22691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22692 $as_echo_n "(cached
) " >&6
22694 eval "$as_ac_Header=\
$ac_header_preproc"
22696 ac_res=`eval 'as_val=${'$as_ac_Header'}
22697 $as_echo "$as_val"'`
22698 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22699 $as_echo "$ac_res" >&6; }
22702 if test `eval 'as_val=${'$as_ac_Header'}
22703 $as_echo "$as_val"'` = yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22707 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22708 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22709 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22710 $as_echo_n "(cached
) " >&6
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22723 static krb5_error ac_aggr;
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22737 $as_echo "$ac_try_echo") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest.$ac_objext; then
22748 ac_cv_member_krb5_error_text=yes
22750 $as_echo "$as_me: failed program was
:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 cat >conftest.$ac_ext <<_ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22764 static krb5_error ac_aggr;
22765 if (sizeof ac_aggr.text)
22771 rm -f conftest.$ac_objext
22772 if { (ac_try="$ac_compile"
22773 case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22778 $as_echo "$ac_try_echo") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 ac_cv_member_krb5_error_text=yes
22791 $as_echo "$as_me: failed program was
:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 ac_cv_member_krb5_error_text=no
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22803 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22804 if test $ac_cv_member_krb5_error_text = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_KRB5_ERROR_TEXT 1
22812 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22813 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22814 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22815 $as_echo_n "(cached
) " >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22828 static krb5_error ac_aggr;
22829 if (ac_aggr.e_text)
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_member_krb5_error_e_text=yes
22855 $as_echo "$as_me: failed program was
:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22869 static krb5_error ac_aggr;
22870 if (sizeof ac_aggr.e_text)
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1 >conftest.err
22888 cat conftest.err >&5
22889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_cv_member_krb5_error_e_text=yes
22896 $as_echo "$as_me: failed program was
:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_cv_member_krb5_error_e_text=no
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22908 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22909 if test $ac_cv_member_krb5_error_e_text = yes; then
22911 cat >>confdefs.h <<_ACEOF
22912 #define HAVE_KRB5_ERROR_E_TEXT 1
22924 for ac_header in des.h
22926 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22927 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22928 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22929 $as_echo_n "checking
for $ac_header...
" >&6; }
22930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22931 $as_echo_n "(cached
) " >&6
22933 ac_res=`eval 'as_val=${'$as_ac_Header'}
22934 $as_echo "$as_val"'`
22935 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22936 $as_echo "$ac_res" >&6; }
22938 # Is the header compilable?
22939 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22940 $as_echo_n "checking
$ac_header usability...
" >&6; }
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22948 #include <$ac_header>
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22957 $as_echo "$ac_try_echo") >&5
22958 (eval "$ac_compile") 2>conftest.er1
22960 grep -v '^ *+' conftest.er1 >conftest.err
22962 cat conftest.err >&5
22963 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22964 (exit $ac_status); } && {
22965 test -z "$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 } && test -s conftest.$ac_objext; then
22968 ac_header_compiler=yes
22970 $as_echo "$as_me: failed program was
:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_header_compiler=no
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22978 $as_echo "$ac_header_compiler" >&6; }
22980 # Is the header present?
22981 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22982 $as_echo_n "checking
$ac_header presence...
" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 #include <$ac_header>
22991 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22997 $as_echo "$ac_try_echo") >&5
22998 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23004 (exit $ac_status); } >/dev/null && {
23005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23008 ac_header_preproc=yes
23010 $as_echo "$as_me: failed program was
:" >&5
23011 sed 's/^/| /' conftest.$ac_ext >&5
23013 ac_header_preproc=no
23016 rm -f conftest.err conftest.$ac_ext
23017 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23018 $as_echo "$ac_header_preproc" >&6; }
23020 # So? What about this header?
23021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23023 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23024 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23025 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23027 ac_header_preproc=yes
23030 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23031 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23032 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23033 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23035 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23037 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23041 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23045 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23046 $as_echo_n "checking
for $ac_header...
" >&6; }
23047 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23048 $as_echo_n "(cached
) " >&6
23050 eval "$as_ac_Header=\
$ac_header_preproc"
23052 ac_res=`eval 'as_val=${'$as_ac_Header'}
23053 $as_echo "$as_val"'`
23054 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23055 $as_echo "$ac_res" >&6; }
23058 if test `eval 'as_val=${'$as_ac_Header'}
23059 $as_echo "$as_val"'` = yes; then
23060 cat >>confdefs.h <<_ACEOF
23061 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23066 for ac_header in kerberosIV/des.h
23068 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23069 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23070 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23071 $as_echo_n "checking
for $ac_header...
" >&6; }
23072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23073 $as_echo_n "(cached
) " >&6
23075 ac_res=`eval 'as_val=${'$as_ac_Header'}
23076 $as_echo "$as_val"'`
23077 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23078 $as_echo "$ac_res" >&6; }
23080 # Is the header compilable?
23081 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23082 $as_echo_n "checking
$ac_header usability...
" >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 #include <$ac_header>
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_compile") 2>conftest.er1
23102 grep -v '^ *+' conftest.er1 >conftest.err
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest.$ac_objext; then
23110 ac_header_compiler=yes
23112 $as_echo "$as_me: failed program was
:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_header_compiler=no
23118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23119 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23120 $as_echo "$ac_header_compiler" >&6; }
23122 # Is the header present?
23123 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23124 $as_echo_n "checking
$ac_header presence...
" >&6; }
23125 cat >conftest.$ac_ext <<_ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h. */
23131 #include <$ac_header>
23133 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23139 $as_echo "$ac_try_echo") >&5
23140 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23142 grep -v '^ *+' conftest.er1 >conftest.err
23144 cat conftest.err >&5
23145 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23146 (exit $ac_status); } >/dev/null && {
23147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23148 test ! -s conftest.err
23150 ac_header_preproc=yes
23152 $as_echo "$as_me: failed program was
:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23155 ac_header_preproc=no
23158 rm -f conftest.err conftest.$ac_ext
23159 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23160 $as_echo "$ac_header_preproc" >&6; }
23162 # So? What about this header?
23163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23165 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23166 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23167 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23169 ac_header_preproc=yes
23172 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23173 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23174 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23175 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23177 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23179 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23181 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23183 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23187 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23188 $as_echo_n "checking
for $ac_header...
" >&6; }
23189 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23190 $as_echo_n "(cached
) " >&6
23192 eval "$as_ac_Header=\
$ac_header_preproc"
23194 ac_res=`eval 'as_val=${'$as_ac_Header'}
23195 $as_echo "$as_val"'`
23196 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23197 $as_echo "$ac_res" >&6; }
23200 if test `eval 'as_val=${'$as_ac_Header'}
23201 $as_echo "$as_val"'` = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23208 for ac_header in kerberos/des.h
23210 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23211 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23212 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23213 $as_echo_n "checking
for $ac_header...
" >&6; }
23214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached
) " >&6
23217 ac_res=`eval 'as_val=${'$as_ac_Header'}
23218 $as_echo "$as_val"'`
23219 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23220 $as_echo "$ac_res" >&6; }
23222 # Is the header compilable?
23223 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23224 $as_echo_n "checking
$ac_header usability...
" >&6; }
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23231 $ac_includes_default
23232 #include <$ac_header>
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_compile") 2>conftest.er1
23244 grep -v '^ *+' conftest.er1 >conftest.err
23246 cat conftest.err >&5
23247 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23248 (exit $ac_status); } && {
23249 test -z "$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23251 } && test -s conftest.$ac_objext; then
23252 ac_header_compiler=yes
23254 $as_echo "$as_me: failed program was
:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 ac_header_compiler=no
23260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23262 $as_echo "$ac_header_compiler" >&6; }
23264 # Is the header present?
23265 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23266 $as_echo_n "checking
$ac_header presence...
" >&6; }
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23273 #include <$ac_header>
23275 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23288 (exit $ac_status); } >/dev/null && {
23289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23292 ac_header_preproc=yes
23294 $as_echo "$as_me: failed program was
:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 ac_header_preproc=no
23300 rm -f conftest.err conftest.$ac_ext
23301 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23302 $as_echo "$ac_header_preproc" >&6; }
23304 # So? What about this header?
23305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23307 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23308 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23309 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23310 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23311 ac_header_preproc=yes
23314 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23315 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23316 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23317 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23318 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23319 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23320 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23321 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23324 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23325 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23329 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23330 $as_echo_n "checking
for $ac_header...
" >&6; }
23331 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23332 $as_echo_n "(cached
) " >&6
23334 eval "$as_ac_Header=\
$ac_header_preproc"
23336 ac_res=`eval 'as_val=${'$as_ac_Header'}
23337 $as_echo "$as_val"'`
23338 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23339 $as_echo "$ac_res" >&6; }
23342 if test `eval 'as_val=${'$as_ac_Header'}
23343 $as_echo "$as_val"'` = yes; then
23344 cat >>confdefs.h <<_ACEOF
23345 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23361 for ac_header in krb.h
23363 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23365 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23366 $as_echo_n "checking
for $ac_header...
" >&6; }
23367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23368 $as_echo_n "(cached
) " >&6
23370 ac_res=`eval 'as_val=${'$as_ac_Header'}
23371 $as_echo "$as_val"'`
23372 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23373 $as_echo "$ac_res" >&6; }
23375 # Is the header compilable?
23376 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23377 $as_echo_n "checking
$ac_header usability...
" >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 $ac_includes_default
23385 #include <$ac_header>
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23394 $as_echo "$ac_try_echo") >&5
23395 (eval "$ac_compile") 2>conftest.er1
23397 grep -v '^ *+' conftest.er1 >conftest.err
23399 cat conftest.err >&5
23400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23401 (exit $ac_status); } && {
23402 test -z "$ac_c_werror_flag" ||
23403 test ! -s conftest.err
23404 } && test -s conftest.$ac_objext; then
23405 ac_header_compiler=yes
23407 $as_echo "$as_me: failed program was
:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23410 ac_header_compiler=no
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23414 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23415 $as_echo "$ac_header_compiler" >&6; }
23417 # Is the header present?
23418 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23419 $as_echo_n "checking
$ac_header presence...
" >&6; }
23420 cat >conftest.$ac_ext <<_ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 #include <$ac_header>
23428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23429 case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23433 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23434 $as_echo "$ac_try_echo") >&5
23435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23441 (exit $ac_status); } >/dev/null && {
23442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23445 ac_header_preproc=yes
23447 $as_echo "$as_me: failed program was
:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_header_preproc=no
23453 rm -f conftest.err conftest.$ac_ext
23454 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23455 $as_echo "$ac_header_preproc" >&6; }
23457 # So? What about this header?
23458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23460 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23461 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23462 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23464 ac_header_preproc=yes
23467 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23468 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23469 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23470 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23472 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23474 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23478 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23482 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23483 $as_echo_n "checking
for $ac_header...
" >&6; }
23484 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23485 $as_echo_n "(cached
) " >&6
23487 eval "$as_ac_Header=\
$ac_header_preproc"
23489 ac_res=`eval 'as_val=${'$as_ac_Header'}
23490 $as_echo "$as_val"'`
23491 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23492 $as_echo "$ac_res" >&6; }
23495 if test `eval 'as_val=${'$as_ac_Header'}
23496 $as_echo "$as_val"'` = yes; then
23497 cat >>confdefs.h <<_ACEOF
23498 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23503 for ac_header in kerberosIV/krb.h
23505 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23506 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23507 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23508 $as_echo_n "checking
for $ac_header...
" >&6; }
23509 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23510 $as_echo_n "(cached
) " >&6
23512 ac_res=`eval 'as_val=${'$as_ac_Header'}
23513 $as_echo "$as_val"'`
23514 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23515 $as_echo "$ac_res" >&6; }
23517 # Is the header compilable?
23518 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23519 $as_echo_n "checking
$ac_header usability...
" >&6; }
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 $ac_includes_default
23527 #include <$ac_header>
23529 rm -f conftest.$ac_objext
23530 if { (ac_try="$ac_compile"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23535 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23539 grep -v '^ *+' conftest.er1 >conftest.err
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_header_compiler=yes
23549 $as_echo "$as_me: failed program was
:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_header_compiler=no
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23557 $as_echo "$ac_header_compiler" >&6; }
23559 # Is the header present?
23560 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23561 $as_echo_n "checking
$ac_header presence...
" >&6; }
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23568 #include <$ac_header>
23570 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23571 case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23576 $as_echo "$ac_try_echo") >&5
23577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23583 (exit $ac_status); } >/dev/null && {
23584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23587 ac_header_preproc=yes
23589 $as_echo "$as_me: failed program was
:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ac_header_preproc=no
23595 rm -f conftest.err conftest.$ac_ext
23596 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23597 $as_echo "$ac_header_preproc" >&6; }
23599 # So? What about this header?
23600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23602 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23603 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23604 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23606 ac_header_preproc=yes
23609 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23610 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23611 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23612 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23614 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23616 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23620 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23624 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23625 $as_echo_n "checking
for $ac_header...
" >&6; }
23626 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23627 $as_echo_n "(cached
) " >&6
23629 eval "$as_ac_Header=\
$ac_header_preproc"
23631 ac_res=`eval 'as_val=${'$as_ac_Header'}
23632 $as_echo "$as_val"'`
23633 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23634 $as_echo "$ac_res" >&6; }
23637 if test `eval 'as_val=${'$as_ac_Header'}
23638 $as_echo "$as_val"'` = yes; then
23639 cat >>confdefs.h <<_ACEOF
23640 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23645 for ac_header in kerberos/krb.h
23647 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23648 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23649 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23650 $as_echo_n "checking
for $ac_header...
" >&6; }
23651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23652 $as_echo_n "(cached
) " >&6
23654 ac_res=`eval 'as_val=${'$as_ac_Header'}
23655 $as_echo "$as_val"'`
23656 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23657 $as_echo "$ac_res" >&6; }
23659 # Is the header compilable?
23660 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23661 $as_echo_n "checking
$ac_header usability...
" >&6; }
23662 cat >conftest.$ac_ext <<_ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 $ac_includes_default
23669 #include <$ac_header>
23671 rm -f conftest.$ac_objext
23672 if { (ac_try="$ac_compile"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679 (eval "$ac_compile") 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23685 (exit $ac_status); } && {
23686 test -z "$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 } && test -s conftest.$ac_objext; then
23689 ac_header_compiler=yes
23691 $as_echo "$as_me: failed program was
:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_header_compiler=no
23697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23699 $as_echo "$ac_header_compiler" >&6; }
23701 # Is the header present?
23702 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23703 $as_echo_n "checking
$ac_header presence...
" >&6; }
23704 cat >conftest.$ac_ext <<_ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h. */
23710 #include <$ac_header>
23712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23713 case "(($ac_try" in
23714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715 *) ac_try_echo=$ac_try;;
23717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23718 $as_echo "$ac_try_echo") >&5
23719 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23721 grep -v '^ *+' conftest.er1 >conftest.err
23723 cat conftest.err >&5
23724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23725 (exit $ac_status); } >/dev/null && {
23726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23729 ac_header_preproc=yes
23731 $as_echo "$as_me: failed program was
:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ac_header_preproc=no
23737 rm -f conftest.err conftest.$ac_ext
23738 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23739 $as_echo "$ac_header_preproc" >&6; }
23741 # So? What about this header?
23742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23744 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23745 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23746 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23748 ac_header_preproc=yes
23751 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23752 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23754 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23756 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23758 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23762 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23766 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23767 $as_echo_n "checking
for $ac_header...
" >&6; }
23768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23769 $as_echo_n "(cached
) " >&6
23771 eval "$as_ac_Header=\
$ac_header_preproc"
23773 ac_res=`eval 'as_val=${'$as_ac_Header'}
23774 $as_echo "$as_val"'`
23775 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23776 $as_echo "$ac_res" >&6; }
23779 if test `eval 'as_val=${'$as_ac_Header'}
23780 $as_echo "$as_val"'` = yes; then
23781 cat >>confdefs.h <<_ACEOF
23782 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23799 for ac_header in com_err.h
23801 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23802 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23803 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23804 $as_echo_n "checking
for $ac_header...
" >&6; }
23805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23806 $as_echo_n "(cached
) " >&6
23808 ac_res=`eval 'as_val=${'$as_ac_Header'}
23809 $as_echo "$as_val"'`
23810 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23811 $as_echo "$ac_res" >&6; }
23813 # Is the header compilable?
23814 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23815 $as_echo_n "checking
$ac_header usability...
" >&6; }
23816 cat >conftest.$ac_ext <<_ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h. */
23822 $ac_includes_default
23823 #include <$ac_header>
23825 rm -f conftest.$ac_objext
23826 if { (ac_try="$ac_compile"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23832 $as_echo "$ac_try_echo") >&5
23833 (eval "$ac_compile") 2>conftest.er1
23835 grep -v '^ *+' conftest.er1 >conftest.err
23837 cat conftest.err >&5
23838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest.$ac_objext; then
23843 ac_header_compiler=yes
23845 $as_echo "$as_me: failed program was
:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23848 ac_header_compiler=no
23851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23852 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23853 $as_echo "$ac_header_compiler" >&6; }
23855 # Is the header present?
23856 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23857 $as_echo_n "checking
$ac_header presence...
" >&6; }
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23864 #include <$ac_header>
23866 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23872 $as_echo "$ac_try_echo") >&5
23873 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23875 grep -v '^ *+' conftest.er1 >conftest.err
23877 cat conftest.err >&5
23878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23879 (exit $ac_status); } >/dev/null && {
23880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23881 test ! -s conftest.err
23883 ac_header_preproc=yes
23885 $as_echo "$as_me: failed program was
:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23888 ac_header_preproc=no
23891 rm -f conftest.err conftest.$ac_ext
23892 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23893 $as_echo "$ac_header_preproc" >&6; }
23895 # So? What about this header?
23896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23898 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23899 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23900 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23902 ac_header_preproc=yes
23905 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23906 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23907 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23908 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23910 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23912 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23915 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23916 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23920 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23921 $as_echo_n "checking
for $ac_header...
" >&6; }
23922 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23923 $as_echo_n "(cached
) " >&6
23925 eval "$as_ac_Header=\
$ac_header_preproc"
23927 ac_res=`eval 'as_val=${'$as_ac_Header'}
23928 $as_echo "$as_val"'`
23929 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23930 $as_echo "$ac_res" >&6; }
23933 if test `eval 'as_val=${'$as_ac_Header'}
23934 $as_echo "$as_val"'` = yes; then
23935 cat >>confdefs.h <<_ACEOF
23936 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23951 # Solaris requires -lintl if you want strerror (which calls dgettext)
23952 # to return localized messages.
23954 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23955 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23956 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23957 $as_echo_n "(cached
) " >&6
23959 ac_check_lib_save_LIBS=$LIBS
23960 LIBS="-lintl $LIBS"
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23968 /* Override any GCC internal prototype to avoid an error.
23969 Use char because int might match the return type of a GCC
23970 builtin and then its argument prototype would still apply. */
23978 return dgettext ();
23983 rm -f conftest.$ac_objext conftest$ac_exeext
23984 if { (ac_try="$ac_link"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991 (eval "$ac_link") 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
23995 cat conftest.err >&5
23996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest$ac_exeext && {
24001 test "$cross_compiling" = yes ||
24002 $as_test_x conftest$ac_exeext
24004 ac_cv_lib_intl_dgettext=yes
24006 $as_echo "$as_me: failed program was
:" >&5
24007 sed 's/^/| /' conftest.$ac_ext >&5
24009 ac_cv_lib_intl_dgettext=no
24012 rm -rf conftest.dSYM
24013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24014 conftest$ac_exeext conftest.$ac_ext
24015 LIBS=$ac_check_lib_save_LIBS
24017 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24018 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24019 if test $ac_cv_lib_intl_dgettext = yes; then
24020 cat >>confdefs.h <<_ACEOF
24021 #define HAVE_LIBINTL 1
24024 LIBS="-lintl $LIBS"
24029 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24030 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24031 if test "${emacs_cv_localtime_cache+set}" = set; then
24032 $as_echo_n "(cached
) " >&6
24034 if test x$ac_cv_func_tzset = xyes; then
24035 if test "$cross_compiling" = yes; then
24036 # If we have tzset, assume the worst when cross-compiling.
24037 emacs_cv_localtime_cache=yes
24039 cat >conftest.$ac_ext <<_ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24046 extern char **environ;
24050 for (to = from = environ; (*to = *from); from++)
24051 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24054 char TZ_GMT0[] = "TZ
=GMT0
";
24055 char TZ_PST8[] = "TZ
=PST8
";
24058 time_t now = time ((time_t *) 0);
24059 int hour_GMT0, hour_unset;
24060 if (putenv (TZ_GMT0) != 0)
24062 hour_GMT0 = localtime (&now)->tm_hour;
24064 hour_unset = localtime (&now)->tm_hour;
24065 if (putenv (TZ_PST8) != 0)
24067 if (localtime (&now)->tm_hour == hour_GMT0)
24070 if (localtime (&now)->tm_hour != hour_unset)
24075 rm -f conftest$ac_exeext
24076 if { (ac_try="$ac_link"
24077 case "(($ac_try" in
24078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24079 *) ac_try_echo=$ac_try;;
24081 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24082 $as_echo "$ac_try_echo") >&5
24083 (eval "$ac_link") 2>&5
24085 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24087 { (case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24092 $as_echo "$ac_try_echo") >&5
24093 (eval "$ac_try") 2>&5
24095 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 emacs_cv_localtime_cache=no
24099 $as_echo "$as_me: program exited with status
$ac_status" >&5
24100 $as_echo "$as_me: failed program was
:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ( exit $ac_status )
24104 emacs_cv_localtime_cache=yes
24106 rm -rf conftest.dSYM
24107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24112 # If we lack tzset, report that localtime does not cache TZ,
24113 # since we can't invalidate the cache if we don't have tzset.
24114 emacs_cv_localtime_cache=no
24117 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24118 $as_echo "$emacs_cv_localtime_cache" >&6; }
24119 if test $emacs_cv_localtime_cache = yes; then
24121 cat >>confdefs.h <<\_ACEOF
24122 #define LOCALTIME_CACHE 1
24127 if test "x
$HAVE_TIMEVAL" = xyes; then
24129 for ac_func in gettimeofday
24131 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24132 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24133 $as_echo_n "checking
for $ac_func...
" >&6; }
24134 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24135 $as_echo_n "(cached
) " >&6
24137 cat >conftest.$ac_ext <<_ACEOF
24140 cat confdefs.h >>conftest.$ac_ext
24141 cat >>conftest.$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24145 #define $ac_func innocuous_$ac_func
24147 /* System header to define __stub macros and hopefully few prototypes,
24148 which can conflict with char $ac_func (); below.
24149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24150 <limits.h> exists even on freestanding compilers. */
24153 # include <limits.h>
24155 # include <assert.h>
24160 /* Override any GCC internal prototype to avoid an error.
24161 Use char because int might match the return type of a GCC
24162 builtin and then its argument prototype would still apply. */
24167 /* The GNU C library defines this for functions which it implements
24168 to always fail with ENOSYS. Some functions are actually named
24169 something starting with __ and the normal name is an alias. */
24170 #if defined __stub_$ac_func || defined __stub___$ac_func
24177 return $ac_func ();
24182 rm -f conftest.$ac_objext conftest$ac_exeext
24183 if { (ac_try="$ac_link"
24184 case "(($ac_try" in
24185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186 *) ac_try_echo=$ac_try;;
24188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190 (eval "$ac_link") 2>conftest.er1
24192 grep -v '^ *+' conftest.er1 >conftest.err
24194 cat conftest.err >&5
24195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24196 (exit $ac_status); } && {
24197 test -z "$ac_c_werror_flag" ||
24198 test ! -s conftest.err
24199 } && test -s conftest$ac_exeext && {
24200 test "$cross_compiling" = yes ||
24201 $as_test_x conftest$ac_exeext
24203 eval "$as_ac_var=yes"
24205 $as_echo "$as_me: failed program was
:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 eval "$as_ac_var=no
"
24211 rm -rf conftest.dSYM
24212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24213 conftest$ac_exeext conftest.$ac_ext
24215 ac_res=`eval 'as_val=${'$as_ac_var'}
24216 $as_echo "$as_val"'`
24217 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24218 $as_echo "$ac_res" >&6; }
24219 if test `eval 'as_val=${'$as_ac_var'}
24220 $as_echo "$as_val"'` = yes; then
24221 cat >>confdefs.h <<_ACEOF
24222 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24228 if test $ac_cv_func_gettimeofday = yes; then
24229 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24230 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24231 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24232 $as_echo_n "(cached
) " >&6
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24241 #ifdef TIME_WITH_SYS_TIME
24242 #include <sys/time.h>
24245 #ifdef HAVE_SYS_TIME_H
24246 #include <sys/time.h>
24254 struct timeval time;
24255 gettimeofday (&time, 0);
24260 rm -f conftest.$ac_objext
24261 if { (ac_try="$ac_compile"
24262 case "(($ac_try" in
24263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264 *) ac_try_echo=$ac_try;;
24266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24267 $as_echo "$ac_try_echo") >&5
24268 (eval "$ac_compile") 2>conftest.er1
24270 grep -v '^ *+' conftest.er1 >conftest.err
24272 cat conftest.err >&5
24273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24274 (exit $ac_status); } && {
24275 test -z "$ac_c_werror_flag" ||
24276 test ! -s conftest.err
24277 } && test -s conftest.$ac_objext; then
24278 emacs_cv_gettimeofday_two_arguments=yes
24280 $as_echo "$as_me: failed program was
:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 emacs_cv_gettimeofday_two_arguments=no
24286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24289 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24290 if test $emacs_cv_gettimeofday_two_arguments = no; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24301 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24302 $as_echo_n "checking
for socket...
" >&6; }
24303 if test "${ac_cv_func_socket+set}" = set; then
24304 $as_echo_n "(cached
) " >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24312 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24314 #define socket innocuous_socket
24316 /* System header to define __stub macros and hopefully few prototypes,
24317 which can conflict with char socket (); below.
24318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24319 <limits.h> exists even on freestanding compilers. */
24322 # include <limits.h>
24324 # include <assert.h>
24329 /* Override any GCC internal prototype to avoid an error.
24330 Use char because int might match the return type of a GCC
24331 builtin and then its argument prototype would still apply. */
24336 /* The GNU C library defines this for functions which it implements
24337 to always fail with ENOSYS. Some functions are actually named
24338 something starting with __ and the normal name is an alias. */
24339 #if defined __stub_socket || defined __stub___socket
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (ac_try="$ac_link"
24353 case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24358 $as_echo "$ac_try_echo") >&5
24359 (eval "$ac_link") 2>conftest.er1
24361 grep -v '^ *+' conftest.er1 >conftest.err
24363 cat conftest.err >&5
24364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24365 (exit $ac_status); } && {
24366 test -z "$ac_c_werror_flag" ||
24367 test ! -s conftest.err
24368 } && test -s conftest$ac_exeext && {
24369 test "$cross_compiling" = yes ||
24370 $as_test_x conftest$ac_exeext
24372 ac_cv_func_socket=yes
24374 $as_echo "$as_me: failed program was
:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24377 ac_cv_func_socket=no
24380 rm -rf conftest.dSYM
24381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24382 conftest$ac_exeext conftest.$ac_ext
24384 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24385 $as_echo "$ac_cv_func_socket" >&6; }
24386 if test $ac_cv_func_socket = yes; then
24392 if test $ok_so_far = yes; then
24393 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24394 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24395 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24396 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24397 $as_echo_n "(cached
) " >&6
24399 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24400 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24402 # Is the header compilable?
24403 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24404 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24405 cat >conftest.$ac_ext <<_ACEOF
24408 cat confdefs.h >>conftest.$ac_ext
24409 cat >>conftest.$ac_ext <<_ACEOF
24410 /* end confdefs.h. */
24411 $ac_includes_default
24412 #include <netinet/in.h>
24414 rm -f conftest.$ac_objext
24415 if { (ac_try="$ac_compile"
24416 case "(($ac_try" in
24417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418 *) ac_try_echo=$ac_try;;
24420 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24421 $as_echo "$ac_try_echo") >&5
24422 (eval "$ac_compile") 2>conftest.er1
24424 grep -v '^ *+' conftest.er1 >conftest.err
24426 cat conftest.err >&5
24427 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest.$ac_objext; then
24432 ac_header_compiler=yes
24434 $as_echo "$as_me: failed program was
:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24437 ac_header_compiler=no
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24442 $as_echo "$ac_header_compiler" >&6; }
24444 # Is the header present?
24445 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24446 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24447 cat >conftest.$ac_ext <<_ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h. */
24453 #include <netinet/in.h>
24455 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24456 case "(($ac_try" in
24457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24460 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24461 $as_echo "$ac_try_echo") >&5
24462 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24464 grep -v '^ *+' conftest.er1 >conftest.err
24466 cat conftest.err >&5
24467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24468 (exit $ac_status); } >/dev/null && {
24469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24472 ac_header_preproc=yes
24474 $as_echo "$as_me: failed program was
:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ac_header_preproc=no
24480 rm -f conftest.err conftest.$ac_ext
24481 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24482 $as_echo "$ac_header_preproc" >&6; }
24484 # So? What about this header?
24485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24487 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24488 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24489 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24490 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24491 ac_header_preproc=yes
24494 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24495 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24497 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24499 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24501 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24502 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24503 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24504 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24505 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24509 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24510 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24511 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24512 $as_echo_n "(cached
) " >&6
24514 ac_cv_header_netinet_in_h=$ac_header_preproc
24516 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24517 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24520 if test $ac_cv_header_netinet_in_h = yes; then
24528 if test $ok_so_far = yes; then
24529 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24530 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24531 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24532 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24533 $as_echo_n "(cached
) " >&6
24535 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24536 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24538 # Is the header compilable?
24539 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24540 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24541 cat >conftest.$ac_ext <<_ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h. */
24547 $ac_includes_default
24548 #include <arpa/inet.h>
24550 rm -f conftest.$ac_objext
24551 if { (ac_try="$ac_compile"
24552 case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24560 grep -v '^ *+' conftest.er1 >conftest.err
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 ac_header_compiler=yes
24570 $as_echo "$as_me: failed program was
:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24573 ac_header_compiler=no
24576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24578 $as_echo "$ac_header_compiler" >&6; }
24580 # Is the header present?
24581 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24582 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24583 cat >conftest.$ac_ext <<_ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h. */
24589 #include <arpa/inet.h>
24591 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24592 case "(($ac_try" in
24593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24594 *) ac_try_echo=$ac_try;;
24596 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24597 $as_echo "$ac_try_echo") >&5
24598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24600 grep -v '^ *+' conftest.er1 >conftest.err
24602 cat conftest.err >&5
24603 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24604 (exit $ac_status); } >/dev/null && {
24605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24606 test ! -s conftest.err
24608 ac_header_preproc=yes
24610 $as_echo "$as_me: failed program was
:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ac_header_preproc=no
24616 rm -f conftest.err conftest.$ac_ext
24617 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24618 $as_echo "$ac_header_preproc" >&6; }
24620 # So? What about this header?
24621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24623 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24624 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24625 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24626 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24627 ac_header_preproc=yes
24630 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24631 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24632 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24633 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24635 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24637 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24639 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24640 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24641 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24645 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24646 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24648 $as_echo_n "(cached
) " >&6
24650 ac_cv_header_arpa_inet_h=$ac_header_preproc
24652 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24653 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24656 if test $ac_cv_header_arpa_inet_h = yes; then
24664 if test $ok_so_far = yes; then
24666 cat >>confdefs.h <<\_ACEOF
24667 #define HAVE_INET_SOCKETS 1
24673 for ac_header in sys/ioctl.h
24675 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24677 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24678 $as_echo_n "checking
for $ac_header...
" >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24680 $as_echo_n "(cached
) " >&6
24682 ac_res=`eval 'as_val=${'$as_ac_Header'}
24683 $as_echo "$as_val"'`
24684 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24685 $as_echo "$ac_res" >&6; }
24687 # Is the header compilable?
24688 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24689 $as_echo_n "checking
$ac_header usability...
" >&6; }
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24696 $ac_includes_default
24697 #include <$ac_header>
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_compile") 2>conftest.er1
24709 grep -v '^ *+' conftest.er1 >conftest.err
24711 cat conftest.err >&5
24712 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest.$ac_objext; then
24717 ac_header_compiler=yes
24719 $as_echo "$as_me: failed program was
:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 ac_header_compiler=no
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24727 $as_echo "$ac_header_compiler" >&6; }
24729 # Is the header present?
24730 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24731 $as_echo_n "checking
$ac_header presence...
" >&6; }
24732 cat >conftest.$ac_ext <<_ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 #include <$ac_header>
24740 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24741 case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24745 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24749 grep -v '^ *+' conftest.er1 >conftest.err
24751 cat conftest.err >&5
24752 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24753 (exit $ac_status); } >/dev/null && {
24754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24755 test ! -s conftest.err
24757 ac_header_preproc=yes
24759 $as_echo "$as_me: failed program was
:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24762 ac_header_preproc=no
24765 rm -f conftest.err conftest.$ac_ext
24766 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24767 $as_echo "$ac_header_preproc" >&6; }
24769 # So? What about this header?
24770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24773 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24776 ac_header_preproc=yes
24779 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24780 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24781 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24782 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24783 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24784 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24786 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24787 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24789 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24790 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24794 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24795 $as_echo_n "checking
for $ac_header...
" >&6; }
24796 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24797 $as_echo_n "(cached
) " >&6
24799 eval "$as_ac_Header=\
$ac_header_preproc"
24801 ac_res=`eval 'as_val=${'$as_ac_Header'}
24802 $as_echo "$as_val"'`
24803 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24804 $as_echo "$ac_res" >&6; }
24807 if test `eval 'as_val=${'$as_ac_Header'}
24808 $as_echo "$as_val"'` = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24818 if test -f /usr/lpp/X11/bin/smt.exp; then
24820 cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_AIX_SMT_EXP 1
24826 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24827 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24828 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24829 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24830 $as_echo "yes" >&6; }
24832 cat >>confdefs.h <<\_ACEOF
24833 #define HAVE_DEV_PTMX 1
24837 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24838 $as_echo "no
" >&6; }
24841 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24842 $as_echo_n "checking
for pid_t...
" >&6; }
24843 if test "${ac_cv_type_pid_t+set}" = set; then
24844 $as_echo_n "(cached
) " >&6
24846 ac_cv_type_pid_t=no
24847 cat >conftest.$ac_ext <<_ACEOF
24850 cat confdefs.h >>conftest.$ac_ext
24851 cat >>conftest.$ac_ext <<_ACEOF
24852 /* end confdefs.h. */
24853 $ac_includes_default
24857 if (sizeof (pid_t))
24863 rm -f conftest.$ac_objext
24864 if { (ac_try="$ac_compile"
24865 case "(($ac_try" in
24866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24869 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24870 $as_echo "$ac_try_echo") >&5
24871 (eval "$ac_compile") 2>conftest.er1
24873 grep -v '^ *+' conftest.er1 >conftest.err
24875 cat conftest.err >&5
24876 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24877 (exit $ac_status); } && {
24878 test -z "$ac_c_werror_flag" ||
24879 test ! -s conftest.err
24880 } && test -s conftest.$ac_objext; then
24881 cat >conftest.$ac_ext <<_ACEOF
24884 cat confdefs.h >>conftest.$ac_ext
24885 cat >>conftest.$ac_ext <<_ACEOF
24886 /* end confdefs.h. */
24887 $ac_includes_default
24891 if (sizeof ((pid_t)))
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24907 grep -v '^ *+' conftest.er1 >conftest.err
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24917 $as_echo "$as_me: failed program was
:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_cv_type_pid_t=yes
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 $as_echo "$as_me: failed program was
:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24933 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24934 $as_echo "$ac_cv_type_pid_t" >&6; }
24935 if test $ac_cv_type_pid_t = yes; then
24939 cat >>confdefs.h <<_ACEOF
24946 for ac_header in vfork.h
24948 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24950 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24951 $as_echo_n "checking
for $ac_header...
" >&6; }
24952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24953 $as_echo_n "(cached
) " >&6
24955 ac_res=`eval 'as_val=${'$as_ac_Header'}
24956 $as_echo "$as_val"'`
24957 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24958 $as_echo "$ac_res" >&6; }
24960 # Is the header compilable?
24961 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24962 $as_echo_n "checking
$ac_header usability...
" >&6; }
24963 cat >conftest.$ac_ext <<_ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969 $ac_includes_default
24970 #include <$ac_header>
24972 rm -f conftest.$ac_objext
24973 if { (ac_try="$ac_compile"
24974 case "(($ac_try" in
24975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976 *) ac_try_echo=$ac_try;;
24978 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24979 $as_echo "$ac_try_echo") >&5
24980 (eval "$ac_compile") 2>conftest.er1
24982 grep -v '^ *+' conftest.er1 >conftest.err
24984 cat conftest.err >&5
24985 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24986 (exit $ac_status); } && {
24987 test -z "$ac_c_werror_flag" ||
24988 test ! -s conftest.err
24989 } && test -s conftest.$ac_objext; then
24990 ac_header_compiler=yes
24992 $as_echo "$as_me: failed program was
:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24995 ac_header_compiler=no
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24999 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25000 $as_echo "$ac_header_compiler" >&6; }
25002 # Is the header present?
25003 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25004 $as_echo_n "checking
$ac_header presence...
" >&6; }
25005 cat >conftest.$ac_ext <<_ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h. */
25011 #include <$ac_header>
25013 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25014 case "(($ac_try" in
25015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25016 *) ac_try_echo=$ac_try;;
25018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25019 $as_echo "$ac_try_echo") >&5
25020 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25022 grep -v '^ *+' conftest.er1 >conftest.err
25024 cat conftest.err >&5
25025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25026 (exit $ac_status); } >/dev/null && {
25027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25028 test ! -s conftest.err
25030 ac_header_preproc=yes
25032 $as_echo "$as_me: failed program was
:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ac_header_preproc=no
25038 rm -f conftest.err conftest.$ac_ext
25039 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25040 $as_echo "$ac_header_preproc" >&6; }
25042 # So? What about this header?
25043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25045 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25046 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25047 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25049 ac_header_preproc=yes
25052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25053 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25055 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25056 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25057 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25059 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25060 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25062 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25063 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25067 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25068 $as_echo_n "checking
for $ac_header...
" >&6; }
25069 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25070 $as_echo_n "(cached
) " >&6
25072 eval "$as_ac_Header=\
$ac_header_preproc"
25074 ac_res=`eval 'as_val=${'$as_ac_Header'}
25075 $as_echo "$as_val"'`
25076 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25077 $as_echo "$ac_res" >&6; }
25080 if test `eval 'as_val=${'$as_ac_Header'}
25081 $as_echo "$as_val"'` = yes; then
25082 cat >>confdefs.h <<_ACEOF
25083 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25092 for ac_func in fork vfork
25094 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25095 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25096 $as_echo_n "checking
for $ac_func...
" >&6; }
25097 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25098 $as_echo_n "(cached
) " >&6
25100 cat >conftest.$ac_ext <<_ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25108 #define $ac_func innocuous_$ac_func
25110 /* System header to define __stub macros and hopefully few prototypes,
25111 which can conflict with char $ac_func (); below.
25112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25113 <limits.h> exists even on freestanding compilers. */
25116 # include <limits.h>
25118 # include <assert.h>
25123 /* Override any GCC internal prototype to avoid an error.
25124 Use char because int might match the return type of a GCC
25125 builtin and then its argument prototype would still apply. */
25130 /* The GNU C library defines this for functions which it implements
25131 to always fail with ENOSYS. Some functions are actually named
25132 something starting with __ and the normal name is an alias. */
25133 #if defined __stub_$ac_func || defined __stub___$ac_func
25140 return $ac_func ();
25145 rm -f conftest.$ac_objext conftest$ac_exeext
25146 if { (ac_try="$ac_link"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25152 $as_echo "$ac_try_echo") >&5
25153 (eval "$ac_link") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_c_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest$ac_exeext && {
25163 test "$cross_compiling" = yes ||
25164 $as_test_x conftest$ac_exeext
25166 eval "$as_ac_var=yes"
25168 $as_echo "$as_me: failed program was
:" >&5
25169 sed 's/^/| /' conftest.$ac_ext >&5
25171 eval "$as_ac_var=no
"
25174 rm -rf conftest.dSYM
25175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25176 conftest$ac_exeext conftest.$ac_ext
25178 ac_res=`eval 'as_val=${'$as_ac_var'}
25179 $as_echo "$as_val"'`
25180 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25181 $as_echo "$ac_res" >&6; }
25182 if test `eval 'as_val=${'$as_ac_var'}
25183 $as_echo "$as_val"'` = yes; then
25184 cat >>confdefs.h <<_ACEOF
25185 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25191 if test "x
$ac_cv_func_fork" = xyes; then
25192 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25193 $as_echo_n "checking
for working fork...
" >&6; }
25194 if test "${ac_cv_func_fork_works+set}" = set; then
25195 $as_echo_n "(cached
) " >&6
25197 if test "$cross_compiling" = yes; then
25198 ac_cv_func_fork_works=cross
25200 cat >conftest.$ac_ext <<_ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h. */
25206 $ac_includes_default
25211 /* By Ruediger Kuhlmann. */
25212 return fork () < 0;
25218 rm -f conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222 *) ac_try_echo=$ac_try;;
25224 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25225 $as_echo "$ac_try_echo") >&5
25226 (eval "$ac_link") 2>&5
25228 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25230 { (case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236 (eval "$ac_try") 2>&5
25238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_func_fork_works=yes
25242 $as_echo "$as_me: program exited with status
$ac_status" >&5
25243 $as_echo "$as_me: failed program was
:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ( exit $ac_status )
25247 ac_cv_func_fork_works=no
25249 rm -rf conftest.dSYM
25250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25255 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25256 $as_echo "$ac_cv_func_fork_works" >&6; }
25259 ac_cv_func_fork_works=$ac_cv_func_fork
25261 if test "x
$ac_cv_func_fork_works" = xcross; then
25263 *-*-amigaos* | *-*-msdosdjgpp*)
25264 # Override, as these systems have only a dummy fork() stub
25265 ac_cv_func_fork_works=no
25268 ac_cv_func_fork_works=yes
25271 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25272 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25274 ac_cv_func_vfork_works=$ac_cv_func_vfork
25275 if test "x
$ac_cv_func_vfork" = xyes; then
25276 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25277 $as_echo_n "checking
for working vfork...
" >&6; }
25278 if test "${ac_cv_func_vfork_works+set}" = set; then
25279 $as_echo_n "(cached
) " >&6
25281 if test "$cross_compiling" = yes; then
25282 ac_cv_func_vfork_works=cross
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 /* Thanks to Paul Eggert for this test. */
25291 $ac_includes_default
25292 #include <sys/wait.h>
25293 #ifdef HAVE_VFORK_H
25294 # include <vfork.h>
25296 /* On some sparc systems, changes by the child to local and incoming
25297 argument registers are propagated back to the parent. The compiler
25298 is told about this with #include <vfork.h>, but some compilers
25299 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25300 static variable whose address is put into a register that is
25301 clobbered by the vfork. */
25304 sparc_address_test (int arg)
25306 sparc_address_test (arg) int arg;
25309 static pid_t child;
25327 pid_t parent = getpid ();
25330 sparc_address_test (0);
25335 /* Here is another test for sparc vfork register problems. This
25336 test uses lots of local variables, at least as many local
25337 variables as main has allocated so far including compiler
25338 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25339 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25340 reuse the register of parent for one of the local variables,
25341 since it will think that parent can't possibly be used any more
25342 in this routine. Assigning to the local variable will thus
25343 munge parent in the parent process. */
25345 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25346 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25347 /* Convince the compiler that p..p7 are live; otherwise, it might
25348 use the same hardware register for all 8 local variables. */
25349 if (p != p1 || p != p2 || p != p3 || p != p4
25350 || p != p5 || p != p6 || p != p7)
25353 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25354 from child file descriptors. If the child closes a descriptor
25355 before it execs or exits, this munges the parent's descriptor
25356 as well. Test for this by closing stdout in the child. */
25357 _exit(close(fileno(stdout)) != 0);
25362 while (wait(&status) != child)
25365 /* Was there some problem with vforking? */
25368 /* Did the child fail? (This shouldn't happen.) */
25371 /* Did the vfork/compiler bug occur? */
25372 || parent != getpid()
25374 /* Did the file descriptor bug occur? */
25375 || fstat(fileno(stdout), &st) != 0
25380 rm -f conftest$ac_exeext
25381 if { (ac_try="$ac_link"
25382 case "(($ac_try" in
25383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384 *) ac_try_echo=$ac_try;;
25386 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25387 $as_echo "$ac_try_echo") >&5
25388 (eval "$ac_link") 2>&5
25390 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25392 { (case "(($ac_try" in
25393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394 *) ac_try_echo=$ac_try;;
25396 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25397 $as_echo "$ac_try_echo") >&5
25398 (eval "$ac_try") 2>&5
25400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25401 (exit $ac_status); }; }; then
25402 ac_cv_func_vfork_works=yes
25404 $as_echo "$as_me: program exited with status
$ac_status" >&5
25405 $as_echo "$as_me: failed program was
:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25408 ( exit $ac_status )
25409 ac_cv_func_vfork_works=no
25411 rm -rf conftest.dSYM
25412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25417 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25418 $as_echo "$ac_cv_func_vfork_works" >&6; }
25421 if test "x
$ac_cv_func_fork_works" = xcross; then
25422 ac_cv_func_vfork_works=$ac_cv_func_vfork
25423 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25424 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25427 if test "x
$ac_cv_func_vfork_works" = xyes; then
25429 cat >>confdefs.h <<\_ACEOF
25430 #define HAVE_WORKING_VFORK 1
25435 cat >>confdefs.h <<\_ACEOF
25440 if test "x
$ac_cv_func_fork_works" = xyes; then
25442 cat >>confdefs.h <<\_ACEOF
25443 #define HAVE_WORKING_FORK 1
25449 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25450 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25451 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25452 $as_echo_n "(cached
) " >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h. */
25460 #include <langinfo.h>
25464 char* cs = nl_langinfo(CODESET);
25469 rm -f conftest.$ac_objext conftest$ac_exeext
25470 if { (ac_try="$ac_link"
25471 case "(($ac_try" in
25472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473 *) ac_try_echo=$ac_try;;
25475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25476 $as_echo "$ac_try_echo") >&5
25477 (eval "$ac_link") 2>conftest.er1
25479 grep -v '^ *+' conftest.er1 >conftest.err
25481 cat conftest.err >&5
25482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25483 (exit $ac_status); } && {
25484 test -z "$ac_c_werror_flag" ||
25485 test ! -s conftest.err
25486 } && test -s conftest$ac_exeext && {
25487 test "$cross_compiling" = yes ||
25488 $as_test_x conftest$ac_exeext
25490 emacs_cv_langinfo_codeset=yes
25492 $as_echo "$as_me: failed program was
:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25495 emacs_cv_langinfo_codeset=no
25498 rm -rf conftest.dSYM
25499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25500 conftest$ac_exeext conftest.$ac_ext
25503 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25504 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25505 if test $emacs_cv_langinfo_codeset = yes; then
25507 cat >>confdefs.h <<\_ACEOF
25508 #define HAVE_LANGINFO_CODESET 1
25513 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25514 $as_echo_n "checking
for size_t...
" >&6; }
25515 if test "${ac_cv_type_size_t+set}" = set; then
25516 $as_echo_n "(cached
) " >&6
25518 ac_cv_type_size_t=no
25519 cat >conftest.$ac_ext <<_ACEOF
25522 cat confdefs.h >>conftest.$ac_ext
25523 cat >>conftest.$ac_ext <<_ACEOF
25524 /* end confdefs.h. */
25525 $ac_includes_default
25529 if (sizeof (size_t))
25535 rm -f conftest.$ac_objext
25536 if { (ac_try="$ac_compile"
25537 case "(($ac_try" in
25538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539 *) ac_try_echo=$ac_try;;
25541 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25542 $as_echo "$ac_try_echo") >&5
25543 (eval "$ac_compile") 2>conftest.er1
25545 grep -v '^ *+' conftest.er1 >conftest.err
25547 cat conftest.err >&5
25548 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25549 (exit $ac_status); } && {
25550 test -z "$ac_c_werror_flag" ||
25551 test ! -s conftest.err
25552 } && test -s conftest.$ac_objext; then
25553 cat >conftest.$ac_ext <<_ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h. */
25559 $ac_includes_default
25563 if (sizeof ((size_t)))
25569 rm -f conftest.$ac_objext
25570 if { (ac_try="$ac_compile"
25571 case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25575 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25576 $as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25579 grep -v '^ *+' conftest.er1 >conftest.err
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25589 $as_echo "$as_me: failed program was
:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ac_cv_type_size_t=yes
25595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 $as_echo "$as_me: failed program was
:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25606 $as_echo "$ac_cv_type_size_t" >&6; }
25607 if test $ac_cv_type_size_t = yes; then
25609 cat >>confdefs.h <<_ACEOF
25610 #define HAVE_SIZE_T 1
25617 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25618 $as_echo_n "checking
for mbstate_t...
" >&6; }
25619 if test "${ac_cv_type_mbstate_t+set}" = set; then
25620 $as_echo_n "(cached
) " >&6
25622 cat >conftest.$ac_ext <<_ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 $ac_includes_default
25629 # include <wchar.h>
25633 mbstate_t x; return sizeof x;
25638 rm -f conftest.$ac_objext
25639 if { (ac_try="$ac_compile"
25640 case "(($ac_try" in
25641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642 *) ac_try_echo=$ac_try;;
25644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25645 $as_echo "$ac_try_echo") >&5
25646 (eval "$ac_compile") 2>conftest.er1
25648 grep -v '^ *+' conftest.er1 >conftest.err
25650 cat conftest.err >&5
25651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25652 (exit $ac_status); } && {
25653 test -z "$ac_c_werror_flag" ||
25654 test ! -s conftest.err
25655 } && test -s conftest.$ac_objext; then
25656 ac_cv_type_mbstate_t=yes
25658 $as_echo "$as_me: failed program was
:" >&5
25659 sed 's/^/| /' conftest.$ac_ext >&5
25661 ac_cv_type_mbstate_t=no
25664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25666 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25667 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25668 if test $ac_cv_type_mbstate_t = yes; then
25670 cat >>confdefs.h <<\_ACEOF
25671 #define HAVE_MBSTATE_T 1
25676 cat >>confdefs.h <<\_ACEOF
25677 #define mbstate_t int
25682 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25683 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25684 if test "${emacs_cv_c_restrict+set}" = set; then
25685 $as_echo_n "(cached
) " >&6
25687 cat >conftest.$ac_ext <<_ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h. */
25693 void fred (int *restrict x);
25702 rm -f conftest.$ac_objext
25703 if { (ac_try="$ac_compile"
25704 case "(($ac_try" in
25705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706 *) ac_try_echo=$ac_try;;
25708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25709 $as_echo "$ac_try_echo") >&5
25710 (eval "$ac_compile") 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest.$ac_objext; then
25720 emacs_cv_c_restrict=yes
25722 $as_echo "$as_me: failed program was
:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25725 cat >conftest.$ac_ext <<_ACEOF
25728 cat confdefs.h >>conftest.$ac_ext
25729 cat >>conftest.$ac_ext <<_ACEOF
25730 /* end confdefs.h. */
25731 void fred (int *__restrict x);
25740 rm -f conftest.$ac_objext
25741 if { (ac_try="$ac_compile"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25746 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25747 $as_echo "$ac_try_echo") >&5
25748 (eval "$ac_compile") 2>conftest.er1
25750 grep -v '^ *+' conftest.er1 >conftest.err
25752 cat conftest.err >&5
25753 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest.$ac_objext; then
25758 emacs_cv_c_restrict=__restrict
25760 $as_echo "$as_me: failed program was
:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25763 emacs_cv_c_restrict=no
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25772 $as_echo "$emacs_cv_c_restrict" >&6; }
25773 case "$emacs_cv_c_restrict" in
25774 yes) emacs_restrict=restrict;;
25775 no) emacs_restrict="";;
25776 *) emacs_restrict="$emacs_cv_c_restrict";;
25778 if test "$emacs_restrict" != __restrict; then
25780 cat >>confdefs.h <<_ACEOF
25781 #define __restrict $emacs_restrict
25786 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25787 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25788 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25789 $as_echo_n "(cached
) " >&6
25791 cat >conftest.$ac_ext <<_ACEOF
25794 cat confdefs.h >>conftest.$ac_ext
25795 cat >>conftest.$ac_ext <<_ACEOF
25796 /* end confdefs.h. */
25797 void fred (int x[__restrict]);
25806 rm -f conftest.$ac_objext
25807 if { (ac_try="$ac_compile"
25808 case "(($ac_try" in
25809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810 *) ac_try_echo=$ac_try;;
25812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25813 $as_echo "$ac_try_echo") >&5
25814 (eval "$ac_compile") 2>conftest.er1
25816 grep -v '^ *+' conftest.er1 >conftest.err
25818 cat conftest.err >&5
25819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25820 (exit $ac_status); } && {
25821 test -z "$ac_c_werror_flag" ||
25822 test ! -s conftest.err
25823 } && test -s conftest.$ac_objext; then
25824 emacs_cv_c_restrict_arr=yes
25826 $as_echo "$as_me: failed program was
:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25829 emacs_cv_c_restrict_arr=no
25832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25835 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25836 if test "$emacs_cv_c_restrict_arr" = yes; then
25838 cat >>confdefs.h <<\_ACEOF
25839 #define __restrict_arr __restrict
25846 # Set up the CFLAGS for real compilation, so we can substitute it.
25847 CFLAGS="$REAL_CFLAGS"
25848 CPPFLAGS="$REAL_CPPFLAGS"
25850 #### Find out which version of Emacs this is.
25851 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25852 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25853 if test x"${version}" = x; then
25854 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25855 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25856 { (exit 1); exit 1; }; }
25858 if test x"${version}" != x"$PACKAGE_VERSION"; then
25859 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25860 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25863 ### Specify what sort of things we'll be editing into Makefile and config.h.
25864 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25895 ## Used in lwlib/Makefile.in.
25912 cat >>confdefs.h
<<_ACEOF
25913 #define EMACS_CONFIGURATION "${canonical}"
25917 cat >>confdefs.h
<<_ACEOF
25918 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25922 cat >>confdefs.h
<<_ACEOF
25923 #define config_machfile "${machfile}"
25927 cat >>confdefs.h
<<_ACEOF
25928 #define config_opsysfile "${opsysfile}"
25932 cat >>confdefs.h
<<_ACEOF
25933 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25937 cat >>confdefs.h
<<_ACEOF
25938 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25942 cat >>confdefs.h
<<_ACEOF
25943 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25949 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25951 cat >>confdefs.h
<<\_ACEOF
25952 #define HAVE_X_WINDOWS 1
25956 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25963 if test "${USE_X_TOOLKIT}" != "none" ; then
25964 WIDGET_OBJ
=widget.o
25966 cat >>confdefs.h
<<\_ACEOF
25967 #define USE_X_TOOLKIT 1
25970 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25972 cat >>confdefs.h
<<\_ACEOF
25973 #define USE_LUCID 1
25976 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25978 cat >>confdefs.h
<<\_ACEOF
25979 #define USE_MOTIF 1
25985 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
25986 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
25990 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
25991 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
25992 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
25996 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
25997 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26000 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26005 case "$USE_X_TOOLKIT" in
26006 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26007 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26008 *) TOOLKIT_LIBW
= ;;
26012 if test "${HAVE_X11}" = "yes" ; then
26014 cat >>confdefs.h
<<\_ACEOF
26019 if test "${HAVE_MENUS}" = "yes" ; then
26021 cat >>confdefs.h
<<\_ACEOF
26022 #define HAVE_MENUS 1
26026 if test "${GNU_MALLOC}" = "yes" ; then
26028 cat >>confdefs.h
<<\_ACEOF
26029 #define GNU_MALLOC 1
26033 if test "${REL_ALLOC}" = "yes" ; then
26035 cat >>confdefs.h
<<\_ACEOF
26036 #define REL_ALLOC 1
26046 #### Report on what we decided to do.
26047 #### Report GTK as a toolkit, even if it doesn't use Xt.
26048 #### It makes printing result more understandable as using GTK sets
26049 #### toolkit_scroll_bars to yes by default.
26050 if test "${HAVE_GTK}" = "yes"; then
26055 Configured for \`${canonical}'.
26057 Where should the build process find the source code? ${srcdir}
26058 What operating system and machine description files should Emacs use?
26059 \`${opsysfile}' and \`${machfile}'
26060 What compiler should emacs be built with? ${CC} ${CFLAGS}
26061 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26062 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26063 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26064 What window system should Emacs use? ${window_system}
26065 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26067 if test -n "${x_includes}"; then
26068 echo " Where do we find X Windows header files? ${x_includes}"
26070 echo " Where do we find X Windows header files? Standard dirs"
26072 if test -n "${x_libraries}"; then
26073 echo " Where do we find X Windows libraries? ${x_libraries}"
26075 echo " Where do we find X Windows libraries? Standard dirs"
26078 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26079 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26080 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26081 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26082 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26083 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26084 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26085 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26086 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26087 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26088 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26090 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26091 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26092 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26093 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26095 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26098 if test $USE_XASSERTS = yes; then
26099 echo " Compiling with asserts turned on."
26100 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26105 if test "$HAVE_NS" = "yes"; then
26107 echo "You must run \"make install\" in order to test the built application.
26108 The installed application will go to nextstep/Emacs.app and can be
26109 run or moved from there."
26110 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26111 echo "The application will be fully self-contained."
26113 echo "The lisp resources for the application will be installed under ${prefix}.
26114 You may need to run \"make install\" with sudo. The application will fail
26115 to run if these resources are not installed."
26120 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26121 echo "D-Bus integration has been tested for GNU/Linux only."
26126 # Remove any trailing slashes in these variables.
26127 test "${prefix}" != NONE
&&
26128 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26129 test "${exec_prefix}" != NONE
&&
26130 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26132 # Now get this: Some word that is part of the ${srcdir} directory name
26133 # or the ${configuration} value might, just might, happen to be an
26134 # identifier like `sun4' or `i386' or something, and be predefined by
26135 # the C preprocessor to some helpful value like 1, or maybe the empty
26136 # string. Needless to say consequent macro substitutions are less
26137 # than conducive to the makefile finding the correct directory.
26138 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
26139 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26140 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26142 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26143 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26144 ## from Makefile.c can correctly provide the arg `-traditional' to the
26147 cat >conftest.
$ac_ext <<_ACEOF
26150 cat confdefs.h
>>conftest.
$ac_ext
26151 cat >>conftest.
$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26156 $EGREP "yes..yes" >/dev
/null
2>&1; then
26157 CPP_NEED_TRADITIONAL
=no
26159 CPP_NEED_TRADITIONAL
=yes
26164 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"
26166 ac_config_commands
="$ac_config_commands default"
26168 cat >confcache
<<\_ACEOF
26169 # This file is a shell script that caches the results of configure
26170 # tests run on this system so they can be shared between configure
26171 # scripts and configure runs, see configure's option --config-cache.
26172 # It is not useful on other systems. If it contains results you don't
26173 # want to keep, you may remove or edit it.
26175 # config.status only pays attention to the cache file if you give it
26176 # the --recheck option to rerun configure.
26178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26180 # following values.
26184 # The following way of writing the cache mishandles newlines in values,
26185 # but we know of no workaround that is simple, portable, and efficient.
26186 # So, we kill variables containing newlines.
26187 # Ultrix sh set writes to stderr and can't be redirected directly,
26188 # and sets the high bit in the cache file unless we assign to the vars.
26190 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26191 eval ac_val
=\$
$ac_var
26195 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26196 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26199 _ | IFS | as_nl
) ;; #(
26200 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26201 *) $as_unset $ac_var ;;
26207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26208 *${as_nl}ac_space
=\
*)
26209 # `set' does not quote correctly, so add quotes (double-quote
26210 # substitution turns \\\\ into \\, and sed turns \\ into \).
26213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26216 # `set' quotes correctly as required by POSIX, so do not add quotes.
26217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26230 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26231 if test -w "$cache_file"; then
26232 test "x$cache_file" != "x/dev/null" &&
26233 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26234 $as_echo "$as_me: updating cache $cache_file" >&6;}
26235 cat confcache
>$cache_file
26237 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26238 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26243 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26244 # Let make expand exec_prefix.
26245 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26247 DEFS
=-DHAVE_CONFIG_H
26251 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26252 # 1. Remove the extension, and $U if already installed.
26253 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26254 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26255 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26256 # will be set to the directory where LIBOBJS objects are built.
26257 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26258 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26260 LIBOBJS
=$ac_libobjs
26262 LTLIBOBJS
=$ac_ltlibobjs
26266 : ${CONFIG_STATUS=./config.status}
26268 ac_clean_files_save
=$ac_clean_files
26269 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26270 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26271 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26272 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26274 # Generated by $as_me.
26275 # Run this file to recreate the current configuration.
26276 # Compiler output produced by configure, useful for debugging
26277 # configure, is in config.log if it exists.
26280 ac_cs_recheck=false
26282 SHELL=\${CONFIG_SHELL-$SHELL}
26285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26286 ## --------------------- ##
26287 ## M4sh Initialization. ##
26288 ## --------------------- ##
26290 # Be more Bourne compatible
26291 DUALCASE
=1; export DUALCASE
# for MKS sh
26292 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26296 # is contrary to our usage. Disable this feature.
26297 alias -g '${1+"$@"}'='"$@"'
26298 setopt NO_GLOB_SUBST
26300 case `(set -o) 2>/dev/null` in
26301 *posix
*) set -o posix
;;
26310 # Avoid depending upon Character Ranges.
26311 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26312 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26313 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26314 as_cr_digits
='0123456789'
26315 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26320 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26321 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26324 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26325 as_echo='printf %s
\n'
26326 as_echo_n='printf %s
'
26328 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26329 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26330 as_echo_n='/usr
/ucb
/echo -n'
26332 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26333 as_echo_n_body='eval
26337 expr "X$arg" : "X\\(.*\\)$as_nl";
26338 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26340 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26342 export as_echo_n_body
26343 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26345 export as_echo_body
26346 as_echo='sh
-c $as_echo_body as_echo
'
26349 # The user is always right.
26350 if test "${PATH_SEPARATOR+set}" != set; then
26352 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26353 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26358 # Support unset when possible.
26359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26367 # We need space, tab and new line, in precisely that order. Quoting is
26368 # there to prevent editors from complaining about space-tab.
26369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26370 # splitting by setting IFS to empty value.)
26373 # Find who we are. Look in the path if we contain no directory separator.
26375 *[\\/]* ) as_myself=$0 ;;
26376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26377 for as_dir in $PATH
26380 test -z "$as_dir" && as_dir=.
26381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26387 # We did not find ourselves, most probably we were run as `sh COMMAND'
26388 # in which case we are not to be found in the path.
26389 if test "x$as_myself" = x
; then
26392 if test ! -f "$as_myself"; then
26393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26394 { (exit 1); exit 1; }
26397 # Work around bugs in pre-3.0 UWIN ksh.
26398 for as_var
in ENV MAIL MAILPATH
26399 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26411 # Required to use basename.
26412 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26413 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26419 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26420 as_basename
=basename
26426 # Name of the executable.
26427 as_me
=`$as_basename -- "$0" ||
26428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26429 X"$0" : 'X\(//\)$' \| \
26430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26432 sed '/^.*\/\([^/][^/]*\)\/*$/{
26451 as_lineno_1
=$LINENO
26452 as_lineno_2
=$LINENO
26453 test "x$as_lineno_1" != "x$as_lineno_2" &&
26454 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26456 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26457 # uniformly replaced by the line number. The first 'sed' inserts a
26458 # line-number line after each line using $LINENO; the second 'sed'
26459 # does the real work. The second script uses 'N' to pair each
26460 # line-number line with the line containing $LINENO, and appends
26461 # trailing '-' during substitution so that $LINENO is not a special
26462 # case at line end.
26463 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26464 # scripts with optimization help from Paolo Bonzini. Blame Lee
26465 # E. McMahon (1931-1989) for sed's syntax. :-)
26477 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26480 ' >$as_me.lineno
&&
26481 chmod +x
"$as_me.lineno" ||
26482 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26483 { (exit 1); exit 1; }; }
26485 # Don't try to exec as it changes $[0], causing all sort of problems
26486 # (the dirname of $[0] is not the place where we might find the
26487 # original and so on. Autoconf is especially sensitive to this).
26488 .
"./$as_me.lineno"
26489 # Exit status is that of the last command.
26494 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26500 ECHO_C
= ECHO_N
= ECHO_T
=
26501 case `echo -n x` in
26503 case `echo 'x\c'` in
26504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26510 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26511 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26517 rm -f conf$$ conf$$.exe conf$$.
file
26518 if test -d conf$$.dir
; then
26519 rm -f conf$$.dir
/conf$$.
file
26522 mkdir conf$$.dir
2>/dev
/null
26524 if (echo >conf$$.
file) 2>/dev
/null
; then
26525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26527 # ... but there are two gotchas:
26528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26530 # In both cases, we have to default to `cp -p'.
26531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26542 rmdir conf$$.dir
2>/dev
/null
26544 if mkdir
-p .
2>/dev
/null
; then
26547 test -d .
/-p && rmdir .
/-p
26551 if test -x / >/dev
/null
2>&1; then
26552 as_test_x
='test -x'
26554 if ls -dL / >/dev
/null
2>&1; then
26561 if test -d "$1"; then
26567 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26568 ???[sx]*):;;*)false;;esac;fi
26572 as_executable_p
=$as_test_x
26574 # Sed expression to map a string onto a valid CPP name.
26575 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26577 # Sed expression to map a string onto a valid variable name.
26578 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26583 # Save the log message, to keep $[0] and so on meaningful, and to
26584 # report actual input values of CONFIG_FILES etc. instead of their
26585 # values after options handling.
26587 This file was extended by emacs $as_me 24.0.50, which was
26588 generated by GNU Autoconf 2.62. Invocation command line was
26590 CONFIG_FILES = $CONFIG_FILES
26591 CONFIG_HEADERS = $CONFIG_HEADERS
26592 CONFIG_LINKS = $CONFIG_LINKS
26593 CONFIG_COMMANDS = $CONFIG_COMMANDS
26596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 # Files that config.status was made for.
26603 config_files="$ac_config_files"
26604 config_headers="$ac_config_headers"
26605 config_commands="$ac_config_commands"
26609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26611 \`$as_me' instantiates files from templates according to the
26612 current configuration.
26614 Usage: $0 [OPTIONS] [FILE]...
26616 -h, --help print this help, then exit
26617 -V, --version print version number and configuration settings, then exit
26618 -q, --quiet do not print progress messages
26619 -d, --debug don't remove temporary files
26620 --recheck update $as_me by reconfiguring in the same conditions
26621 --file=FILE[:TEMPLATE]
26622 instantiate the configuration file FILE
26623 --header=FILE[:TEMPLATE]
26624 instantiate the configuration header FILE
26626 Configuration files:
26629 Configuration headers:
26632 Configuration commands:
26635 Report bugs to <bug-autoconf@gnu.org>."
26638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26640 emacs config.status 24.0.50
26641 configured by $0, generated by GNU Autoconf 2.62,
26642 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26644 Copyright (C) 2008 Free Software Foundation, Inc.
26645 This config.status script is free software; the Free Software Foundation
26646 gives unlimited permission to copy, distribute and modify it."
26651 test -n "\$AWK" || AWK=awk
26654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26655 # The default lists apply if the user does not specify any file.
26661 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26662 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26673 # Handling of the options.
26674 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26676 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26677 $as_echo "$ac_cs_version"; exit ;;
26678 --debug |
--debu |
--deb |
--de |
--d |
-d )
26680 --file |
--fil |
--fi |
--f )
26683 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26685 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26686 ac_need_defaults
=false
;;
26687 --header |
--heade |
--head |
--hea )
26690 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26692 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26693 ac_need_defaults
=false
;;
26695 # Conflict between --help and --header
26696 { $as_echo "$as_me: error: ambiguous option: $1
26697 Try \`$0 --help' for more information." >&2
26698 { (exit 1); exit 1; }; };;
26699 --help |
--hel |
-h )
26700 $as_echo "$ac_cs_usage"; exit ;;
26701 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26702 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26705 # This is an error.
26706 -*) { $as_echo "$as_me: error: unrecognized option: $1
26707 Try \`$0 --help' for more information." >&2
26708 { (exit 1); exit 1; }; } ;;
26710 *) ac_config_targets
="$ac_config_targets $1"
26711 ac_need_defaults
=false
;;
26717 ac_configure_extra_args
=
26719 if $ac_cs_silent; then
26721 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26726 if \$ac_cs_recheck; then
26727 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26729 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26730 CONFIG_SHELL='$SHELL'
26731 export CONFIG_SHELL
26736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26741 ## Running $as_me. ##
26747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26757 # Handling of arguments.
26758 for ac_config_target
in $ac_config_targets
26760 case $ac_config_target in
26761 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26762 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26763 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26764 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26765 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26766 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26767 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26768 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26769 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26770 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26771 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26772 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26773 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26775 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26776 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26777 { (exit 1); exit 1; }; };;
26782 # If the user did not use the arguments to specify the items to instantiate,
26783 # then the envvar interface is used. Set only those that are not.
26784 # We use the long form for the default assignment because of an extremely
26785 # bizarre bug on SunOS 4.1.3.
26786 if $ac_need_defaults; then
26787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26792 # Have a temporary directory for convenience. Make it in the build tree
26793 # simply because there is no reason against having it here, and in addition,
26794 # creating and moving files from /tmp can sometimes cause problems.
26795 # Hook for its removal unless debugging.
26796 # Note that there is a small window in which the directory will not be cleaned:
26797 # after its creation but before its name has been assigned to `$tmp'.
26801 trap 'exit_status=$?
26802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26804 trap '{ (exit 1); exit 1; }' 1 2 13 15
26806 # Create a (secure) tmp directory for tmp files.
26809 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26810 test -n "$tmp" && test -d "$tmp"
26813 tmp
=.
/conf$$
-$RANDOM
26814 (umask 077 && mkdir
"$tmp")
26817 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26818 { (exit 1); exit 1; }
26821 # Set up the scripts for CONFIG_FILES section.
26822 # No need to generate them if there are no CONFIG_FILES.
26823 # This happens for instance with `./config.status config.h'.
26824 if test -n "$CONFIG_FILES"; then
26828 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26829 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26832 ac_cs_awk_cr
=$ac_cr
26835 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26840 echo "cat >conf$$subs.awk <<_ACEOF" &&
26841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26843 } >conf$$subs.sh ||
26844 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26845 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26846 { (exit 1); exit 1; }; }
26847 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26849 for ac_last_try in false false false false false :; do
26850 . ./conf$$subs.sh ||
26851 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26852 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26853 { (exit 1); exit 1; }; }
26855 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26857 elif $ac_last_try; then
26858 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26859 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26860 { (exit 1); exit 1; }; }
26862 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26865 rm -f conf$$subs.sh
26867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26868 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26872 s/^/S["/; s
/!.
*/"]=/
26882 s/\(.\{148\}\).*/\1/
26884 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26889 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26896 s/\(.\{148\}\).*/\1/
26898 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26902 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26907 ' <conf$$subs.awk | sed '
26912 ' >>$CONFIG_STATUS || ac_write_fail=1
26913 rm -f conf$$subs.awk
26914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26916 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26917 for (key in S) S_is_set[key] = 1
26923 nfields = split(line, field, "@
")
26925 len = length(field[1])
26926 for (i = 2; i < nfields; i++) {
26928 keylen = length(key)
26929 if (S_is_set[key]) {
26931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26932 len += length(value) + length(field[++i])
26943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26944 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26945 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26948 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26949 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26950 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26951 { (exit 1); exit 1; }; }
26954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26956 # trailing colons and then remove the whole line if VPATH becomes empty
26957 # (actually we leave an empty line to preserve line numbers).
26958 if test "x
$srcdir" = x.; then
26959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26960 s/:*\$(srcdir):*/:/
26961 s/:*\${srcdir}:*/:/
26963 s/^\([^=]*=[ ]*\):*/\1/
26969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26970 fi # test -n "$CONFIG_FILES"
26972 # Set up the scripts for CONFIG_HEADERS section.
26973 # No need to generate them if there are no CONFIG_HEADERS.
26974 # This happens for instance with `./config.status Makefile'.
26975 if test -n "$CONFIG_HEADERS"; then
26976 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26980 # Transform confdefs.h into an awk script `defines.awk', embedded as
26981 # here-document in config.status, that substitutes the proper values into
26982 # config.h.in to produce config.h.
26984 # Create a delimiter string that does not exist in confdefs.h, to ease
26985 # handling of long lines.
26987 for ac_last_try in false false :; do
26988 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26989 if test -z "$ac_t"; then
26991 elif $ac_last_try; then
26992 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26993 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26994 { (exit 1); exit 1; }; }
26996 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27000 # For the awk script, D is an array of macro values keyed by name,
27001 # likewise P contains macro parameters if any. Preserve backslash
27002 # newline sequences.
27004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27006 s/.\{148\}/&'"$ac_delim"'/g
27009 s/^[ ]*#[ ]*define[ ][ ]*/ /
27016 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27018 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27023 D["\
1"]=" \
3\\\\\\n
"\\/p
27025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27030 s/.\{148\}/&'"$ac_delim"'/g
27035 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27038 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27040 ' <confdefs.h | sed '
27041 s/'"$ac_delim"'/"\\\
27042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27045 for (key in D) D_is_set[key] = 1
27048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27050 split(line, arg, " ")
27051 if (arg[1] == "#") {
27055 defundef
= substr
(arg
[1], 2)
27058 split(mac1
, mac2
, "(") #)
27060 if (D_is_set
[macro
]) {
27061 # Preserve the white space surrounding the "#".
27062 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27063 print prefix
"define", macro P
[macro
] D
[macro
]
27066 # Replace #undef with comments. This is necessary, for example,
27067 # in the case of _POSIX_SOURCE, which is predefined and required
27068 # on some systems where configure will not decide to define it.
27069 if (defundef
== "undef") {
27070 print
"/*", line
, "*/"
27078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27079 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27080 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27081 { (exit 1); exit 1; }; }
27082 fi # test -n "$CONFIG_HEADERS"
27085 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27090 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27092 case $ac_mode$ac_tag in
27094 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27095 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27096 { (exit 1); exit 1; }; };;
27097 :[FH
]-) ac_tag
=-:-;;
27098 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27115 -) ac_f
="$tmp/stdin";;
27116 *) # Look for the file first in the build tree, then in the source tree
27117 # (if the path is not absolute). The absolute path cannot be DOS-style,
27118 # because $ac_f cannot contain `:'.
27122 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27124 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27125 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27126 { (exit 1); exit 1; }; };;
27128 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27129 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27132 # Let's still pretend it is `configure' which instantiates (i.e., don't
27133 # use $as_me), people would be surprised to read:
27134 # /* config.h. Generated by config.status. */
27135 configure_input
='Generated from '`
27136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27138 if test x
"$ac_file" != x-
; then
27139 configure_input
="$ac_file. $configure_input"
27140 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27141 $as_echo "$as_me: creating $ac_file" >&6;}
27143 # Neutralize special characters interpreted by sed in replacement strings.
27144 case $configure_input in #(
27145 *\
&* |
*\|
* |
*\\* )
27146 ac_sed_conf_input
=`$as_echo "$configure_input" |
27147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27148 *) ac_sed_conf_input
=$configure_input;;
27152 *:-:* |
*:-) cat >"$tmp/stdin" \
27153 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27155 { (exit 1); exit 1; }; } ;;
27160 ac_dir
=`$as_dirname -- "$ac_file" ||
27161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27162 X"$ac_file" : 'X\(//\)[^/]' \| \
27163 X"$ac_file" : 'X\(//\)$' \| \
27164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27165 $as_echo X"$ac_file" |
27166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27170 /^X\(\/\/\)[^/].*/{
27185 -*) as_dir
=.
/$as_dir;;
27187 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27191 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27192 *) as_qdir
=$as_dir;;
27194 as_dirs
="'$as_qdir' $as_dirs"
27195 as_dir
=`$as_dirname -- "$as_dir" ||
27196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27197 X"$as_dir" : 'X\(//\)[^/]' \| \
27198 X"$as_dir" : 'X\(//\)$' \| \
27199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27200 $as_echo X"$as_dir" |
27201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27205 /^X\(\/\/\)[^/].*/{
27218 test -d "$as_dir" && break
27220 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27221 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27222 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27223 { (exit 1); exit 1; }; }; }
27227 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27229 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27230 # A ".." for each directory in $ac_dir_suffix.
27231 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27232 case $ac_top_builddir_sub in
27233 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27234 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27237 ac_abs_top_builddir
=$ac_pwd
27238 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27239 # for backward compatibility:
27240 ac_top_builddir
=$ac_top_build_prefix
27243 .
) # We are building in place.
27245 ac_top_srcdir
=$ac_top_builddir_sub
27246 ac_abs_top_srcdir
=$ac_pwd ;;
27247 [\\/]* | ?
:[\\/]* ) # Absolute name.
27248 ac_srcdir
=$srcdir$ac_dir_suffix;
27249 ac_top_srcdir
=$srcdir
27250 ac_abs_top_srcdir
=$srcdir ;;
27251 *) # Relative name.
27252 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27253 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27254 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27256 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27266 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27267 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27272 # If the template does not know about datarootdir, expand it.
27273 # FIXME: This hack should be removed a few years after 2.60.
27274 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27288 *datarootdir
*) ac_datarootdir_seen
=yes;;
27289 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27290 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27294 ac_datarootdir_hack='
27295 s&@datadir@&$datadir&g
27296 s&@docdir@&$docdir&g
27297 s&@infodir@&$infodir&g
27298 s&@localedir@&$localedir&g
27299 s&@mandir@&$mandir&g
27300 s&\\\${datarootdir}&$datarootdir&g' ;;
27304 # Neutralize VPATH when `$srcdir' = `.'.
27305 # Shell code in configure.ac might set extrasub.
27306 # FIXME: do we really want to maintain this feature?
27307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27308 ac_sed_extra="$ac_vpsub
27311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27313 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27314 s|@configure_input@|
$ac_sed_conf_input|
;t t
27315 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27316 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27317 s
&@srcdir@
&$ac_srcdir&;t t
27318 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27319 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27320 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27321 s
&@builddir@
&$ac_builddir&;t t
27322 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27323 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27324 s
&@INSTALL@
&$ac_INSTALL&;t t
27325 $ac_datarootdir_hack
27327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27328 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27329 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27330 { (exit 1); exit 1; }; }
27332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27333 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27335 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27336 which seems to be undefined. Please make sure it is defined." >&5
27337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27338 which seems to be undefined. Please make sure it is defined." >&2;}
27342 -) cat "$tmp/out" && rm -f "$tmp/out";;
27343 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27347 { (exit 1); exit 1; }; }
27353 if test x"$ac_file" != x-; then
27355 $as_echo "/* $configure_input */" \
27356 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27357 } >"$tmp/config.h" \
27358 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27360 { (exit 1); exit 1; }; }
27361 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27362 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27366 mv "$tmp/config.h" "$ac_file" \
27367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27369 { (exit 1); exit 1; }; }
27372 $as_echo "/* $configure_input */" \
27373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27374 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27375 $as_echo "$as_me: error: could not create -" >&2;}
27376 { (exit 1); exit 1; }; }
27380 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27381 $as_echo "$as_me: executing $ac_file commands" >&6;}
27386 case $ac_file$ac_mode in
27389 ### Make the necessary directories, if they don't exist.
27390 for dir
in etc lisp
; do
27391 test -d ${dir} || mkdir
${dir}
27394 # Build src/Makefile from ${srcdir}/src/Makefile.c
27395 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27396 # This must be done after src/config.h is built, since we rely on that file.
27398 echo creating src
/epaths.h
27399 ${MAKE-make} epaths-force
27401 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27402 # `..' to `. .' unless invoked with -traditional
27404 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27405 CPPFLAGS
="$CPPFLAGS -traditional"
27408 echo creating lib-src
/Makefile
27410 rm -f junk.c junk1.c junk2.c
27411 sed -e '/start of cpp stuff/q' \
27412 < Makefile.c
> junk1.c
27413 sed -e '1,/start of cpp stuff/d'\
27414 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27415 < Makefile.c
> junk.c
27416 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27417 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27418 cat junk1.c junk2.c
> Makefile.new
27419 rm -f junk.c junk1.c junk2.c
27420 chmod 444 Makefile.new
27421 mv -f Makefile.new Makefile
27424 echo creating src
/Makefile
27426 rm -f junk.c junk1.c junk2.c
27427 sed -e '/start of cpp stuff/q' \
27428 < Makefile.c
> junk1.c
27429 sed -e '1,/start of cpp stuff/d'\
27430 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27431 < Makefile.c
> junk.c
27432 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27433 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27434 cat junk1.c junk2.c
> Makefile.new
27435 rm -f junk.c junk1.c junk2.c
27436 chmod 444 Makefile.new
27437 mv -f Makefile.new Makefile
27440 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27441 echo creating src
/.gdbinit
27442 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27451 { (exit 0); exit 0; }
27453 chmod +x
$CONFIG_STATUS
27454 ac_clean_files
=$ac_clean_files_save
27456 test $ac_write_fail = 0 ||
27457 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27458 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27459 { (exit 1); exit 1; }; }
27462 # configure is writing to config.log, and then calls config.status.
27463 # config.status does its own redirection, appending to config.log.
27464 # Unfortunately, on DOS this fails, as config.log is still kept open
27465 # by configure, so config.status won't be able to write to it; its
27466 # output is simply discarded. So we exec the FD to /dev/null,
27467 # effectively closing config.log, so it can be properly (re)opened and
27468 # appended to by config.status. When coming back to configure, we
27469 # need to make the FD available again.
27470 if test "$no_create" != yes; then
27472 ac_config_status_args
=
27473 test "$silent" = yes &&
27474 ac_config_status_args
="$ac_config_status_args --quiet"
27476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27479 # would make configure fail if this is the last instruction.
27480 $ac_cs_success ||
{ (exit 1); exit 1; }
27482 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27483 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27484 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}