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
765 x_default_search_path
784 GNUSTEP_SYSTEM_HEADERS
785 GNUSTEP_SYSTEM_LIBRARIES
787 LIB_SRC_EXTRA_INSTALLABLES
794 enable_option_checking
814 with_toolkit_scroll_bars
828 enable_ns_self_contained
830 enable_maintainer_mode
838 ac_precious_vars
='build_alias
850 # Initialize some variables set by options.
852 ac_init_version
=false
853 ac_unrecognized_opts
=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name
=s
,x
,x
,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir
='${exec_prefix}/bin'
879 sbindir
='${exec_prefix}/sbin'
880 libexecdir
='${exec_prefix}/libexec'
881 datarootdir
='${prefix}/share'
882 datadir
='${datarootdir}'
883 sysconfdir
='${prefix}/etc'
884 sharedstatedir
='${prefix}/com'
885 localstatedir
='${prefix}/var'
886 includedir
='${prefix}/include'
887 oldincludedir
='/usr/include'
888 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir
='${datarootdir}/info'
894 libdir
='${exec_prefix}/lib'
895 localedir
='${datarootdir}/locale'
896 mandir
='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\
$ac_option
910 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
922 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
925 -build |
--build |
--buil |
--bui |
--bu)
926 ac_prev
=build_alias
;;
927 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
928 build_alias
=$ac_optarg ;;
930 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
931 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
932 ac_prev
=cache_file
;;
933 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
934 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
935 cache_file
=$ac_optarg ;;
938 cache_file
=config.cache
;;
940 -datadir |
--datadir |
--datadi |
--datad)
942 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
943 datadir
=$ac_optarg ;;
945 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
946 |
--dataroo |
--dataro |
--datar)
947 ac_prev
=datarootdir
;;
948 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
949 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
950 datarootdir
=$ac_optarg ;;
952 -disable-* |
--disable-*)
953 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
956 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
957 { (exit 1); exit 1; }; }
958 ac_useropt_orig
=$ac_useropt
959 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
964 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep
=', ';;
967 eval enable_
$ac_useropt=no
;;
969 -docdir |
--docdir |
--docdi |
--doc |
--do)
971 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
974 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
976 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
979 -enable-* |
--enable-*)
980 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig
=$ac_useropt
986 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep
=', ';;
994 eval enable_
$ac_useropt=\
$ac_optarg ;;
996 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
997 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
998 |
--exec |
--exe |
--ex)
999 ac_prev
=exec_prefix
;;
1000 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1001 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1002 |
--exec=* |
--exe=* |
--ex=*)
1003 exec_prefix
=$ac_optarg ;;
1005 -gas |
--gas |
--ga |
--g)
1006 # Obsolete; use --with-gas.
1009 -help |
--help |
--hel |
--he |
-h)
1010 ac_init_help
=long
;;
1011 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1012 ac_init_help
=recursive
;;
1013 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1014 ac_init_help
=short
;;
1016 -host |
--host |
--hos |
--ho)
1017 ac_prev
=host_alias
;;
1018 -host=* |
--host=* |
--hos=* |
--ho=*)
1019 host_alias
=$ac_optarg ;;
1021 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1023 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1025 htmldir
=$ac_optarg ;;
1027 -includedir |
--includedir |
--includedi |
--included |
--include \
1028 |
--includ |
--inclu |
--incl |
--inc)
1029 ac_prev
=includedir
;;
1030 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1031 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1032 includedir
=$ac_optarg ;;
1034 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1036 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1037 infodir
=$ac_optarg ;;
1039 -libdir |
--libdir |
--libdi |
--libd)
1041 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1042 libdir
=$ac_optarg ;;
1044 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1045 |
--libexe |
--libex |
--libe)
1046 ac_prev
=libexecdir
;;
1047 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1048 |
--libexe=* |
--libex=* |
--libe=*)
1049 libexecdir
=$ac_optarg ;;
1051 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1052 ac_prev
=localedir
;;
1053 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1054 localedir
=$ac_optarg ;;
1056 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1057 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1058 ac_prev
=localstatedir
;;
1059 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1060 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1061 localstatedir
=$ac_optarg ;;
1063 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1065 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1066 mandir
=$ac_optarg ;;
1068 -nfp |
--nfp |
--nf)
1069 # Obsolete; use --without-fp.
1072 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1073 |
--no-cr |
--no-c |
-n)
1076 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1077 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1080 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1081 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1082 |
--oldin |
--oldi |
--old |
--ol |
--o)
1083 ac_prev
=oldincludedir
;;
1084 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1085 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1086 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1087 oldincludedir
=$ac_optarg ;;
1089 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1091 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1092 prefix
=$ac_optarg ;;
1094 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1095 |
--program-pre |
--program-pr |
--program-p)
1096 ac_prev
=program_prefix
;;
1097 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1098 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1099 program_prefix
=$ac_optarg ;;
1101 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1102 |
--program-suf |
--program-su |
--program-s)
1103 ac_prev
=program_suffix
;;
1104 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1105 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1106 program_suffix
=$ac_optarg ;;
1108 -program-transform-name |
--program-transform-name \
1109 |
--program-transform-nam |
--program-transform-na \
1110 |
--program-transform-n |
--program-transform- \
1111 |
--program-transform |
--program-transfor \
1112 |
--program-transfo |
--program-transf \
1113 |
--program-trans |
--program-tran \
1114 |
--progr-tra |
--program-tr |
--program-t)
1115 ac_prev
=program_transform_name
;;
1116 -program-transform-name=* |
--program-transform-name=* \
1117 |
--program-transform-nam=* |
--program-transform-na=* \
1118 |
--program-transform-n=* |
--program-transform-=* \
1119 |
--program-transform=* |
--program-transfor=* \
1120 |
--program-transfo=* |
--program-transf=* \
1121 |
--program-trans=* |
--program-tran=* \
1122 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1123 program_transform_name
=$ac_optarg ;;
1125 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1127 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1128 pdfdir
=$ac_optarg ;;
1130 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1132 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1135 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1136 |
-silent |
--silent |
--silen |
--sile |
--sil)
1139 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1141 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1143 sbindir
=$ac_optarg ;;
1145 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1146 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1147 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1149 ac_prev
=sharedstatedir
;;
1150 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1151 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1152 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1154 sharedstatedir
=$ac_optarg ;;
1156 -site |
--site |
--sit)
1158 -site=* |
--site=* |
--sit=*)
1161 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1163 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1164 srcdir
=$ac_optarg ;;
1166 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1167 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1168 ac_prev
=sysconfdir
;;
1169 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1170 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1171 sysconfdir
=$ac_optarg ;;
1173 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1174 ac_prev
=target_alias
;;
1175 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1176 target_alias
=$ac_optarg ;;
1178 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1181 -version |
--version |
--versio |
--versi |
--vers |
-V)
1182 ac_init_version
=: ;;
1185 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1188 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1189 { (exit 1); exit 1; }; }
1190 ac_useropt_orig
=$ac_useropt
1191 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep
=', ';;
1199 eval with_
$ac_useropt=\
$ac_optarg ;;
1201 -without-* |
--without-*)
1202 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=no
;;
1219 # Obsolete; use --with-x.
1222 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1223 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1224 ac_prev
=x_includes
;;
1225 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1226 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1227 x_includes
=$ac_optarg ;;
1229 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1230 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1231 ac_prev
=x_libraries
;;
1232 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1233 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1234 x_libraries
=$ac_optarg ;;
1236 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1237 Try \`$0 --help' for more information." >&2
1238 { (exit 1); exit 1; }; }
1242 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1245 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1246 { (exit 1); exit 1; }; }
1247 eval $ac_envvar=\
$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261 if test -n "$ac_prev"; then
1262 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1263 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1264 { (exit 1); exit 1; }; }
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1271 { (exit 1); exit 1; }; } ;;
1272 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val
=\$
$ac_var
1283 # Remove trailing slashes.
1286 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\
$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$
]* | ?
:[\\/]* ) continue;;
1292 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1294 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295 { (exit 1); exit 1; }; }
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1303 target
=$target_alias
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x
; then
1307 if test "x$build_alias" = x
; then
1308 cross_compiling
=maybe
1309 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310 If a cross compiler is detected then cross compile mode will be used." >&2
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1326 { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1329 { (exit 1); exit 1; }; }
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted
=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir
=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted
=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1368 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369 { (exit 1); exit 1; }; }
1371 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1374 { (exit 1); exit 1; }; }
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1384 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 for ac_var
in $ac_precious_vars; do
1387 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1389 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1394 # Report the --help message.
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1400 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1407 Defaults for the options are specified in brackets.
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1431 For better control, use the options below.
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1463 --x-includes=DIR X include files are
in DIR
1464 --x-libraries=DIR X library files are
in DIR
1467 --build=BUILD configure
for building on BUILD
[guessed
]
1468 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1479 --disable-option-checking ignore unrecognized
--enable/--with options
1480 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1481 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1482 --disable-ns-self-contained
1483 disable self contained build under NeXTstep
1484 --enable-asserts compile code with asserts enabled
1485 --enable-maintainer-mode
1486 enable make rules and dependencies not useful
(and
1487 sometimes confusing
) to the casual installer
1488 --enable-locallisppath=PATH
1489 directories Emacs should search
for lisp files
1490 specific to this site
1491 --enable-checking[=LIST
]
1492 enable expensive run-time checks. With LIST
, enable
1493 only specific categories of checks. Categories are
:
1494 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1495 stringfreelist
, xmallocoverrun
, conslist
1496 --enable-profiling build emacs with profiling support. This might not
1497 work on all platforms
1498 --enable-autodepend automatically generate dependencies to .h-files.
1499 Requires GNU Make and Gcc. Enabled
if GNU Make and
1501 --disable-largefile omit support
for large files
1504 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1505 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1506 --without-pop don
't support POP mail retrieval with movemail
1507 --with-kerberos support Kerberos-authenticated POP
1508 --with-kerberos5 support Kerberos version 5 authenticated POP
1509 --with-hesiod support Hesiod to get the POP server host
1510 --with-mmdf support MMDF mailboxes
1511 --with-mail-unlink unlink, rather than empty, mail spool after reading
1512 --with-mailhost=HOSTNAME
1513 string giving default POP mail host
1514 --without-sound don't compile with sound support
1515 --without-sync-input process async input synchronously
1516 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1518 --without-xpm don
't compile with XPM image support
1519 --without-jpeg don't compile with JPEG image support
1520 --without-tiff don
't compile with TIFF image support
1521 --without-gif don't compile with GIF image support
1522 --without-png don
't compile with PNG image support
1523 --without-rsvg don't compile with SVG image support
1524 --without-xft don
't use XFT for anti aliased fonts
1525 --without-libotf don't use libotf
for OpenType font support
1526 --without-m17n-flt don
't use m17n-flt for text shaping
1527 --without-toolkit-scroll-bars
1528 don't use Motif or Xaw3d scroll bars
1529 --without-xaw3d don
't use Xaw3d
1530 --without-xim don't use X11 XIM
1531 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1532 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1534 --without-dbus don't compile with D-Bus support
1535 --without-gconf don
't compile with GConf support
1536 --without-selinux don't compile with SELinux support
1537 --without-makeinfo don
't require makeinfo for building manuals
1539 --with-pkg-config-prog=PATH
1540 path to pkg-config for finding GTK and librsvg
1541 --with-crt-dir=DIR directory containing crtn.o etc. This option is only
1542 used on x86-64 and s390x GNU/Linux architectures.
1543 --with-gnustep-conf=PATH
1544 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1545 or /etc/GNUstep/GNUstep.conf
1546 --with-x use the X Window System
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 XMKMF Path to xmkmf, Makefile generator for X Window System
1559 Use these variables to override the choices made by `configure' or to
help
1560 it to
find libraries and programs with nonstandard names
/locations.
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1575 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1577 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1582 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1585 ac_abs_top_builddir
=$ac_pwd
1586 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir
=$ac_top_build_prefix
1591 .
) # We are building in place.
1593 ac_top_srcdir
=$ac_top_builddir_sub
1594 ac_abs_top_srcdir
=$ac_pwd ;;
1595 [\\/]* | ?
:[\\/]* ) # Absolute name.
1596 ac_srcdir
=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir
=$srcdir
1598 ac_abs_top_srcdir
=$srcdir ;;
1600 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1604 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1624 emacs configure
24.0.50
1625 generated by GNU Autoconf
2.62
1627 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1629 This configure
script is free software
; the Free Software Foundation
1630 gives unlimited permission to copy
, distribute and modify it.
1634 cat >config.log
<<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1638 It was created by emacs $as_me 24.0.50, which was
1639 generated by GNU Autoconf 2.62. Invocation command line was
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir
=.
1675 $as_echo "PATH: $as_dir"
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_must_keep_next
=false
1705 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1706 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1707 |
-silent |
--silent |
--silen |
--sile |
--sil)
1710 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1715 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1716 if test $ac_must_keep_next = true
; then
1717 ac_must_keep_next
=false
# Got value, back to normal.
1720 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1721 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1722 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1723 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1724 case "$ac_configure_args0 " in
1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728 -* ) ac_must_keep_next
=true
;;
1731 ac_configure_args
="$ac_configure_args '$ac_arg'"
1736 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1737 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log. We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1755 # The following way of writing the cache mishandles newlines in values,
1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758 eval ac_val=\$$ac_var
1762 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766 _ | IFS | as_nl) ;; #(
1767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1768 *) $as_unset $ac_var ;;
1773 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1774 *${as_nl}ac_space=\ *)
1776 "s/'\''/'\''\\\\'\'''\''/g;
1777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1788 ## ----------------- ##
1789 ## Output variables. ##
1790 ## ----------------- ##
1793 for ac_var in $ac_subst_vars
1795 eval ac_val=\$$ac_var
1797 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799 $as_echo "$ac_var='\''$ac_val'\''"
1803 if test -n "$ac_subst_files"; then
1805 ## ------------------- ##
1806 ## File substitutions. ##
1807 ## ------------------- ##
1810 for ac_var
in $ac_subst_files
1812 eval ac_val
=\$
$ac_var
1814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 $as_echo "$ac_var='\''$ac_val'\''"
1821 if test -s confdefs.h; then
1831 test "$ac_signal" != 0 &&
1832 $as_echo "$as_me: caught signal $ac_signal"
1833 $as_echo "$as_me: exit $exit_status"
1835 rm -f core *.core core.conftest.* &&
1836 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839 for ac_signal
in 1 2 13 15; do
1840 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1845 rm -f -r conftest
* confdefs.h
1847 # Predefined preprocessor variables.
1849 cat >>confdefs.h
<<_ACEOF
1850 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 cat >>confdefs.h
<<_ACEOF
1855 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 cat >>confdefs.h
<<_ACEOF
1860 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 cat >>confdefs.h
<<_ACEOF
1865 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 cat >>confdefs.h
<<_ACEOF
1870 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 # Let the site file select an alternate cache file if it wants to.
1875 # Prefer an explicitly selected file to automatically selected ones.
1878 if test -n "$CONFIG_SITE"; then
1879 ac_site_file1
=$CONFIG_SITE
1880 elif test "x$prefix" != xNONE
; then
1881 ac_site_file1
=$prefix/share
/config.site
1882 ac_site_file2
=$prefix/etc
/config.site
1884 ac_site_file1
=$ac_default_prefix/share
/config.site
1885 ac_site_file2
=$ac_default_prefix/etc
/config.site
1887 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1889 test "x$ac_site_file" = xNONE
&& continue
1890 if test -r "$ac_site_file"; then
1891 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1892 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1893 sed 's/^/| /' "$ac_site_file" >&5
1898 if test -r "$cache_file"; then
1899 # Some versions of bash will fail to source /dev/null (special
1900 # files actually), so we avoid doing that.
1901 if test -f "$cache_file"; then
1902 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1903 $as_echo "$as_me: loading cache $cache_file" >&6;}
1905 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1906 *) .
"./$cache_file";;
1910 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1911 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915 ac_header_list
="$ac_header_list sys/time.h"
1916 ac_header_list
="$ac_header_list unistd.h"
1917 ac_func_list
="$ac_func_list alarm"
1918 # Check that the precious variables saved in the cache have kept the same
1920 ac_cache_corrupted
=false
1921 for ac_var
in $ac_precious_vars; do
1922 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1923 eval ac_new_set
=\
$ac_env_${ac_var}_set
1924 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1925 eval ac_new_val
=\
$ac_env_${ac_var}_value
1926 case $ac_old_set,$ac_new_set in
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930 ac_cache_corrupted
=: ;;
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934 ac_cache_corrupted
=: ;;
1937 if test "x$ac_old_val" != "x$ac_new_val"; then
1938 # differences in whitespace do not lead to failure.
1939 ac_old_val_w
=`echo x $ac_old_val`
1940 ac_new_val_w
=`echo x $ac_new_val`
1941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944 ac_cache_corrupted
=:
1946 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948 eval $ac_var=\
$ac_old_val
1950 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1951 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1952 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1956 # Pass precious variables to config.status.
1957 if test "$ac_new_set" = set; then
1959 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 *) ac_arg
=$ac_var=$ac_new_val ;;
1962 case " $ac_configure_args " in
1963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1964 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1968 if $ac_cache_corrupted; then
1969 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973 { (exit 1); exit 1; }; }
2001 ac_cpp
='$CPP $CPPFLAGS'
2002 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2007 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2011 test "$program_prefix" != NONE
&&
2012 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2013 # Use a double $ so make ignores it.
2014 test "$program_suffix" != NONE
&&
2015 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2016 # Double any \ or $.
2017 # By default was `s,x,x', remove it if useless.
2018 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2019 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2022 lispdir
='${datadir}/emacs/${version}/lisp'
2023 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2024 '${datadir}/emacs/site-lisp'
2025 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2026 etcdir
='${datadir}/emacs/${version}/etc'
2027 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2028 docdir
='${datadir}/emacs/${version}/etc'
2029 gamedir
='${localstatedir}/games/emacs'
2036 # Check whether --with-pop was given.
2037 if test "${with_pop+set}" = set; then
2043 if test "$with_pop" = yes; then
2044 cat >>confdefs.h
<<\_ACEOF
2045 #define MAIL_USE_POP 1
2052 # Check whether --with-kerberos was given.
2053 if test "${with_kerberos+set}" = set; then
2054 withval
=$with_kerberos;
2059 if test "$with_kerberos" != no
; then
2060 cat >>confdefs.h
<<\_ACEOF
2068 # Check whether --with-kerberos5 was given.
2069 if test "${with_kerberos5+set}" = set; then
2070 withval
=$with_kerberos5;
2075 if test "${with_kerberos5}" != no
; then
2076 if test "${with_kerberos}" = no
; then
2078 cat >>confdefs.h
<<\_ACEOF
2084 cat >>confdefs.h
<<\_ACEOF
2091 # Check whether --with-hesiod was given.
2092 if test "${with_hesiod+set}" = set; then
2093 withval
=$with_hesiod;
2098 if test "$with_hesiod" != no
; then
2100 cat >>confdefs.h
<<\_ACEOF
2107 # Check whether --with-mmdf was given.
2108 if test "${with_mmdf+set}" = set; then
2114 if test "$with_mmdf" != no
; then
2116 cat >>confdefs.h
<<\_ACEOF
2117 #define MAIL_USE_MMDF 1
2123 # Check whether --with-mail-unlink was given.
2124 if test "${with_mail_unlink+set}" = set; then
2125 withval
=$with_mail_unlink;
2130 if test "$with_mail_unlink" != no
; then
2132 cat >>confdefs.h
<<\_ACEOF
2133 #define MAIL_UNLINK_SPOOL 1
2139 # Check whether --with-mailhost was given.
2140 if test "${with_mailhost+set}" = set; then
2141 withval
=$with_mailhost;
2142 cat >>confdefs.h
<<_ACEOF
2143 #define MAILHOST "$withval"
2150 # Check whether --with-sound was given.
2151 if test "${with_sound+set}" = set; then
2152 withval
=$with_sound;
2159 # Check whether --with-sync-input was given.
2160 if test "${with_sync_input+set}" = set; then
2161 withval
=$with_sync_input;
2166 if test "$with_sync_input" = yes; then
2168 cat >>confdefs.h
<<\_ACEOF
2169 #define SYNC_INPUT 1
2175 # Check whether --with-x-toolkit was given.
2176 if test "${with_x_toolkit+set}" = set; then
2177 withval
=$with_x_toolkit; case "${withval}" in
2178 y | ye |
yes ) val
=gtk
;;
2180 l | lu | luc | luci | lucid
) val
=lucid
;;
2181 a |
at | ath | athe | athen | athena
) val
=athena
;;
2182 m | mo | mot | moti | motif
) val
=motif
;;
2183 g | gt | gtk
) val
=gtk
;;
2185 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2186 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2187 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2188 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2189 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2190 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2191 { (exit 1); exit 1; }; }
2200 # Check whether --with-xpm was given.
2201 if test "${with_xpm+set}" = set; then
2208 # Check whether --with-jpeg was given.
2209 if test "${with_jpeg+set}" = set; then
2216 # Check whether --with-tiff was given.
2217 if test "${with_tiff+set}" = set; then
2224 # Check whether --with-gif was given.
2225 if test "${with_gif+set}" = set; then
2232 # Check whether --with-png was given.
2233 if test "${with_png+set}" = set; then
2240 # Check whether --with-rsvg was given.
2241 if test "${with_rsvg+set}" = set; then
2249 # Check whether --with-xft was given.
2250 if test "${with_xft+set}" = set; then
2257 # Check whether --with-libotf was given.
2258 if test "${with_libotf+set}" = set; then
2259 withval
=$with_libotf;
2265 # Check whether --with-m17n-flt was given.
2266 if test "${with_m17n_flt+set}" = set; then
2267 withval
=$with_m17n_flt;
2274 # Check whether --with-toolkit-scroll-bars was given.
2275 if test "${with_toolkit_scroll_bars+set}" = set; then
2276 withval
=$with_toolkit_scroll_bars;
2278 with_toolkit_scroll_bars
=yes
2282 # Check whether --with-xaw3d was given.
2283 if test "${with_xaw3d+set}" = set; then
2284 withval
=$with_xaw3d;
2290 # Check whether --with-xim was given.
2291 if test "${with_xim+set}" = set; then
2298 # Check whether --with-ns was given.
2299 if test "${with_ns+set}" = set; then
2307 # Check whether --with-gpm was given.
2308 if test "${with_gpm+set}" = set; then
2315 # Check whether --with-dbus was given.
2316 if test "${with_dbus+set}" = set; then
2323 # Check whether --with-gconf was given.
2324 if test "${with_gconf+set}" = set; then
2325 withval
=$with_gconf;
2331 # Check whether --with-selinux was given.
2332 if test "${with_selinux+set}" = set; then
2333 withval
=$with_selinux;
2339 ## For the times when you want to build Emacs but don't have
2340 ## a suitable makeinfo, and can live without the manuals.
2342 # Check whether --with-makeinfo was given.
2343 if test "${with_makeinfo+set}" = set; then
2344 withval
=$with_makeinfo;
2351 # Check whether --with-gtk was given.
2352 if test "${with_gtk+set}" = set; then
2353 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2354 specify a toolkit." >&5
2355 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2356 specify a toolkit." >&2;}
2357 { (exit 1); exit 1; }; }
2362 # Check whether --with-gcc was given.
2363 if test "${with_gcc+set}" = set; then
2364 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2365 variable to specify a compiler." >&5
2366 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2367 variable to specify a compiler." >&2;}
2368 { (exit 1); exit 1; }; }
2373 # Check whether --with-pkg-config-prog was given.
2374 if test "${with_pkg_config_prog+set}" = set; then
2375 withval
=$with_pkg_config_prog;
2378 if test "X${with_pkg_config_prog}" != X
; then
2379 if test "${with_pkg_config_prog}" != yes; then
2380 PKG_CONFIG
="${with_pkg_config_prog}"
2386 # Check whether --with-crt-dir was given.
2387 if test "${with_crt_dir+set}" = set; then
2388 withval
=$with_crt_dir;
2391 CRT_DIR
="${with_crt_dir}"
2394 # Check whether --with-gnustep-conf was given.
2395 if test "${with_gnustep_conf+set}" = set; then
2396 withval
=$with_gnustep_conf;
2399 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2400 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2401 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2402 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2404 # Check whether --enable-ns-self-contained was given.
2405 if test "${enable_ns_self_contained+set}" = set; then
2406 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2408 EN_NS_SELF_CONTAINED
=yes
2412 # Check whether --enable-asserts was given.
2413 if test "${enable_asserts+set}" = set; then
2414 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2420 # Check whether --enable-maintainer-mode was given.
2421 if test "${enable_maintainer_mode+set}" = set; then
2422 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2424 USE_MAINTAINER_MODE
=no
2427 if test $USE_MAINTAINER_MODE = yes; then
2434 # Check whether --enable-locallisppath was given.
2435 if test "${enable_locallisppath+set}" = set; then
2436 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2438 elif test "${enableval}" != "yes"; then
2439 locallisppath
=${enableval}
2444 # Check whether --enable-checking was given.
2445 if test "${enable_checking+set}" = set; then
2446 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2449 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2450 for check
in $ac_checking_flags
2453 # these set all the flags to specific states
2454 yes) ac_enable_checking
=1 ;;
2455 no
) ac_enable_checking
= ;
2456 ac_gc_check_stringbytes
= ;
2457 ac_gc_check_string_overrun
= ;
2458 ac_gc_check_string_free_list
= ;
2459 ac_xmalloc_overrun
= ;
2460 ac_gc_check_cons_list
= ;;
2461 all
) ac_enable_checking
=1 ;
2462 ac_gc_check_stringbytes
=1 ;
2463 ac_gc_check_string_overrun
=1 ;
2464 ac_gc_check_string_free_list
=1 ;
2465 ac_xmalloc_overrun
=1 ;
2466 ac_gc_check_cons_list
=1 ;;
2467 # these enable particular checks
2468 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2469 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2470 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2471 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2472 conslist
) ac_gc_check_cons_list
=1 ;;
2473 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2474 $as_echo "$as_me: error: unknown check category $check" >&2;}
2475 { (exit 1); exit 1; }; } ;;
2480 if test x
$ac_enable_checking != x
; then
2482 cat >>confdefs.h
<<\_ACEOF
2483 #define ENABLE_CHECKING 1
2487 if test x
$ac_gc_check_stringbytes != x
; then
2489 cat >>confdefs.h
<<\_ACEOF
2490 #define GC_CHECK_STRING_BYTES 1
2494 if test x
$ac_gc_check_stringoverrun != x
; then
2496 cat >>confdefs.h
<<\_ACEOF
2497 #define GC_CHECK_STRING_OVERRUN 1
2501 if test x
$ac_gc_check_string_free_list != x
; then
2503 cat >>confdefs.h
<<\_ACEOF
2504 #define GC_CHECK_STRING_FREE_LIST 1
2508 if test x
$ac_xmalloc_overrun != x
; then
2510 cat >>confdefs.h
<<\_ACEOF
2511 #define XMALLOC_OVERRUN_CHECK 1
2515 if test x
$ac_gc_check_cons_list != x
; then
2517 cat >>confdefs.h
<<\_ACEOF
2518 #define GC_CHECK_CONS_LIST 1
2523 # Check whether --enable-profiling was given.
2524 if test "${enable_profiling+set}" = set; then
2525 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2528 if test x
$ac_enable_profiling != x
; then
2529 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2530 PROFILING_LDFLAGS
="-pg"
2536 # Check whether --enable-autodepend was given.
2537 if test "${enable_autodepend+set}" = set; then
2538 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2540 ac_enable_autodepend
=yes
2544 #### Make srcdir absolute, if it isn't already. It's important to
2545 #### avoid running the path through pwd unnecessarily, since pwd can
2546 #### give you automounter prefixes, which can go away. We do all this
2547 #### so Emacs can find its files when run uninstalled.
2548 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2553 ## We may be able to use the $PWD environment variable to make this
2554 ## absolute. But sometimes PWD is inaccurate.
2555 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2556 ## but that tested only for a well-formed and valid PWD,
2557 ## it did not object when PWD was well-formed and valid but just wrong.
2558 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2562 srcdir
="`(cd ${srcdir}; pwd)`"
2565 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2568 #### Check if the source directory already has a configured system in it.
2569 if test `pwd` != `(cd ${srcdir} && pwd)` \
2570 && test -f "${srcdir}/src/config.h" ; then
2571 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2572 as a build directory right now; it has been configured in its own
2573 right. To configure in another directory as well, you MUST
2574 use GNU make. If you do not have GNU make, then you must
2575 now do \`make distclean' in ${srcdir},
2576 and then run $0 again." >&5
2577 $as_echo "$as_me: 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." >&2;}
2585 #### Given the configuration name, set machfile and opsysfile to the
2586 #### names of the m/*.h and s/*.h files we should use.
2588 ### Canonicalize the configuration name.
2591 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2592 if test -f "$ac_dir/install-sh"; then
2594 ac_install_sh
="$ac_aux_dir/install-sh -c"
2596 elif test -f "$ac_dir/install.sh"; then
2598 ac_install_sh
="$ac_aux_dir/install.sh -c"
2600 elif test -f "$ac_dir/shtool"; then
2602 ac_install_sh
="$ac_aux_dir/shtool install -c"
2606 if test -z "$ac_aux_dir"; then
2607 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2608 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2609 { (exit 1); exit 1; }; }
2612 # These three variables are undocumented and unsupported,
2613 # and are intended to be withdrawn in a future Autoconf release.
2614 # They can cause serious problems if a builder's source tree is in a directory
2615 # whose full name contains unusual characters.
2616 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2621 # Make sure we can run config.sub.
2622 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2623 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2624 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2625 { (exit 1); exit 1; }; }
2627 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2628 $as_echo_n "checking build system type... " >&6; }
2629 if test "${ac_cv_build+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2632 ac_build_alias
=$build_alias
2633 test "x$ac_build_alias" = x
&&
2634 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2635 test "x$ac_build_alias" = x
&&
2636 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2637 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2638 { (exit 1); exit 1; }; }
2639 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2641 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2642 { (exit 1); exit 1; }; }
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2646 $as_echo "$ac_cv_build" >&6; }
2647 case $ac_cv_build in
2649 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2650 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2651 { (exit 1); exit 1; }; };;
2654 ac_save_IFS
=$IFS; IFS
='-'
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2664 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if test "${ac_cv_host+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2672 if test "x$host_alias" = x
; then
2673 ac_cv_host
=$ac_cv_build
2675 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2677 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2678 { (exit 1); exit 1; }; }
2682 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2683 $as_echo "$ac_cv_host" >&6; }
2686 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2687 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2688 { (exit 1); exit 1; }; };;
2691 ac_save_IFS
=$IFS; IFS
='-'
2697 # Remember, the first character of IFS is used to create $*,
2698 # except with old shells:
2701 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2705 configuration
=${host_alias-${build_alias-$host}}
2709 ### If you add support for a new configuration, add code to this
2710 ### switch statement to recognize your configuration name and select
2711 ### the appropriate operating system and machine description files.
2713 ### You would hope that you could choose an m/*.h file pretty much
2714 ### based on the machine portion of the configuration name, and an s-
2715 ### file based on the operating system portion. However, it turns out
2716 ### that each m/*.h file is pretty manufacturer-specific - for
2717 ### example mips.h is MIPS
2718 ### So we basically have to have a special case for each
2719 ### configuration name.
2721 ### As far as handling version numbers on operating systems is
2722 ### concerned, make sure things will fail in a fixable way. If
2723 ### /etc/MACHINES doesn't say anything about version numbers, be
2724 ### prepared to handle anything reasonably. If version numbers
2725 ### matter, be sure /etc/MACHINES says something about it.
2727 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2728 ### "System V Release 4"; he writes, "The old convention encouraged
2729 ### confusion between `system' and `release' levels'."
2731 machine
='' opsys
='' unported
=no
2732 case "${canonical}" in
2737 case "${canonical}" in
2738 alpha
*-*-freebsd*) machine
=alpha
;;
2739 arm
*-*-freebsd*) machine
=arm
;;
2740 ia64-
*-freebsd*) machine
=ia64
;;
2741 sparc-
*-freebsd*) machine
=sparc
;;
2742 sparc64-
*-freebsd*) machine
=sparc
;;
2743 powerpc-
*-freebsd*) machine
=macppc
;;
2744 i
[3456]86-*-freebsd*) machine
=intel386
;;
2745 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2749 ## FreeBSD kernel + glibc based userland
2752 case "${canonical}" in
2753 alpha
*-*-kfreebsd*) machine
=alpha
;;
2754 ia64-
*-kfreebsd*) machine
=ia64
;;
2755 sparc-
*-kfreebsd*) machine
=sparc
;;
2756 sparc64-
*-kfreebsd*) machine
=sparc
;;
2757 powerpc-
*-kfreebsd*) machine
=macppc
;;
2758 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2759 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2766 if test -f /usr
/lib
/crti.o
; then
2768 cat >>confdefs.h
<<\_ACEOF
2769 #define HAVE_CRTIN /**/
2774 case "${canonical}" in
2775 alpha
*-*-netbsd*) machine
=alpha
;;
2776 i
[3456]86-*-netbsd*) machine
=intel386
;;
2777 mips-
*-netbsd*) machine
=mips
;;
2778 mipsel-
*-netbsd*) machine
=mips
;;
2779 mipseb-
*-netbsd*) machine
=mips
;;
2780 powerpc-
*-netbsd*) machine
=macppc
;;
2781 sparc
*-*-netbsd*) machine
=sparc
;;
2782 vax-
*-netbsd*) machine
=vax
;;
2783 arm-
*-netbsd*) machine
=arm
;;
2784 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2785 hppa-
*-netbsd*) machine
=hp800
;;
2786 m68k-
*-netbsd*) machine
=m68k
;;
2793 case "${canonical}" in
2794 alpha
*-*-openbsd*) machine
=alpha
;;
2795 arm-
*-openbsd*) machine
=arm
;;
2796 i386-
*-openbsd*) machine
=intel386
;;
2797 powerpc-
*-openbsd*) machine
=macppc
;;
2798 sparc
*-*-openbsd*) machine
=sparc
;;
2799 vax-
*-openbsd*) machine
=vax
;;
2800 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2801 hppa-
*-openbsd*) machine
=hp800
;;
2805 alpha
*-*-linux-gnu* )
2806 machine
=alpha opsys
=gnu-linux
2810 machine
=arm opsys
=gnu-linux
2813 ## Apple Darwin / Mac OS X
2815 case "${canonical}" in
2816 i
[3456]86-* ) machine
=intel386
;;
2817 powerpc-
* ) machine
=macppc
;;
2818 x86_64-
* ) machine
=amdx86-64
;;
2822 # Define CPP as follows to make autoconf work correctly.
2823 CPP
="${CC-cc} -E -no-cpp-precomp"
2824 # Use fink packages if available.
2825 if test -d /sw
/include
&& test -d /sw
/lib
; then
2826 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2827 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2828 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2832 ## HP 9000 series 700 and 800, running HP/UX
2833 hppa
*-hp-hpux10.2
* )
2834 machine
=hp800 opsys
=hpux10-20
2836 hppa
*-hp-hpux1[1-9]* )
2837 machine
=hp800 opsys
=hpux11
2838 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2841 hppa
*-*-linux-gnu* )
2842 machine
=hp800 opsys
=gnu-linux
2847 machine
=ibms390 opsys
=gnu-linux
2849 s390x-
*-linux-gnu* )
2850 machine
=ibms390x opsys
=gnu-linux
2852 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2853 machine
=ibmrs6000 opsys
=aix4-2
2855 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2856 machine
=ibmrs6000 opsys
=aix4-2
2858 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2859 machine
=ibmrs6000 opsys
=aix4-2
2861 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2862 machine
=ibmrs6000 opsys
=aix4-2
2865 ## Macintosh PowerPC
2866 powerpc
*-*-linux-gnu* )
2867 machine
=macppc opsys
=gnu-linux
2870 ## Silicon Graphics machines
2873 machine
=iris4d opsys
=irix6-5
2874 # Without defining _LANGUAGE_C, things get masked out in the headers
2875 # so that, for instance, grepping for `free' in stdlib.h fails and
2876 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2877 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2878 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2882 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2883 machine
=sparc opsys
=gnu-linux
2887 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2888 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2889 case "${canonical}" in
2890 i
[3456]86-*-* ) machine
=intel386
;;
2891 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2892 sparc
* ) machine
=sparc
;;
2895 case "${canonical}" in
2896 *-sunos5.6
* |
*-solaris2.6
* )
2898 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2901 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2903 emacs_check_sunpro_c
=yes
2904 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2906 *-sunos5* |
*-solaris* )
2908 emacs_check_sunpro_c
=yes
2909 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2912 ## Watch out for a compiler that we know will not work.
2913 case "${canonical}" in
2914 *-solaris* |
*-sunos5* )
2915 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2916 ## /usr/ucb/cc doesn't work;
2917 ## we should find some other compiler that does work.
2927 machine
=ia64 opsys
=gnu-linux
2930 ## Intel 386 machines where we don't care about the manufacturer
2933 case "${canonical}" in
2934 *-cygwin ) opsys
=cygwin
;;
2935 *-darwin* ) opsys
=darwin
2936 CPP
="${CC-cc} -E -no-cpp-precomp"
2938 *-linux-gnu* ) opsys
=gnu-linux
;;
2939 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2940 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2941 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2942 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2946 ## m68k Linux-based GNU system
2948 machine
=m68k opsys
=gnu-linux
2951 ## Mips Linux-based GNU system
2952 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2953 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2954 machine
=mips opsys
=gnu-linux
2957 ## AMD x86-64 Linux-based GNU system
2958 x86_64-
*-linux-gnu* )
2959 machine
=amdx86-64 opsys
=gnu-linux
2962 ## Tensilica Xtensa Linux-based GNU system
2963 xtensa
*-*-linux-gnu* )
2964 machine
=xtensa opsys
=gnu-linux
2967 ## SuperH Linux-based GNU system
2968 sh
[34]*-*-linux-gnu* )
2969 machine
=sh3 opsys
=gnu-linux
2977 ### If the code above didn't choose an operating system, just choose
2978 ### an operating system based on the configuration name. You really
2979 ### only want to use this when you have no idea what the right
2980 ### operating system is; if you know what operating systems a machine
2981 ### runs, it's cleaner to make it explicit in the case statement
2983 if test x
"${opsys}" = x
; then
2984 case "${canonical}" in
2985 *-gnu* ) opsys
=gnu
;;
2994 if test $unported = yes; then
2995 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2996 Check \`etc/MACHINES' for recognized configuration names." >&5
2997 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2998 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2999 { (exit 1); exit 1; }; }
3002 machfile
="m/${machine}.h"
3003 opsysfile
="s/${opsys}.h"
3006 #### Choose a compiler.
3007 test -n "$CC" && cc_specified
=yes
3009 # Save the value of CFLAGS that the user specified.
3010 SPECIFIED_CFLAGS
="$CFLAGS"
3013 ac_cpp
='$CPP $CPPFLAGS'
3014 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3019 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC
="$CC" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3056 if test -z "$ac_cv_prog_CC"; then
3058 # Extract the first word of "gcc", so it can be a program name with args.
3059 set dummy gcc
; ac_word
=$2
3060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3063 $as_echo_n "(cached) " >&6
3065 if test -n "$ac_ct_CC"; then
3066 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3072 test -z "$as_dir" && as_dir
=.
3073 for ac_exec_ext
in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_CC
="gcc"
3076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3086 if test -n "$ac_ct_CC"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3088 $as_echo "$ac_ct_CC" >&6; }
3090 { $as_echo "$as_me:$LINENO: result: no" >&5
3091 $as_echo "no" >&6; }
3094 if test "x$ac_ct_CC" = x
; then
3097 case $cross_compiling:$ac_tool_warned in
3099 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3100 whose name does not start with the host triplet. If you think this
3101 configuration is useful to you, please write to autoconf@gnu.org." >&5
3102 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3103 whose name does not start with the host triplet. If you think this
3104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3105 ac_tool_warned
=yes ;;
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC
="$CC" # Let the user override the test.
3125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir
=.
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:$LINENO: result: no" >&5
3148 $as_echo "no" >&6; }
3154 if test -z "$CC"; then
3155 # Extract the first word of "cc", so it can be a program name with args.
3156 set dummy cc
; ac_word
=$2
3157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC
="$CC" # Let the user override the test.
3166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir
=.
3171 for ac_exec_ext
in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174 ac_prog_rejected
=yes
3178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test $ac_prog_rejected = yes; then
3186 # We found a bogon in the path, so make sure we never use it.
3187 set dummy
$ac_cv_prog_CC
3189 if test $# != 0; then
3190 # We chose a different compiler from the bogus one.
3191 # However, it has the same basename, so the bogon will be chosen
3192 # first if we set CC to just the basename; use the full file name.
3194 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:$LINENO: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog
in cl.exe
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$CC" && break
3254 if test -z "$CC"; then
3256 for ac_prog
in cl.exe
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy
$ac_prog; ac_word
=$2
3260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir
=.
3273 for ac_exec_ext
in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_ac_ct_CC
="$ac_prog"
3276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3290 { $as_echo "$as_me:$LINENO: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$ac_ct_CC" && break
3298 if test "x$ac_ct_CC" = x
; then
3301 case $cross_compiling:$ac_tool_warned in
3303 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3304 whose name does not start with the host triplet. If you think this
3305 configuration is useful to you, please write to autoconf@gnu.org." >&5
3306 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3307 whose name does not start with the host triplet. If you think this
3308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3309 ac_tool_warned
=yes ;;
3318 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3319 See \`config.log' for more details." >&5
3320 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3321 See \`config.log' for more details." >&2;}
3322 { (exit 1); exit 1; }; }
3324 # Provide some information about the compiler.
3325 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3328 { (ac_try
="$ac_compiler --version >&5"
3330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compiler --version >&5") 2>&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339 { (ac_try="$ac_compiler -v >&5"
3341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3342 *) ac_try_echo
=$ac_try;;
3344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_compiler -v >&5") 2>&5
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (ac_try
="$ac_compiler -V >&5"
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler -V >&5") 2>&5
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3377 ac_clean_files_save=$ac_clean_files
3378 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3379 # Try to create an executable without -o first, disregard a.out.
3380 # It will help us diagnose broken compilers, and finding out an intuition
3382 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3383 $as_echo_n "checking for C compiler default output file name... " >&6; }
3384 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3386 # The possible output files:
3387 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3390 for ac_file in $ac_files
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 if { (ac_try="$ac_link_default"
3401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3402 *) ac_try_echo
=$ac_try;;
3404 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_link_default") 2>&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; then
3410 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3412 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3413 # so that the user can short-circuit this test for compilers unknown to
3415 for ac_file
in $ac_files ''
3417 test -f "$ac_file" ||
continue
3419 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3422 # We found the default executable, but exeext='' is most
3426 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3428 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 # We set ac_cv_exeext here because the later test for it is not
3431 # safe: cross compilers may not add the suffix if given an `-o'
3432 # argument, so we may need to know it at that point already.
3433 # Even if this section looks crufty: it has the advantage of
3440 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3446 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3447 $as_echo "$ac_file" >&6; }
3448 if test -z "$ac_file"; then
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3452 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3453 See \`config.log' for more details." >&5
3454 $as_echo "$as_me: error: C compiler cannot create executables
3455 See \`config.log' for more details." >&2;}
3456 { (exit 77); exit 77; }; }
3459 ac_exeext
=$ac_cv_exeext
3461 # Check that the compiler produces executables we can run. If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3464 $as_echo_n "checking whether the C compiler works... " >&6; }
3465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3466 # If not cross compiling, check that we can run a simple program.
3467 if test "$cross_compiling" != yes; then
3468 if { ac_try
='./$ac_file'
3469 { (case "(($ac_try" in
3470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_try") 2>&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; }; then
3481 if test "$cross_compiling" = maybe; then
3484 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3485 If you meant to cross compile, use \`--host'.
3486 See \`config.log' for more details.
" >&5
3487 $as_echo "$as_me: error
: cannot run C compiled programs.
3488 If you meant to cross compile
, use \
`--host'.
3489 See \`config.log
' for more details." >&2;}
3490 { (exit 1); exit 1; }; }
3494 { $as_echo "$as_me:$LINENO: result: yes" >&5
3495 $as_echo "yes" >&6; }
3497 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3498 ac_clean_files=$ac_clean_files_save
3499 # Check that the compiler produces executables we can run. If not, either
3500 # the compiler is broken, or we cross compile.
3501 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3502 $as_echo_n "checking whether we are cross compiling... " >&6; }
3503 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3504 $as_echo "$cross_compiling" >&6; }
3506 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3507 $as_echo_n "checking for suffix of executables... " >&6; }
3508 if { (ac_try="$ac_link"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_link") 2>&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; then
3519 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3520 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3521 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3523 for ac_file
in conftest.exe conftest conftest.
*; do
3524 test -f "$ac_file" ||
continue
3526 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3527 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3533 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3536 See \`config.log' for more details." >&2;}
3537 { (exit 1); exit 1; }; }
3540 rm -f conftest
$ac_cv_exeext
3541 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3542 $as_echo "$ac_cv_exeext" >&6; }
3544 rm -f conftest.
$ac_ext
3545 EXEEXT
=$ac_cv_exeext
3547 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if test "${ac_cv_objext+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 rm -f conftest.o conftest.obj
3568 if { (ac_try
="$ac_compile"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>&5
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3592 See \`config.log
' for more details." >&5
3593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3594 See \`config.log' for more details.
" >&2;}
3595 { (exit 1); exit 1; }; }
3598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3601 $as_echo "$ac_cv_objext" >&6; }
3602 OBJEXT=$ac_cv_objext
3604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3605 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3607 $as_echo_n "(cached
) " >&6
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_compile") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest.$ac_objext; then
3647 $as_echo "$as_me: failed program was
:" >&5
3648 sed 's/^/| /' conftest.$ac_ext >&5
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3657 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3659 if test $ac_compiler_gnu = yes; then
3664 ac_test_CFLAGS=${CFLAGS+set}
3665 ac_save_CFLAGS=$CFLAGS
3666 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3667 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3668 if test "${ac_cv_prog_cc_g+set}" = set; then
3669 $as_echo_n "(cached
) " >&6
3671 ac_save_c_werror_flag=$ac_c_werror_flag
3672 ac_c_werror_flag=yes
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3697 $as_echo "$ac_try_echo") >&5
3698 (eval "$ac_compile") 2>conftest.er1
3700 grep -v '^ *+' conftest.er1 >conftest.err
3702 cat conftest.err >&5
3703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3704 (exit $ac_status); } && {
3705 test -z "$ac_c_werror_flag" ||
3706 test ! -s conftest.err
3707 } && test -s conftest.$ac_objext; then
3710 $as_echo "$as_me: failed program was
:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3729 rm -f conftest.$ac_objext
3730 if { (ac_try="$ac_compile"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compile") 2>conftest.er1
3739 grep -v '^ *+' conftest.er1 >conftest.err
3741 cat conftest.err >&5
3742 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3743 (exit $ac_status); } && {
3744 test -z "$ac_c_werror_flag" ||
3745 test ! -s conftest.err
3746 } && test -s conftest.$ac_objext; then
3749 $as_echo "$as_me: failed program was
:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 ac_c_werror_flag=$ac_save_c_werror_flag
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3769 rm -f conftest.$ac_objext
3770 if { (ac_try="$ac_compile"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3776 $as_echo "$ac_try_echo") >&5
3777 (eval "$ac_compile") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3783 (exit $ac_status); } && {
3784 test -z "$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 } && test -s conftest.$ac_objext; then
3789 $as_echo "$as_me: failed program was
:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 ac_c_werror_flag=$ac_save_c_werror_flag
3804 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3805 $as_echo "$ac_cv_prog_cc_g" >&6; }
3806 if test "$ac_test_CFLAGS" = set; then
3807 CFLAGS=$ac_save_CFLAGS
3808 elif test $ac_cv_prog_cc_g = yes; then
3809 if test "$GCC" = yes; then
3815 if test "$GCC" = yes; then
3821 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3822 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3823 if test "${ac_cv_prog_cc_c89+set}" = set; then
3824 $as_echo_n "(cached
) " >&6
3826 ac_cv_prog_cc_c89=no
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_prog_cc_c89=$ac_arg
3909 $as_echo "$as_me: failed program was
:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3918 rm -f conftest.$ac_ext
3923 case "x
$ac_cv_prog_cc_c89" in
3925 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3926 $as_echo "none needed
" >&6; } ;;
3928 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3929 $as_echo "unsupported
" >&6; } ;;
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 # On Suns, sometimes $CPP names a directory.
3945 if test -n "$CPP" && test -d "$CPP"; then
3949 ## If not using gcc, and on Solaris, and no CPP specified, see if
3950 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3951 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3952 test x"$CPP" = x; then
3953 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3954 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3956 if test "${emacs_cv_sunpro_c+set}" = set; then
3957 $as_echo_n "(cached
) " >&6
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3998 emacs_cv_sunpro_c=yes
4000 $as_echo "$as_me: failed program was
:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 emacs_cv_sunpro_c=no
4006 rm -rf conftest.dSYM
4007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4008 conftest$ac_exeext conftest.$ac_ext
4011 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4012 $as_echo "$emacs_cv_sunpro_c" >&6; }
4014 if test x"$emacs_cv_sunpro_c" = xyes; then
4015 NON_GNU_CPP="$CC -E -Xs"
4019 #### Some systems specify a CPP to use unless we are using GCC.
4020 #### Now that we know whether we are using GCC, we can decide whether
4021 #### to use that one.
4022 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4027 #### Some systems specify a CC to use unless we are using GCC.
4028 #### Now that we know whether we are using GCC, we can decide whether
4029 #### to use that one.
4030 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4031 test x$cc_specified != xyes
4036 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4038 CC="$CC $GCC_TEST_OPTIONS"
4041 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4043 CC="$CC $NON_GCC_TEST_OPTIONS"
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4052 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then
4059 $as_echo_n "(cached
) " >&6
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4065 for ac_c_preproc_warn_flag in '' yes
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error
" is here to catch this case.
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4105 $as_echo "$as_me: failed program was
:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Broken: fails on valid input.
4112 rm -f conftest.err conftest.$ac_ext
4114 # OK, works on sane cases. Now check whether nonexistent headers
4115 # can be detected and how.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <ac_nonexistent.h>
4124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4141 # Broken: success on invalid input.
4144 $as_echo "$as_me: failed program was
:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Passes both tests.
4152 rm -f conftest.err conftest.$ac_ext
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then
4169 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4170 $as_echo "$CPP" >&6; }
4172 for ac_c_preproc_warn_flag in '' yes
4174 # Use a header file that comes with gcc, so configuring glibc
4175 # with a fresh cross-compiler works.
4176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4177 # <limits.h> exists even on freestanding compilers.
4178 # On the NeXT, cc -E runs the code through the compiler's parser,
4179 # not just through cpp. "Syntax error
" is here to catch this case.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4187 # include <limits.h>
4189 # include <assert.h>
4193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4199 $as_echo "$ac_try_echo") >&5
4200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4212 $as_echo "$as_me: failed program was
:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4237 $as_echo "$ac_try_echo") >&5
4238 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1 >conftest.err
4242 cat conftest.err >&5
4243 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4244 (exit $ac_status); } >/dev/null && {
4245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4246 test ! -s conftest.err
4248 # Broken: success on invalid input.
4251 $as_echo "$as_me: failed program was
:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 # Passes both tests.
4259 rm -f conftest.err conftest.$ac_ext
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then
4267 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4268 See \
`config.log' for more details." >&5
4269 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4270 See \`config.log
' for more details." >&2;}
4271 { (exit 1); exit 1; }; }
4275 ac_cpp='$CPP $CPPFLAGS'
4276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4277 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283 if test "${ac_cv_path_GREP+set}" = set; then
4284 $as_echo_n "(cached) " >&6
4286 if test -z "$GREP"; then
4287 ac_path_GREP_found=false
4288 # Loop through the user's path and
test for each of PROGNAME-LIST
4289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4290 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4293 test -z "$as_dir" && as_dir
=.
4294 for ac_prog
in grep ggrep
; do
4295 for ac_exec_ext
in '' $ac_executable_extensions; do
4296 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4298 # Check for GNU ac_path_GREP and select it if it is found.
4299 # Check for GNU $ac_path_GREP
4300 case `"$ac_path_GREP" --version 2>&1` in
4302 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4305 $as_echo_n 0123456789 >"conftest.in"
4308 cat "conftest.in" "conftest.in" >"conftest.tmp"
4309 mv "conftest.tmp" "conftest.in"
4310 cp "conftest.in" "conftest.nl"
4311 $as_echo 'GREP' >> "conftest.nl"
4312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4313 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4314 ac_count
=`expr $ac_count + 1`
4315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_GREP
="$ac_path_GREP"
4318 ac_path_GREP_max
=$ac_count
4320 # 10*(2^10) chars as input seems more than enough
4321 test $ac_count -gt 10 && break
4323 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4326 $ac_path_GREP_found && break 3
4331 if test -z "$ac_cv_path_GREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4337 ac_cv_path_GREP
=$GREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4342 $as_echo "$ac_cv_path_GREP" >&6; }
4343 GREP
="$ac_cv_path_GREP"
4346 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4347 $as_echo_n "checking for egrep... " >&6; }
4348 if test "${ac_cv_path_EGREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4351 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4352 then ac_cv_path_EGREP
="$GREP -E"
4354 if test -z "$EGREP"; then
4355 ac_path_EGREP_found
=false
4356 # Loop through the user's path and test for each of PROGNAME-LIST
4357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4361 test -z "$as_dir" && as_dir
=.
4362 for ac_prog
in egrep; do
4363 for ac_exec_ext
in '' $ac_executable_extensions; do
4364 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4365 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4370 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4373 $as_echo_n 0123456789 >"conftest.in"
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 $as_echo 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4381 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4382 ac_count
=`expr $ac_count + 1`
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP
="$ac_path_EGREP"
4386 ac_path_EGREP_max
=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4391 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4394 $ac_path_EGREP_found && break 3
4399 if test -z "$ac_cv_path_EGREP"; then
4400 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4401 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4402 { (exit 1); exit 1; }; }
4405 ac_cv_path_EGREP
=$EGREP
4410 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4411 $as_echo "$ac_cv_path_EGREP" >&6; }
4412 EGREP
="$ac_cv_path_EGREP"
4415 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4416 $as_echo_n "checking for ANSI C header files... " >&6; }
4417 if test "${ac_cv_header_stdc+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4439 rm -f conftest.
$ac_objext
4440 if { (ac_try
="$ac_compile"
4442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 ac_cv_header_stdc=yes
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 ac_cv_header_stdc=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 if test $ac_cv_header_stdc = yes; then
4468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 $EGREP "memchr" >/dev/null 2>&1; then
4482 ac_cv_header_stdc=no
4488 if test $ac_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "free" >/dev/null 2>&1; then
4503 ac_cv_header_stdc=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4511 if test "$cross_compiling" = yes; then
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4522 #if ((' ' & 0x0FF) == 0x020)
4523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4526 # define ISLOWER(c) \
4527 (('a' <= (c) && (c) <= 'i') \
4528 || ('j' <= (c) && (c) <= 'r') \
4529 || ('s' <= (c) && (c) <= 'z'))
4530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538 for (i = 0; i < 256; i++)
4539 if (XOR (islower (i), ISLOWER (i))
4540 || toupper (i) != TOUPPER (i))
4545 rm -f conftest$ac_exeext
4546 if { (ac_try="$ac_link"
4548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4549 *) ac_try_echo
=$ac_try;;
4551 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4552 $as_echo "$ac_try_echo") >&5
4553 (eval "$ac_link") 2>&5
4555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4557 { (case "(($ac_try" in
4558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_try") 2>&5
4565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4569 $as_echo "$as_me: program exited with status $ac_status" >&5
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_header_stdc=no
4576 rm -rf conftest.dSYM
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4584 $as_echo "$ac_cv_header_stdc" >&6; }
4585 if test $ac_cv_header_stdc = yes; then
4587 cat >>confdefs.h <<\_ACEOF
4588 #define STDC_HEADERS 1
4593 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4604 inttypes.h stdint.h unistd.h
4606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4608 $as_echo_n "checking for $ac_header... " >&6; }
4609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4610 $as_echo_n "(cached) " >&6
4612 cat >conftest.$ac_ext <<_ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4618 $ac_includes_default
4620 #include <$ac_header>
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4626 *) ac_try_echo
=$ac_try;;
4628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4629 $as_echo "$ac_try_echo") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.
$ac_objext; then
4640 eval "$as_ac_Header=yes"
4642 $as_echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4645 eval "$as_ac_Header=no"
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4651 $as_echo "$as_val"'`
4652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4653 $as_echo "$ac_res" >&6; }
4654 if test `eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'` = yes; then
4656 cat >>confdefs.h
<<_ACEOF
4657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666 if test "${ac_cv_header_minix_config_h+set}" = set; then
4667 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4668 $as_echo_n "checking for minix/config.h... " >&6; }
4669 if test "${ac_cv_header_minix_config_h+set}" = set; then
4670 $as_echo_n "(cached) " >&6
4672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4673 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4675 # Is the header compilable?
4676 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4677 $as_echo_n "checking minix/config.h usability... " >&6; }
4678 cat >conftest.
$ac_ext <<_ACEOF
4681 cat confdefs.h
>>conftest.
$ac_ext
4682 cat >>conftest.
$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 $ac_includes_default
4685 #include <minix/config.h>
4687 rm -f conftest.
$ac_objext
4688 if { (ac_try
="$ac_compile"
4690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4691 *) ac_try_echo=$ac_try;;
4693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4694 $as_echo "$ac_try_echo") >&5
4695 (eval "$ac_compile") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } && {
4702 test -z "$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 } && test -s conftest.$ac_objext; then
4705 ac_header_compiler=yes
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 ac_header_compiler=no
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4715 $as_echo "$ac_header_compiler" >&6; }
4717 # Is the header present?
4718 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4719 $as_echo_n "checking minix/config.h presence... " >&6; }
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <minix/config.h>
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4731 *) ac_try_echo
=$ac_try;;
4733 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4734 $as_echo "$ac_try_echo") >&5
4735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 grep -v '^ *+' conftest.er1
>conftest.err
4739 cat conftest.err
>&5
4740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev
/null
&& {
4742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4743 test ! -s conftest.err
4745 ac_header_preproc
=yes
4747 $as_echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.
$ac_ext >&5
4750 ac_header_preproc
=no
4753 rm -f conftest.err conftest.
$ac_ext
4754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4755 $as_echo "$ac_header_preproc" >&6; }
4757 # So? What about this header?
4758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4764 ac_header_preproc
=yes
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4772 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4782 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4783 $as_echo_n "checking for minix/config.h... " >&6; }
4784 if test "${ac_cv_header_minix_config_h+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4787 ac_cv_header_minix_config_h
=$ac_header_preproc
4789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4790 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4793 if test $ac_cv_header_minix_config_h = yes; then
4800 if test "$MINIX" = yes; then
4802 cat >>confdefs.h
<<\_ACEOF
4803 #define _POSIX_SOURCE 1
4807 cat >>confdefs.h
<<\_ACEOF
4808 #define _POSIX_1_SOURCE 2
4812 cat >>confdefs.h
<<\_ACEOF
4820 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4821 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4822 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 # define __EXTENSIONS__ 1
4833 $ac_includes_default
4842 rm -f conftest.
$ac_objext
4843 if { (ac_try
="$ac_compile"
4845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4849 $as_echo "$ac_try_echo") >&5
4850 (eval "$ac_compile") 2>conftest.er1
4852 grep -v '^ *+' conftest.er1 >conftest.err
4854 cat conftest.err >&5
4855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest.$ac_objext; then
4860 ac_cv_safe_to_define___extensions__=yes
4862 $as_echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 ac_cv_safe_to_define___extensions__=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4871 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4872 test $ac_cv_safe_to_define___extensions__ = yes &&
4873 cat >>confdefs.h <<\_ACEOF
4874 #define __EXTENSIONS__ 1
4877 cat >>confdefs.h <<\_ACEOF
4878 #define _ALL_SOURCE 1
4881 cat >>confdefs.h <<\_ACEOF
4882 #define _GNU_SOURCE 1
4885 cat >>confdefs.h <<\_ACEOF
4886 #define _POSIX_PTHREAD_SEMANTICS 1
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _TANDEM_SOURCE 1
4895 ### Use -Wno-pointer-sign if the compiler supports it
4896 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4897 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4898 SAVE_CFLAGS="$CFLAGS"
4899 CFLAGS="$CFLAGS -Wno-pointer-sign"
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4915 rm -f conftest.$ac_objext
4916 if { (ac_try="$ac_compile"
4918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4919 *) ac_try_echo
=$ac_try;;
4921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4922 $as_echo "$ac_try_echo") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1
>conftest.err
4927 cat conftest.err
>&5
4928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.
$ac_objext; then
4935 $as_echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.
$ac_ext >&5
4941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 if test $has_option = yes; then
4943 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4945 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4946 $as_echo "$has_option" >&6; }
4947 CFLAGS
="$SAVE_CFLAGS"
4951 ### Use -Wdeclaration-after-statement if the compiler supports it
4952 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4953 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4954 SAVE_CFLAGS
="$CFLAGS"
4955 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4956 cat >conftest.
$ac_ext <<_ACEOF
4959 cat confdefs.h
>>conftest.
$ac_ext
4960 cat >>conftest.
$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.
$ac_objext
4972 if { (ac_try
="$ac_compile"
4974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4978 $as_echo "$ac_try_echo") >&5
4979 (eval "$ac_compile") 2>conftest.er1
4981 grep -v '^ *+' conftest.er1 >conftest.err
4983 cat conftest.err >&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && {
4986 test -z "$ac_c_werror_flag" ||
4987 test ! -s conftest.err
4988 } && test -s conftest.$ac_objext; then
4991 $as_echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4998 if test $has_option = yes; then
4999 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5001 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5002 $as_echo "$has_option" >&6; }
5003 CFLAGS="$SAVE_CFLAGS"
5007 #### Some other nice autoconf tests.
5009 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5010 $as_echo_n "checking whether ln -s works... " >&6; }
5012 if test "$LN_S" = "ln -s"; then
5013 { $as_echo "$as_me:$LINENO: result: yes" >&5
5014 $as_echo "yes" >&6; }
5016 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5017 $as_echo "no, using $LN_S" >&6; }
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5027 # On Suns, sometimes $CPP names a directory.
5028 if test -n "$CPP" && test -d "$CPP"; then
5031 if test -z "$CPP"; then
5032 if test "${ac_cv_prog_CPP+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5035 # Double quotes because CPP needs to be expanded
5036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5039 for ac_c_preproc_warn_flag in '' yes
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5054 # include <limits.h>
5056 # include <assert.h>
5060 if { (ac_try="$ac_cpp conftest.$ac_ext"
5062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5063 *) ac_try_echo
=$ac_try;;
5065 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5069 grep -v '^ *+' conftest.er1
>conftest.err
5071 cat conftest.err
>&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev
/null
&& {
5074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.
$ac_ext >&5
5082 # Broken: fails on valid input.
5086 rm -f conftest.err conftest.
$ac_ext
5088 # OK, works on sane cases. Now check whether nonexistent headers
5089 # can be detected and how.
5090 cat >conftest.
$ac_ext <<_ACEOF
5093 cat confdefs.h
>>conftest.
$ac_ext
5094 cat >>conftest.
$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 #include <ac_nonexistent.h>
5098 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5104 $as_echo "$ac_try_echo") >&5
5105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null && {
5112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5115 # Broken: success on invalid input.
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 # Passes both tests.
5126 rm -f conftest.err conftest.$ac_ext
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.
$ac_ext
5131 if $ac_preproc_ok; then
5143 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5144 $as_echo "$CPP" >&6; }
5146 for ac_c_preproc_warn_flag
in '' yes
5148 # Use a header file that comes with gcc, so configuring glibc
5149 # with a fresh cross-compiler works.
5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151 # <limits.h> exists even on freestanding compilers.
5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5153 # not just through cpp. "Syntax error" is here to catch this case.
5154 cat >conftest.
$ac_ext <<_ACEOF
5157 cat confdefs.h
>>conftest.
$ac_ext
5158 cat >>conftest.
$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5161 # include <limits.h>
5163 # include <assert.h>
5167 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173 $as_echo "$ac_try_echo") >&5
5174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5176 grep -v '^ *+' conftest.er1 >conftest.err
5178 cat conftest.err >&5
5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null && {
5181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5182 test ! -s conftest.err
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 # Broken: fails on valid input.
5193 rm -f conftest.err conftest.$ac_ext
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat >conftest.$ac_ext <<_ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 #include <ac_nonexistent.h>
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5208 *) ac_try_echo
=$ac_try;;
5210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5211 $as_echo "$ac_try_echo") >&5
5212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5214 grep -v '^ *+' conftest.er1
>conftest.err
5216 cat conftest.err
>&5
5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev
/null
&& {
5219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5222 # Broken: success on invalid input.
5225 $as_echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.
$ac_ext >&5
5228 # Passes both tests.
5233 rm -f conftest.err conftest.
$ac_ext
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.
$ac_ext
5238 if $ac_preproc_ok; then
5241 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5242 See \`config.log' for more details." >&5
5243 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5244 See \`config.log' for more details." >&2;}
5245 { (exit 1); exit 1; }; }
5249 ac_cpp
='$CPP $CPPFLAGS'
5250 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5254 # Find a good install program. We prefer a C program (faster),
5255 # so one script is as good as another. But avoid the broken or
5256 # incompatible versions:
5257 # SysV /etc/install, /usr/sbin/install
5258 # SunOS /usr/etc/install
5259 # IRIX /sbin/install
5261 # AmigaOS /C/install, which installs bootblocks on floppy discs
5262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5265 # OS/2's system install, which has a completely different semantic
5266 # ./install, which can be erroneously created by make from ./install.sh.
5267 # Reject install programs that cannot install multiple files.
5268 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5269 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5270 if test -z "$INSTALL"; then
5271 if test "${ac_cv_path_install+set}" = set; then
5272 $as_echo_n "(cached) " >&6
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir
=.
5279 # Account for people who put trailing slashes in PATH elements.
5281 .
/ | .
// |
/cC
/* | \
5282 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5283 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5286 # OSF1 and SCO ODT 3.0 have their own names for install.
5287 # Don't use installbsd from OSF since it installs stuff as root
5289 for ac_prog
in ginstall scoinst
install; do
5290 for ac_exec_ext
in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5292 if test $ac_prog = install &&
5293 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5294 # AIX install. It has an incompatible calling convention.
5296 elif test $ac_prog = install &&
5297 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5298 # program-specific install script used by HP pwplus--don't use.
5301 rm -rf conftest.one conftest.two conftest.dir
5302 echo one
> conftest.one
5303 echo two
> conftest.two
5305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5306 test -s conftest.one
&& test -s conftest.two
&&
5307 test -s conftest.dir
/conftest.one
&&
5308 test -s conftest.dir
/conftest.two
5310 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5323 rm -rf conftest.one conftest.two conftest.dir
5326 if test "${ac_cv_path_install+set}" = set; then
5327 INSTALL
=$ac_cv_path_install
5329 # As a last resort, use the slow shell script. Don't cache a
5330 # value for INSTALL within a source directory, because that will
5331 # break other packages using the cache if that directory is
5332 # removed, or if the value is a relative name.
5333 INSTALL
=$ac_install_sh
5336 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5337 $as_echo "$INSTALL" >&6; }
5339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5340 # It thinks the first close brace ends the variable substitution.
5341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5345 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5347 if test "x$RANLIB" = x
; then
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5350 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_RANLIB+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5356 if test -n "$RANLIB"; then
5357 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir
=.
5364 for ac_exec_ext
in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 RANLIB
=$ac_cv_prog_RANLIB
5377 if test -n "$RANLIB"; then
5378 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5379 $as_echo "$RANLIB" >&6; }
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_prog_RANLIB"; then
5388 ac_ct_RANLIB
=$RANLIB
5389 # Extract the first word of "ranlib", so it can be a program name with args.
5390 set dummy ranlib
; ac_word
=$2
5391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5394 $as_echo_n "(cached) " >&6
5396 if test -n "$ac_ct_RANLIB"; then
5397 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5403 test -z "$as_dir" && as_dir
=.
5404 for ac_exec_ext
in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5417 if test -n "$ac_ct_RANLIB"; then
5418 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5419 $as_echo "$ac_ct_RANLIB" >&6; }
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5425 if test "x$ac_ct_RANLIB" = x
; then
5428 case $cross_compiling:$ac_tool_warned in
5430 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5431 whose name does not start with the host triplet. If you think this
5432 configuration is useful to you, please write to autoconf@gnu.org." >&5
5433 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5434 whose name does not start with the host triplet. If you think this
5435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5436 ac_tool_warned
=yes ;;
5438 RANLIB
=$ac_ct_RANLIB
5441 RANLIB
="$ac_cv_prog_RANLIB"
5445 # Extract the first word of "install-info", so it can be a program name with args.
5446 set dummy install-info
; ac_word
=$2
5447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5452 case $INSTALL_INFO in
5454 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir
=.
5462 for ac_exec_ext
in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5476 if test -n "$INSTALL_INFO"; then
5477 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5478 $as_echo "$INSTALL_INFO" >&6; }
5480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5485 # Extract the first word of "install-info", so it can be a program name with args.
5486 set dummy install-info
; ac_word
=$2
5487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5492 case $INSTALL_INFO in
5494 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 for as_dir
in /usr
/sbin
5501 test -z "$as_dir" && as_dir
=.
5502 for ac_exec_ext
in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5516 if test -n "$INSTALL_INFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5518 $as_echo "$INSTALL_INFO" >&6; }
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5525 # Extract the first word of "install-info", so it can be a program name with args.
5526 set dummy install-info
; ac_word
=$2
5527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5530 $as_echo_n "(cached) " >&6
5532 case $INSTALL_INFO in
5534 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir
=.
5542 for ac_exec_ext
in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5556 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5557 if test -n "$INSTALL_INFO"; then
5558 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5559 $as_echo "$INSTALL_INFO" >&6; }
5561 { $as_echo "$as_me:$LINENO: result: no" >&5
5562 $as_echo "no" >&6; }
5566 # Extract the first word of "gzip", so it can be a program name with args.
5567 set dummy
gzip; ac_word
=$2
5568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5571 $as_echo_n "(cached) " >&6
5575 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir
=.
5583 for ac_exec_ext
in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5597 if test -n "$GZIP_PROG"; then
5598 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5599 $as_echo "$GZIP_PROG" >&6; }
5601 { $as_echo "$as_me:$LINENO: result: no" >&5
5602 $as_echo "no" >&6; }
5608 ## Need makeinfo >= 4.6 (?) to build the manuals.
5609 # Extract the first word of "makeinfo", so it can be a program name with args.
5610 set dummy makeinfo
; ac_word
=$2
5611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5614 $as_echo_n "(cached) " >&6
5618 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir
=.
5626 for ac_exec_ext
in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5640 MAKEINFO
=$ac_cv_path_MAKEINFO
5641 if test -n "$MAKEINFO"; then
5642 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5643 $as_echo "$MAKEINFO" >&6; }
5645 { $as_echo "$as_me:$LINENO: result: no" >&5
5646 $as_echo "no" >&6; }
5650 if test "$MAKEINFO" != "no" && \
5651 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
5655 ## Makeinfo is unusual. For a released Emacs, the manuals are
5656 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5657 ## therefore in the category of "special tools" not normally required, which
5658 ## configure does not have to check for (eg autoconf itself).
5659 ## In a Bazaar checkout on the other hand, the manuals are not included.
5660 ## So makeinfo is a requirement to build from Bazaar, and configure
5661 ## should test for it as it does for any other build requirement.
5662 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5663 ## with pre-built manuals, from a Bazaar checkout.
5664 if test "$MAKEINFO" = "no"; then
5665 if test "x${with_makeinfo}" = "xno"; then
5667 elif test ! -e $srcdir/info
/emacs
; then
5668 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5669 source tree does not seem to have pre-built manuals in the \`info' directory.
5670 Either install a suitable version of makeinfo, or re-run configure
5671 with the \`--without-makeinfo' option to build without the manuals. " >&5
5672 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5673 source tree does not seem to have pre-built manuals in the \`info' directory.
5674 Either install a suitable version of makeinfo, or re-run configure
5675 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5676 { (exit 1); exit 1; }; }
5681 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5683 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5686 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5688 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5692 late_LDFLAGS
=$LDFLAGS
5693 if test "$GCC" = yes; then
5694 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5696 LDFLAGS
="$LDFLAGS -znocombreloc"
5699 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5700 $as_echo_n "checking for -znocombreloc... " >&6; }
5701 cat >conftest.
$ac_ext <<_ACEOF
5704 rm -f conftest.
$ac_objext conftest
$ac_exeext
5705 if { (ac_try
="$ac_link"
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5711 $as_echo "$ac_try_echo") >&5
5712 (eval "$ac_link") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext && {
5722 test "$cross_compiling" = yes ||
5723 $as_test_x conftest$ac_exeext
5725 { $as_echo "$as_me:$LINENO: result: yes" >&5
5726 $as_echo "yes" >&6; }
5728 $as_echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 LDFLAGS=$late_LDFLAGS
5732 { $as_echo "$as_me:$LINENO: result: no" >&5
5733 $as_echo "no" >&6; }
5736 rm -rf conftest.dSYM
5737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5738 conftest$ac_exeext conftest.$ac_ext
5740 #### Extract some information from the operating system and machine files.
5742 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5743 - which libraries the lib-src programs will want, and
5744 - whether the GNU malloc routines are usable..." >&5
5745 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5746 - which libraries the lib-src programs will want, and
5747 - whether the GNU malloc routines are usable..." >&6;}
5749 ### First figure out CFLAGS (which we use for running the compiler here)
5750 ### and REAL_CFLAGS (which we use for real compilation).
5751 ### The two are the same except on a few systems, where they are made
5752 ### different to work around various lossages. For example,
5753 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5754 ### as implying static linking.
5756 ### If the CFLAGS env var is specified, we use that value
5757 ### instead of the default.
5759 ### It's not important that this name contain the PID; you can't run
5760 ### two configures in the same directory and have anything work
5762 tempcname="conftest.c"
5765 #include "'${srcdir}'/src/'${opsysfile}'"
5766 #include "'${srcdir}'/src/'${machfile}'"
5767 #ifndef LIBS_MACHINE
5768 #define LIBS_MACHINE
5773 #ifndef C_SWITCH_SYSTEM
5774 #define C_SWITCH_SYSTEM
5776 #ifndef C_SWITCH_MACHINE
5777 #define C_SWITCH_MACHINE
5779 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5780 configure___ c_switch_system=C_SWITCH_SYSTEM
5781 configure___ c_switch_machine=C_SWITCH_MACHINE
5784 #define LIB_X11_LIB -lX11
5787 configure___ LIBX=LIB_X11_LIB
5790 configure___ unexec=UNEXEC
5792 configure___ unexec=unexec.o
5795 #ifdef SYSTEM_MALLOC
5796 configure___ system_malloc=yes
5798 configure___ system_malloc=no
5801 #ifdef USE_MMAP_FOR_BUFFERS
5802 configure___ use_mmap_for_buffers=yes
5804 configure___ use_mmap_for_buffers=no
5807 #ifndef C_OPTIMIZE_SWITCH
5809 #define C_OPTIMIZE_SWITCH -O2
5811 #define C_OPTIMIZE_SWITCH -O
5815 #ifndef C_WARNINGS_SWITCH
5816 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5819 #ifndef LD_SWITCH_MACHINE
5820 #define LD_SWITCH_MACHINE
5823 #ifndef LD_SWITCH_SYSTEM
5824 #define LD_SWITCH_SYSTEM
5827 #ifndef LD_SWITCH_X_SITE_AUX
5828 #define LD_SWITCH_X_SITE_AUX
5831 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5832 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5834 #ifdef THIS_IS_CONFIGURE
5836 /* Get the CFLAGS for tests in configure. */
5838 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5840 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5843 #else /* not THIS_IS_CONFIGURE */
5845 /* Get the CFLAGS for real compilation. */
5847 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5849 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5852 #endif /* not THIS_IS_CONFIGURE */
5855 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5857 # The value of CPP is a quoted variable reference, so we need to do this
5858 # to get its actual value...
5859 CPP=`eval "echo $CPP"`
5860 eval `${CPP} -Isrc ${tempcname} \
5861 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5862 if test "x$SPECIFIED_CFLAGS" = x; then
5863 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5864 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5866 REAL_CFLAGS="$CFLAGS"
5870 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5872 ### Make sure subsequent tests use flags consistent with the build flags.
5874 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5875 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5877 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5882 # Check whether --enable-largefile was given.
5883 if test "${enable_largefile+set}" = set; then
5884 enableval=$enable_largefile;
5887 if test "$enable_largefile" != no; then
5889 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5890 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5894 ac_cv_sys_largefile_CC=no
5895 if test "$GCC" != yes; then
5898 # IRIX 6.2 and later do not support large files by default,
5899 # so use the C compiler's -n32 option if that helps.
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 /* Check that off_t can represent 2**63 - 1 correctly.
5908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5909 since some C++ compilers masquerading as C compilers
5910 incorrectly reject 9223372036854775807. */
5911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5913 && LARGE_OFF_T % 2147483647 == 1)
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5927 *) ac_try_echo
=$ac_try;;
5929 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5930 $as_echo "$ac_try_echo") >&5
5931 (eval "$ac_compile") 2>conftest.er1
5933 grep -v '^ *+' conftest.er1
>conftest.err
5935 cat conftest.err
>&5
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && {
5938 test -z "$ac_c_werror_flag" ||
5939 test ! -s conftest.err
5940 } && test -s conftest.
$ac_objext; then
5943 $as_echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5949 rm -f core conftest.err conftest.
$ac_objext
5951 rm -f conftest.
$ac_objext
5952 if { (ac_try
="$ac_compile"
5954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 ac_cv_sys_largefile_CC=' -n32'; break
5971 $as_echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5977 rm -f core conftest.err conftest.$ac_objext
5981 rm -f conftest.$ac_ext
5984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5985 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5986 if test "$ac_cv_sys_largefile_CC" != no; then
5987 CC=$CC$ac_cv_sys_largefile_CC
5990 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5991 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5992 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5993 $as_echo_n "(cached) " >&6
5996 cat >conftest.$ac_ext <<_ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <sys/types.h>
6003 /* Check that off_t can represent 2**63 - 1 correctly.
6004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6005 since some C++ compilers masquerading as C compilers
6006 incorrectly reject 9223372036854775807. */
6007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6009 && LARGE_OFF_T % 2147483647 == 1)
6019 rm -f conftest.$ac_objext
6020 if { (ac_try="$ac_compile"
6022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6023 *) ac_try_echo
=$ac_try;;
6025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027 (eval "$ac_compile") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1
>conftest.err
6031 cat conftest.err
>&5
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.
$ac_objext; then
6037 ac_cv_sys_file_offset_bits
=no
; break
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.
$ac_ext >&5
6045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #define _FILE_OFFSET_BITS 64
6053 #include <sys/types.h>
6054 /* Check that off_t can represent 2**63 - 1 correctly.
6055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6056 since some C++ compilers masquerading as C compilers
6057 incorrectly reject 9223372036854775807. */
6058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6060 && LARGE_OFF_T % 2147483647 == 1)
6070 rm -f conftest.
$ac_objext
6071 if { (ac_try
="$ac_compile"
6073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 ac_cv_sys_file_offset_bits=64; break
6090 $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 ac_cv_sys_file_offset_bits=unknown
6101 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6102 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6103 case $ac_cv_sys_file_offset_bits in #(
6106 cat >>confdefs.h <<_ACEOF
6107 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6112 if test $ac_cv_sys_file_offset_bits = unknown; then
6113 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6114 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6115 if test "${ac_cv_sys_large_files+set}" = set; then
6116 $as_echo_n "(cached) " >&6
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 /* Check that off_t can represent 2**63 - 1 correctly.
6127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6128 since some C++ compilers masquerading as C compilers
6129 incorrectly reject 9223372036854775807. */
6130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6132 && LARGE_OFF_T % 2147483647 == 1)
6142 rm -f conftest.$ac_objext
6143 if { (ac_try="$ac_compile"
6145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6146 *) ac_try_echo
=$ac_try;;
6148 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6149 $as_echo "$ac_try_echo") >&5
6150 (eval "$ac_compile") 2>conftest.er1
6152 grep -v '^ *+' conftest.er1
>conftest.err
6154 cat conftest.err
>&5
6155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && {
6157 test -z "$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6159 } && test -s conftest.
$ac_objext; then
6160 ac_cv_sys_large_files
=no
; break
6162 $as_echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.
$ac_ext >&5
6168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6169 cat >conftest.
$ac_ext <<_ACEOF
6172 cat confdefs.h
>>conftest.
$ac_ext
6173 cat >>conftest.
$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 #define _LARGE_FILES 1
6176 #include <sys/types.h>
6177 /* Check that off_t can represent 2**63 - 1 correctly.
6178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6179 since some C++ compilers masquerading as C compilers
6180 incorrectly reject 9223372036854775807. */
6181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6183 && LARGE_OFF_T % 2147483647 == 1)
6193 rm -f conftest.
$ac_objext
6194 if { (ac_try
="$ac_compile"
6196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6200 $as_echo "$ac_try_echo") >&5
6201 (eval "$ac_compile") 2>conftest.er1
6203 grep -v '^ *+' conftest.er1 >conftest.err
6205 cat conftest.err >&5
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } && {
6208 test -z "$ac_c_werror_flag" ||
6209 test ! -s conftest.err
6210 } && test -s conftest.$ac_objext; then
6211 ac_cv_sys_large_files=1; break
6213 $as_echo "$as_me: failed program was:" >&5
6214 sed 's/^/| /' conftest.$ac_ext >&5
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220 ac_cv_sys_large_files=unknown
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6225 $as_echo "$ac_cv_sys_large_files" >&6; }
6226 case $ac_cv_sys_large_files in #(
6229 cat >>confdefs.h <<_ACEOF
6230 #define _LARGE_FILES $ac_cv_sys_large_files
6240 ## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
6241 ## Other machine types hard-code the location in src/[ms]/*.h.
6242 case "${canonical}" in
6243 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6245 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6246 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6247 ## For anything else (eg /usr/lib32), it is up the user to specify
6248 ## the location (bug#5655).
6249 ## Test for crtn.o, not just the directory, because sometimes the
6250 ## directory exists but does not have the relevant files (bug#1287).
6251 ## If user specified a crt-dir, use that unconditionally.
6252 if test "X$CRT_DIR" = "X"; then
6254 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6257 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6258 { { $as_echo "$as_me:$LINENO: error: crt*.o not found. Use --with-crt-dir to specify the location." >&5
6259 $as_echo "$as_me: error: crt*.o not found. Use --with-crt-dir to specify the location." >&2;}
6260 { (exit 1); exit 1; }; }
6264 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6271 if test "${with_sound}" != "no"; then
6272 # Sound support for GNU/Linux and the free BSDs.
6276 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6281 $as_echo_n "checking for $ac_header... " >&6; }
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 $as_echo_n "(cached) " >&6
6285 ac_res=`eval 'as_val=${'$as_ac_Header'}
6286 $as_echo "$as_val"'`
6287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6288 $as_echo "$ac_res" >&6; }
6290 # Is the header compilable?
6291 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6292 $as_echo_n "checking $ac_header usability... " >&6; }
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 #include <$ac_header>
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6306 *) ac_try_echo
=$ac_try;;
6308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6309 $as_echo "$ac_try_echo") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1
>conftest.err
6314 cat conftest.err
>&5
6315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.
$ac_objext; then
6320 ac_header_compiler
=yes
6322 $as_echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.
$ac_ext >&5
6325 ac_header_compiler
=no
6328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 $as_echo "$ac_header_compiler" >&6; }
6332 # Is the header present?
6333 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 $as_echo_n "checking $ac_header presence... " >&6; }
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6343 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6349 $as_echo "$ac_try_echo") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6360 ac_header_preproc=yes
6362 $as_echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_header_preproc=no
6368 rm -f conftest.err conftest.$ac_ext
6369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 $as_echo "$ac_header_preproc" >&6; }
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc=yes
6382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 $as_echo_n "checking for $ac_header... " >&6; }
6399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 $as_echo_n "(cached) " >&6
6402 eval "$as_ac_Header=\$ac_header_preproc"
6404 ac_res=`eval 'as_val=${'$as_ac_Header'}
6405 $as_echo "$as_val"'`
6406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6407 $as_echo "$ac_res" >&6; }
6410 if test `eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'` = yes; then
6412 cat >>confdefs.h <<_ACEOF
6413 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6420 # Emulation library used on NetBSD.
6421 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6422 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6423 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6426 ac_check_lib_save_LIBS=$LIBS
6427 LIBS="-lossaudio $LIBS"
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6435 /* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6445 return _oss_ioctl ();
6450 rm -f conftest.$ac_objext conftest$ac_exeext
6451 if { (ac_try="$ac_link"
6453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6454 *) ac_try_echo
=$ac_try;;
6456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6457 $as_echo "$ac_try_echo") >&5
6458 (eval "$ac_link") 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest
$ac_exeext && {
6468 test "$cross_compiling" = yes ||
6469 $as_test_x conftest
$ac_exeext
6471 ac_cv_lib_ossaudio__oss_ioctl
=yes
6473 $as_echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.
$ac_ext >&5
6476 ac_cv_lib_ossaudio__oss_ioctl
=no
6479 rm -rf conftest.dSYM
6480 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6481 conftest
$ac_exeext conftest.
$ac_ext
6482 LIBS
=$ac_check_lib_save_LIBS
6484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6485 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6486 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6495 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6499 # Extract the first word of "pkg-config", so it can be a program name with args.
6500 set dummy pkg-config
; ac_word
=$2
6501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6504 $as_echo_n "(cached) " >&6
6508 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir
=.
6516 for ac_exec_ext
in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6530 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6531 if test -n "$PKG_CONFIG"; then
6532 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6533 $as_echo "$PKG_CONFIG" >&6; }
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6541 if test "$PKG_CONFIG" = "no" ; then
6544 PKG_CONFIG_MIN_VERSION
=0.9.0
6545 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6546 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6547 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6549 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6550 { $as_echo "$as_me:$LINENO: result: yes" >&5
6551 $as_echo "yes" >&6; }
6554 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6555 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6556 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6557 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6558 $as_echo "$ALSA_CFLAGS" >&6; }
6560 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6561 $as_echo_n "checking ALSA_LIBS... " >&6; }
6562 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6563 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6564 $as_echo "$ALSA_LIBS" >&6; }
6566 { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6570 ## If we have a custom action on failure, don't print errors, but
6571 ## do set a variable so people can do so.
6572 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6584 if test $succeeded = yes; then
6590 if test $HAVE_ALSA = yes; then
6591 SAVE_CFLAGS
="$CFLAGS"
6592 SAVE_LDFLAGS
="$LDFLAGS"
6593 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6594 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6595 cat >conftest.
$ac_ext <<_ACEOF
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <asoundlib.h>
6605 snd_lib_error_set_handler (0);
6610 rm -f conftest.
$ac_objext
6611 if { (ac_try
="$ac_compile"
6613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6617 $as_echo "$ac_try_echo") >&5
6618 (eval "$ac_compile") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } && {
6625 test -z "$ac_c_werror_flag" ||
6626 test ! -s conftest.err
6627 } && test -s conftest.$ac_objext; then
6628 emacs_alsa_normal=yes
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 emacs_alsa_normal=no
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 if test "$emacs_alsa_normal" != yes; then
6638 cat >conftest.$ac_ext <<_ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <alsa/asoundlib.h>
6648 snd_lib_error_set_handler (0);
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6657 *) ac_try_echo
=$ac_try;;
6659 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6660 $as_echo "$ac_try_echo") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6663 grep -v '^ *+' conftest.er1
>conftest.err
6665 cat conftest.err
>&5
6666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.
$ac_objext; then
6671 emacs_alsa_subdir
=yes
6673 $as_echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.
$ac_ext >&5
6676 emacs_alsa_subdir
=no
6679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 if test "$emacs_alsa_subdir" != yes; then
6681 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6682 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6683 { (exit 1); exit 1; }; }
6685 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6688 CFLAGS
="$SAVE_CFLAGS"
6689 LDFLAGS
="$SAVE_LDFLAGS"
6690 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6691 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6693 cat >>confdefs.h
<<\_ACEOF
6726 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6727 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6728 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6729 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6730 sys
/utsname.h
pwd.h utmp.h
6732 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6734 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 $as_echo_n "checking for $ac_header... " >&6; }
6736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 $as_echo_n "(cached) " >&6
6739 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6740 $as_echo "$as_val"'`
6741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6742 $as_echo "$ac_res" >&6; }
6744 # Is the header compilable?
6745 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6746 $as_echo_n "checking $ac_header usability... " >&6; }
6747 cat >conftest.
$ac_ext <<_ACEOF
6750 cat confdefs.h
>>conftest.
$ac_ext
6751 cat >>conftest.
$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 $ac_includes_default
6754 #include <$ac_header>
6756 rm -f conftest.
$ac_objext
6757 if { (ac_try
="$ac_compile"
6759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6763 $as_echo "$ac_try_echo") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6766 grep -v '^ *+' conftest.er1 >conftest.err
6768 cat conftest.err >&5
6769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
6774 ac_header_compiler=yes
6776 $as_echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_header_compiler=no
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6784 $as_echo "$ac_header_compiler" >&6; }
6786 # Is the header present?
6787 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6788 $as_echo_n "checking $ac_header presence... " >&6; }
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 #include <$ac_header>
6797 if { (ac_try="$ac_cpp conftest.$ac_ext"
6799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6800 *) ac_try_echo
=$ac_try;;
6802 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6803 $as_echo "$ac_try_echo") >&5
6804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6806 grep -v '^ *+' conftest.er1
>conftest.err
6808 cat conftest.err
>&5
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } >/dev
/null
&& {
6811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6814 ac_header_preproc
=yes
6816 $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.
$ac_ext >&5
6819 ac_header_preproc
=no
6822 rm -f conftest.err conftest.
$ac_ext
6823 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 $as_echo "$ac_header_preproc" >&6; }
6826 # So? What about this header?
6827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6833 ac_header_preproc
=yes
6836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6837 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6839 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6841 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6843 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6847 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6851 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6852 $as_echo_n "checking for $ac_header... " >&6; }
6853 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6854 $as_echo_n "(cached) " >&6
6856 eval "$as_ac_Header=\$ac_header_preproc"
6858 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6859 $as_echo "$as_val"'`
6860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6861 $as_echo "$ac_res" >&6; }
6864 if test `eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'` = yes; then
6866 cat >>confdefs.h
<<_ACEOF
6867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6876 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6877 cat >conftest.
$ac_ext <<_ACEOF
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <sys/personality.h>
6887 personality (PER_LINUX32)
6892 rm -f conftest.
$ac_objext
6893 if { (ac_try
="$ac_compile"
6895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 $as_echo "$ac_try_echo") >&5
6900 (eval "$ac_compile") 2>conftest.er1
6902 grep -v '^ *+' conftest.er1 >conftest.err
6904 cat conftest.err >&5
6905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && {
6907 test -z "$ac_c_werror_flag" ||
6908 test ! -s conftest.err
6909 } && test -s conftest.$ac_objext; then
6910 emacs_cv_personality_linux32=yes
6912 $as_echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6915 emacs_cv_personality_linux32=no
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6920 $as_echo "$emacs_cv_personality_linux32" >&6; }
6922 if test $emacs_cv_personality_linux32 = yes; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_PERSONALITY_LINUX32 1
6931 for ac_header in term.h
6933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6935 $as_echo_n "checking for $ac_header... " >&6; }
6936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6937 $as_echo_n "(cached) " >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <$ac_header>
6947 if { (ac_try="$ac_cpp conftest.$ac_ext"
6949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6950 *) ac_try_echo
=$ac_try;;
6952 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6953 $as_echo "$ac_try_echo") >&5
6954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1
>conftest.err
6958 cat conftest.err
>&5
6959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } >/dev
/null
&& {
6961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6964 eval "$as_ac_Header=yes"
6966 $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.
$ac_ext >&5
6969 eval "$as_ac_Header=no"
6972 rm -f conftest.err conftest.
$ac_ext
6974 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6978 if test `eval 'as_val=${'$as_ac_Header'}
6979 $as_echo "$as_val"'` = yes; then
6980 cat >>confdefs.h
<<_ACEOF
6981 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6988 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 $as_echo_n "checking for ANSI C header files... " >&6; }
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6993 cat >conftest.
$ac_ext <<_ACEOF
6996 cat confdefs.h
>>conftest.
$ac_ext
6997 cat >>conftest.
$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7012 rm -f conftest.
$ac_objext
7013 if { (ac_try
="$ac_compile"
7015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7019 $as_echo "$ac_try_echo") >&5
7020 (eval "$ac_compile") 2>conftest.er1
7022 grep -v '^ *+' conftest.er1 >conftest.err
7024 cat conftest.err >&5
7025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } && {
7027 test -z "$ac_c_werror_flag" ||
7028 test ! -s conftest.err
7029 } && test -s conftest.$ac_objext; then
7030 ac_cv_header_stdc=yes
7032 $as_echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 ac_cv_header_stdc=no
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7055 ac_cv_header_stdc=no
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7076 ac_cv_header_stdc=no
7082 if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7095 #if ((' ' & 0x0FF) == 0x020)
7096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7099 # define ISLOWER(c) \
7100 (('a' <= (c) && (c) <= 'i') \
7101 || ('j' <= (c) && (c) <= 'r') \
7102 || ('s' <= (c) && (c) <= 'z'))
7103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7111 for (i = 0; i < 256; i++)
7112 if (XOR (islower (i), ISLOWER (i))
7113 || toupper (i) != TOUPPER (i))
7118 rm -f conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7122 *) ac_try_echo
=$ac_try;;
7124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7125 $as_echo "$ac_try_echo") >&5
7126 (eval "$ac_link") 2>&5
7128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7130 { (case "(($ac_try" in
7131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136 (eval "$ac_try") 2>&5
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7142 $as_echo "$as_me: program exited with status $ac_status" >&5
7143 $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7147 ac_cv_header_stdc=no
7149 rm -rf conftest.dSYM
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7156 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7157 $as_echo "$ac_cv_header_stdc" >&6; }
7158 if test $ac_cv_header_stdc = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define STDC_HEADERS 1
7166 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7167 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7168 if test "${ac_cv_header_time+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 #include <sys/time.h>
7184 if ((struct tm *) 0)
7190 rm -f conftest.$ac_objext
7191 if { (ac_try="$ac_compile"
7193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7194 *) ac_try_echo
=$ac_try;;
7196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7197 $as_echo "$ac_try_echo") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1
>conftest.err
7202 cat conftest.err
>&5
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.
$ac_objext; then
7208 ac_cv_header_time
=yes
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.
$ac_ext >&5
7213 ac_cv_header_time
=no
7216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7218 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7219 $as_echo "$ac_cv_header_time" >&6; }
7220 if test $ac_cv_header_time = yes; then
7222 cat >>confdefs.h
<<\_ACEOF
7223 #define TIME_WITH_SYS_TIME 1
7228 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7229 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7230 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7233 cat >conftest.
$ac_ext <<_ACEOF
7236 cat confdefs.h
>>conftest.
$ac_ext
7237 cat >>conftest.
$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 $ac_includes_default
7251 rm -f conftest.
$ac_objext
7252 if { (ac_try
="$ac_compile"
7254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_have_decl_sys_siglist=yes
7271 $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_have_decl_sys_siglist=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7280 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7281 if test $ac_cv_have_decl_sys_siglist = yes; then
7283 cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DECL_SYS_SIGLIST 1
7289 cat >>confdefs.h <<_ACEOF
7290 #define HAVE_DECL_SYS_SIGLIST 0
7297 if test $ac_cv_have_decl_sys_siglist != yes; then
7298 # For Tru64, at least:
7299 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7300 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7301 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7302 $as_echo_n "(cached) " >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7314 #ifndef __sys_siglist
7315 (void) __sys_siglist;
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7326 *) ac_try_echo
=$ac_try;;
7328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7329 $as_echo "$ac_try_echo") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7332 grep -v '^ *+' conftest.er1
>conftest.err
7334 cat conftest.err
>&5
7335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.
$ac_objext; then
7340 ac_cv_have_decl___sys_siglist
=yes
7342 $as_echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.
$ac_ext >&5
7345 ac_cv_have_decl___sys_siglist
=no
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7350 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7351 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7352 if test $ac_cv_have_decl___sys_siglist = yes; then
7354 cat >>confdefs.h
<<_ACEOF
7355 #define HAVE_DECL___SYS_SIGLIST 1
7360 cat >>confdefs.h
<<_ACEOF
7361 #define HAVE_DECL___SYS_SIGLIST 0
7368 if test $ac_cv_have_decl___sys_siglist = yes; then
7370 cat >>confdefs.h
<<\_ACEOF
7371 #define sys_siglist __sys_siglist
7376 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7377 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7378 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <sys/types.h>
7388 #include <sys/wait.h>
7390 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7393 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7401 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7406 rm -f conftest.
$ac_objext
7407 if { (ac_try
="$ac_compile"
7409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_header_sys_wait_h=yes
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_header_sys_wait_h=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7435 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7436 if test $ac_cv_header_sys_wait_h = yes; then
7438 cat >>confdefs.h <<\_ACEOF
7439 #define HAVE_SYS_WAIT_H 1
7445 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7446 $as_echo_n "checking for struct utimbuf... " >&6; }
7447 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7448 $as_echo_n "(cached) " >&6
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #ifdef TIME_WITH_SYS_TIME
7457 #include <sys/time.h>
7460 #ifdef HAVE_SYS_TIME_H
7461 #include <sys/time.h>
7472 static struct utimbuf x; x.actime = x.modtime;
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7481 *) ac_try_echo
=$ac_try;;
7483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7484 $as_echo "$ac_try_echo") >&5
7485 (eval "$ac_compile") 2>conftest.er1
7487 grep -v '^ *+' conftest.er1
>conftest.err
7489 cat conftest.err
>&5
7490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest.
$ac_objext; then
7495 emacs_cv_struct_utimbuf
=yes
7497 $as_echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.
$ac_ext >&5
7500 emacs_cv_struct_utimbuf
=no
7503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7506 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7507 if test $emacs_cv_struct_utimbuf = yes; then
7509 cat >>confdefs.h
<<\_ACEOF
7510 #define HAVE_STRUCT_UTIMBUF 1
7515 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7516 $as_echo_n "checking return type of signal handlers... " >&6; }
7517 if test "${ac_cv_type_signal+set}" = set; then
7518 $as_echo_n "(cached) " >&6
7520 cat >conftest.
$ac_ext <<_ACEOF
7523 cat confdefs.h
>>conftest.
$ac_ext
7524 cat >>conftest.
$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 #include <sys/types.h>
7532 return *(signal (0, 0)) (0) == 1;
7537 rm -f conftest.
$ac_objext
7538 if { (ac_try
="$ac_compile"
7540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544 $as_echo "$ac_try_echo") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7547 grep -v '^ *+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7555 ac_cv_type_signal=int
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_cv_type_signal=void
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7566 $as_echo "$ac_cv_type_signal" >&6; }
7568 cat >>confdefs.h <<_ACEOF
7569 #define RETSIGTYPE $ac_cv_type_signal
7574 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7575 $as_echo_n "checking for speed_t... " >&6; }
7576 if test "${emacs_cv_speed_t+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <termios.h>
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7598 *) ac_try_echo
=$ac_try;;
7600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.
$ac_objext; then
7612 emacs_cv_speed_t
=yes
7614 $as_echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.
$ac_ext >&5
7620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7623 $as_echo "$emacs_cv_speed_t" >&6; }
7624 if test $emacs_cv_speed_t = yes; then
7626 cat >>confdefs.h
<<\_ACEOF
7627 #define HAVE_SPEED_T 1
7632 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7633 $as_echo_n "checking for struct timeval... " >&6; }
7634 if test "${emacs_cv_struct_timeval+set}" = set; then
7635 $as_echo_n "(cached) " >&6
7637 cat >conftest.
$ac_ext <<_ACEOF
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #ifdef TIME_WITH_SYS_TIME
7644 #include <sys/time.h>
7647 #ifdef HAVE_SYS_TIME_H
7648 #include <sys/time.h>
7656 static struct timeval x; x.tv_sec = x.tv_usec;
7661 rm -f conftest.
$ac_objext
7662 if { (ac_try
="$ac_compile"
7664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7665 *) ac_try_echo=$ac_try;;
7667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7668 $as_echo "$ac_try_echo") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 emacs_cv_struct_timeval=yes
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 emacs_cv_struct_timeval=no
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7690 $as_echo "$emacs_cv_struct_timeval" >&6; }
7691 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7692 if test $emacs_cv_struct_timeval = yes; then
7694 cat >>confdefs.h <<\_ACEOF
7695 #define HAVE_TIMEVAL 1
7700 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7701 $as_echo_n "checking for struct exception... " >&6; }
7702 if test "${emacs_cv_struct_exception+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7715 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7720 rm -f conftest.$ac_objext
7721 if { (ac_try="$ac_compile"
7723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7724 *) ac_try_echo
=$ac_try;;
7726 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7727 $as_echo "$ac_try_echo") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1
>conftest.err
7732 cat conftest.err
>&5
7733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.
$ac_objext; then
7738 emacs_cv_struct_exception
=yes
7740 $as_echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.
$ac_ext >&5
7743 emacs_cv_struct_exception
=no
7746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7748 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7749 $as_echo "$emacs_cv_struct_exception" >&6; }
7750 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7751 if test $emacs_cv_struct_exception != yes; then
7753 cat >>confdefs.h
<<\_ACEOF
7754 #define NO_MATHERR 1
7760 for ac_header
in sys
/socket.h
7762 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7763 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7765 $as_echo_n "checking for $ac_header... " >&6; }
7766 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7767 $as_echo_n "(cached) " >&6
7769 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7770 $as_echo "$as_val"'`
7771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7772 $as_echo "$ac_res" >&6; }
7774 # Is the header compilable?
7775 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7776 $as_echo_n "checking $ac_header usability... " >&6; }
7777 cat >conftest.
$ac_ext <<_ACEOF
7780 cat confdefs.h
>>conftest.
$ac_ext
7781 cat >>conftest.
$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 #include <$ac_header>
7786 rm -f conftest.
$ac_objext
7787 if { (ac_try
="$ac_compile"
7789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7793 $as_echo "$ac_try_echo") >&5
7794 (eval "$ac_compile") 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && {
7801 test -z "$ac_c_werror_flag" ||
7802 test ! -s conftest.err
7803 } && test -s conftest.$ac_objext; then
7804 ac_header_compiler=yes
7806 $as_echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7809 ac_header_compiler=no
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814 $as_echo "$ac_header_compiler" >&6; }
7816 # Is the header present?
7817 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818 $as_echo_n "checking $ac_header presence... " >&6; }
7819 cat >conftest.$ac_ext <<_ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <$ac_header>
7827 if { (ac_try="$ac_cpp conftest.$ac_ext"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7836 grep -v '^ *+' conftest.er1
>conftest.err
7838 cat conftest.err
>&5
7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } >/dev
/null
&& {
7841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7844 ac_header_preproc
=yes
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7849 ac_header_preproc
=no
7852 rm -f conftest.err conftest.
$ac_ext
7853 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854 $as_echo "$ac_header_preproc" >&6; }
7856 # So? What about this header?
7857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863 ac_header_preproc
=yes
7866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7869 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7873 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7882 $as_echo_n "checking for $ac_header... " >&6; }
7883 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7884 $as_echo_n "(cached) " >&6
7886 eval "$as_ac_Header=\$ac_header_preproc"
7888 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7889 $as_echo "$as_val"'`
7890 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7891 $as_echo "$ac_res" >&6; }
7894 if test `eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'` = yes; then
7896 cat >>confdefs.h
<<_ACEOF
7897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7905 for ac_header
in net
/if.h
7907 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 $as_echo_n "checking for $ac_header... " >&6; }
7910 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7911 $as_echo_n "(cached) " >&6
7913 cat >conftest.
$ac_ext <<_ACEOF
7916 cat confdefs.h
>>conftest.
$ac_ext
7917 cat >>conftest.
$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 $ac_includes_default
7920 #if HAVE_SYS_SOCKET_H
7921 #include <sys/socket.h>
7924 #include <$ac_header>
7926 rm -f conftest.
$ac_objext
7927 if { (ac_try
="$ac_compile"
7929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7933 $as_echo "$ac_try_echo") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7936 grep -v '^ *+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 eval "$as_ac_Header=yes"
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 eval "$as_ac_Header=no"
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 ac_res=`eval 'as_val=${'$as_ac_Header'}
7955 $as_echo "$as_val"'`
7956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7957 $as_echo "$ac_res" >&6; }
7958 if test `eval 'as_val=${'$as_ac_Header'}
7959 $as_echo "$as_val"'` = yes; then
7960 cat >>confdefs.h <<_ACEOF
7961 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7969 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7970 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7971 if test "${ac_cv_struct_tm+set}" = set; then
7972 $as_echo_n "(cached) " >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <sys/types.h>
7987 int *p = &tm.tm_sec;
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7997 *) ac_try_echo
=$ac_try;;
7999 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1
>conftest.err
8005 cat conftest.err
>&5
8006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.
$ac_objext; then
8011 ac_cv_struct_tm
=time.h
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.
$ac_ext >&5
8016 ac_cv_struct_tm
=sys
/time.h
8019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8021 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8022 $as_echo "$ac_cv_struct_tm" >&6; }
8023 if test $ac_cv_struct_tm = sys
/time.h
; then
8025 cat >>confdefs.h
<<\_ACEOF
8026 #define TM_IN_SYS_TIME 1
8031 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8032 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8033 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8036 cat >conftest.
$ac_ext <<_ACEOF
8039 cat confdefs.h
>>conftest.
$ac_ext
8040 cat >>conftest.
$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include <sys/types.h>
8043 #include <$ac_cv_struct_tm>
8049 static struct tm ac_aggr;
8050 if (ac_aggr.tm_zone)
8056 rm -f conftest.
$ac_objext
8057 if { (ac_try
="$ac_compile"
8059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8060 *) ac_try_echo=$ac_try;;
8062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8063 $as_echo "$ac_try_echo") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_member_struct_tm_tm_zone=yes
8076 $as_echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 #include <sys/types.h>
8086 #include <$ac_cv_struct_tm>
8092 static struct tm ac_aggr;
8093 if (sizeof ac_aggr.tm_zone)
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8103 *) ac_try_echo
=$ac_try;;
8105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8106 $as_echo "$ac_try_echo") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1
>conftest.err
8111 cat conftest.err
>&5
8112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.
$ac_objext; then
8117 ac_cv_member_struct_tm_tm_zone
=yes
8119 $as_echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.
$ac_ext >&5
8122 ac_cv_member_struct_tm_tm_zone
=no
8125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8131 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8132 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8134 cat >>confdefs.h
<<_ACEOF
8135 #define HAVE_STRUCT_TM_TM_ZONE 1
8141 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8143 cat >>confdefs.h
<<\_ACEOF
8144 #define HAVE_TM_ZONE 1
8148 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8149 $as_echo_n "checking whether tzname is declared... " >&6; }
8150 if test "${ac_cv_have_decl_tzname+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8153 cat >conftest.
$ac_ext <<_ACEOF
8156 cat confdefs.h
>>conftest.
$ac_ext
8157 cat >>conftest.
$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8172 rm -f conftest.
$ac_objext
8173 if { (ac_try
="$ac_compile"
8175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179 $as_echo "$ac_try_echo") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_have_decl_tzname=yes
8192 $as_echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 ac_cv_have_decl_tzname=no
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8201 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8202 if test $ac_cv_have_decl_tzname = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_TZNAME 1
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_TZNAME 0
8218 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8219 $as_echo_n "checking for tzname... " >&6; }
8220 if test "${ac_cv_var_tzname+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 #if !HAVE_DECL_TZNAME
8231 extern char *tzname[];
8237 return tzname[0][0];
8242 rm -f conftest.$ac_objext conftest$ac_exeext
8243 if { (ac_try="$ac_link"
8245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8246 *) ac_try_echo
=$ac_try;;
8248 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8249 $as_echo "$ac_try_echo") >&5
8250 (eval "$ac_link") 2>conftest.er1
8252 grep -v '^ *+' conftest.er1
>conftest.err
8254 cat conftest.err
>&5
8255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_c_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest
$ac_exeext && {
8260 test "$cross_compiling" = yes ||
8261 $as_test_x conftest
$ac_exeext
8263 ac_cv_var_tzname
=yes
8265 $as_echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8271 rm -rf conftest.dSYM
8272 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8273 conftest
$ac_exeext conftest.
$ac_ext
8275 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8276 $as_echo "$ac_cv_var_tzname" >&6; }
8277 if test $ac_cv_var_tzname = yes; then
8279 cat >>confdefs.h
<<\_ACEOF
8280 #define HAVE_TZNAME 1
8286 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8287 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8288 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8289 $as_echo_n "(cached) " >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8302 static struct tm ac_aggr;
8303 if (ac_aggr.tm_gmtoff)
8309 rm -f conftest.
$ac_objext
8310 if { (ac_try
="$ac_compile"
8312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8316 $as_echo "$ac_try_echo") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_member_struct_tm_tm_gmtoff=yes
8329 $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 cat >conftest.$ac_ext <<_ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8343 static struct tm ac_aggr;
8344 if (sizeof ac_aggr.tm_gmtoff)
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8354 *) ac_try_echo
=$ac_try;;
8356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1
>conftest.err
8362 cat conftest.err
>&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.
$ac_objext; then
8368 ac_cv_member_struct_tm_tm_gmtoff
=yes
8370 $as_echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.
$ac_ext >&5
8373 ac_cv_member_struct_tm_tm_gmtoff
=no
8376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8381 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8382 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8383 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8385 cat >>confdefs.h
<<\_ACEOF
8386 #define HAVE_TM_GMTOFF 1
8391 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8392 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8393 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8394 $as_echo_n "(cached) " >&6
8396 cat >conftest.
$ac_ext <<_ACEOF
8399 cat confdefs.h
>>conftest.
$ac_ext
8400 cat >>conftest.
$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8413 static struct ifreq ac_aggr;
8414 if (ac_aggr.ifr_flags)
8420 rm -f conftest.
$ac_objext
8421 if { (ac_try
="$ac_compile"
8423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8427 $as_echo "$ac_try_echo") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_flags=yes
8440 $as_echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8460 static struct ifreq ac_aggr;
8461 if (sizeof ac_aggr.ifr_flags)
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8471 *) ac_try_echo
=$ac_try;;
8473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8474 $as_echo "$ac_try_echo") >&5
8475 (eval "$ac_compile") 2>conftest.er1
8477 grep -v '^ *+' conftest.er1
>conftest.err
8479 cat conftest.err
>&5
8480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } && {
8482 test -z "$ac_c_werror_flag" ||
8483 test ! -s conftest.err
8484 } && test -s conftest.
$ac_objext; then
8485 ac_cv_member_struct_ifreq_ifr_flags
=yes
8487 $as_echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.
$ac_ext >&5
8490 ac_cv_member_struct_ifreq_ifr_flags
=no
8493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8498 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8499 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8500 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8502 cat >>confdefs.h
<<_ACEOF
8503 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8508 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8509 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8510 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8511 $as_echo_n "(cached) " >&6
8513 cat >conftest.
$ac_ext <<_ACEOF
8516 cat confdefs.h
>>conftest.
$ac_ext
8517 cat >>conftest.
$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #if HAVE_SYS_SOCKET_H
8521 #include <sys/socket.h>
8530 static struct ifreq ac_aggr;
8531 if (ac_aggr.ifr_hwaddr)
8537 rm -f conftest.
$ac_objext
8538 if { (ac_try
="$ac_compile"
8540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8544 $as_echo "$ac_try_echo") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.$ac_objext; then
8555 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8557 $as_echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 #if HAVE_SYS_SOCKET_H
8568 #include <sys/socket.h>
8577 static struct ifreq ac_aggr;
8578 if (sizeof ac_aggr.ifr_hwaddr)
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8588 *) ac_try_echo
=$ac_try;;
8590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8591 $as_echo "$ac_try_echo") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8594 grep -v '^ *+' conftest.er1
>conftest.err
8596 cat conftest.err
>&5
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.
$ac_objext; then
8602 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8604 $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.
$ac_ext >&5
8607 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8616 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8617 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8619 cat >>confdefs.h
<<_ACEOF
8620 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8625 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8626 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8627 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8628 $as_echo_n "(cached) " >&6
8630 cat >conftest.
$ac_ext <<_ACEOF
8633 cat confdefs.h
>>conftest.
$ac_ext
8634 cat >>conftest.
$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8647 static struct ifreq ac_aggr;
8648 if (ac_aggr.ifr_netmask)
8654 rm -f conftest.
$ac_objext
8655 if { (ac_try
="$ac_compile"
8657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_netmask=yes
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8694 static struct ifreq ac_aggr;
8695 if (sizeof ac_aggr.ifr_netmask)
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8705 *) ac_try_echo
=$ac_try;;
8707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1
>conftest.err
8713 cat conftest.err
>&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.
$ac_objext; then
8719 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.
$ac_ext >&5
8724 ac_cv_member_struct_ifreq_ifr_netmask
=no
8727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8732 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8733 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8734 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8736 cat >>confdefs.h
<<_ACEOF
8737 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8742 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8743 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8744 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8745 $as_echo_n "(cached) " >&6
8747 cat >conftest.
$ac_ext <<_ACEOF
8750 cat confdefs.h
>>conftest.
$ac_ext
8751 cat >>conftest.
$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #if HAVE_SYS_SOCKET_H
8755 #include <sys/socket.h>
8764 static struct ifreq ac_aggr;
8765 if (ac_aggr.ifr_broadaddr)
8771 rm -f conftest.
$ac_objext
8772 if { (ac_try
="$ac_compile"
8774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8811 static struct ifreq ac_aggr;
8812 if (sizeof ac_aggr.ifr_broadaddr)
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8822 *) ac_try_echo
=$ac_try;;
8824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1
>conftest.err
8830 cat conftest.err
>&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.
$ac_objext; then
8836 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8838 $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8849 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8850 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8851 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8853 cat >>confdefs.h
<<_ACEOF
8854 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8859 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8860 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8861 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8864 cat >conftest.
$ac_ext <<_ACEOF
8867 cat confdefs.h
>>conftest.
$ac_ext
8868 cat >>conftest.
$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8871 #if HAVE_SYS_SOCKET_H
8872 #include <sys/socket.h>
8881 static struct ifreq ac_aggr;
8882 if (ac_aggr.ifr_addr)
8888 rm -f conftest.
$ac_objext
8889 if { (ac_try
="$ac_compile"
8891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8895 $as_echo "$ac_try_echo") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_member_struct_ifreq_ifr_addr=yes
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 #if HAVE_SYS_SOCKET_H
8919 #include <sys/socket.h>
8928 static struct ifreq ac_aggr;
8929 if (sizeof ac_aggr.ifr_addr)
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8939 *) ac_try_echo
=$ac_try;;
8941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8942 $as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1
>conftest.err
8947 cat conftest.err
>&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.
$ac_objext; then
8953 ac_cv_member_struct_ifreq_ifr_addr
=yes
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_member_struct_ifreq_ifr_addr
=no
8961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8967 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8968 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8970 cat >>confdefs.h
<<_ACEOF
8971 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8979 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8980 $as_echo_n "checking for function prototypes... " >&6; }
8981 if test "$ac_cv_prog_cc_c89" != no
; then
8982 { $as_echo "$as_me:$LINENO: result: yes" >&5
8983 $as_echo "yes" >&6; }
8985 cat >>confdefs.h
<<\_ACEOF
8986 #define PROTOTYPES 1
8990 cat >>confdefs.h
<<\_ACEOF
8991 #define __PROTOTYPES 1
8995 { $as_echo "$as_me:$LINENO: result: no" >&5
8996 $as_echo "no" >&6; }
8999 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9000 $as_echo_n "checking for working volatile... " >&6; }
9001 if test "${ac_cv_c_volatile+set}" = set; then
9002 $as_echo_n "(cached) " >&6
9004 cat >conftest.
$ac_ext <<_ACEOF
9007 cat confdefs.h
>>conftest.
$ac_ext
9008 cat >>conftest.
$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9016 int * volatile y = (int *) 0;
9022 rm -f conftest.
$ac_objext
9023 if { (ac_try
="$ac_compile"
9025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9029 $as_echo "$ac_try_echo") >&5
9030 (eval "$ac_compile") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest.$ac_objext; then
9040 ac_cv_c_volatile=yes
9042 $as_echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9051 $as_echo "$ac_cv_c_volatile" >&6; }
9052 if test $ac_cv_c_volatile = no; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define volatile /**/
9060 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9061 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9062 if test "${ac_cv_c_const+set}" = set; then
9063 $as_echo_n "(cached) " >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9075 /* FIXME: Include the comments suggested by Paul. */
9077 /* Ultrix mips cc rejects this. */
9078 typedef int charset[2];
9080 /* SunOS 4.1.1 cc rejects this. */
9081 char const *const *pcpcc;
9083 /* NEC SVR4.0.2 mips cc rejects this. */
9084 struct point {int x, y;};
9085 static struct point const zero = {0,0};
9086 /* AIX XL C 1.02.0.0 rejects this.
9087 It does not let you subtract one const X* pointer from another in
9088 an arm of an if-expression whose if-part is not a constant
9090 const char *g = "string";
9091 pcpcc = &g + (g ? g-g : 0);
9092 /* HPUX 7.0 cc rejects these. */
9094 ppc = (char**) pcpcc;
9095 pcpcc = (char const *const *) ppc;
9096 { /* SCO 3.2v4 cc rejects this. */
9098 char const *s = 0 ? (char *) 0 : (char const *) 0;
9103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9105 const int *foo = &x[0];
9108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9109 typedef const int *iptr;
9113 { /* AIX XL C 1.02.0.0 rejects this saying
9114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9115 struct s { int j; const int *ap[3]; };
9116 struct s *b; b->j = 5;
9118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9122 return !cs[0] && !zero.x;
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9133 *) ac_try_echo
=$ac_try;;
9135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9139 grep -v '^ *+' conftest.er1
>conftest.err
9141 cat conftest.err
>&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.
$ac_objext; then
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.
$ac_ext >&5
9155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9157 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9158 $as_echo "$ac_cv_c_const" >&6; }
9159 if test $ac_cv_c_const = no
; then
9161 cat >>confdefs.h
<<\_ACEOF
9167 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9168 $as_echo_n "checking for void * support... " >&6; }
9169 if test "${emacs_cv_void_star+set}" = set; then
9170 $as_echo_n "(cached) " >&6
9172 cat >conftest.
$ac_ext <<_ACEOF
9175 cat confdefs.h
>>conftest.
$ac_ext
9176 cat >>conftest.
$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9187 rm -f conftest.
$ac_objext
9188 if { (ac_try
="$ac_compile"
9190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9194 $as_echo "$ac_try_echo") >&5
9195 (eval "$ac_compile") 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest.$ac_objext; then
9205 emacs_cv_void_star=yes
9207 $as_echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9210 emacs_cv_void_star=no
9213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9216 $as_echo "$emacs_cv_void_star" >&6; }
9217 if test $emacs_cv_void_star = yes; then
9218 cat >>confdefs.h <<\_ACEOF
9219 #define POINTER_TYPE void
9223 cat >>confdefs.h <<\_ACEOF
9224 #define POINTER_TYPE char
9233 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9234 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9236 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9237 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9238 $as_echo_n "(cached) " >&6
9240 cat >conftest.make <<\_ACEOF
9243 @echo '@@@%%%=$(MAKE)=@@@%%%'
9245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9246 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9248 eval ac_cv_prog_make_${ac_make}_set=yes;;
9250 eval ac_cv_prog_make_${ac_make}_set=no;;
9254 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9255 { $as_echo "$as_me:$LINENO: result: yes" >&5
9256 $as_echo "yes" >&6; }
9259 { $as_echo "$as_me:$LINENO: result: no" >&5
9260 $as_echo "no" >&6; }
9261 SET_MAKE="MAKE=${MAKE-make}"
9265 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9266 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9267 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9269 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9270 if test "x$testval" != x; then
9273 ac_enable_autodepend=no
9275 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9276 $as_echo "$HAVE_GNU_MAKE" >&6; }
9277 if test $HAVE_GNU_MAKE = yes; then
9278 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9279 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9280 SAVE_CFLAGS="$CFLAGS"
9281 CFLAGS="$CFLAGS -MMD -MF deps.d"
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9301 *) ac_try_echo
=$ac_try;;
9303 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9304 $as_echo "$ac_try_echo") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9307 grep -v '^ *+' conftest.er1
>conftest.err
9309 cat conftest.err
>&5
9310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.
$ac_objext; then
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.
$ac_ext >&5
9320 ac_enable_autodepend
=no
9323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9324 CFLAGS
="$SAVE_CFLAGS"
9325 test -f deps.d || ac_enable_autodepend
=no
9327 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9328 $as_echo "$ac_enable_autodepend" >&6; }
9330 if test $ac_enable_autodepend = yes; then
9332 cat >>confdefs.h
<<\_ACEOF
9333 #define AUTO_DEPEND 1
9339 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9340 $as_echo_n "checking for long file names... " >&6; }
9341 if test "${ac_cv_sys_long_file_names+set}" = set; then
9342 $as_echo_n "(cached) " >&6
9344 ac_cv_sys_long_file_names
=yes
9345 # Test for long file names in all the places we know might matter:
9346 # . the current directory, where building will happen
9347 # $prefix/lib where we will be installing things
9348 # $exec_prefix/lib likewise
9349 # $TMPDIR if set, where it might want to write temporary files
9350 # /tmp where it might want to write temporary files
9353 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9354 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9355 # in the usual case where exec_prefix is '${prefix}'.
9357 . |
/* | ?
:[\\/]*) ;; #(
9360 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9361 ac_xdir
=$ac_dir/cf$$
9362 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9363 ac_tf1
=$ac_xdir/conftest9012345
9364 ac_tf2
=$ac_xdir/conftest9012346
9365 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9366 ac_cv_sys_long_file_names
=no
9367 rm -f -r "$ac_xdir" 2>/dev
/null
9368 test $ac_cv_sys_long_file_names = no
&& break
9371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9372 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9373 if test $ac_cv_sys_long_file_names = yes; then
9375 cat >>confdefs.h
<<\_ACEOF
9376 #define HAVE_LONG_FILE_NAMES 1
9382 #### Choose a window system.
9384 { $as_echo "$as_me:$LINENO: checking for X" >&5
9385 $as_echo_n "checking for X... " >&6; }
9388 # Check whether --with-x was given.
9389 if test "${with_x+set}" = set; then
9393 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9394 if test "x$with_x" = xno
; then
9395 # The user explicitly disabled X.
9398 case $x_includes,$x_libraries in #(
9399 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9400 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9401 { (exit 1); exit 1; }; };; #(
9402 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9403 $as_echo_n "(cached) " >&6
9405 # One or both of the vars are not set, and there is no cached value.
9406 ac_x_includes
=no ac_x_libraries
=no
9407 rm -f -r conftest.dir
9408 if mkdir conftest.dir
; then
9410 cat >Imakefile
<<'_ACEOF'
9412 @echo incroot='${INCROOT}'
9414 @echo usrlibdir='${USRLIBDIR}'
9416 @echo libdir='${LIBDIR}'
9418 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9420 for ac_var
in incroot usrlibdir libdir
; do
9421 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9423 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9424 for ac_extension
in a so sl dylib la dll
; do
9425 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9426 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9427 ac_im_usrlibdir
=$ac_im_libdir; break
9430 # Screen out bogus values from the imake configuration. They are
9431 # bogus both because they are the default anyway, and because
9432 # using them would break gcc on systems where it needs fixed includes.
9433 case $ac_im_incroot in
9434 /usr
/include
) ac_x_includes
= ;;
9435 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9437 case $ac_im_usrlibdir in
9439 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9443 rm -f -r conftest.dir
9446 # Standard set of common directories for X headers.
9447 # Check X11 before X11Rn because it is often a symlink to the current release.
9459 /usr/local/X11/include
9460 /usr/local/X11R6/include
9461 /usr/local/X11R5/include
9462 /usr/local/X11R4/include
9464 /usr/local/include/X11
9465 /usr/local/include/X11R6
9466 /usr/local/include/X11R5
9467 /usr/local/include/X11R4
9471 /usr/XFree86/include/X11
9475 /usr/unsupported/include
9477 /usr/local/x11r5/include
9478 /usr/lpp/Xamples/include
9480 /usr/openwin/include
9481 /usr/openwin/share/include'
9483 if test "$ac_x_includes" = no
; then
9484 # Guess where to find include files, by looking for Xlib.h.
9485 # First, try using that file with no special directory specified.
9486 cat >conftest.
$ac_ext <<_ACEOF
9489 cat confdefs.h
>>conftest.
$ac_ext
9490 cat >>conftest.
$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <X11/Xlib.h>
9494 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9497 *) ac_try_echo=$ac_try;;
9499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9500 $as_echo "$ac_try_echo") >&5
9501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } >/dev/null && {
9508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9509 test ! -s conftest.err
9511 # We can compile using X headers with no special include directory.
9514 $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 for ac_dir in $ac_x_header_dirs; do
9518 if test -r "$ac_dir/X11/Xlib.h"; then
9519 ac_x_includes=$ac_dir
9525 rm -f conftest.err conftest.$ac_ext
9526 fi # $ac_x_includes = no
9528 if test "$ac_x_libraries" = no; then
9529 # Check for the libraries.
9530 # See if we find them without any special options.
9531 # Don't add to $LIBS permanently.
9534 cat >conftest.$ac_ext <<_ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 #include <X11/Xlib.h>
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9553 *) ac_try_echo
=$ac_try;;
9555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9556 $as_echo "$ac_try_echo") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1
>conftest.err
9561 cat conftest.err
>&5
9562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest
$ac_exeext && {
9567 test "$cross_compiling" = yes ||
9568 $as_test_x conftest
$ac_exeext
9571 # We can link X programs with no special library path.
9574 $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.
$ac_ext >&5
9578 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9580 # Don't even attempt the hair of trying to link an X program!
9581 for ac_extension
in a so sl dylib la dll
; do
9582 if test -r "$ac_dir/libX11.$ac_extension"; then
9583 ac_x_libraries
=$ac_dir
9590 rm -rf conftest.dSYM
9591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9592 conftest
$ac_exeext conftest.
$ac_ext
9593 fi # $ac_x_libraries = no
9595 case $ac_x_includes,$ac_x_libraries in #(
9597 # Didn't find X, or a directory has "'" in its name.
9598 ac_cv_have_x
="have_x=no";; #(
9600 # Record where we found X for the cache.
9601 ac_cv_have_x
="have_x=yes\
9602 ac_x_includes='$ac_x_includes'\
9603 ac_x_libraries='$ac_x_libraries'"
9609 eval "$ac_cv_have_x"
9612 if test "$have_x" != yes; then
9613 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9614 $as_echo "$have_x" >&6; }
9617 # If each of the values was on the command line, it overrides each guess.
9618 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9619 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9620 # Update the cache value to reflect the command line values.
9621 ac_cv_have_x
="have_x=yes\
9622 ac_x_includes='$x_includes'\
9623 ac_x_libraries='$x_libraries'"
9624 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9625 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9628 if test "$no_x" = yes; then
9634 ## Workaround for bug in autoconf <= 2.62.
9635 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9636 ## No need to do anything special for these standard directories.
9637 ## This is an experiment, take it out if it causes problems.
9638 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9640 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9644 if test "${x_libraries}" != NONE
; then
9645 if test -n "${x_libraries}"; then
9646 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9647 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9649 x_default_search_path
=""
9650 x_search_path
=${x_libraries}
9651 if test -z "${x_search_path}"; then
9652 x_search_path
=/usr
/lib
9654 for x_library
in `echo ${x_search_path}: | \
9655 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9657 ${x_library}/X11/%L/%T/%N%C%S:\
9658 ${x_library}/X11/%l/%T/%N%C%S:\
9659 ${x_library}/X11/%T/%N%C%S:\
9660 ${x_library}/X11/%L/%T/%N%S:\
9661 ${x_library}/X11/%l/%T/%N%S:\
9662 ${x_library}/X11/%T/%N%S"
9663 if test x
"${x_default_search_path}" = x
; then
9664 x_default_search_path
=${x_search_path}
9666 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9670 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9671 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9674 if test x
"${x_includes}" = x
; then
9675 bitmapdir
=/usr
/include
/X11
/bitmaps
9677 # accumulate include directories that have X11 bitmap subdirectories
9679 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9680 if test -d "${bmd}/X11/bitmaps"; then
9681 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9683 if test -d "${bmd}/bitmaps"; then
9684 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9687 if test ${bmd_acc} != "dummyval"; then
9688 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9695 tmp_CPPFLAGS
="$CPPFLAGS"
9696 tmp_CFLAGS
="$CFLAGS"
9697 CPPFLAGS
="$CPPFLAGS -x objective-c"
9698 CFLAGS
="$CFLAGS -x objective-c"
9699 if test "${with_ns}" != no
; then
9700 if test "${opsys}" = darwin
; then
9702 ns_appdir
=`pwd`/nextstep
/Emacs.app
9703 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9704 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9705 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9706 elif test -f $GNUSTEP_CONFIG_FILE; then
9708 ns_appdir
=`pwd`/nextstep
/Emacs.app
9709 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9710 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9711 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9712 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9713 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9714 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9715 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9716 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9717 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9718 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9720 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9721 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9722 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9723 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9724 $as_echo_n "(cached) " >&6
9726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9727 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9729 # Is the header compilable?
9730 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9731 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9732 cat >conftest.
$ac_ext <<_ACEOF
9735 cat confdefs.h
>>conftest.
$ac_ext
9736 cat >>conftest.
$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 $ac_includes_default
9739 #include <AppKit/AppKit.h>
9741 rm -f conftest.
$ac_objext
9742 if { (ac_try
="$ac_compile"
9744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9748 $as_echo "$ac_try_echo") >&5
9749 (eval "$ac_compile") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest.$ac_objext; then
9759 ac_header_compiler=yes
9761 $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9764 ac_header_compiler=no
9767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9768 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9769 $as_echo "$ac_header_compiler" >&6; }
9771 # Is the header present?
9772 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9773 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780 #include <AppKit/AppKit.h>
9782 if { (ac_try="$ac_cpp conftest.$ac_ext"
9784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9785 *) ac_try_echo
=$ac_try;;
9787 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } >/dev
/null
&& {
9796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9799 ac_header_preproc
=yes
9801 $as_echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.
$ac_ext >&5
9804 ac_header_preproc
=no
9807 rm -f conftest.err conftest.
$ac_ext
9808 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9809 $as_echo "$ac_header_preproc" >&6; }
9811 # So? What about this header?
9812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9814 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9815 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9816 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9817 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9818 ac_header_preproc
=yes
9821 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9822 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9823 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9824 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9825 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9826 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9828 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9830 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9832 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9836 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9837 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9838 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9839 $as_echo_n "(cached) " >&6
9841 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9844 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9847 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9850 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9851 files are missing or cannot be compiled." >&5
9852 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9853 files are missing or cannot be compiled." >&2;}
9854 { (exit 1); exit 1; }; }
9858 NS_HAVE_NSINTEGER
=yes
9859 cat >conftest.
$ac_ext <<_ACEOF
9862 cat confdefs.h
>>conftest.
$ac_ext
9863 cat >>conftest.
$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 #include <Foundation/NSObjCRuntime.h>
9874 rm -f conftest.
$ac_objext
9875 if { (ac_try
="$ac_compile"
9877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ns_have_nsinteger=yes
9894 $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ns_have_nsinteger=no
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 if test $ns_have_nsinteger = no; then
9902 NS_HAVE_NSINTEGER=no
9905 if test "${HAVE_NS}" = yes; then
9906 window_system=nextstep
9908 # set up packaging dirs
9909 exec_prefix=${ns_appbindir}
9910 libexecdir=${ns_appbindir}/libexec
9911 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9912 prefix=${ns_appresdir}
9915 CFLAGS="$tmp_CFLAGS"
9916 CPPFLAGS="$tmp_CPPFLAGS"
9918 case "${window_system}" in
9922 case "${with_x_toolkit}" in
9923 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9924 motif ) USE_X_TOOLKIT=MOTIF ;;
9926 USE_X_TOOLKIT=none ;;
9927 no ) USE_X_TOOLKIT=none ;;
9928 * ) USE_X_TOOLKIT=maybe ;;
9938 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9939 # Extract the first word of "X", so it can be a program name with args.
9940 set dummy X; ac_word=$2
9941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9942 $as_echo_n "checking for $ac_word... " >&6; }
9943 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 if test -n "$HAVE_XSERVER"; then
9947 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 test -z "$as_dir" && as_dir=.
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9956 ac_cv_prog_HAVE_XSERVER="true"
9957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9967 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9968 if test -n "$HAVE_XSERVER"; then
9969 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9970 $as_echo "$HAVE_XSERVER" >&6; }
9972 { $as_echo "$as_me:$LINENO: result: no" >&5
9973 $as_echo "no" >&6; }
9977 if test "$HAVE_XSERVER" = true ||
9978 test -n "$DISPLAY" ||
9979 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9980 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9981 were found. You should install the relevant development files for X
9982 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9983 sure you have development files for image handling, i.e.
9984 tiff, gif, jpeg, png and xpm.
9985 If you are sure you want Emacs compiled without X window support, pass
9988 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9989 were found. You should install the relevant development files for X
9990 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9991 sure you have development files for image handling, i.e.
9992 tiff, gif, jpeg, png and xpm.
9993 If you are sure you want Emacs compiled without X window support, pass
9995 to configure." >&2;}
9996 { (exit 1); exit 1; }; }
10000 ### If we're using X11, we should use the X menu package.
10002 case ${HAVE_X11} in
10003 yes ) HAVE_MENUS=yes ;;
10006 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10007 # Assume not, until told otherwise.
10009 doug_lea_malloc=yes
10010 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10011 $as_echo_n "checking for malloc_get_state... " >&6; }
10012 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10013 $as_echo_n "(cached) " >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10023 #define malloc_get_state innocuous_malloc_get_state
10025 /* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char malloc_get_state (); below.
10027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 <limits.h> exists even on freestanding compilers. */
10031 # include <limits.h>
10033 # include <assert.h>
10036 #undef malloc_get_state
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10044 char malloc_get_state ();
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10055 return malloc_get_state ();
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10064 *) ac_try_echo
=$ac_try;;
10066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10067 $as_echo "$ac_try_echo") >&5
10068 (eval "$ac_link") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1
>conftest.err
10072 cat conftest.err
>&5
10073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest
$ac_exeext && {
10078 test "$cross_compiling" = yes ||
10079 $as_test_x conftest
$ac_exeext
10081 ac_cv_func_malloc_get_state
=yes
10083 $as_echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.
$ac_ext >&5
10086 ac_cv_func_malloc_get_state
=no
10089 rm -rf conftest.dSYM
10090 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10091 conftest
$ac_exeext conftest.
$ac_ext
10093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10094 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10095 if test $ac_cv_func_malloc_get_state = yes; then
10101 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10102 $as_echo_n "checking for malloc_set_state... " >&6; }
10103 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10106 cat >conftest.
$ac_ext <<_ACEOF
10109 cat confdefs.h
>>conftest.
$ac_ext
10110 cat >>conftest.
$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114 #define malloc_set_state innocuous_malloc_set_state
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char malloc_set_state (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10122 # include <limits.h>
10124 # include <assert.h>
10127 #undef malloc_set_state
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10135 char malloc_set_state ();
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10146 return malloc_set_state ();
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext
10152 if { (ac_try
="$ac_link"
10153 case "(($ac_try" in
10154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159 (eval "$ac_link") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest$ac_exeext && {
10169 test "$cross_compiling" = yes ||
10170 $as_test_x conftest$ac_exeext
10172 ac_cv_func_malloc_set_state=yes
10174 $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_func_malloc_set_state=no
10180 rm -rf conftest.dSYM
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182 conftest$ac_exeext conftest.$ac_ext
10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10185 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10186 if test $ac_cv_func_malloc_set_state = yes; then
10192 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10193 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10194 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10195 $as_echo_n "(cached) " >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 extern void (* __after_morecore_hook)();
10207 __after_morecore_hook = 0
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10216 *) ac_try_echo
=$ac_try;;
10218 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10219 $as_echo "$ac_try_echo") >&5
10220 (eval "$ac_link") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1
>conftest.err
10224 cat conftest.err
>&5
10225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest
$ac_exeext && {
10230 test "$cross_compiling" = yes ||
10231 $as_test_x conftest
$ac_exeext
10233 emacs_cv_var___after_morecore_hook
=yes
10235 $as_echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.
$ac_ext >&5
10238 emacs_cv_var___after_morecore_hook
=no
10241 rm -rf conftest.dSYM
10242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10243 conftest
$ac_exeext conftest.
$ac_ext
10245 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10246 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10247 if test $emacs_cv_var___after_morecore_hook = no
; then
10250 if test "${system_malloc}" = "yes"; then
10252 GNU_MALLOC_reason
="
10253 (The GNU allocators don't work with this system configuration.)"
10255 if test "$doug_lea_malloc" = "yes" ; then
10256 if test "$GNU_MALLOC" = yes ; then
10257 GNU_MALLOC_reason
="
10258 (Using Doug Lea's new malloc from the GNU C Library.)"
10261 cat >>confdefs.h
<<\_ACEOF
10262 #define DOUG_LEA_MALLOC 1
10267 if test x
"${REL_ALLOC}" = x
; then
10268 REL_ALLOC
=${GNU_MALLOC}
10274 for ac_header
in stdlib.h unistd.h
10276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10277 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10279 $as_echo_n "checking for $ac_header... " >&6; }
10280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 $as_echo_n "(cached) " >&6
10283 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10284 $as_echo "$as_val"'`
10285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10286 $as_echo "$ac_res" >&6; }
10288 # Is the header compilable?
10289 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290 $as_echo_n "checking $ac_header usability... " >&6; }
10291 cat >conftest.
$ac_ext <<_ACEOF
10294 cat confdefs.h
>>conftest.
$ac_ext
10295 cat >>conftest.
$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 #include <$ac_header>
10300 rm -f conftest.
$ac_objext
10301 if { (ac_try
="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307 $as_echo "$ac_try_echo") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 ac_header_compiler=yes
10320 $as_echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_header_compiler=no
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10327 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10328 $as_echo "$ac_header_compiler" >&6; }
10330 # Is the header present?
10331 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10332 $as_echo_n "checking $ac_header presence... " >&6; }
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10339 #include <$ac_header>
10341 if { (ac_try="$ac_cpp conftest.$ac_ext"
10342 case "(($ac_try" in
10343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10344 *) ac_try_echo
=$ac_try;;
10346 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10347 $as_echo "$ac_try_echo") >&5
10348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1
>conftest.err
10352 cat conftest.err
>&5
10353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev
/null
&& {
10355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10358 ac_header_preproc
=yes
10360 $as_echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.
$ac_ext >&5
10363 ac_header_preproc
=no
10366 rm -f conftest.err conftest.
$ac_ext
10367 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10368 $as_echo "$ac_header_preproc" >&6; }
10370 # So? What about this header?
10371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10377 ac_header_preproc
=yes
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10391 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10395 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10396 $as_echo_n "checking for $ac_header... " >&6; }
10397 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10398 $as_echo_n "(cached) " >&6
10400 eval "$as_ac_Header=\$ac_header_preproc"
10402 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10403 $as_echo "$as_val"'`
10404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10405 $as_echo "$ac_res" >&6; }
10408 if test `eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'` = yes; then
10410 cat >>confdefs.h
<<_ACEOF
10411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10419 for ac_func
in getpagesize
10421 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10423 $as_echo_n "checking for $ac_func... " >&6; }
10424 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10425 $as_echo_n "(cached) " >&6
10427 cat >conftest.
$ac_ext <<_ACEOF
10430 cat confdefs.h
>>conftest.
$ac_ext
10431 cat >>conftest.
$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10435 #define $ac_func innocuous_$ac_func
10437 /* System header to define __stub macros and hopefully few prototypes,
10438 which can conflict with char $ac_func (); below.
10439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10440 <limits.h> exists even on freestanding compilers. */
10443 # include <limits.h>
10445 # include <assert.h>
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined __stub_$ac_func || defined __stub___$ac_func
10467 return $ac_func ();
10472 rm -f conftest.
$ac_objext conftest
$ac_exeext
10473 if { (ac_try
="$ac_link"
10474 case "(($ac_try" in
10475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext && {
10490 test "$cross_compiling" = yes ||
10491 $as_test_x conftest$ac_exeext
10493 eval "$as_ac_var=yes"
10495 $as_echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 eval "$as_ac_var=no"
10501 rm -rf conftest.dSYM
10502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10503 conftest$ac_exeext conftest.$ac_ext
10505 ac_res=`eval 'as_val=${'$as_ac_var'}
10506 $as_echo "$as_val"'`
10507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10508 $as_echo "$ac_res" >&6; }
10509 if test `eval 'as_val=${'$as_ac_var'}
10510 $as_echo "$as_val"'` = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10518 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10519 $as_echo_n "checking for working mmap... " >&6; }
10520 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10521 $as_echo_n "(cached) " >&6
10523 if test "$cross_compiling" = yes; then
10524 ac_cv_func_mmap_fixed_mapped=no
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532 $ac_includes_default
10533 /* malloc might have been renamed as rpl_malloc. */
10536 /* Thanks to Mike Haertel and Jim Avera for this test.
10537 Here is a matrix of mmap possibilities:
10538 mmap private not fixed
10539 mmap private fixed at somewhere currently unmapped
10540 mmap private fixed at somewhere already mapped
10541 mmap shared not fixed
10542 mmap shared fixed at somewhere currently unmapped
10543 mmap shared fixed at somewhere already mapped
10544 For private mappings, we should verify that changes cannot be read()
10545 back from the file, nor mmap's back from the file at a different
10546 address. (There have been systems where private was not correctly
10547 implemented like the infamous i386 svr4.0, and systems where the
10548 VM page cache was not coherent with the file system buffer cache
10549 like early versions of FreeBSD and possibly contemporary NetBSD.)
10550 For shared mappings, we should conversely verify that changes get
10551 propagated back to all the places they're supposed to be.
10553 Grep wants private fixed already mapped.
10554 The main things grep needs to know about mmap are:
10555 * does it exist and is it safe to write into the mmap'd area
10556 * how to use it (BSD variants) */
10559 #include <sys/mman.h>
10561 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10565 /* This mess was copied from the GNU getpagesize.h. */
10566 #ifndef HAVE_GETPAGESIZE
10567 /* Assume that all systems that can run configure have sys/param.h. */
10568 # ifndef HAVE_SYS_PARAM_H
10569 # define HAVE_SYS_PARAM_H 1
10572 # ifdef _SC_PAGESIZE
10573 # define getpagesize() sysconf(_SC_PAGESIZE)
10574 # else /* no _SC_PAGESIZE */
10575 # ifdef HAVE_SYS_PARAM_H
10576 # include <sys/param.h>
10577 # ifdef EXEC_PAGESIZE
10578 # define getpagesize() EXEC_PAGESIZE
10579 # else /* no EXEC_PAGESIZE */
10581 # define getpagesize() NBPG * CLSIZE
10584 # endif /* no CLSIZE */
10585 # else /* no NBPG */
10587 # define getpagesize() NBPC
10588 # else /* no NBPC */
10590 # define getpagesize() PAGESIZE
10591 # endif /* PAGESIZE */
10592 # endif /* no NBPC */
10593 # endif /* no NBPG */
10594 # endif /* no EXEC_PAGESIZE */
10595 # else /* no HAVE_SYS_PARAM_H */
10596 # define getpagesize() 8192 /* punt totally */
10597 # endif /* no HAVE_SYS_PARAM_H */
10598 # endif /* no _SC_PAGESIZE */
10600 #endif /* no HAVE_GETPAGESIZE */
10605 char *data, *data2, *data3;
10609 pagesize = getpagesize ();
10611 /* First, make a file with some known garbage in it. */
10612 data = (char *) malloc (pagesize);
10615 for (i = 0; i < pagesize; ++i)
10616 *(data + i) = rand ();
10618 fd = creat ("conftest.mmap", 0600);
10621 if (write (fd, data, pagesize) != pagesize)
10625 /* Next, try to mmap the file at a fixed address which already has
10626 something else allocated at it. If we can, also make sure that
10627 we see the same garbage. */
10628 fd = open ("conftest.mmap", O_RDWR);
10631 data2 = (char *) malloc (2 * pagesize);
10634 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10635 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10636 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10638 for (i = 0; i < pagesize; ++i)
10639 if (*(data + i) != *(data2 + i))
10642 /* Finally, make sure that changes to the mapped area do not
10643 percolate back to the file as seen by read(). (This is a bug on
10644 some variants of i386 svr4.0.) */
10645 for (i = 0; i < pagesize; ++i)
10646 *(data2 + i) = *(data2 + i) + 1;
10647 data3 = (char *) malloc (pagesize);
10650 if (read (fd, data3, pagesize) != pagesize)
10652 for (i = 0; i < pagesize; ++i)
10653 if (*(data + i) != *(data3 + i))
10659 rm -f conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10663 *) ac_try_echo
=$ac_try;;
10665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10666 $as_echo "$ac_try_echo") >&5
10667 (eval "$ac_link") 2>&5
10669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10671 { (case "(($ac_try" in
10672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10676 $as_echo "$ac_try_echo") >&5
10677 (eval "$ac_try") 2>&5
10679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); }; }; then
10681 ac_cv_func_mmap_fixed_mapped=yes
10683 $as_echo "$as_me: program exited with status $ac_status" >&5
10684 $as_echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ( exit $ac_status )
10688 ac_cv_func_mmap_fixed_mapped=no
10690 rm -rf conftest.dSYM
10691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10696 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10697 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10698 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_MMAP 1
10705 rm -f conftest.mmap
10707 if test $use_mmap_for_buffers = yes; then
10711 LIBS="$libsrc_libs $LIBS"
10714 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10715 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10716 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldnet $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10738 return dnet_ntoa ();
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10747 *) ac_try_echo
=$ac_try;;
10749 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_link") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1
>conftest.err
10755 cat conftest.err
>&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest
$ac_exeext && {
10761 test "$cross_compiling" = yes ||
10762 $as_test_x conftest
$ac_exeext
10764 ac_cv_lib_dnet_dnet_ntoa
=yes
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.
$ac_ext >&5
10769 ac_cv_lib_dnet_dnet_ntoa
=no
10772 rm -rf conftest.dSYM
10773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10774 conftest
$ac_exeext conftest.
$ac_ext
10775 LIBS
=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10778 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10779 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10780 cat >>confdefs.h
<<_ACEOF
10781 #define HAVE_LIBDNET 1
10784 LIBS
="-ldnet $LIBS"
10789 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10790 $as_echo_n "checking for main in -lXbsd... " >&6; }
10791 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10794 ac_check_lib_save_LIBS
=$LIBS
10795 LIBS
="-lXbsd $LIBS"
10796 cat >conftest.
$ac_ext <<_ACEOF
10799 cat confdefs.h
>>conftest.
$ac_ext
10800 cat >>conftest.
$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10812 rm -f conftest.
$ac_objext conftest
$ac_exeext
10813 if { (ac_try
="$ac_link"
10814 case "(($ac_try" in
10815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10819 $as_echo "$ac_try_echo") >&5
10820 (eval "$ac_link") 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && {
10827 test -z "$ac_c_werror_flag" ||
10828 test ! -s conftest.err
10829 } && test -s conftest$ac_exeext && {
10830 test "$cross_compiling" = yes ||
10831 $as_test_x conftest$ac_exeext
10833 ac_cv_lib_Xbsd_main=yes
10835 $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_Xbsd_main=no
10841 rm -rf conftest.dSYM
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10847 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10848 if test $ac_cv_lib_Xbsd_main = yes; then
10849 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10854 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10855 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10856 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10857 $as_echo_n "(cached) " >&6
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-lpthreads $LIBS"
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10878 return cma_open ();
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (ac_try="$ac_link"
10885 case "(($ac_try" in
10886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10887 *) ac_try_echo
=$ac_try;;
10889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10890 $as_echo "$ac_try_echo") >&5
10891 (eval "$ac_link") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1
>conftest.err
10895 cat conftest.err
>&5
10896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest
$ac_exeext && {
10901 test "$cross_compiling" = yes ||
10902 $as_test_x conftest
$ac_exeext
10904 ac_cv_lib_pthreads_cma_open
=yes
10906 $as_echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 ac_cv_lib_pthreads_cma_open
=no
10912 rm -rf conftest.dSYM
10913 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10914 conftest
$ac_exeext conftest.
$ac_ext
10915 LIBS
=$ac_check_lib_save_LIBS
10917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10918 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10919 if test $ac_cv_lib_pthreads_cma_open = yes; then
10920 cat >>confdefs.h
<<_ACEOF
10921 #define HAVE_LIBPTHREADS 1
10924 LIBS
="-lpthreads $LIBS"
10932 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10933 $as_echo_n "checking for -bbigtoc option... " >&6; }
10934 if test "${gdb_cv_bigtoc+set}" = set; then
10935 $as_echo_n "(cached) " >&6
10939 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10940 *) gdb_cv_bigtoc
=-bbigtoc ;;
10943 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10944 cat >conftest.
$ac_ext <<_ACEOF
10947 cat confdefs.h
>>conftest.
$ac_ext
10948 cat >>conftest.
$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10959 rm -f conftest.
$ac_objext conftest
$ac_exeext
10960 if { (ac_try
="$ac_link"
10961 case "(($ac_try" in
10962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966 $as_echo "$ac_try_echo") >&5
10967 (eval "$ac_link") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest$ac_exeext && {
10977 test "$cross_compiling" = yes ||
10978 $as_test_x conftest$ac_exeext
10982 $as_echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10988 rm -rf conftest.dSYM
10989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10990 conftest$ac_exeext conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10994 $as_echo "$gdb_cv_bigtoc" >&6; }
10998 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10999 # used for the tests that follow. We set them back to REAL_CFLAGS and
11000 # REAL_CPPFLAGS later on.
11002 REAL_CPPFLAGS="$CPPFLAGS"
11004 if test "${HAVE_X11}" = "yes"; then
11005 DEFS="$C_SWITCH_X_SITE $DEFS"
11006 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11008 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11009 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11011 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11012 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11013 # but it's more convenient here to set LD_RUN_PATH
11014 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11015 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11016 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11020 if test "${opsys}" = "gnu-linux"; then
11021 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11022 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11033 XOpenDisplay ("foo");
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11042 *) ac_try_echo
=$ac_try;;
11044 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11045 $as_echo "$ac_try_echo") >&5
11046 (eval "$ac_link") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1
>conftest.err
11050 cat conftest.err
>&5
11051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest
$ac_exeext && {
11056 test "$cross_compiling" = yes ||
11057 $as_test_x conftest
$ac_exeext
11059 xlinux_first_failure
=no
11061 $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.
$ac_ext >&5
11064 xlinux_first_failure
=yes
11067 rm -rf conftest.dSYM
11068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11069 conftest
$ac_exeext conftest.
$ac_ext
11070 if test "${xlinux_first_failure}" = "yes"; then
11071 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11072 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11073 OLD_CPPFLAGS
="$CPPFLAGS"
11075 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11076 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11077 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11078 LIBS
="$LIBS -b i486-linuxaout"
11079 cat >conftest.
$ac_ext <<_ACEOF
11082 cat confdefs.h
>>conftest.
$ac_ext
11083 cat >>conftest.
$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11089 XOpenDisplay ("foo");
11094 rm -f conftest.
$ac_objext conftest
$ac_exeext
11095 if { (ac_try
="$ac_link"
11096 case "(($ac_try" in
11097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11101 $as_echo "$ac_try_echo") >&5
11102 (eval "$ac_link") 2>conftest.er1
11104 grep -v '^ *+' conftest.er1 >conftest.err
11106 cat conftest.err >&5
11107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && {
11109 test -z "$ac_c_werror_flag" ||
11110 test ! -s conftest.err
11111 } && test -s conftest$ac_exeext && {
11112 test "$cross_compiling" = yes ||
11113 $as_test_x conftest$ac_exeext
11115 xlinux_second_failure=no
11117 $as_echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11120 xlinux_second_failure=yes
11123 rm -rf conftest.dSYM
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11126 if test "${xlinux_second_failure}" = "yes"; then
11127 # If we get the same failure with -b, there is no use adding -b.
11128 # So take it out. This plays safe.
11129 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11130 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11131 CPPFLAGS="$OLD_CPPFLAGS"
11133 { $as_echo "$as_me:$LINENO: result: no" >&5
11134 $as_echo "no" >&6; }
11136 { $as_echo "$as_me:$LINENO: result: yes" >&5
11137 $as_echo "yes" >&6; }
11140 { $as_echo "$as_me:$LINENO: result: no" >&5
11141 $as_echo "no" >&6; }
11145 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11146 # header files included from there.
11147 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11148 $as_echo_n "checking for Xkb... " >&6; }
11149 cat >conftest.$ac_ext <<_ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <X11/Xlib.h>
11156 #include <X11/XKBlib.h>
11160 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (ac_try="$ac_link"
11167 case "(($ac_try" in
11168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11169 *) ac_try_echo
=$ac_try;;
11171 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11172 $as_echo "$ac_try_echo") >&5
11173 (eval "$ac_link") 2>conftest.er1
11175 grep -v '^ *+' conftest.er1
>conftest.err
11177 cat conftest.err
>&5
11178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest
$ac_exeext && {
11183 test "$cross_compiling" = yes ||
11184 $as_test_x conftest
$ac_exeext
11188 $as_echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.
$ac_ext >&5
11194 rm -rf conftest.dSYM
11195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11196 conftest
$ac_exeext conftest.
$ac_ext
11197 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11198 $as_echo "$emacs_xkb" >&6; }
11199 if test $emacs_xkb = yes; then
11201 cat >>confdefs.h
<<\_ACEOF
11202 #define HAVE_XKBGETKEYBOARD 1
11211 for ac_func
in XrmSetDatabase XScreenResourceString \
11212 XScreenNumberOfScreen XSetWMProtocols
11214 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11216 $as_echo_n "checking for $ac_func... " >&6; }
11217 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11218 $as_echo_n "(cached) " >&6
11220 cat >conftest.
$ac_ext <<_ACEOF
11223 cat confdefs.h
>>conftest.
$ac_ext
11224 cat >>conftest.
$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11228 #define $ac_func innocuous_$ac_func
11230 /* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func (); below.
11232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11233 <limits.h> exists even on freestanding compilers. */
11236 # include <limits.h>
11238 # include <assert.h>
11243 /* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11250 /* The GNU C library defines this for functions which it implements
11251 to always fail with ENOSYS. Some functions are actually named
11252 something starting with __ and the normal name is an alias. */
11253 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 return $ac_func ();
11265 rm -f conftest.
$ac_objext conftest
$ac_exeext
11266 if { (ac_try
="$ac_link"
11267 case "(($ac_try" in
11268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11272 $as_echo "$ac_try_echo") >&5
11273 (eval "$ac_link") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext && {
11283 test "$cross_compiling" = yes ||
11284 $as_test_x conftest$ac_exeext
11286 eval "$as_ac_var=yes"
11288 $as_echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 eval "$as_ac_var=no"
11294 rm -rf conftest.dSYM
11295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11296 conftest$ac_exeext conftest.$ac_ext
11298 ac_res=`eval 'as_val=${'$as_ac_var'}
11299 $as_echo "$as_val"'`
11300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11301 $as_echo "$ac_res" >&6; }
11302 if test `eval 'as_val=${'$as_ac_var'}
11303 $as_echo "$as_val"'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11313 if test "${window_system}" = "x11"; then
11314 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11315 $as_echo_n "checking X11 version 6... " >&6; }
11316 if test "${emacs_cv_x11_version_6+set}" = set; then
11317 $as_echo_n "(cached) " >&6
11319 cat >conftest.$ac_ext <<_ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 #include <X11/Xlib.h>
11329 #if XlibSpecificationRelease < 6
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11341 *) ac_try_echo
=$ac_try;;
11343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11344 $as_echo "$ac_try_echo") >&5
11345 (eval "$ac_link") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest
$ac_exeext && {
11355 test "$cross_compiling" = yes ||
11356 $as_test_x conftest
$ac_exeext
11358 emacs_cv_x11_version_6
=yes
11360 $as_echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.
$ac_ext >&5
11363 emacs_cv_x11_version_6
=no
11366 rm -rf conftest.dSYM
11367 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11368 conftest
$ac_exeext conftest.
$ac_ext
11371 if test $emacs_cv_x11_version_6 = yes; then
11372 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11373 $as_echo "6 or newer" >&6; }
11375 cat >>confdefs.h
<<\_ACEOF
11376 #define HAVE_X11R6 1
11380 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11381 $as_echo "before 6" >&6; }
11386 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11388 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11389 if test "${with_rsvg}" != "no"; then
11390 RSVG_REQUIRED
=2.11.0
11391 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11396 # Extract the first word of "pkg-config", so it can be a program name with args.
11397 set dummy pkg-config
; ac_word
=$2
11398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11399 $as_echo_n "checking for $ac_word... " >&6; }
11400 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11401 $as_echo_n "(cached) " >&6
11403 case $PKG_CONFIG in
11405 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11409 for as_dir
in $PATH
11412 test -z "$as_dir" && as_dir
=.
11413 for ac_exec_ext
in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11427 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11428 if test -n "$PKG_CONFIG"; then
11429 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11430 $as_echo "$PKG_CONFIG" >&6; }
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11438 if test "$PKG_CONFIG" = "no" ; then
11441 PKG_CONFIG_MIN_VERSION
=0.9.0
11442 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11443 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11444 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11446 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11451 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11452 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11453 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11454 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11455 $as_echo "$RSVG_CFLAGS" >&6; }
11457 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11458 $as_echo_n "checking RSVG_LIBS... " >&6; }
11459 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11461 $as_echo "$RSVG_LIBS" >&6; }
11463 { $as_echo "$as_me:$LINENO: result: no" >&5
11464 $as_echo "no" >&6; }
11467 ## If we have a custom action on failure, don't print errors, but
11468 ## do set a variable so people can do so.
11469 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11481 if test $succeeded = yes; then
11490 if test ".${RSVG_CFLAGS}" != "."; then
11493 cat >>confdefs.h
<<\_ACEOF
11494 #define HAVE_RSVG 1
11497 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11498 LIBS
="$RSVG_LIBS $LIBS"
11505 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11508 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11513 # Extract the first word of "pkg-config", so it can be a program name with args.
11514 set dummy pkg-config
; ac_word
=$2
11515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11518 $as_echo_n "(cached) " >&6
11520 case $PKG_CONFIG in
11522 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11526 for as_dir
in $PATH
11529 test -z "$as_dir" && as_dir
=.
11530 for ac_exec_ext
in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11544 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11545 if test -n "$PKG_CONFIG"; then
11546 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11547 $as_echo "$PKG_CONFIG" >&6; }
11549 { $as_echo "$as_me:$LINENO: result: no" >&5
11550 $as_echo "no" >&6; }
11555 if test "$PKG_CONFIG" = "no" ; then
11558 PKG_CONFIG_MIN_VERSION
=0.9.0
11559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11560 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11561 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11563 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11564 { $as_echo "$as_me:$LINENO: result: yes" >&5
11565 $as_echo "yes" >&6; }
11568 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11569 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11570 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11571 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11572 $as_echo "$GTK_CFLAGS" >&6; }
11574 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11575 $as_echo_n "checking GTK_LIBS... " >&6; }
11576 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11577 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11578 $as_echo "$GTK_LIBS" >&6; }
11580 { $as_echo "$as_me:$LINENO: result: no" >&5
11581 $as_echo "no" >&6; }
11584 ## If we have a custom action on failure, don't print errors, but
11585 ## do set a variable so people can do so.
11586 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11593 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11594 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11598 if test $succeeded = yes; then
11604 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11605 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11606 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11607 { (exit 1); exit 1; }; }
11613 if test x
"$pkg_check_gtk" = xyes
; then
11617 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11618 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11619 LIBS
="$GTK_LIBS $LIBS"
11622 for ac_func
in gtk_main
11624 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11626 $as_echo_n "checking for $ac_func... " >&6; }
11627 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11630 cat >conftest.
$ac_ext <<_ACEOF
11633 cat confdefs.h
>>conftest.
$ac_ext
11634 cat >>conftest.
$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11638 #define $ac_func innocuous_$ac_func
11640 /* System header to define __stub macros and hopefully few prototypes,
11641 which can conflict with char $ac_func (); below.
11642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11643 <limits.h> exists even on freestanding compilers. */
11646 # include <limits.h>
11648 # include <assert.h>
11653 /* Override any GCC internal prototype to avoid an error.
11654 Use char because int might match the return type of a GCC
11655 builtin and then its argument prototype would still apply. */
11660 /* The GNU C library defines this for functions which it implements
11661 to always fail with ENOSYS. Some functions are actually named
11662 something starting with __ and the normal name is an alias. */
11663 #if defined __stub_$ac_func || defined __stub___$ac_func
11670 return $ac_func ();
11675 rm -f conftest.
$ac_objext conftest
$ac_exeext
11676 if { (ac_try
="$ac_link"
11677 case "(($ac_try" in
11678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682 $as_echo "$ac_try_echo") >&5
11683 (eval "$ac_link") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest$ac_exeext && {
11693 test "$cross_compiling" = yes ||
11694 $as_test_x conftest$ac_exeext
11696 eval "$as_ac_var=yes"
11698 $as_echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 eval "$as_ac_var=no"
11704 rm -rf conftest.dSYM
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11708 ac_res=`eval 'as_val=${'$as_ac_var'}
11709 $as_echo "$as_val"'`
11710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11711 $as_echo "$ac_res" >&6; }
11712 if test `eval 'as_val=${'$as_ac_var'}
11713 $as_echo "$as_val"'` = yes; then
11714 cat >>confdefs.h <<_ACEOF
11715 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11721 if test "${GTK_COMPILES}" != "yes"; then
11722 if test "$USE_X_TOOLKIT" != "maybe"; then
11723 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11724 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11725 { (exit 1); exit 1; }; };
11730 cat >>confdefs.h <<\_ACEOF
11736 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11739 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11740 closing open displays. This is no problem if you just use
11741 one display, but if you use more than one and close one of them
11742 Emacs may crash." >&5
11743 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11744 closing open displays. This is no problem if you just use
11745 one display, but if you use more than one and close one of them
11746 Emacs may crash." >&2;}
11755 if test "${HAVE_GTK}" = "yes"; then
11757 if test "$with_toolkit_scroll_bars" != no; then
11758 with_toolkit_scroll_bars=yes
11761 HAVE_GTK_MULTIDISPLAY=no
11763 for ac_func in gdk_display_open
11765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 $as_echo_n "checking for $ac_func... " >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 $as_echo_n "(cached) " >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11787 # include <limits.h>
11789 # include <assert.h>
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11811 return $ac_func ();
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11820 *) ac_try_echo
=$ac_try;;
11822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_link") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest
$ac_exeext && {
11834 test "$cross_compiling" = yes ||
11835 $as_test_x conftest
$ac_exeext
11837 eval "$as_ac_var=yes"
11839 $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.
$ac_ext >&5
11842 eval "$as_ac_var=no"
11845 rm -rf conftest.dSYM
11846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11847 conftest
$ac_exeext conftest.
$ac_ext
11849 ac_res
=`eval 'as_val=${'$as_ac_var'}
11850 $as_echo "$as_val"'`
11851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11852 $as_echo "$ac_res" >&6; }
11853 if test `eval 'as_val=${'$as_ac_var'}
11854 $as_echo "$as_val"'` = yes; then
11855 cat >>confdefs.h
<<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 HAVE_GTK_MULTIDISPLAY
=yes
11862 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11864 cat >>confdefs.h
<<\_ACEOF
11865 #define HAVE_GTK_MULTIDISPLAY 1
11870 HAVE_GTK_FILE_SELECTION
=no
11871 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11872 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11873 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11874 $as_echo_n "(cached) " >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <gtk/gtk.h>
11888 #ifndef GTK_TYPE_FILE_SELECTION
11889 (void) GTK_TYPE_FILE_SELECTION;
11896 rm -f conftest.
$ac_objext
11897 if { (ac_try
="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11903 $as_echo "$ac_try_echo") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11916 $as_echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11925 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11926 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11927 HAVE_GTK_FILE_SELECTION=yes
11929 HAVE_GTK_FILE_SELECTION=no
11932 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11934 for ac_func in gtk_file_selection_new
11936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 $as_echo_n "checking for $ac_func... " >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11958 # include <limits.h>
11960 # include <assert.h>
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 return $ac_func ();
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11991 *) ac_try_echo
=$ac_try;;
11993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1
>conftest.err
11999 cat conftest.err
>&5
12000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest
$ac_exeext && {
12005 test "$cross_compiling" = yes ||
12006 $as_test_x conftest
$ac_exeext
12008 eval "$as_ac_var=yes"
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.
$ac_ext >&5
12013 eval "$as_ac_var=no"
12016 rm -rf conftest.dSYM
12017 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12018 conftest
$ac_exeext conftest.
$ac_ext
12020 ac_res
=`eval 'as_val=${'$as_ac_var'}
12021 $as_echo "$as_val"'`
12022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12023 $as_echo "$ac_res" >&6; }
12024 if test `eval 'as_val=${'$as_ac_var'}
12025 $as_echo "$as_val"'` = yes; then
12026 cat >>confdefs.h
<<_ACEOF
12027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 HAVE_GTK_FILE_SELECTION
=yes
12031 HAVE_GTK_FILE_SELECTION
=no
12037 HAVE_GTK_FILE_CHOOSER
=no
12038 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12039 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12040 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12043 cat >conftest.
$ac_ext <<_ACEOF
12046 cat confdefs.h
>>conftest.
$ac_ext
12047 cat >>conftest.
$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <gtk/gtk.h>
12055 #ifndef GTK_TYPE_FILE_CHOOSER
12056 (void) GTK_TYPE_FILE_CHOOSER;
12063 rm -f conftest.
$ac_objext
12064 if { (ac_try
="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12081 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12083 $as_echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12092 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12093 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12094 HAVE_GTK_FILE_CHOOSER=yes
12096 HAVE_GTK_FILE_CHOOSER=no
12099 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12101 for ac_func in gtk_file_chooser_dialog_new
12103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 $as_echo_n "checking for $ac_func... " >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12125 # include <limits.h>
12127 # include <assert.h>
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12149 return $ac_func ();
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12158 *) ac_try_echo
=$ac_try;;
12160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_link") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1
>conftest.err
12166 cat conftest.err
>&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest
$ac_exeext && {
12172 test "$cross_compiling" = yes ||
12173 $as_test_x conftest
$ac_exeext
12175 eval "$as_ac_var=yes"
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.
$ac_ext >&5
12180 eval "$as_ac_var=no"
12183 rm -rf conftest.dSYM
12184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12185 conftest
$ac_exeext conftest.
$ac_ext
12187 ac_res
=`eval 'as_val=${'$as_ac_var'}
12188 $as_echo "$as_val"'`
12189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12190 $as_echo "$ac_res" >&6; }
12191 if test `eval 'as_val=${'$as_ac_var'}
12192 $as_echo "$as_val"'` = yes; then
12193 cat >>confdefs.h
<<_ACEOF
12194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12196 HAVE_GTK_FILE_CHOOSER
=yes
12198 HAVE_GTK_FILE_CHOOSER
=no
12204 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12205 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12207 cat >>confdefs.h
<<\_ACEOF
12208 #define HAVE_GTK_FILE_BOTH 1
12213 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12214 HAVE_GTK_AND_PTHREAD
=no
12216 for ac_header
in pthread.h
12218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12226 $as_echo "$as_val"'`
12227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12228 $as_echo "$ac_res" >&6; }
12230 # Is the header compilable?
12231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 $as_echo_n "checking $ac_header usability... " >&6; }
12233 cat >conftest.
$ac_ext <<_ACEOF
12236 cat confdefs.h
>>conftest.
$ac_ext
12237 cat >>conftest.
$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12242 rm -f conftest.
$ac_objext
12243 if { (ac_try
="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_compiler=no
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 $as_echo "$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12274 $as_echo_n "checking $ac_header presence... " >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12286 *) ac_try_echo
=$ac_try;;
12288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12289 $as_echo "$ac_try_echo") >&5
12290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1
>conftest.err
12294 cat conftest.err
>&5
12295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } >/dev
/null
&& {
12297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12300 ac_header_preproc
=yes
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.
$ac_ext >&5
12305 ac_header_preproc
=no
12308 rm -f conftest.err conftest.
$ac_ext
12309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12310 $as_echo "$ac_header_preproc" >&6; }
12312 # So? What about this header?
12313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12319 ac_header_preproc
=yes
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 $as_echo_n "checking for $ac_header... " >&6; }
12339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached) " >&6
12342 eval "$as_ac_Header=\$ac_header_preproc"
12344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12347 $as_echo "$ac_res" >&6; }
12350 if test `eval 'as_val=${'$as_ac_Header'}
12351 $as_echo "$as_val"'` = yes; then
12352 cat >>confdefs.h
<<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12360 if test "$ac_cv_header_pthread_h"; then
12361 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12362 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12363 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12364 $as_echo_n "(cached) " >&6
12366 ac_check_lib_save_LIBS
=$LIBS
12367 LIBS
="-lpthread $LIBS"
12368 cat >conftest.
$ac_ext <<_ACEOF
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char pthread_self ();
12385 return pthread_self ();
12390 rm -f conftest.
$ac_objext conftest
$ac_exeext
12391 if { (ac_try
="$ac_link"
12392 case "(($ac_try" in
12393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext && {
12408 test "$cross_compiling" = yes ||
12409 $as_test_x conftest$ac_exeext
12411 ac_cv_lib_pthread_pthread_self=yes
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_lib_pthread_pthread_self=no
12419 rm -rf conftest.dSYM
12420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12425 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12426 if test $ac_cv_lib_pthread_pthread_self = yes; then
12427 HAVE_GTK_AND_PTHREAD=yes
12431 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12432 case "${canonical}" in
12434 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_GTK_AND_PTHREAD 1
12447 if test "${with_dbus}" = "yes"; then
12451 # Extract the first word of "pkg-config", so it can be a program name with args.
12452 set dummy pkg-config; ac_word=$2
12453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12456 $as_echo_n "(cached) " >&6
12458 case $PKG_CONFIG in
12460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12483 if test -n "$PKG_CONFIG"; then
12484 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12485 $as_echo "$PKG_CONFIG" >&6; }
12487 { $as_echo "$as_me:$LINENO: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test "$PKG_CONFIG" = "no" ; then
12496 PKG_CONFIG_MIN_VERSION=0.9.0
12497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12498 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12499 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12501 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12502 { $as_echo "$as_me:$LINENO: result: yes" >&5
12503 $as_echo "yes" >&6; }
12506 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12507 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12508 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12509 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12510 $as_echo "$DBUS_CFLAGS" >&6; }
12512 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12513 $as_echo_n "checking DBUS_LIBS... " >&6; }
12514 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12516 $as_echo "$DBUS_LIBS" >&6; }
12518 { $as_echo "$as_me:$LINENO: result: no" >&5
12519 $as_echo "no" >&6; }
12522 ## If we have a custom action on failure, don't print errors, but
12523 ## do set a variable so people can do so.
12524 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12536 if test $succeeded = yes; then
12542 if test "$HAVE_DBUS" = yes; then
12543 LIBS="$LIBS $DBUS_LIBS"
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_DBUS 1
12550 for ac_func in dbus_watch_get_unix_fd
12552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12554 $as_echo_n "checking for $ac_func... " >&6; }
12555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12556 $as_echo_n "(cached) " >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12566 #define $ac_func innocuous_$ac_func
12568 /* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below.
12570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12571 <limits.h> exists even on freestanding compilers. */
12574 # include <limits.h>
12576 # include <assert.h>
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12588 /* The GNU C library defines this for functions which it implements
12589 to always fail with ENOSYS. Some functions are actually named
12590 something starting with __ and the normal name is an alias. */
12591 #if defined __stub_$ac_func || defined __stub___$ac_func
12598 return $ac_func ();
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12607 *) ac_try_echo
=$ac_try;;
12609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12610 $as_echo "$ac_try_echo") >&5
12611 (eval "$ac_link") 2>conftest.er1
12613 grep -v '^ *+' conftest.er1
>conftest.err
12615 cat conftest.err
>&5
12616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest
$ac_exeext && {
12621 test "$cross_compiling" = yes ||
12622 $as_test_x conftest
$ac_exeext
12624 eval "$as_ac_var=yes"
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 eval "$as_ac_var=no"
12632 rm -rf conftest.dSYM
12633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12634 conftest
$ac_exeext conftest.
$ac_ext
12636 ac_res
=`eval 'as_val=${'$as_ac_var'}
12637 $as_echo "$as_val"'`
12638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12639 $as_echo "$ac_res" >&6; }
12640 if test `eval 'as_val=${'$as_ac_var'}
12641 $as_echo "$as_val"'` = yes; then
12642 cat >>confdefs.h
<<_ACEOF
12643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12649 DBUS_OBJ
=dbusbind.o
12655 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12659 # Extract the first word of "pkg-config", so it can be a program name with args.
12660 set dummy pkg-config
; ac_word
=$2
12661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 $as_echo_n "checking for $ac_word... " >&6; }
12663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12666 case $PKG_CONFIG in
12668 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12672 for as_dir
in $PATH
12675 test -z "$as_dir" && as_dir
=.
12676 for ac_exec_ext
in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12690 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12691 if test -n "$PKG_CONFIG"; then
12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12693 $as_echo "$PKG_CONFIG" >&6; }
12695 { $as_echo "$as_me:$LINENO: result: no" >&5
12696 $as_echo "no" >&6; }
12701 if test "$PKG_CONFIG" = "no" ; then
12704 PKG_CONFIG_MIN_VERSION
=0.9.0
12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12707 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }
12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12715 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12716 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12718 $as_echo "$GCONF_CFLAGS" >&6; }
12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12721 $as_echo_n "checking GCONF_LIBS... " >&6; }
12722 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12724 $as_echo "$GCONF_LIBS" >&6; }
12726 { $as_echo "$as_me:$LINENO: result: no" >&5
12727 $as_echo "no" >&6; }
12730 ## If we have a custom action on failure, don't print errors, but
12731 ## do set a variable so people can do so.
12732 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12739 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12740 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12744 if test $succeeded = yes; then
12750 if test "$HAVE_GCONF" = yes; then
12752 cat >>confdefs.h
<<\_ACEOF
12753 #define HAVE_GCONF 1
12761 if test "${with_selinux}" = "yes"; then
12762 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12763 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12764 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12767 ac_check_lib_save_LIBS
=$LIBS
12768 LIBS
="-lselinux $LIBS"
12769 cat >conftest.
$ac_ext <<_ACEOF
12772 cat confdefs.h
>>conftest.
$ac_ext
12773 cat >>conftest.
$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12782 char lgetfilecon ();
12786 return lgetfilecon ();
12791 rm -f conftest.
$ac_objext conftest
$ac_exeext
12792 if { (ac_try
="$ac_link"
12793 case "(($ac_try" in
12794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12798 $as_echo "$ac_try_echo") >&5
12799 (eval "$ac_link") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest$ac_exeext && {
12809 test "$cross_compiling" = yes ||
12810 $as_test_x conftest$ac_exeext
12812 ac_cv_lib_selinux_lgetfilecon=yes
12814 $as_echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_cv_lib_selinux_lgetfilecon=no
12820 rm -rf conftest.dSYM
12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12826 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12827 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12828 HAVE_LIBSELINUX=yes
12833 if test "$HAVE_LIBSELINUX" = yes; then
12835 cat >>confdefs.h <<\_ACEOF
12836 #define HAVE_LIBSELINUX 1
12839 LIBSELINUX_LIBS=-lselinux
12845 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12846 if test "$with_xaw3d" != no; then
12847 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12848 $as_echo_n "checking for xaw3d... " >&6; }
12849 if test "${emacs_cv_xaw3d+set}" = set; then
12850 $as_echo_n "(cached) " >&6
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12859 #include <X11/Intrinsic.h>
12860 #include <X11/Xaw3d/Simple.h>
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12873 *) ac_try_echo
=$ac_try;;
12875 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12876 $as_echo "$ac_try_echo") >&5
12877 (eval "$ac_link") 2>conftest.er1
12879 grep -v '^ *+' conftest.er1
>conftest.err
12881 cat conftest.err
>&5
12882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } && {
12884 test -z "$ac_c_werror_flag" ||
12885 test ! -s conftest.err
12886 } && test -s conftest
$ac_exeext && {
12887 test "$cross_compiling" = yes ||
12888 $as_test_x conftest
$ac_exeext
12892 $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.
$ac_ext >&5
12898 rm -rf conftest.dSYM
12899 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12900 conftest
$ac_exeext conftest.
$ac_ext
12906 if test $emacs_cv_xaw3d = yes; then
12907 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12908 $as_echo "yes; using Lucid toolkit" >&6; }
12909 USE_X_TOOLKIT
=LUCID
12912 cat >>confdefs.h
<<\_ACEOF
12913 #define HAVE_XAW3D 1
12917 { $as_echo "$as_me:$LINENO: result: no" >&5
12918 $as_echo "no" >&6; }
12919 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12920 $as_echo_n "checking for libXaw... " >&6; }
12921 if test "${emacs_cv_xaw+set}" = set; then
12922 $as_echo_n "(cached) " >&6
12924 cat >conftest.
$ac_ext <<_ACEOF
12927 cat confdefs.h
>>conftest.
$ac_ext
12928 cat >>conftest.
$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12931 #include <X11/Intrinsic.h>
12932 #include <X11/Xaw/Simple.h>
12941 rm -f conftest.
$ac_objext conftest
$ac_exeext
12942 if { (ac_try
="$ac_link"
12943 case "(($ac_try" in
12944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12948 $as_echo "$ac_try_echo") >&5
12949 (eval "$ac_link") 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && {
12956 test -z "$ac_c_werror_flag" ||
12957 test ! -s conftest.err
12958 } && test -s conftest$ac_exeext && {
12959 test "$cross_compiling" = yes ||
12960 $as_test_x conftest$ac_exeext
12964 $as_echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12970 rm -rf conftest.dSYM
12971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12972 conftest$ac_exeext conftest.$ac_ext
12975 if test $emacs_cv_xaw = yes; then
12976 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12977 $as_echo "yes; using Lucid toolkit" >&6; }
12978 USE_X_TOOLKIT=LUCID
12979 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12980 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12981 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12982 { (exit 1); exit 1; }; }
12984 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12985 $as_echo "no; do not use toolkit by default" >&6; }
12991 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12993 if test "${USE_X_TOOLKIT}" != "none"; then
12994 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12995 $as_echo_n "checking X11 toolkit version... " >&6; }
12996 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12997 $as_echo_n "(cached) " >&6
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <X11/Intrinsic.h>
13009 #if XtSpecificationRelease < 6
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13021 *) ac_try_echo
=$ac_try;;
13023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13024 $as_echo "$ac_try_echo") >&5
13025 (eval "$ac_link") 2>conftest.er1
13027 grep -v '^ *+' conftest.er1
>conftest.err
13029 cat conftest.err
>&5
13030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest
$ac_exeext && {
13035 test "$cross_compiling" = yes ||
13036 $as_test_x conftest
$ac_exeext
13038 emacs_cv_x11_toolkit_version_6
=yes
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.
$ac_ext >&5
13043 emacs_cv_x11_toolkit_version_6
=no
13046 rm -rf conftest.dSYM
13047 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13048 conftest
$ac_exeext conftest.
$ac_ext
13051 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13052 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13053 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13054 $as_echo "6 or newer" >&6; }
13056 cat >>confdefs.h
<<\_ACEOF
13057 #define HAVE_X11XTR6 1
13061 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13062 $as_echo "before 6" >&6; }
13066 if test x
$HAVE_X11XTR6 = xyes
; then
13067 LIBS
="-lXt -lSM -lICE $LIBS"
13072 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13073 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13074 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13075 $as_echo_n "(cached) " >&6
13077 ac_check_lib_save_LIBS
=$LIBS
13079 cat >conftest.
$ac_ext <<_ACEOF
13082 cat confdefs.h
>>conftest.
$ac_ext
13083 cat >>conftest.
$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13092 char XmuConvertStandardSelection ();
13096 return XmuConvertStandardSelection ();
13101 rm -f conftest.
$ac_objext conftest
$ac_exeext
13102 if { (ac_try
="$ac_link"
13103 case "(($ac_try" in
13104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109 (eval "$ac_link") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest$ac_exeext && {
13119 test "$cross_compiling" = yes ||
13120 $as_test_x conftest$ac_exeext
13122 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13124 $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13130 rm -rf conftest.dSYM
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132 conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13136 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13137 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13138 cat >>confdefs.h <<_ACEOF
13139 #define HAVE_LIBXMU 1
13146 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13149 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13150 if test "${HAVE_X11}" = "yes"; then
13151 if test "${USE_X_TOOLKIT}" != "none"; then
13153 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13154 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13155 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13156 $as_echo_n "(cached) " >&6
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-lXext $LIBS"
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13167 /* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13173 char XShapeQueryExtension ();
13177 return XShapeQueryExtension ();
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13186 *) ac_try_echo
=$ac_try;;
13188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13189 $as_echo "$ac_try_echo") >&5
13190 (eval "$ac_link") 2>conftest.er1
13192 grep -v '^ *+' conftest.er1
>conftest.err
13194 cat conftest.err
>&5
13195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } && {
13197 test -z "$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 } && test -s conftest
$ac_exeext && {
13200 test "$cross_compiling" = yes ||
13201 $as_test_x conftest
$ac_exeext
13203 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13205 $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.
$ac_ext >&5
13208 ac_cv_lib_Xext_XShapeQueryExtension
=no
13211 rm -rf conftest.dSYM
13212 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13213 conftest
$ac_exeext conftest.
$ac_ext
13214 LIBS
=$ac_check_lib_save_LIBS
13216 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13217 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13218 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13219 cat >>confdefs.h
<<_ACEOF
13220 #define HAVE_LIBXEXT 1
13223 LIBS
="-lXext $LIBS"
13230 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13231 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13232 $as_echo_n "checking for Motif version 2.1... " >&6; }
13233 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13234 $as_echo_n "(cached) " >&6
13236 cat >conftest.
$ac_ext <<_ACEOF
13239 cat confdefs.h
>>conftest.
$ac_ext
13240 cat >>conftest.
$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13246 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13249 Motif version prior to 2.1.
13255 rm -f conftest.
$ac_objext
13256 if { (ac_try
="$ac_compile"
13257 case "(($ac_try" in
13258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13262 $as_echo "$ac_try_echo") >&5
13263 (eval "$ac_compile") 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } && {
13270 test -z "$ac_c_werror_flag" ||
13271 test ! -s conftest.err
13272 } && test -s conftest.$ac_objext; then
13273 emacs_cv_motif_version_2_1=yes
13275 $as_echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 emacs_cv_motif_version_2_1=no
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13284 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13285 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13286 if test $emacs_cv_motif_version_2_1 = yes; then
13289 cat >>confdefs.h <<\_ACEOF
13290 #define HAVE_MOTIF_2_1 1
13293 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13294 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13295 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13296 $as_echo_n "(cached) " >&6
13298 ac_check_lib_save_LIBS=$LIBS
13300 cat >conftest.$ac_ext <<_ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13313 char XpCreateContext ();
13317 return XpCreateContext ();
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13326 *) ac_try_echo
=$ac_try;;
13328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13329 $as_echo "$ac_try_echo") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1
>conftest.err
13334 cat conftest.err
>&5
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest
$ac_exeext && {
13340 test "$cross_compiling" = yes ||
13341 $as_test_x conftest
$ac_exeext
13343 ac_cv_lib_Xp_XpCreateContext
=yes
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.
$ac_ext >&5
13348 ac_cv_lib_Xp_XpCreateContext
=no
13351 rm -rf conftest.dSYM
13352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13353 conftest
$ac_exeext conftest.
$ac_ext
13354 LIBS
=$ac_check_lib_save_LIBS
13356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13357 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13358 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13362 if test ${HAVE_LIBXP} = yes; then
13364 cat >>confdefs.h
<<\_ACEOF
13365 #define HAVE_LIBXP 1
13370 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13371 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13372 if test "${emacs_cv_lesstif+set}" = set; then
13373 $as_echo_n "(cached) " >&6
13375 # We put this in CFLAGS temporarily to precede other -I options
13376 # that might be in CFLAGS temporarily.
13377 # We put this in CPPFLAGS where it precedes the other -I options.
13378 OLD_CPPFLAGS
=$CPPFLAGS
13380 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13381 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13382 cat >conftest.
$ac_ext <<_ACEOF
13385 cat confdefs.h
>>conftest.
$ac_ext
13386 cat >>conftest.
$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13397 rm -f conftest.
$ac_objext
13398 if { (ac_try
="$ac_compile"
13399 case "(($ac_try" in
13400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13404 $as_echo "$ac_try_echo") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest.$ac_objext; then
13415 emacs_cv_lesstif=yes
13417 $as_echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 emacs_cv_lesstif=no
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13426 $as_echo "$emacs_cv_lesstif" >&6; }
13427 if test $emacs_cv_lesstif = yes; then
13428 # Make sure this -I option remains in CPPFLAGS after it is set
13429 # back to REAL_CPPFLAGS.
13430 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13431 # have those other -I options anyway. Ultimately, having this
13432 # directory ultimately in CPPFLAGS will be enough.
13433 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13434 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13437 CPPFLAGS=$OLD_CPPFLAGS
13444 USE_TOOLKIT_SCROLL_BARS=no
13445 if test "${with_toolkit_scroll_bars}" != "no"; then
13446 if test "${USE_X_TOOLKIT}" != "none"; then
13447 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13448 cat >>confdefs.h <<\_ACEOF
13449 #define USE_TOOLKIT_SCROLL_BARS 1
13453 USE_TOOLKIT_SCROLL_BARS=yes
13454 elif test "${HAVE_XAW3D}" = "yes"; then
13455 cat >>confdefs.h <<\_ACEOF
13456 #define USE_TOOLKIT_SCROLL_BARS 1
13459 USE_TOOLKIT_SCROLL_BARS=yes
13461 elif test "${HAVE_GTK}" = "yes"; then
13462 cat >>confdefs.h <<\_ACEOF
13463 #define USE_TOOLKIT_SCROLL_BARS 1
13466 USE_TOOLKIT_SCROLL_BARS=yes
13467 elif test "${HAVE_NS}" = "yes"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define USE_TOOLKIT_SCROLL_BARS 1
13472 USE_TOOLKIT_SCROLL_BARS=yes
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13483 #include <X11/Xlib.h>
13484 #include <X11/Xresource.h>
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13497 *) ac_try_echo
=$ac_try;;
13499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13500 $as_echo "$ac_try_echo") >&5
13501 (eval "$ac_compile") 2>conftest.er1
13503 grep -v '^ *+' conftest.er1
>conftest.err
13505 cat conftest.err
>&5
13506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } && {
13508 test -z "$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 } && test -s conftest.
$ac_objext; then
13513 cat >>confdefs.h
<<\_ACEOF
13518 $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.
$ac_ext >&5
13524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13527 if test "${with_xim}" != "no"; then
13529 cat >>confdefs.h
<<\_ACEOF
13536 if test "${HAVE_XIM}" != "no"; then
13537 late_CFLAGS
=$CFLAGS
13538 if test "$GCC" = yes; then
13539 CFLAGS
="$CFLAGS --pedantic-errors"
13541 cat >conftest.
$ac_ext <<_ACEOF
13544 cat confdefs.h
>>conftest.
$ac_ext
13545 cat >>conftest.
$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 #include <X11/Xlib.h>
13549 #include <X11/Xresource.h>
13558 XPointer *client_data;
13560 /* If we're not using GCC, it's probably not XFree86, and this is
13561 probably right, but we can't use something like --pedantic-errors. */
13562 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13563 char*, XIMProc, XPointer*);
13565 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13571 rm -f conftest.
$ac_objext
13572 if { (ac_try
="$ac_compile"
13573 case "(($ac_try" in
13574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 emacs_cv_arg6_star=yes
13591 $as_echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 if test "$emacs_cv_arg6_star" = yes; then
13600 cat >>confdefs.h <<\_ACEOF
13601 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13605 cat >>confdefs.h <<\_ACEOF
13606 #define XRegisterIMInstantiateCallback_arg6 XPointer
13610 CFLAGS=$late_CFLAGS
13613 ### Start of font-backend (under any platform) section.
13614 # (nothing here yet -- this is a placeholder)
13615 ### End of font-backend (under any platform) section.
13617 ### Start of font-backend (under X11) section.
13618 if test "${HAVE_X11}" = "yes"; then
13622 # Extract the first word of "pkg-config", so it can be a program name with args.
13623 set dummy pkg-config; ac_word=$2
13624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13625 $as_echo_n "checking for $ac_word... " >&6; }
13626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13627 $as_echo_n "(cached) " >&6
13629 case $PKG_CONFIG in
13631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13654 if test -n "$PKG_CONFIG"; then
13655 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13656 $as_echo "$PKG_CONFIG" >&6; }
13658 { $as_echo "$as_me:$LINENO: result: no" >&5
13659 $as_echo "no" >&6; }
13664 if test "$PKG_CONFIG" = "no" ; then
13667 PKG_CONFIG_MIN_VERSION=0.9.0
13668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13669 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13670 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13672 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13673 { $as_echo "$as_me:$LINENO: result: yes" >&5
13674 $as_echo "yes" >&6; }
13677 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13678 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13679 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13680 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13681 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13683 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13684 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13685 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13686 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13687 $as_echo "$FONTCONFIG_LIBS" >&6; }
13689 { $as_echo "$as_me:$LINENO: result: no" >&5
13690 $as_echo "no" >&6; }
13691 FONTCONFIG_CFLAGS=""
13693 ## If we have a custom action on failure, don't print errors, but
13694 ## do set a variable so people can do so.
13695 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13702 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13703 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13707 if test $succeeded = yes; then
13714 ## Use -lXft if available, unless `--with-xft=no
'.
13716 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13719 if test "x${with_xft}" != "xno"; then
13724 # Extract the first word of "pkg-config", so it can be a program name with args.
13725 set dummy pkg-config; ac_word=$2
13726 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13727 $as_echo_n "checking for $ac_word... " >&6; }
13728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13729 $as_echo_n "(cached) " >&6
13731 case $PKG_CONFIG in
13733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13756 if test -n "$PKG_CONFIG"; then
13757 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13758 $as_echo "$PKG_CONFIG" >&6; }
13760 { $as_echo "$as_me:$LINENO: result: no" >&5
13761 $as_echo "no" >&6; }
13766 if test "$PKG_CONFIG" = "no" ; then
13769 PKG_CONFIG_MIN_VERSION=0.9.0
13770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13771 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13772 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13774 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13775 { $as_echo "$as_me:$LINENO: result: yes" >&5
13776 $as_echo "yes" >&6; }
13779 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13780 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13781 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13782 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13783 $as_echo "$XFT_CFLAGS" >&6; }
13785 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13786 $as_echo_n "checking XFT_LIBS... " >&6; }
13787 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13788 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13789 $as_echo "$XFT_LIBS" >&6; }
13791 { $as_echo "$as_me:$LINENO: result: no" >&5
13792 $as_echo "no" >&6; }
13795 ## If we have a custom action on failure, don't print errors
, but
13796 ## do set a variable so people can do so.
13797 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13809 if test $succeeded = yes; then
13815 ## Because xftfont.c uses XRenderQueryExtension, we also
13816 ## need to link to -lXrender.
13818 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13819 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13820 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13821 $as_echo_n "(cached) " >&6
13823 ac_check_lib_save_LIBS
=$LIBS
13824 LIBS
="-lXrender $LIBS"
13825 cat >conftest.
$ac_ext <<_ACEOF
13828 cat confdefs.h
>>conftest.
$ac_ext
13829 cat >>conftest.
$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13838 char XRenderQueryExtension ();
13842 return XRenderQueryExtension ();
13847 rm -f conftest.
$ac_objext conftest
$ac_exeext
13848 if { (ac_try
="$ac_link"
13849 case "(($ac_try" in
13850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855 (eval "$ac_link") 2>conftest.er1
13857 grep -v '^ *+' conftest.er1 >conftest.err
13859 cat conftest.err >&5
13860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } && {
13862 test -z "$ac_c_werror_flag" ||
13863 test ! -s conftest.err
13864 } && test -s conftest$ac_exeext && {
13865 test "$cross_compiling" = yes ||
13866 $as_test_x conftest$ac_exeext
13868 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_cv_lib_Xrender_XRenderQueryExtension=no
13876 rm -rf conftest.dSYM
13877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LIBS=$ac_check_lib_save_LIBS
13881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13882 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13883 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13887 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13888 OLD_CPPFLAGS="$CPPFLAGS"
13889 OLD_CFLAGS="$CFLAGS"
13891 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13892 CFLAGS="$CFLAGS $XFT_CFLAGS"
13893 XFT_LIBS="-lXrender $XFT_LIBS"
13894 LIBS="$XFT_LIBS $LIBS"
13895 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13896 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13897 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13898 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13899 $as_echo_n "(cached) " >&6
13901 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13902 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13904 # Is the header compilable?
13905 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13906 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 #include <X11/Xft/Xft.h>
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13920 *) ac_try_echo
=$ac_try;;
13922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13923 $as_echo "$ac_try_echo") >&5
13924 (eval "$ac_compile") 2>conftest.er1
13926 grep -v '^ *+' conftest.er1
>conftest.err
13928 cat conftest.err
>&5
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } && {
13931 test -z "$ac_c_werror_flag" ||
13932 test ! -s conftest.err
13933 } && test -s conftest.
$ac_objext; then
13934 ac_header_compiler
=yes
13936 $as_echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.
$ac_ext >&5
13939 ac_header_compiler
=no
13942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13943 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13944 $as_echo "$ac_header_compiler" >&6; }
13946 # Is the header present?
13947 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13948 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13949 cat >conftest.
$ac_ext <<_ACEOF
13952 cat confdefs.h
>>conftest.
$ac_ext
13953 cat >>conftest.
$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13955 #include <X11/Xft/Xft.h>
13957 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13958 case "(($ac_try" in
13959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13963 $as_echo "$ac_try_echo") >&5
13964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } >/dev/null && {
13971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13974 ac_header_preproc=yes
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_preproc=no
13982 rm -f conftest.err conftest.$ac_ext
13983 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 $as_echo "$ac_header_preproc" >&6; }
13986 # So? What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13989 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13990 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13992 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13993 ac_header_preproc=yes
13996 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13997 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13998 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13999 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14000 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14001 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14002 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14003 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14004 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14005 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14006 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14007 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14011 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14012 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14013 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14014 $as_echo_n "(cached) " >&6
14016 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14019 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14022 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14023 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14024 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14025 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14026 $as_echo_n "(cached) " >&6
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lXft $XFT_LIBS $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any GCC internal prototype to avoid an error.
14038 Use char because int might match the return type of a GCC
14039 builtin and then its argument prototype would still apply. */
14043 char XftFontOpen ();
14047 return XftFontOpen ();
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14056 *) ac_try_echo
=$ac_try;;
14058 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14059 $as_echo "$ac_try_echo") >&5
14060 (eval "$ac_link") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1
>conftest.err
14064 cat conftest.err
>&5
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest
$ac_exeext && {
14070 test "$cross_compiling" = yes ||
14071 $as_test_x conftest
$ac_exeext
14073 ac_cv_lib_Xft_XftFontOpen
=yes
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.
$ac_ext >&5
14078 ac_cv_lib_Xft_XftFontOpen
=no
14081 rm -rf conftest.dSYM
14082 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14083 conftest
$ac_exeext conftest.
$ac_ext
14084 LIBS
=$ac_check_lib_save_LIBS
14086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14087 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14088 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14096 if test "${HAVE_XFT}" = "yes"; then
14098 cat >>confdefs.h
<<\_ACEOF
14103 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14105 CPPFLAGS
="$OLD_CPPFLAGS"
14106 CFLAGS
="$OLD_CFLAGS"
14108 fi # "${HAVE_XFT}" = "yes"
14109 fi # "$HAVE_XFT" != no
14110 fi # "x${with_xft}" != "xno"
14112 if test "$HAVE_XFT" != "yes"; then
14118 ## We used to allow building with FreeType and without Xft.
14119 ## However, the ftx font backend driver is not in good shape.
14120 if test "${HAVE_XFT}" = "yes"; then
14127 if test "${HAVE_FREETYPE}" = "yes"; then
14129 cat >>confdefs.h
<<\_ACEOF
14130 #define HAVE_FREETYPE 1
14133 if test "${with_libotf}" != "no"; then
14137 # Extract the first word of "pkg-config", so it can be a program name with args.
14138 set dummy pkg-config
; ac_word
=$2
14139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14140 $as_echo_n "checking for $ac_word... " >&6; }
14141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14144 case $PKG_CONFIG in
14146 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14150 for as_dir
in $PATH
14153 test -z "$as_dir" && as_dir
=.
14154 for ac_exec_ext
in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14168 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14169 if test -n "$PKG_CONFIG"; then
14170 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14171 $as_echo "$PKG_CONFIG" >&6; }
14173 { $as_echo "$as_me:$LINENO: result: no" >&5
14174 $as_echo "no" >&6; }
14179 if test "$PKG_CONFIG" = "no" ; then
14182 PKG_CONFIG_MIN_VERSION
=0.9.0
14183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14184 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14185 $as_echo_n "checking for libotf... " >&6; }
14187 if $PKG_CONFIG --exists "libotf" 2>&5; then
14188 { $as_echo "$as_me:$LINENO: result: yes" >&5
14189 $as_echo "yes" >&6; }
14192 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14193 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14194 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14195 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14196 $as_echo "$LIBOTF_CFLAGS" >&6; }
14198 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14199 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14200 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14201 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14202 $as_echo "$LIBOTF_LIBS" >&6; }
14204 { $as_echo "$as_me:$LINENO: result: no" >&5
14205 $as_echo "no" >&6; }
14208 ## If we have a custom action on failure, don't print errors, but
14209 ## do set a variable so people can do so.
14210 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14222 if test $succeeded = yes; then
14228 if test "$HAVE_LIBOTF" = "yes"; then
14230 cat >>confdefs.h
<<\_ACEOF
14231 #define HAVE_LIBOTF 1
14234 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14235 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14236 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14237 $as_echo_n "(cached) " >&6
14239 ac_check_lib_save_LIBS
=$LIBS
14241 cat >conftest.
$ac_ext <<_ACEOF
14244 cat confdefs.h
>>conftest.
$ac_ext
14245 cat >>conftest.
$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14254 char OTF_get_variation_glyphs ();
14258 return OTF_get_variation_glyphs ();
14263 rm -f conftest.
$ac_objext conftest
$ac_exeext
14264 if { (ac_try
="$ac_link"
14265 case "(($ac_try" in
14266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_link") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest$ac_exeext && {
14281 test "$cross_compiling" = yes ||
14282 $as_test_x conftest$ac_exeext
14284 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14286 $as_echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14292 rm -rf conftest.dSYM
14293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14294 conftest$ac_exeext conftest.$ac_ext
14295 LIBS=$ac_check_lib_save_LIBS
14297 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14298 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14299 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14300 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14302 HAVE_OTF_GET_VARIATION_GLYPHS=no
14305 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14317 if test "${HAVE_LIBOTF}" = yes; then
14318 if test "${with_m17n_flt}" != "no"; then
14322 # Extract the first word of "pkg-config", so it can be a program name with args.
14323 set dummy pkg-config; ac_word=$2
14324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14325 $as_echo_n "checking for $ac_word... " >&6; }
14326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14327 $as_echo_n "(cached) " >&6
14329 case $PKG_CONFIG in
14331 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14353 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14354 if test -n "$PKG_CONFIG"; then
14355 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14356 $as_echo "$PKG_CONFIG" >&6; }
14358 { $as_echo "$as_me:$LINENO: result: no" >&5
14359 $as_echo "no" >&6; }
14364 if test "$PKG_CONFIG" = "no" ; then
14367 PKG_CONFIG_MIN_VERSION=0.9.0
14368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14369 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14370 $as_echo_n "checking for m17n-flt... " >&6; }
14372 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14373 { $as_echo "$as_me:$LINENO: result: yes" >&5
14374 $as_echo "yes" >&6; }
14377 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14378 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14379 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14380 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14381 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14383 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14384 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14385 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14386 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14387 $as_echo "$M17N_FLT_LIBS" >&6; }
14389 { $as_echo "$as_me:$LINENO: result: no" >&5
14390 $as_echo "no" >&6; }
14393 ## If we have a custom action on failure, don't print errors, but
14394 ## do set a variable so people can do so.
14395 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14407 if test $succeeded = yes; then
14413 if test "$HAVE_M17N_FLT" = "yes"; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_M17N_FLT 1
14428 ### End of font-backend (under X11) section.
14439 ### Use -lXpm if available, unless `--with-xpm=no
'.
14442 if test "${HAVE_X11}" = "yes"; then
14443 if test "${with_xpm}" != "no"; then
14444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14445 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14446 $as_echo_n "checking for X11/xpm.h... " >&6; }
14447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14448 $as_echo_n "(cached) " >&6
14450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14451 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14453 # Is the header compilable?
14454 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14455 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 $ac_includes_default
14463 #include <X11/xpm.h>
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14472 $as_echo "$ac_try_echo") >&5
14473 (eval "$ac_compile") 2>conftest.er1
14475 grep -v '^
*+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest.$ac_objext; then
14483 ac_header_compiler=yes
14485 $as_echo "$as_me: failed program was:" >&5
14486 sed 's
/^
/|
/' conftest.$ac_ext >&5
14488 ac_header_compiler=no
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14493 $as_echo "$ac_header_compiler" >&6; }
14495 # Is the header present?
14496 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14497 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <X11/xpm.h>
14506 if { (ac_try="$ac_cpp conftest.$ac_ext"
14507 case "(($ac_try" in
14508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14512 $as_echo "$ac_try_echo") >&5
14513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14515 grep -v '^
*+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } >/dev/null && {
14520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14523 ac_header_preproc=yes
14525 $as_echo "$as_me: failed program was:" >&5
14526 sed 's
/^
/|
/' conftest.$ac_ext >&5
14528 ac_header_preproc=no
14531 rm -f conftest.err conftest.$ac_ext
14532 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14533 $as_echo "$ac_header_preproc" >&6; }
14535 # So? What about this header?
14536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14538 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14539 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14540 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14541 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14542 ac_header_preproc=yes
14545 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14546 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14547 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14548 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14549 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14550 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14551 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14552 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14553 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14554 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14555 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14556 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14560 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14561 $as_echo_n "checking for X11/xpm.h... " >&6; }
14562 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14563 $as_echo_n "(cached) " >&6
14565 ac_cv_header_X11_xpm_h=$ac_header_preproc
14567 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14568 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14571 if test $ac_cv_header_X11_xpm_h = yes; then
14572 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14573 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14574 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14575 $as_echo_n "(cached) " >&6
14577 ac_check_lib_save_LIBS=$LIBS
14578 LIBS="-lXpm -lX11 $LIBS"
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14592 char XpmReadFileToPixmap ();
14596 return XpmReadFileToPixmap ();
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14608 $as_echo "$ac_try_echo") >&5
14609 (eval "$ac_link") 2>conftest.er1
14611 grep -v '^
*+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext && {
14619 test "$cross_compiling" = yes ||
14620 $as_test_x conftest$ac_exeext
14622 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14624 $as_echo "$as_me: failed program was:" >&5
14625 sed 's
/^
/|
/' conftest.$ac_ext >&5
14627 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14630 rm -rf conftest.dSYM
14631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LIBS=$ac_check_lib_save_LIBS
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14636 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14637 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14644 if test "${HAVE_XPM}" = "yes"; then
14645 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14646 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14647 cat >conftest.$ac_ext <<_ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 #include "X11/xpm.h"
14654 #ifndef XpmReturnAllocPixels
14655 no_return_alloc_pixels
14659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14660 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14668 if test "${HAVE_XPM}" = "yes"; then
14669 { $as_echo "$as_me:$LINENO: result: yes" >&5
14670 $as_echo "yes" >&6; }
14672 { $as_echo "$as_me:$LINENO: result: no" >&5
14673 $as_echo "no" >&6; }
14678 if test "${HAVE_XPM}" = "yes"; then
14680 cat >>confdefs.h <<\_ACEOF
14689 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14692 if test "${HAVE_X11}" = "yes"; then
14693 if test "${with_jpeg}" != "no"; then
14694 if test "${ac_cv_header_jerror_h+set}" = set; then
14695 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14696 $as_echo_n "checking for jerror.h... " >&6; }
14697 if test "${ac_cv_header_jerror_h+set}" = set; then
14698 $as_echo_n "(cached) " >&6
14700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14701 $as_echo "$ac_cv_header_jerror_h" >&6; }
14703 # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14705 $as_echo_n "checking jerror.h usability... " >&6; }
14706 cat >conftest.
$ac_ext <<_ACEOF
14709 cat confdefs.h
>>conftest.
$ac_ext
14710 cat >>conftest.
$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <jerror.h>
14715 rm -f conftest.
$ac_objext
14716 if { (ac_try
="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest.$ac_objext; then
14733 ac_header_compiler=yes
14735 $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_header_compiler=no
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14747 $as_echo_n "checking jerror.h presence... " >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <jerror.h>
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14759 *) ac_try_echo
=$ac_try;;
14761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1
>conftest.err
14767 cat conftest.err
>&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev
/null
&& {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc
=yes
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.
$ac_ext >&5
14778 ac_header_preproc
=no
14781 rm -f conftest.err conftest.
$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14791 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc
=yes
14795 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14796 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14798 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14800 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14802 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14804 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14805 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14806 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14810 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14811 $as_echo_n "checking for jerror.h... " >&6; }
14812 if test "${ac_cv_header_jerror_h+set}" = set; then
14813 $as_echo_n "(cached) " >&6
14815 ac_cv_header_jerror_h
=$ac_header_preproc
14817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14818 $as_echo "$ac_cv_header_jerror_h" >&6; }
14821 if test $ac_cv_header_jerror_h = yes; then
14822 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14823 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14824 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14825 $as_echo_n "(cached) " >&6
14827 ac_check_lib_save_LIBS
=$LIBS
14828 LIBS
="-ljpeg $LIBS"
14829 cat >conftest.
$ac_ext <<_ACEOF
14832 cat confdefs.h
>>conftest.
$ac_ext
14833 cat >>conftest.
$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14836 /* Override any GCC internal prototype to avoid an error.
14837 Use char because int might match the return type of a GCC
14838 builtin and then its argument prototype would still apply. */
14842 char jpeg_destroy_compress ();
14846 return jpeg_destroy_compress ();
14851 rm -f conftest.
$ac_objext conftest
$ac_exeext
14852 if { (ac_try
="$ac_link"
14853 case "(($ac_try" in
14854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14855 *) ac_try_echo=$ac_try;;
14857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14858 $as_echo "$ac_try_echo") >&5
14859 (eval "$ac_link") 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } && {
14866 test -z "$ac_c_werror_flag" ||
14867 test ! -s conftest.err
14868 } && test -s conftest$ac_exeext && {
14869 test "$cross_compiling" = yes ||
14870 $as_test_x conftest$ac_exeext
14872 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14874 $as_echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14877 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14880 rm -rf conftest.dSYM
14881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14885 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14886 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14887 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14897 if test "${HAVE_JPEG}" = "yes"; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_JPEG 1
14902 cat >conftest.$ac_ext <<_ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <jpeglib.h>
14909 version=JPEG_LIB_VERSION
14912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14913 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14914 cat >>confdefs.h <<\_ACEOF
14915 #define HAVE_JPEG 1
14919 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14920 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14926 if test "${HAVE_JPEG}" = "yes"; then
14932 ### Use -lpng if available, unless `--with-png=no
'.
14935 if test "${HAVE_X11}" = "yes"; then
14936 if test "${with_png}" != "no"; then
14937 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14938 # in /usr/include/libpng.
14941 for ac_header in png.h libpng/png.h
14943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14946 $as_echo_n "checking for $ac_header... " >&6; }
14947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14948 $as_echo_n "(cached) " >&6
14950 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14951 $as_echo "$as_val"'`
14952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14953 $as_echo "$ac_res" >&6; }
14955 # Is the header compilable?
14956 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14957 $as_echo_n "checking $ac_header usability... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 $ac_includes_default
14965 #include <$ac_header>
14967 rm -f conftest.$ac_objext
14968 if { (ac_try="$ac_compile"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_compile") 2>conftest.er1
14977 grep -v '^
*+' conftest.er1 >conftest.err
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest.$ac_objext; then
14985 ac_header_compiler=yes
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's
/^
/|
/' conftest.$ac_ext >&5
14990 ac_header_compiler=no
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 $as_echo "$ac_header_compiler" >&6; }
14997 # Is the header present?
14998 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 $as_echo_n "checking $ac_header presence... " >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <$ac_header>
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15014 $as_echo "$ac_try_echo") >&5
15015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15017 grep -v '^
*+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } >/dev/null && {
15022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15025 ac_header_preproc=yes
15027 $as_echo "$as_me: failed program was:" >&5
15028 sed 's
/^
/|
/' conftest.$ac_ext >&5
15030 ac_header_preproc=no
15033 rm -f conftest.err conftest.$ac_ext
15034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035 $as_echo "$ac_header_preproc" >&6; }
15037 # So? What about this header?
15038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15041 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15043 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15044 ac_header_preproc=yes
15047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15048 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15050 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15052 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15054 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15056 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15058 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15063 $as_echo_n "checking for $ac_header... " >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065 $as_echo_n "(cached) " >&6
15067 eval "$as_ac_Header=\$ac_header_preproc"
15069 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15070 $as_echo "$as_val"'`
15071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15072 $as_echo "$ac_res" >&6; }
15075 if test `eval 'as_val
=${'$as_ac_Header'}
15076 $as_echo "$as_val"'` = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15085 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15086 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15087 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15088 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15089 $as_echo_n "(cached) " >&6
15091 ac_check_lib_save_LIBS=$LIBS
15092 LIBS="-lpng -lz -lm $LIBS"
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15106 char png_get_channels ();
15110 return png_get_channels ();
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15122 $as_echo "$ac_try_echo") >&5
15123 (eval "$ac_link") 2>conftest.er1
15125 grep -v '^
*+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest$ac_exeext && {
15133 test "$cross_compiling" = yes ||
15134 $as_test_x conftest$ac_exeext
15136 ac_cv_lib_png_png_get_channels=yes
15138 $as_echo "$as_me: failed program was:" >&5
15139 sed 's
/^
/|
/' conftest.$ac_ext >&5
15141 ac_cv_lib_png_png_get_channels=no
15144 rm -rf conftest.dSYM
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15146 conftest$ac_exeext conftest.$ac_ext
15147 LIBS=$ac_check_lib_save_LIBS
15149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15150 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15151 if test $ac_cv_lib_png_png_get_channels = yes; then
15158 if test "${HAVE_PNG}" = "yes"; then
15160 cat >>confdefs.h <<\_ACEOF
15164 LIBPNG="-lpng -lz -lm"
15169 ### Use -ltiff if available, unless `--with-tiff=no'.
15172 if test "${HAVE_X11}" = "yes"; then
15173 if test "${with_tiff}" != "no"; then
15174 if test "${ac_cv_header_tiffio_h+set}" = set; then
15175 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15176 $as_echo_n "checking for tiffio.h... " >&6; }
15177 if test "${ac_cv_header_tiffio_h+set}" = set; then
15178 $as_echo_n "(cached) " >&6
15180 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15181 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15183 # Is the header compilable?
15184 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15185 $as_echo_n "checking tiffio.h usability... " >&6; }
15186 cat >conftest.
$ac_ext <<_ACEOF
15189 cat confdefs.h
>>conftest.
$ac_ext
15190 cat >>conftest.
$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 $ac_includes_default
15193 #include <tiffio.h>
15195 rm -f conftest.
$ac_objext
15196 if { (ac_try
="$ac_compile"
15197 case "(($ac_try" in
15198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15202 $as_echo "$ac_try_echo") >&5
15203 (eval "$ac_compile") 2>conftest.er1
15205 grep -v '^ *+' conftest.er1 >conftest.err
15207 cat conftest.err >&5
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
15212 } && test -s conftest.$ac_objext; then
15213 ac_header_compiler=yes
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15218 ac_header_compiler=no
15221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223 $as_echo "$ac_header_compiler" >&6; }
15225 # Is the header present?
15226 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15227 $as_echo_n "checking tiffio.h presence... " >&6; }
15228 cat >conftest.$ac_ext <<_ACEOF
15231 cat confdefs.h >>conftest.$ac_ext
15232 cat >>conftest.$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15234 #include <tiffio.h>
15236 if { (ac_try="$ac_cpp conftest.$ac_ext"
15237 case "(($ac_try" in
15238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15239 *) ac_try_echo
=$ac_try;;
15241 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15242 $as_echo "$ac_try_echo") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15245 grep -v '^ *+' conftest.er1
>conftest.err
15247 cat conftest.err
>&5
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev
/null
&& {
15250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15253 ac_header_preproc
=yes
15255 $as_echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.
$ac_ext >&5
15258 ac_header_preproc
=no
15261 rm -f conftest.err conftest.
$ac_ext
15262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263 $as_echo "$ac_header_preproc" >&6; }
15265 # So? What about this header?
15266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15268 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15269 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15271 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15272 ac_header_preproc
=yes
15275 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15276 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15277 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15278 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15280 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15282 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15284 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15286 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15290 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15291 $as_echo_n "checking for tiffio.h... " >&6; }
15292 if test "${ac_cv_header_tiffio_h+set}" = set; then
15293 $as_echo_n "(cached) " >&6
15295 ac_cv_header_tiffio_h
=$ac_header_preproc
15297 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15298 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15301 if test $ac_cv_header_tiffio_h = yes; then
15303 # At least one tiff package requires the jpeg library.
15304 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15305 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15306 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15307 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15308 $as_echo_n "(cached) " >&6
15310 ac_check_lib_save_LIBS
=$LIBS
15311 LIBS
="-ltiff $tifflibs $LIBS"
15312 cat >conftest.
$ac_ext <<_ACEOF
15315 cat confdefs.h
>>conftest.
$ac_ext
15316 cat >>conftest.
$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15325 char TIFFGetVersion ();
15329 return TIFFGetVersion ();
15334 rm -f conftest.
$ac_objext conftest
$ac_exeext
15335 if { (ac_try
="$ac_link"
15336 case "(($ac_try" in
15337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15341 $as_echo "$ac_try_echo") >&5
15342 (eval "$ac_link") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } && {
15349 test -z "$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 } && test -s conftest$ac_exeext && {
15352 test "$cross_compiling" = yes ||
15353 $as_test_x conftest$ac_exeext
15355 ac_cv_lib_tiff_TIFFGetVersion=yes
15357 $as_echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_cv_lib_tiff_TIFFGetVersion=no
15363 rm -rf conftest.dSYM
15364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15365 conftest$ac_exeext conftest.$ac_ext
15366 LIBS=$ac_check_lib_save_LIBS
15368 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15369 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15370 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15379 if test "${HAVE_TIFF}" = "yes"; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define HAVE_TIFF 1
15390 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15393 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15394 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15395 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15396 $as_echo_n "checking for gif_lib.h... " >&6; }
15397 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15398 $as_echo_n "(cached) " >&6
15400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15401 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15403 # Is the header compilable?
15404 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15405 $as_echo_n "checking gif_lib.h usability... " >&6; }
15406 cat >conftest.$ac_ext <<_ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 $ac_includes_default
15413 #include <gif_lib.h>
15415 rm -f conftest.$ac_objext
15416 if { (ac_try="$ac_compile"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15422 $as_echo "$ac_try_echo") >&5
15423 (eval "$ac_compile") 2>conftest.er1
15425 grep -v '^
*+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest.$ac_objext; then
15433 ac_header_compiler=yes
15435 $as_echo "$as_me: failed program was:" >&5
15436 sed 's
/^
/|
/' conftest.$ac_ext >&5
15438 ac_header_compiler=no
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15443 $as_echo "$ac_header_compiler" >&6; }
15445 # Is the header present?
15446 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15447 $as_echo_n "checking gif_lib.h presence... " >&6; }
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 #include <gif_lib.h>
15456 if { (ac_try="$ac_cpp conftest.$ac_ext"
15457 case "(($ac_try" in
15458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15459 *) ac_try_echo=$ac_try;;
15461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15462 $as_echo "$ac_try_echo") >&5
15463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15465 grep -v '^
*+' conftest.er1 >conftest.err
15467 cat conftest.err >&5
15468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } >/dev/null && {
15470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15471 test ! -s conftest.err
15473 ac_header_preproc=yes
15475 $as_echo "$as_me: failed program was:" >&5
15476 sed 's
/^
/|
/' conftest.$ac_ext >&5
15478 ac_header_preproc=no
15481 rm -f conftest.err conftest.$ac_ext
15482 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15483 $as_echo "$ac_header_preproc" >&6; }
15485 # So? What about this header?
15486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15488 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15489 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15490 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15491 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15492 ac_header_preproc=yes
15495 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15496 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15497 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15498 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15499 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15500 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15501 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15502 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15503 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15504 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15505 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15506 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15510 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15511 $as_echo_n "checking for gif_lib.h... " >&6; }
15512 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15513 $as_echo_n "(cached) " >&6
15515 ac_cv_header_gif_lib_h=$ac_header_preproc
15517 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15518 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15521 if test $ac_cv_header_gif_lib_h = yes; then
15522 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15523 # Earlier versions can crash Emacs.
15524 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15525 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15526 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15529 ac_check_lib_save_LIBS=$LIBS
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15544 char EGifPutExtensionLast ();
15548 return EGifPutExtensionLast ();
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15560 $as_echo "$ac_try_echo") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^
*+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext && {
15571 test "$cross_compiling" = yes ||
15572 $as_test_x conftest$ac_exeext
15574 ac_cv_lib_gif_EGifPutExtensionLast=yes
15576 $as_echo "$as_me: failed program was:" >&5
15577 sed 's
/^
/|
/' conftest.$ac_ext >&5
15579 ac_cv_lib_gif_EGifPutExtensionLast=no
15582 rm -rf conftest.dSYM
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15587 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15588 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15589 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15599 if test "$HAVE_GIF" = yes; then
15601 elif test "$HAVE_GIF" = maybe; then
15602 # If gif_lib.h but no libgif, try libungif.
15603 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15604 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15605 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15606 $as_echo_n "(cached) " >&6
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-lungif $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15623 char EGifPutExtensionLast ();
15627 return EGifPutExtensionLast ();
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>conftest.er1
15642 grep -v '^
*+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext && {
15650 test "$cross_compiling" = yes ||
15651 $as_test_x conftest$ac_exeext
15653 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15655 $as_echo "$as_me: failed program was:" >&5
15656 sed 's
/^
/|
/' conftest.$ac_ext >&5
15658 ac_cv_lib_ungif_EGifPutExtensionLast=no
15661 rm -rf conftest.dSYM
15662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_check_lib_save_LIBS
15666 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15667 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15668 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15674 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15677 if test "${HAVE_GIF}" = "yes"; then
15679 cat >>confdefs.h <<\_ACEOF
15687 if test "${HAVE_X11}" = "yes"; then
15690 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15691 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15692 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15693 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15694 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15695 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15696 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15697 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15698 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15699 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15701 if test "X${MISSING}" != X; then
15702 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15704 Maybe some development libraries/packages are missing?
15705 If you don't want to link with them give
15707 as options to configure
" >&5
15708 $as_echo "$as_me: error
: The following required libraries were not found
:
15710 Maybe some development libraries
/packages are missing?
15711 If you don
't want to link with them give
15713 as options to configure" >&2;}
15714 { (exit 1); exit 1; }; }
15718 ### Use -lgpm if available, unless `--with-gpm=no'.
15721 if test "${with_gpm}" != "no"; then
15722 if test "${ac_cv_header_gpm_h+set}" = set; then
15723 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15724 $as_echo_n "checking for gpm.h... " >&6; }
15725 if test "${ac_cv_header_gpm_h+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15729 $as_echo "$ac_cv_header_gpm_h" >&6; }
15731 # Is the header compilable?
15732 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15733 $as_echo_n "checking gpm.h usability... " >&6; }
15734 cat >conftest.
$ac_ext <<_ACEOF
15737 cat confdefs.h
>>conftest.
$ac_ext
15738 cat >>conftest.
$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 $ac_includes_default
15743 rm -f conftest.
$ac_objext
15744 if { (ac_try
="$ac_compile"
15745 case "(($ac_try" in
15746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest.$ac_objext; then
15761 ac_header_compiler=yes
15763 $as_echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 ac_header_compiler=no
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 $as_echo "$ac_header_compiler" >&6; }
15773 # Is the header present?
15774 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15775 $as_echo_n "checking gpm.h presence... " >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15784 if { (ac_try="$ac_cpp conftest.$ac_ext"
15785 case "(($ac_try" in
15786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15787 *) ac_try_echo
=$ac_try;;
15789 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15790 $as_echo "$ac_try_echo") >&5
15791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15793 grep -v '^ *+' conftest.er1
>conftest.err
15795 cat conftest.err
>&5
15796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } >/dev
/null
&& {
15798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15801 ac_header_preproc
=yes
15803 $as_echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.
$ac_ext >&5
15806 ac_header_preproc
=no
15809 rm -f conftest.err conftest.
$ac_ext
15810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 $as_echo "$ac_header_preproc" >&6; }
15813 # So? What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15817 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15818 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15819 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15820 ac_header_preproc
=yes
15823 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15824 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15825 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15826 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15827 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15828 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15829 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15830 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15831 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15832 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15833 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15834 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15838 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15839 $as_echo_n "checking for gpm.h... " >&6; }
15840 if test "${ac_cv_header_gpm_h+set}" = set; then
15841 $as_echo_n "(cached) " >&6
15843 ac_cv_header_gpm_h
=$ac_header_preproc
15845 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15846 $as_echo "$ac_cv_header_gpm_h" >&6; }
15849 if test $ac_cv_header_gpm_h = yes; then
15850 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15851 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15852 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15855 ac_check_lib_save_LIBS
=$LIBS
15857 cat >conftest.
$ac_ext <<_ACEOF
15860 cat confdefs.h
>>conftest.
$ac_ext
15861 cat >>conftest.
$ac_ext <<_ACEOF
15862 /* end confdefs.h. */
15864 /* Override any GCC internal prototype to avoid an error.
15865 Use char because int might match the return type of a GCC
15866 builtin and then its argument prototype would still apply. */
15874 return Gpm_Open ();
15879 rm -f conftest.
$ac_objext conftest
$ac_exeext
15880 if { (ac_try
="$ac_link"
15881 case "(($ac_try" in
15882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15886 $as_echo "$ac_try_echo") >&5
15887 (eval "$ac_link") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest$ac_exeext && {
15897 test "$cross_compiling" = yes ||
15898 $as_test_x conftest$ac_exeext
15900 ac_cv_lib_gpm_Gpm_Open=yes
15902 $as_echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_cv_lib_gpm_Gpm_Open=no
15908 rm -rf conftest.dSYM
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15913 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15914 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15915 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15923 if test "${HAVE_GPM}" = "yes"; then
15925 cat >>confdefs.h <<\_ACEOF
15934 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15935 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15936 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15937 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15938 $as_echo_n "(cached) " >&6
15940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15941 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15943 # Is the header compilable?
15944 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15945 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15946 cat >conftest.$ac_ext <<_ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 $ac_includes_default
15953 #include <malloc/malloc.h>
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15959 *) ac_try_echo
=$ac_try;;
15961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15962 $as_echo "$ac_try_echo") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15965 grep -v '^ *+' conftest.er1
>conftest.err
15967 cat conftest.err
>&5
15968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.
$ac_objext; then
15973 ac_header_compiler
=yes
15975 $as_echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.
$ac_ext >&5
15978 ac_header_compiler
=no
15981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15982 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15983 $as_echo "$ac_header_compiler" >&6; }
15985 # Is the header present?
15986 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15987 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15988 cat >conftest.
$ac_ext <<_ACEOF
15991 cat confdefs.h
>>conftest.
$ac_ext
15992 cat >>conftest.
$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 #include <malloc/malloc.h>
15996 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15997 case "(($ac_try" in
15998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } >/dev/null && {
16010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16013 ac_header_preproc=yes
16015 $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_header_preproc=no
16021 rm -f conftest.err conftest.$ac_ext
16022 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16023 $as_echo "$ac_header_preproc" >&6; }
16025 # So? What about this header?
16026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16028 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16029 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16030 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16031 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16032 ac_header_preproc=yes
16035 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16036 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16037 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16038 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16039 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16040 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16041 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16042 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16043 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16044 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16045 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16046 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16050 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16051 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16052 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16053 $as_echo_n "(cached) " >&6
16055 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16057 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16058 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16061 if test $ac_cv_header_malloc_malloc_h = yes; then
16063 cat >>confdefs.h <<\_ACEOF
16064 #define HAVE_MALLOC_MALLOC_H 1
16071 ### Use NeXTstep API to implement GUI.
16072 if test "${HAVE_NS}" = "yes"; then
16074 cat >>confdefs.h <<\_ACEOF
16078 if test "${NS_IMPL_COCOA}" = "yes"; then
16080 cat >>confdefs.h <<\_ACEOF
16081 #define NS_IMPL_COCOA 1
16086 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16088 cat >>confdefs.h <<\_ACEOF
16089 #define NS_IMPL_GNUSTEP 1
16092 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16094 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16096 cat >>confdefs.h <<\_ACEOF
16097 #define NS_HAVE_NSINTEGER 1
16101 # We also have mouse menus.
16107 ### Use session management (-lSM -lICE) if available
16110 if test "${HAVE_X11}" = "yes"; then
16111 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16112 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16113 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16114 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16115 $as_echo_n "(cached) " >&6
16117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16118 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16120 # Is the header compilable?
16121 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16122 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <X11/SM/SMlib.h>
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16136 *) ac_try_echo
=$ac_try;;
16138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_compile") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1
>conftest.err
16144 cat conftest.err
>&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest.
$ac_objext; then
16150 ac_header_compiler
=yes
16152 $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.
$ac_ext >&5
16155 ac_header_compiler
=no
16158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16160 $as_echo "$ac_header_compiler" >&6; }
16162 # Is the header present?
16163 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16164 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16165 cat >conftest.
$ac_ext <<_ACEOF
16168 cat confdefs.h
>>conftest.
$ac_ext
16169 cat >>conftest.
$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16171 #include <X11/SM/SMlib.h>
16173 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16174 case "(($ac_try" in
16175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16179 $as_echo "$ac_try_echo") >&5
16180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16182 grep -v '^ *+' conftest.er1 >conftest.err
16184 cat conftest.err >&5
16185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } >/dev/null && {
16187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16188 test ! -s conftest.err
16190 ac_header_preproc=yes
16192 $as_echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_header_preproc=no
16198 rm -f conftest.err conftest.$ac_ext
16199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16200 $as_echo "$ac_header_preproc" >&6; }
16202 # So? What about this header?
16203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16205 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16206 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16207 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16208 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16209 ac_header_preproc=yes
16212 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16213 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16214 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16215 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16216 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16217 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16218 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16219 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16220 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16221 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16222 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16223 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16227 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16228 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16229 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16230 $as_echo_n "(cached) " >&6
16232 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16235 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16238 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16239 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16240 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16241 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16242 $as_echo_n "(cached) " >&6
16244 ac_check_lib_save_LIBS=$LIBS
16245 LIBS="-lSM -lICE $LIBS"
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16253 /* Override any GCC internal prototype to avoid an error.
16254 Use char because int might match the return type of a GCC
16255 builtin and then its argument prototype would still apply. */
16259 char SmcOpenConnection ();
16263 return SmcOpenConnection ();
16268 rm -f conftest.$ac_objext conftest$ac_exeext
16269 if { (ac_try="$ac_link"
16270 case "(($ac_try" in
16271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16272 *) ac_try_echo
=$ac_try;;
16274 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16275 $as_echo "$ac_try_echo") >&5
16276 (eval "$ac_link") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1
>conftest.err
16280 cat conftest.err
>&5
16281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest
$ac_exeext && {
16286 test "$cross_compiling" = yes ||
16287 $as_test_x conftest
$ac_exeext
16289 ac_cv_lib_SM_SmcOpenConnection
=yes
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.
$ac_ext >&5
16294 ac_cv_lib_SM_SmcOpenConnection
=no
16297 rm -rf conftest.dSYM
16298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16299 conftest
$ac_exeext conftest.
$ac_ext
16300 LIBS
=$ac_check_lib_save_LIBS
16302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16303 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16304 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16312 if test "${HAVE_X_SM}" = "yes"; then
16314 cat >>confdefs.h
<<\_ACEOF
16315 #define HAVE_X_SM 1
16318 LIBXSM
="-lSM -lICE"
16321 *) LIBS
="$LIBXSM $LIBS" ;;
16327 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16328 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16329 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16330 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16331 $as_echo_n "(cached) " >&6
16333 cat >conftest.
$ac_ext <<_ACEOF
16336 cat confdefs.h
>>conftest.
$ac_ext
16337 cat >>conftest.
$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16348 rm -f conftest.
$ac_objext conftest
$ac_exeext
16349 if { (ac_try
="$ac_link"
16350 case "(($ac_try" in
16351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16355 $as_echo "$ac_try_echo") >&5
16356 (eval "$ac_link") 2>conftest.er1
16358 grep -v '^ *+' conftest.er1 >conftest.err
16360 cat conftest.err >&5
16361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } && {
16363 test -z "$ac_c_werror_flag" ||
16364 test ! -s conftest.err
16365 } && test -s conftest$ac_exeext && {
16366 test "$cross_compiling" = yes ||
16367 $as_test_x conftest$ac_exeext
16369 emacs_cv_netdb_declares_h_errno=yes
16371 $as_echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 emacs_cv_netdb_declares_h_errno=no
16377 rm -rf conftest.dSYM
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379 conftest$ac_exeext conftest.$ac_ext
16381 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16382 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16383 if test $emacs_cv_netdb_declares_h_errno = yes; then
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_H_ERRNO 1
16391 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16392 # for constant arguments. Useless!
16393 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16394 $as_echo_n "checking for working alloca.h... " >&6; }
16395 if test "${ac_cv_working_alloca_h+set}" = set; then
16396 $as_echo_n "(cached) " >&6
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <alloca.h>
16408 char *p = (char *) alloca (2 * sizeof (int));
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (ac_try="$ac_link"
16416 case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1
>conftest.err
16426 cat conftest.err
>&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest
$ac_exeext && {
16432 test "$cross_compiling" = yes ||
16433 $as_test_x conftest
$ac_exeext
16435 ac_cv_working_alloca_h
=yes
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.
$ac_ext >&5
16440 ac_cv_working_alloca_h
=no
16443 rm -rf conftest.dSYM
16444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16445 conftest
$ac_exeext conftest.
$ac_ext
16447 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16448 $as_echo "$ac_cv_working_alloca_h" >&6; }
16449 if test $ac_cv_working_alloca_h = yes; then
16451 cat >>confdefs.h
<<\_ACEOF
16452 #define HAVE_ALLOCA_H 1
16457 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16458 $as_echo_n "checking for alloca... " >&6; }
16459 if test "${ac_cv_func_alloca_works+set}" = set; then
16460 $as_echo_n "(cached) " >&6
16462 cat >conftest.
$ac_ext <<_ACEOF
16465 cat confdefs.h
>>conftest.
$ac_ext
16466 cat >>conftest.
$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16469 # define alloca __builtin_alloca
16472 # include <malloc.h>
16473 # define alloca _alloca
16475 # ifdef HAVE_ALLOCA_H
16476 # include <alloca.h>
16481 # ifndef alloca /* predefined by HP cc +Olibcalls */
16492 char *p = (char *) alloca (1);
16498 rm -f conftest.
$ac_objext conftest
$ac_exeext
16499 if { (ac_try
="$ac_link"
16500 case "(($ac_try" in
16501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505 $as_echo "$ac_try_echo") >&5
16506 (eval "$ac_link") 2>conftest.er1
16508 grep -v '^ *+' conftest.er1 >conftest.err
16510 cat conftest.err >&5
16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && {
16513 test -z "$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 } && test -s conftest$ac_exeext && {
16516 test "$cross_compiling" = yes ||
16517 $as_test_x conftest$ac_exeext
16519 ac_cv_func_alloca_works=yes
16521 $as_echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16524 ac_cv_func_alloca_works=no
16527 rm -rf conftest.dSYM
16528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16529 conftest$ac_exeext conftest.$ac_ext
16531 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16532 $as_echo "$ac_cv_func_alloca_works" >&6; }
16534 if test $ac_cv_func_alloca_works = yes; then
16536 cat >>confdefs.h <<\_ACEOF
16537 #define HAVE_ALLOCA 1
16541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16542 # that cause trouble. Some versions do not even contain alloca or
16543 # contain a buggy version. If you still want to use their alloca,
16544 # use ar to extract alloca.o from them instead of compiling alloca.c.
16546 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16548 cat >>confdefs.h <<\_ACEOF
16553 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16554 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16555 if test "${ac_cv_os_cray+set}" = set; then
16556 $as_echo_n "(cached
) " >&6
16558 cat >conftest.$ac_ext <<_ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564 #if defined CRAY && ! defined CRAY2
16571 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16572 $EGREP "webecray
" >/dev/null 2>&1; then
16580 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16581 $as_echo "$ac_cv_os_cray" >&6; }
16582 if test $ac_cv_os_cray = yes; then
16583 for ac_func in _getb67 GETB67 getb67; do
16584 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16585 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16586 $as_echo_n "checking
for $ac_func...
" >&6; }
16587 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16588 $as_echo_n "(cached
) " >&6
16590 cat >conftest.$ac_ext <<_ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16598 #define $ac_func innocuous_$ac_func
16600 /* System header to define __stub macros and hopefully few prototypes,
16601 which can conflict with char $ac_func (); below.
16602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16603 <limits.h> exists even on freestanding compilers. */
16606 # include <limits.h>
16608 # include <assert.h>
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
16620 /* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623 #if defined __stub_$ac_func || defined __stub___$ac_func
16630 return $ac_func ();
16635 rm -f conftest.$ac_objext conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_link") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16656 eval "$as_ac_var=yes"
16658 $as_echo "$as_me: failed program was
:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 eval "$as_ac_var=no
"
16664 rm -rf conftest.dSYM
16665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16666 conftest$ac_exeext conftest.$ac_ext
16668 ac_res=`eval 'as_val=${'$as_ac_var'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16671 $as_echo "$ac_res" >&6; }
16672 if test `eval 'as_val=${'$as_ac_var'}
16673 $as_echo "$as_val"'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define CRAY_STACKSEG_END $ac_func
16685 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16686 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16687 if test "${ac_cv_c_stack_direction+set}" = set; then
16688 $as_echo_n "(cached
) " >&6
16690 if test "$cross_compiling" = yes; then
16691 ac_cv_c_stack_direction=0
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 $ac_includes_default
16701 find_stack_direction ()
16703 static char *addr = 0;
16708 return find_stack_direction ();
16711 return (&dummy > addr) ? 1 : -1;
16717 return find_stack_direction () < 0;
16720 rm -f conftest$ac_exeext
16721 if { (ac_try="$ac_link"
16722 case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16727 $as_echo "$ac_try_echo") >&5
16728 (eval "$ac_link") 2>&5
16730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16732 { (case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16737 $as_echo "$ac_try_echo") >&5
16738 (eval "$ac_try") 2>&5
16740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_c_stack_direction=1
16744 $as_echo "$as_me: program exited with status
$ac_status" >&5
16745 $as_echo "$as_me: failed program was
:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ( exit $ac_status )
16749 ac_cv_c_stack_direction=-1
16751 rm -rf conftest.dSYM
16752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16757 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16758 $as_echo "$ac_cv_c_stack_direction" >&6; }
16760 cat >>confdefs.h <<_ACEOF
16761 #define STACK_DIRECTION $ac_cv_c_stack_direction
16768 if test x"$ac_cv_func_alloca_works" != xyes; then
16769 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16770 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16771 { (exit 1); exit 1; }; }
16774 # fmod, logb, and frexp are found in -lm on most systems.
16775 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16777 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16778 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16779 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16780 $as_echo_n "(cached
) " >&6
16782 ac_check_lib_save_LIBS=$LIBS
16784 cat >conftest.$ac_ext <<_ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16791 /* Override any GCC internal prototype to avoid an error.
16792 Use char because int might match the return type of a GCC
16793 builtin and then its argument prototype would still apply. */
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (ac_try="$ac_link"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16813 $as_echo "$ac_try_echo") >&5
16814 (eval "$ac_link") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest$ac_exeext && {
16824 test "$cross_compiling" = yes ||
16825 $as_test_x conftest$ac_exeext
16827 ac_cv_lib_m_sqrt=yes
16829 $as_echo "$as_me: failed program was
:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16832 ac_cv_lib_m_sqrt=no
16835 rm -rf conftest.dSYM
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16840 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16841 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16842 if test $ac_cv_lib_m_sqrt = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_LIBM 1
16852 # Check for mail-locking functions in a "mail" library. Probably this should
16853 # have the same check as for liblockfile below.
16854 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16855 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16856 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16857 $as_echo_n "(cached
) " >&6
16859 ac_check_lib_save_LIBS=$LIBS
16860 LIBS="-lmail $LIBS"
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16878 return maillock ();
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16890 $as_echo "$ac_try_echo") >&5
16891 (eval "$ac_link") 2>conftest.er1
16893 grep -v '^ *+' conftest.er1 >conftest.err
16895 cat conftest.err >&5
16896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16897 (exit $ac_status); } && {
16898 test -z "$ac_c_werror_flag" ||
16899 test ! -s conftest.err
16900 } && test -s conftest$ac_exeext && {
16901 test "$cross_compiling" = yes ||
16902 $as_test_x conftest$ac_exeext
16904 ac_cv_lib_mail_maillock=yes
16906 $as_echo "$as_me: failed program was
:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16909 ac_cv_lib_mail_maillock=no
16912 rm -rf conftest.dSYM
16913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16914 conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16917 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16918 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16919 if test $ac_cv_lib_mail_maillock = yes; then
16925 if test $have_mail = yes; then
16927 LIBS="$LIBS_MAIL $LIBS"
16929 cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_LIBMAIL 1
16936 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16937 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16938 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16939 $as_echo_n "(cached
) " >&6
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-llockfile $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16960 return maillock ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16972 $as_echo "$ac_try_echo") >&5
16973 (eval "$ac_link") 2>conftest.er1
16975 grep -v '^ *+' conftest.er1 >conftest.err
16977 cat conftest.err >&5
16978 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest$ac_exeext && {
16983 test "$cross_compiling" = yes ||
16984 $as_test_x conftest$ac_exeext
16986 ac_cv_lib_lockfile_maillock=yes
16988 $as_echo "$as_me: failed program was
:" >&5
16989 sed 's/^/| /' conftest.$ac_ext >&5
16991 ac_cv_lib_lockfile_maillock=no
16994 rm -rf conftest.dSYM
16995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17000 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17001 if test $ac_cv_lib_lockfile_maillock = yes; then
17007 if test $have_lockfile = yes; then
17008 LIBS_MAIL=-llockfile
17009 LIBS="$LIBS_MAIL $LIBS"
17011 cat >>confdefs.h <<\_ACEOF
17012 #define HAVE_LIBLOCKFILE 1
17016 # If we have the shared liblockfile, assume we must use it for mail
17017 # locking (e.g. Debian). If we couldn't link against liblockfile
17018 # (no liblockfile.a installed), ensure that we don't need to.
17019 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17020 set dummy liblockfile.so; ac_word=$2
17021 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17022 $as_echo_n "checking
for $ac_word...
" >&6; }
17023 if test "${ac_cv_prog_liblockfile+set}" = set; then
17024 $as_echo_n "(cached
) " >&6
17026 if test -n "$liblockfile"; then
17027 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17031 for as_dir in $as_dummy
17034 test -z "$as_dir" && as_dir=.
17035 for ac_exec_ext in '' $ac_executable_extensions; do
17036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17037 ac_cv_prog_liblockfile="yes"
17038 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17045 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17048 liblockfile=$ac_cv_prog_liblockfile
17049 if test -n "$liblockfile"; then
17050 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17051 $as_echo "$liblockfile" >&6; }
17053 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17054 $as_echo "no
" >&6; }
17058 if test $ac_cv_prog_liblockfile = yes; then
17059 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17060 This probably means that movemail could lose mail.
17061 There may be a \`development' package to
install containing liblockfile.
" >&5
17062 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17063 This probably means that movemail could lose mail.
17064 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17065 { (exit 1); exit 1; }; }
17069 for ac_func in touchlock
17071 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17072 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17073 $as_echo_n "checking
for $ac_func...
" >&6; }
17074 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17075 $as_echo_n "(cached
) " >&6
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17093 # include <limits.h>
17095 # include <assert.h>
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17117 return $ac_func ();
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (ac_try="$ac_link"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17129 $as_echo "$ac_try_echo") >&5
17130 (eval "$ac_link") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest$ac_exeext && {
17140 test "$cross_compiling" = yes ||
17141 $as_test_x conftest$ac_exeext
17143 eval "$as_ac_var=yes"
17145 $as_echo "$as_me: failed program was
:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 eval "$as_ac_var=no
"
17151 rm -rf conftest.dSYM
17152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17153 conftest$ac_exeext conftest.$ac_ext
17155 ac_res=`eval 'as_val=${'$as_ac_var'}
17156 $as_echo "$as_val"'`
17157 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17158 $as_echo "$ac_res" >&6; }
17159 if test `eval 'as_val=${'$as_ac_var'}
17160 $as_echo "$as_val"'` = yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17169 for ac_header in maillock.h
17171 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17173 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17174 $as_echo_n "checking
for $ac_header...
" >&6; }
17175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17176 $as_echo_n "(cached
) " >&6
17178 ac_res=`eval 'as_val=${'$as_ac_Header'}
17179 $as_echo "$as_val"'`
17180 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17181 $as_echo "$ac_res" >&6; }
17183 # Is the header compilable?
17184 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17185 $as_echo_n "checking
$ac_header usability...
" >&6; }
17186 cat >conftest.$ac_ext <<_ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 $ac_includes_default
17193 #include <$ac_header>
17195 rm -f conftest.$ac_objext
17196 if { (ac_try="$ac_compile"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_compile") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest.$ac_objext; then
17213 ac_header_compiler=yes
17215 $as_echo "$as_me: failed program was
:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_compiler=no
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17223 $as_echo "$ac_header_compiler" >&6; }
17225 # Is the header present?
17226 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17227 $as_echo_n "checking
$ac_header presence...
" >&6; }
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 #include <$ac_header>
17236 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17242 $as_echo "$ac_try_echo") >&5
17243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17249 (exit $ac_status); } >/dev/null && {
17250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17253 ac_header_preproc=yes
17255 $as_echo "$as_me: failed program was
:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_header_preproc=no
17261 rm -f conftest.err conftest.$ac_ext
17262 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17263 $as_echo "$ac_header_preproc" >&6; }
17265 # So? What about this header?
17266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17268 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17269 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17270 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17272 ac_header_preproc=yes
17275 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17276 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17277 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17278 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17279 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17280 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17281 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17282 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17283 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17285 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17286 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17290 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17291 $as_echo_n "checking
for $ac_header...
" >&6; }
17292 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17293 $as_echo_n "(cached
) " >&6
17295 eval "$as_ac_Header=\
$ac_header_preproc"
17297 ac_res=`eval 'as_val=${'$as_ac_Header'}
17298 $as_echo "$as_val"'`
17299 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17300 $as_echo "$ac_res" >&6; }
17303 if test `eval 'as_val=${'$as_ac_Header'}
17304 $as_echo "$as_val"'` = yes; then
17305 cat >>confdefs.h <<_ACEOF
17306 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17386 for ac_func in gethostname getdomainname dup2 \
17387 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17388 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17389 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17390 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17391 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17392 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17393 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17394 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17395 cfmakeraw cfsetspeed
17397 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17398 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17399 $as_echo_n "checking
for $ac_func...
" >&6; }
17400 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17401 $as_echo_n "(cached
) " >&6
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17411 #define $ac_func innocuous_$ac_func
17413 /* System header to define __stub macros and hopefully few prototypes,
17414 which can conflict with char $ac_func (); below.
17415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17416 <limits.h> exists even on freestanding compilers. */
17419 # include <limits.h>
17421 # include <assert.h>
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17433 /* The GNU C library defines this for functions which it implements
17434 to always fail with ENOSYS. Some functions are actually named
17435 something starting with __ and the normal name is an alias. */
17436 #if defined __stub_$ac_func || defined __stub___$ac_func
17443 return $ac_func ();
17448 rm -f conftest.$ac_objext conftest$ac_exeext
17449 if { (ac_try="$ac_link"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17455 $as_echo "$ac_try_echo") >&5
17456 (eval "$ac_link") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest$ac_exeext && {
17466 test "$cross_compiling" = yes ||
17467 $as_test_x conftest$ac_exeext
17469 eval "$as_ac_var=yes"
17471 $as_echo "$as_me: failed program was
:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17474 eval "$as_ac_var=no
"
17477 rm -rf conftest.dSYM
17478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17479 conftest$ac_exeext conftest.$ac_ext
17481 ac_res=`eval 'as_val=${'$as_ac_var'}
17482 $as_echo "$as_val"'`
17483 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17484 $as_echo "$ac_res" >&6; }
17485 if test `eval 'as_val=${'$as_ac_var'}
17486 $as_echo "$as_val"'` = yes; then
17487 cat >>confdefs.h <<_ACEOF
17488 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17496 for ac_header in sys/un.h
17498 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17500 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17501 $as_echo_n "checking
for $ac_header...
" >&6; }
17502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17503 $as_echo_n "(cached
) " >&6
17505 ac_res=`eval 'as_val=${'$as_ac_Header'}
17506 $as_echo "$as_val"'`
17507 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17508 $as_echo "$ac_res" >&6; }
17510 # Is the header compilable?
17511 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17512 $as_echo_n "checking
$ac_header usability...
" >&6; }
17513 cat >conftest.$ac_ext <<_ACEOF
17516 cat confdefs.h >>conftest.$ac_ext
17517 cat >>conftest.$ac_ext <<_ACEOF
17518 /* end confdefs.h. */
17519 $ac_includes_default
17520 #include <$ac_header>
17522 rm -f conftest.$ac_objext
17523 if { (ac_try="$ac_compile"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17540 ac_header_compiler=yes
17542 $as_echo "$as_me: failed program was
:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_header_compiler=no
17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17550 $as_echo "$ac_header_compiler" >&6; }
17552 # Is the header present?
17553 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17554 $as_echo_n "checking
$ac_header presence...
" >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 #include <$ac_header>
17563 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17569 $as_echo "$ac_try_echo") >&5
17570 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17572 grep -v '^ *+' conftest.er1 >conftest.err
17574 cat conftest.err >&5
17575 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17576 (exit $ac_status); } >/dev/null && {
17577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17578 test ! -s conftest.err
17580 ac_header_preproc=yes
17582 $as_echo "$as_me: failed program was
:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17585 ac_header_preproc=no
17588 rm -f conftest.err conftest.$ac_ext
17589 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17590 $as_echo "$ac_header_preproc" >&6; }
17592 # So? What about this header?
17593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17595 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17596 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17597 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17599 ac_header_preproc=yes
17602 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17603 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17604 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17605 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17606 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17607 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17608 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17609 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17610 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17612 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17613 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17617 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17618 $as_echo_n "checking
for $ac_header...
" >&6; }
17619 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17620 $as_echo_n "(cached
) " >&6
17622 eval "$as_ac_Header=\
$ac_header_preproc"
17624 ac_res=`eval 'as_val=${'$as_ac_Header'}
17625 $as_echo "$as_val"'`
17626 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17627 $as_echo "$ac_res" >&6; }
17630 if test `eval 'as_val=${'$as_ac_Header'}
17631 $as_echo "$as_val"'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17645 for ac_header in $ac_header_list
17647 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17648 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17649 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17650 $as_echo_n "checking
for $ac_header...
" >&6; }
17651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17652 $as_echo_n "(cached
) " >&6
17654 ac_res=`eval 'as_val=${'$as_ac_Header'}
17655 $as_echo "$as_val"'`
17656 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17657 $as_echo "$ac_res" >&6; }
17659 # Is the header compilable?
17660 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17661 $as_echo_n "checking
$ac_header usability...
" >&6; }
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 #include <$ac_header>
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17689 ac_header_compiler=yes
17691 $as_echo "$as_me: failed program was
:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_header_compiler=no
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17699 $as_echo "$ac_header_compiler" >&6; }
17701 # Is the header present?
17702 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17703 $as_echo_n "checking
$ac_header presence...
" >&6; }
17704 cat >conftest.$ac_ext <<_ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <$ac_header>
17712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1 >conftest.err
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17725 (exit $ac_status); } >/dev/null && {
17726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17729 ac_header_preproc=yes
17731 $as_echo "$as_me: failed program was
:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_header_preproc=no
17737 rm -f conftest.err conftest.$ac_ext
17738 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17739 $as_echo "$ac_header_preproc" >&6; }
17741 # So? What about this header?
17742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17744 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17745 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17746 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17748 ac_header_preproc=yes
17751 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17752 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17754 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17755 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17756 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17758 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17759 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17761 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17762 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17766 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17767 $as_echo_n "checking
for $ac_header...
" >&6; }
17768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17769 $as_echo_n "(cached
) " >&6
17771 eval "$as_ac_Header=\
$ac_header_preproc"
17773 ac_res=`eval 'as_val=${'$as_ac_Header'}
17774 $as_echo "$as_val"'`
17775 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17776 $as_echo "$ac_res" >&6; }
17779 if test `eval 'as_val=${'$as_ac_Header'}
17780 $as_echo "$as_val"'` = yes; then
17781 cat >>confdefs.h <<_ACEOF
17782 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17797 for ac_func in $ac_func_list
17799 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17800 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17801 $as_echo_n "checking
for $ac_func...
" >&6; }
17802 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17803 $as_echo_n "(cached
) " >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17813 #define $ac_func innocuous_$ac_func
17815 /* System header to define __stub macros and hopefully few prototypes,
17816 which can conflict with char $ac_func (); below.
17817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818 <limits.h> exists even on freestanding compilers. */
17821 # include <limits.h>
17823 # include <assert.h>
17828 /* Override any GCC internal prototype to avoid an error.
17829 Use char because int might match the return type of a GCC
17830 builtin and then its argument prototype would still apply. */
17835 /* The GNU C library defines this for functions which it implements
17836 to always fail with ENOSYS. Some functions are actually named
17837 something starting with __ and the normal name is an alias. */
17838 #if defined __stub_$ac_func || defined __stub___$ac_func
17845 return $ac_func ();
17850 rm -f conftest.$ac_objext conftest$ac_exeext
17851 if { (ac_try="$ac_link"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17857 $as_echo "$ac_try_echo") >&5
17858 (eval "$ac_link") 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest$ac_exeext && {
17868 test "$cross_compiling" = yes ||
17869 $as_test_x conftest$ac_exeext
17871 eval "$as_ac_var=yes"
17873 $as_echo "$as_me: failed program was
:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 eval "$as_ac_var=no
"
17879 rm -rf conftest.dSYM
17880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17881 conftest$ac_exeext conftest.$ac_ext
17883 ac_res=`eval 'as_val=${'$as_ac_var'}
17884 $as_echo "$as_val"'`
17885 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17886 $as_echo "$ac_res" >&6; }
17887 if test `eval 'as_val=${'$as_ac_var'}
17888 $as_echo "$as_val"'` = yes; then
17889 cat >>confdefs.h <<_ACEOF
17890 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17912 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17913 $as_echo_n "checking
for working mktime...
" >&6; }
17914 if test "${ac_cv_func_working_mktime+set}" = set; then
17915 $as_echo_n "(cached
) " >&6
17917 if test "$cross_compiling" = yes; then
17918 ac_cv_func_working_mktime=no
17920 cat >conftest.$ac_ext <<_ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h. */
17926 /* Test program from Paul Eggert and Tony Leneis. */
17927 #ifdef TIME_WITH_SYS_TIME
17928 # include <sys/time.h>
17931 # ifdef HAVE_SYS_TIME_H
17932 # include <sys/time.h>
17938 #include <limits.h>
17939 #include <stdlib.h>
17941 #ifdef HAVE_UNISTD_H
17942 # include <unistd.h>
17946 # define alarm(X) /* empty */
17949 /* Work around redefinition to rpl_putenv by other config tests. */
17952 static time_t time_t_max;
17953 static time_t time_t_min;
17955 /* Values we'll use to set the TZ environment variable. */
17956 static char *tz_strings[] = {
17957 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17958 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17960 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17962 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17963 Based on a problem report from Andreas Jaeger. */
17965 spring_forward_gap ()
17967 /* glibc (up to about 1998-10-07) failed this test. */
17970 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17971 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17972 on systems that don't support the Olson extension, or don't have the
17973 full zoneinfo tables installed. */
17974 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17983 return mktime (&tm) != (time_t) -1;
17991 return ! (lt = localtime (&now)) || mktime (lt) == now;
17998 return (mktime_test1 (now)
17999 && mktime_test1 ((time_t) (time_t_max - now))
18000 && mktime_test1 ((time_t) (time_t_min + now)));
18006 /* Based on code from Ariel Faigon. */
18016 return tm.tm_mon == 2 && tm.tm_mday == 31;
18025 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18026 now = mktime (&tm);
18027 if (now != (time_t) -1)
18029 struct tm *lt = localtime (&now);
18031 && lt->tm_year == tm.tm_year
18032 && lt->tm_mon == tm.tm_mon
18033 && lt->tm_mday == tm.tm_mday
18034 && lt->tm_hour == tm.tm_hour
18035 && lt->tm_min == tm.tm_min
18036 && lt->tm_sec == tm.tm_sec
18037 && lt->tm_yday == tm.tm_yday
18038 && lt->tm_wday == tm.tm_wday
18039 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18040 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18049 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18050 ignoring leap seconds. */
18051 unsigned long int answer = 2527315200UL;
18055 tm.tm_year = 2050 - 1900;
18058 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18061 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18062 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18063 on systems that don't support the Olson extension, or don't have the
18064 full zoneinfo tables installed. */
18065 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18069 /* Check that the result is either a failure, or close enough
18070 to the correct answer that we can assume the discrepancy is
18071 due to leap seconds. */
18072 return (t == (time_t) -1
18073 || (0 < t && answer - 120 <= t && t <= answer + 120));
18082 /* This test makes some buggy mktime implementations loop.
18083 Give up after 60 seconds; a mktime slower than that
18084 isn't worth using anyway. */
18089 t = (time_t_max << 1) + 1;
18090 if (t <= time_t_max)
18094 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18096 delta = time_t_max / 997; /* a suitable prime number */
18097 for (i = 0; i < N_STRINGS; i++)
18100 putenv (tz_strings[i]);
18102 for (t = 0; t <= time_t_max - delta; t += delta)
18103 if (! mktime_test (t))
18105 if (! (mktime_test ((time_t) 1)
18106 && mktime_test ((time_t) (60 * 60))
18107 && mktime_test ((time_t) (60 * 60 * 24))))
18110 for (j = 1; ; j <<= 1)
18111 if (! bigtime_test (j))
18113 else if (INT_MAX / 2 < j)
18115 if (! bigtime_test (INT_MAX))
18118 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18121 rm -f conftest$ac_exeext
18122 if { (ac_try="$ac_link"
18123 case "(($ac_try" in
18124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125 *) ac_try_echo=$ac_try;;
18127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18128 $as_echo "$ac_try_echo") >&5
18129 (eval "$ac_link") 2>&5
18131 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18133 { (case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18137 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18138 $as_echo "$ac_try_echo") >&5
18139 (eval "$ac_try") 2>&5
18141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_func_working_mktime=yes
18145 $as_echo "$as_me: program exited with status
$ac_status" >&5
18146 $as_echo "$as_me: failed program was
:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ( exit $ac_status )
18150 ac_cv_func_working_mktime=no
18152 rm -rf conftest.dSYM
18153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18158 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18159 $as_echo "$ac_cv_func_working_mktime" >&6; }
18160 if test $ac_cv_func_working_mktime = no; then
18161 case " $LIBOBJS " in
18162 *" mktime.
$ac_objext "* ) ;;
18163 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18169 if test "$ac_cv_func_working_mktime" = no; then
18171 cat >>confdefs.h <<\_ACEOF
18172 #define BROKEN_MKTIME 1
18177 ac_have_func=no # yes means we've found a way to get the load average.
18179 # Make sure getloadavg.c is where it belongs, at configure-time.
18180 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18181 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18182 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18183 { (exit 1); exit 1; }; }
18187 # Check for getloadavg, but be sure not to touch the cache variable.
18188 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18189 $as_echo_n "checking
for getloadavg...
" >&6; }
18190 if test "${ac_cv_func_getloadavg+set}" = set; then
18191 $as_echo_n "(cached
) " >&6
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define getloadavg innocuous_getloadavg
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char getloadavg (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18209 # include <limits.h>
18211 # include <assert.h>
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18222 char getloadavg ();
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_getloadavg || defined __stub___getloadavg
18233 return getloadavg ();
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18245 $as_echo "$ac_try_echo") >&5
18246 (eval "$ac_link") 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18252 (exit $ac_status); } && {
18253 test -z "$ac_c_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest$ac_exeext && {
18256 test "$cross_compiling" = yes ||
18257 $as_test_x conftest$ac_exeext
18259 ac_cv_func_getloadavg=yes
18261 $as_echo "$as_me: failed program was
:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18264 ac_cv_func_getloadavg=no
18267 rm -rf conftest.dSYM
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18269 conftest$ac_exeext conftest.$ac_ext
18271 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18272 $as_echo "$ac_cv_func_getloadavg" >&6; }
18273 if test $ac_cv_func_getloadavg = yes; then
18278 ) && ac_have_func=yes
18280 # On HPUX9, an unprivileged user can get load averages through this function.
18282 for ac_func in pstat_getdynamic
18284 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18285 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18286 $as_echo_n "checking
for $ac_func...
" >&6; }
18287 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18288 $as_echo_n "(cached
) " >&6
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18298 #define $ac_func innocuous_$ac_func
18300 /* System header to define __stub macros and hopefully few prototypes,
18301 which can conflict with char $ac_func (); below.
18302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18303 <limits.h> exists even on freestanding compilers. */
18306 # include <limits.h>
18308 # include <assert.h>
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18320 /* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323 #if defined __stub_$ac_func || defined __stub___$ac_func
18330 return $ac_func ();
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343 (eval "$ac_link") 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest$ac_exeext && {
18353 test "$cross_compiling" = yes ||
18354 $as_test_x conftest$ac_exeext
18356 eval "$as_ac_var=yes"
18358 $as_echo "$as_me: failed program was
:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 eval "$as_ac_var=no
"
18364 rm -rf conftest.dSYM
18365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18366 conftest$ac_exeext conftest.$ac_ext
18368 ac_res=`eval 'as_val=${'$as_ac_var'}
18369 $as_echo "$as_val"'`
18370 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18371 $as_echo "$ac_res" >&6; }
18372 if test `eval 'as_val=${'$as_ac_var'}
18373 $as_echo "$as_val"'` = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18382 # Solaris has libkstat which does not require root.
18384 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18385 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18386 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18387 $as_echo_n "(cached
) " >&6
18389 ac_check_lib_save_LIBS=$LIBS
18390 LIBS="-lkstat $LIBS"
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18404 char kstat_open ();
18408 return kstat_open ();
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18420 $as_echo "$ac_try_echo") >&5
18421 (eval "$ac_link") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18427 (exit $ac_status); } && {
18428 test -z "$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 } && test -s conftest$ac_exeext && {
18431 test "$cross_compiling" = yes ||
18432 $as_test_x conftest$ac_exeext
18434 ac_cv_lib_kstat_kstat_open=yes
18436 $as_echo "$as_me: failed program was
:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_cv_lib_kstat_kstat_open=no
18442 rm -rf conftest.dSYM
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18448 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18449 if test $ac_cv_lib_kstat_kstat_open = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_LIBKSTAT 1
18454 LIBS="-lkstat $LIBS"
18458 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18460 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18461 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18462 # to get the right answer into the cache.
18463 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18464 if test $ac_have_func = no; then
18465 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18466 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18467 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18468 $as_echo_n "(cached
) " >&6
18470 ac_check_lib_save_LIBS=$LIBS
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18489 return elf_begin ();
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18501 $as_echo "$ac_try_echo") >&5
18502 (eval "$ac_link") 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest$ac_exeext && {
18512 test "$cross_compiling" = yes ||
18513 $as_test_x conftest$ac_exeext
18515 ac_cv_lib_elf_elf_begin=yes
18517 $as_echo "$as_me: failed program was
:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18520 ac_cv_lib_elf_elf_begin=no
18523 rm -rf conftest.dSYM
18524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18525 conftest$ac_exeext conftest.$ac_ext
18526 LIBS=$ac_check_lib_save_LIBS
18528 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18529 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18530 if test $ac_cv_lib_elf_elf_begin = yes; then
18535 if test $ac_have_func = no; then
18536 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18537 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18538 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18539 $as_echo_n "(cached
) " >&6
18541 ac_check_lib_save_LIBS=$LIBS
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18550 /* Override any GCC internal prototype to avoid an error.
18551 Use char because int might match the return type of a GCC
18552 builtin and then its argument prototype would still apply. */
18560 return kvm_open ();
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (ac_try="$ac_link"
18567 case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18571 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18572 $as_echo "$ac_try_echo") >&5
18573 (eval "$ac_link") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext && {
18583 test "$cross_compiling" = yes ||
18584 $as_test_x conftest$ac_exeext
18586 ac_cv_lib_kvm_kvm_open=yes
18588 $as_echo "$as_me: failed program was
:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ac_cv_lib_kvm_kvm_open=no
18594 rm -rf conftest.dSYM
18595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18599 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18600 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18601 if test $ac_cv_lib_kvm_kvm_open = yes; then
18605 # Check for the 4.4BSD definition of getloadavg.
18606 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18607 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18608 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18609 $as_echo_n "(cached
) " >&6
18611 ac_check_lib_save_LIBS=$LIBS
18612 LIBS="-lutil $LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18626 char getloadavg ();
18630 return getloadavg ();
18635 rm -f conftest.$ac_objext conftest$ac_exeext
18636 if { (ac_try="$ac_link"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18642 $as_echo "$ac_try_echo") >&5
18643 (eval "$ac_link") 2>conftest.er1
18645 grep -v '^ *+' conftest.er1 >conftest.err
18647 cat conftest.err >&5
18648 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18649 (exit $ac_status); } && {
18650 test -z "$ac_c_werror_flag" ||
18651 test ! -s conftest.err
18652 } && test -s conftest$ac_exeext && {
18653 test "$cross_compiling" = yes ||
18654 $as_test_x conftest$ac_exeext
18656 ac_cv_lib_util_getloadavg=yes
18658 $as_echo "$as_me: failed program was
:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 ac_cv_lib_util_getloadavg=no
18664 rm -rf conftest.dSYM
18665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18666 conftest$ac_exeext conftest.$ac_ext
18667 LIBS=$ac_check_lib_save_LIBS
18669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18670 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18671 if test $ac_cv_lib_util_getloadavg = yes; then
18672 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18677 if test $ac_have_func = no; then
18678 # There is a commonly available library for RS/6000 AIX.
18679 # Since it is not a standard part of AIX, it might be installed locally.
18680 ac_getloadavg_LIBS=$LIBS
18681 LIBS="-L/usr
/local
/lib
$LIBS"
18682 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18683 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18684 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18685 $as_echo_n "(cached
) " >&6
18687 ac_check_lib_save_LIBS=$LIBS
18688 LIBS="-lgetloadavg $LIBS"
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18696 /* Override any GCC internal prototype to avoid an error.
18697 Use char because int might match the return type of a GCC
18698 builtin and then its argument prototype would still apply. */
18702 char getloadavg ();
18706 return getloadavg ();
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (ac_try="$ac_link"
18713 case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18718 $as_echo "$ac_try_echo") >&5
18719 (eval "$ac_link") 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18725 (exit $ac_status); } && {
18726 test -z "$ac_c_werror_flag" ||
18727 test ! -s conftest.err
18728 } && test -s conftest$ac_exeext && {
18729 test "$cross_compiling" = yes ||
18730 $as_test_x conftest$ac_exeext
18732 ac_cv_lib_getloadavg_getloadavg=yes
18734 $as_echo "$as_me: failed program was
:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18737 ac_cv_lib_getloadavg_getloadavg=no
18740 rm -rf conftest.dSYM
18741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18745 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18746 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18747 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18748 LIBS="-lgetloadavg $LIBS"
18750 LIBS=$ac_getloadavg_LIBS
18755 # Make sure it is really in the library, if we think we found it,
18756 # otherwise set up the replacement function.
18758 for ac_func in getloadavg
18760 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18761 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18762 $as_echo_n "checking
for $ac_func...
" >&6; }
18763 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18764 $as_echo_n "(cached
) " >&6
18766 cat >conftest.$ac_ext <<_ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h. */
18772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18774 #define $ac_func innocuous_$ac_func
18776 /* System header to define __stub macros and hopefully few prototypes,
18777 which can conflict with char $ac_func (); below.
18778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779 <limits.h> exists even on freestanding compilers. */
18782 # include <limits.h>
18784 # include <assert.h>
18789 /* Override any GCC internal prototype to avoid an error.
18790 Use char because int might match the return type of a GCC
18791 builtin and then its argument prototype would still apply. */
18796 /* The GNU C library defines this for functions which it implements
18797 to always fail with ENOSYS. Some functions are actually named
18798 something starting with __ and the normal name is an alias. */
18799 #if defined __stub_$ac_func || defined __stub___$ac_func
18806 return $ac_func ();
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815 *) ac_try_echo=$ac_try;;
18817 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18818 $as_echo "$ac_try_echo") >&5
18819 (eval "$ac_link") 2>conftest.er1
18821 grep -v '^ *+' conftest.er1 >conftest.err
18823 cat conftest.err >&5
18824 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18825 (exit $ac_status); } && {
18826 test -z "$ac_c_werror_flag" ||
18827 test ! -s conftest.err
18828 } && test -s conftest$ac_exeext && {
18829 test "$cross_compiling" = yes ||
18830 $as_test_x conftest$ac_exeext
18832 eval "$as_ac_var=yes"
18834 $as_echo "$as_me: failed program was
:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 eval "$as_ac_var=no
"
18840 rm -rf conftest.dSYM
18841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18842 conftest$ac_exeext conftest.$ac_ext
18844 ac_res=`eval 'as_val=${'$as_ac_var'}
18845 $as_echo "$as_val"'`
18846 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18847 $as_echo "$ac_res" >&6; }
18848 if test `eval 'as_val=${'$as_ac_var'}
18849 $as_echo "$as_val"'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18855 case " $LIBOBJS " in
18856 *" getloadavg.
$ac_objext "* ) ;;
18857 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18862 cat >>confdefs.h <<\_ACEOF
18863 #define C_GETLOADAVG 1
18866 # Figure out what our getloadavg.c needs.
18868 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18869 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18870 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18871 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18872 $as_echo_n "(cached
) " >&6
18874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18875 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18877 # Is the header compilable?
18878 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18879 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 #include <sys/dg_sys_info.h>
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18907 ac_header_compiler=yes
18909 $as_echo "$as_me: failed program was
:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_header_compiler=no
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18917 $as_echo "$ac_header_compiler" >&6; }
18919 # Is the header present?
18920 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18921 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include <sys/dg_sys_info.h>
18930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18943 (exit $ac_status); } >/dev/null && {
18944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18947 ac_header_preproc=yes
18949 $as_echo "$as_me: failed program was
:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_header_preproc=no
18955 rm -f conftest.err conftest.$ac_ext
18956 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18957 $as_echo "$ac_header_preproc" >&6; }
18959 # So? What about this header?
18960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18962 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18963 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18964 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18965 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18966 ac_header_preproc=yes
18969 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18970 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18971 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18972 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18974 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18976 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18978 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18980 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18984 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18985 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18986 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18987 $as_echo_n "(cached
) " >&6
18989 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18991 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18992 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18995 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18998 cat >>confdefs.h <<\_ACEOF
19003 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19004 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19005 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19006 $as_echo_n "(cached
) " >&6
19008 ac_check_lib_save_LIBS=$LIBS
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19017 /* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19023 char dg_sys_info ();
19027 return dg_sys_info ();
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (ac_try="$ac_link"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19039 $as_echo "$ac_try_echo") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext && {
19050 test "$cross_compiling" = yes ||
19051 $as_test_x conftest$ac_exeext
19053 ac_cv_lib_dgc_dg_sys_info=yes
19055 $as_echo "$as_me: failed program was
:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_lib_dgc_dg_sys_info=no
19061 rm -rf conftest.dSYM
19062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19063 conftest$ac_exeext conftest.$ac_ext
19064 LIBS=$ac_check_lib_save_LIBS
19066 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19067 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19068 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19069 cat >>confdefs.h <<_ACEOF
19070 #define HAVE_LIBDGC 1
19081 if test "${ac_cv_header_locale_h+set}" = set; then
19082 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19083 $as_echo_n "checking
for locale.h...
" >&6; }
19084 if test "${ac_cv_header_locale_h+set}" = set; then
19085 $as_echo_n "(cached
) " >&6
19087 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19088 $as_echo "$ac_cv_header_locale_h" >&6; }
19090 # Is the header compilable?
19091 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19092 $as_echo_n "checking locale.h usability...
" >&6; }
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 $ac_includes_default
19100 #include <locale.h>
19102 rm -f conftest.$ac_objext
19103 if { (ac_try="$ac_compile"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest.$ac_objext; then
19120 ac_header_compiler=yes
19122 $as_echo "$as_me: failed program was
:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_header_compiler=no
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19130 $as_echo "$ac_header_compiler" >&6; }
19132 # Is the header present?
19133 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19134 $as_echo_n "checking locale.h presence...
" >&6; }
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <locale.h>
19143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19144 case "(($ac_try" in
19145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19146 *) ac_try_echo=$ac_try;;
19148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19149 $as_echo "$ac_try_echo") >&5
19150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19152 grep -v '^ *+' conftest.er1 >conftest.err
19154 cat conftest.err >&5
19155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19156 (exit $ac_status); } >/dev/null && {
19157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19158 test ! -s conftest.err
19160 ac_header_preproc=yes
19162 $as_echo "$as_me: failed program was
:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_header_preproc=no
19168 rm -f conftest.err conftest.$ac_ext
19169 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19170 $as_echo "$ac_header_preproc" >&6; }
19172 # So? What about this header?
19173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19175 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19176 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19177 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19178 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19179 ac_header_preproc=yes
19182 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19183 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19184 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19185 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19186 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19187 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19188 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19189 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19190 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19191 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19192 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19193 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19197 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19198 $as_echo_n "checking
for locale.h...
" >&6; }
19199 if test "${ac_cv_header_locale_h+set}" = set; then
19200 $as_echo_n "(cached
) " >&6
19202 ac_cv_header_locale_h=$ac_header_preproc
19204 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19205 $as_echo "$ac_cv_header_locale_h" >&6; }
19211 for ac_func in setlocale
19213 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19214 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19215 $as_echo_n "checking
for $ac_func...
" >&6; }
19216 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19217 $as_echo_n "(cached
) " >&6
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19227 #define $ac_func innocuous_$ac_func
19229 /* System header to define __stub macros and hopefully few prototypes,
19230 which can conflict with char $ac_func (); below.
19231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232 <limits.h> exists even on freestanding compilers. */
19235 # include <limits.h>
19237 # include <assert.h>
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19249 /* The GNU C library defines this for functions which it implements
19250 to always fail with ENOSYS. Some functions are actually named
19251 something starting with __ and the normal name is an alias. */
19252 #if defined __stub_$ac_func || defined __stub___$ac_func
19259 return $ac_func ();
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19271 $as_echo "$ac_try_echo") >&5
19272 (eval "$ac_link") 2>conftest.er1
19274 grep -v '^ *+' conftest.er1 >conftest.err
19276 cat conftest.err >&5
19277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19278 (exit $ac_status); } && {
19279 test -z "$ac_c_werror_flag" ||
19280 test ! -s conftest.err
19281 } && test -s conftest$ac_exeext && {
19282 test "$cross_compiling" = yes ||
19283 $as_test_x conftest$ac_exeext
19285 eval "$as_ac_var=yes"
19287 $as_echo "$as_me: failed program was
:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 eval "$as_ac_var=no
"
19293 rm -rf conftest.dSYM
19294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19295 conftest$ac_exeext conftest.$ac_ext
19297 ac_res=`eval 'as_val=${'$as_ac_var'}
19298 $as_echo "$as_val"'`
19299 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19300 $as_echo "$ac_res" >&6; }
19301 if test `eval 'as_val=${'$as_ac_var'}
19302 $as_echo "$as_val"'` = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19311 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19312 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19313 # Irix 4.0.5F has the header but not the library.
19314 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19317 cat >>confdefs.h <<\_ACEOF
19323 if test $ac_have_func = no; then
19324 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19325 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19326 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19327 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19328 $as_echo_n "(cached
) " >&6
19330 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19331 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19333 # Is the header compilable?
19334 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19335 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19342 $ac_includes_default
19343 #include <inq_stats/cpustats.h>
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19352 $as_echo "$ac_try_echo") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19355 grep -v '^ *+' conftest.er1 >conftest.err
19357 cat conftest.err >&5
19358 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest.$ac_objext; then
19363 ac_header_compiler=yes
19365 $as_echo "$as_me: failed program was
:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_header_compiler=no
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19373 $as_echo "$ac_header_compiler" >&6; }
19375 # Is the header present?
19376 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19377 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 #include <inq_stats/cpustats.h>
19386 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19399 (exit $ac_status); } >/dev/null && {
19400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19403 ac_header_preproc=yes
19405 $as_echo "$as_me: failed program was
:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19408 ac_header_preproc=no
19411 rm -f conftest.err conftest.$ac_ext
19412 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19413 $as_echo "$ac_header_preproc" >&6; }
19415 # So? What about this header?
19416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19418 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19419 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19420 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19421 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19422 ac_header_preproc=yes
19425 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19426 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19427 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19428 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19429 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19430 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19431 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19432 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19433 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19434 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19435 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19436 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19440 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19441 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19442 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19443 $as_echo_n "(cached
) " >&6
19445 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19447 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19448 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19451 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19454 cat >>confdefs.h <<\_ACEOF
19459 cat >>confdefs.h <<\_ACEOF
19468 if test $ac_have_func = no; then
19469 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19470 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19471 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19472 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19473 $as_echo_n "(cached
) " >&6
19475 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19476 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19478 # Is the header compilable?
19479 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19480 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 $ac_includes_default
19488 #include <sys/cpustats.h>
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 ac_header_compiler=yes
19510 $as_echo "$as_me: failed program was
:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_header_compiler=no
19516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19518 $as_echo "$ac_header_compiler" >&6; }
19520 # Is the header present?
19521 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19522 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 #include <sys/cpustats.h>
19531 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19532 case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19537 $as_echo "$ac_try_echo") >&5
19538 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1 >conftest.err
19542 cat conftest.err >&5
19543 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19544 (exit $ac_status); } >/dev/null && {
19545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19548 ac_header_preproc=yes
19550 $as_echo "$as_me: failed program was
:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19553 ac_header_preproc=no
19556 rm -f conftest.err conftest.$ac_ext
19557 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19558 $as_echo "$ac_header_preproc" >&6; }
19560 # So? What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19563 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19564 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19565 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19566 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19567 ac_header_preproc=yes
19570 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19571 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19572 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19573 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19574 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19575 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19576 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19577 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19578 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19579 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19580 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19581 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19585 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19586 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19587 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19588 $as_echo_n "(cached
) " >&6
19590 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19592 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19593 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19596 if test $ac_cv_header_sys_cpustats_h = yes; then
19597 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19606 if test $ac_have_func = no; then
19608 for ac_header in mach/mach.h
19610 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19612 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19613 $as_echo_n "checking
for $ac_header...
" >&6; }
19614 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19615 $as_echo_n "(cached
) " >&6
19617 ac_res=`eval 'as_val=${'$as_ac_Header'}
19618 $as_echo "$as_val"'`
19619 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19620 $as_echo "$ac_res" >&6; }
19622 # Is the header compilable?
19623 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19624 $as_echo_n "checking
$ac_header usability...
" >&6; }
19625 cat >conftest.$ac_ext <<_ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h. */
19631 $ac_includes_default
19632 #include <$ac_header>
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_compile") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
19652 ac_header_compiler=yes
19654 $as_echo "$as_me: failed program was
:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_header_compiler=no
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19661 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19662 $as_echo "$ac_header_compiler" >&6; }
19664 # Is the header present?
19665 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19666 $as_echo_n "checking
$ac_header presence...
" >&6; }
19667 cat >conftest.$ac_ext <<_ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <$ac_header>
19675 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19681 $as_echo "$ac_try_echo") >&5
19682 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19688 (exit $ac_status); } >/dev/null && {
19689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19690 test ! -s conftest.err
19692 ac_header_preproc=yes
19694 $as_echo "$as_me: failed program was
:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_header_preproc=no
19700 rm -f conftest.err conftest.$ac_ext
19701 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19702 $as_echo "$ac_header_preproc" >&6; }
19704 # So? What about this header?
19705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19707 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19708 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19709 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19711 ac_header_preproc=yes
19714 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19715 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19716 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19717 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19718 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19719 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19720 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19721 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19722 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19724 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19725 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19729 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19730 $as_echo_n "checking
for $ac_header...
" >&6; }
19731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19732 $as_echo_n "(cached
) " >&6
19734 eval "$as_ac_Header=\
$ac_header_preproc"
19736 ac_res=`eval 'as_val=${'$as_ac_Header'}
19737 $as_echo "$as_val"'`
19738 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19739 $as_echo "$ac_res" >&6; }
19742 if test `eval 'as_val=${'$as_ac_Header'}
19743 $as_echo "$as_val"'` = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19755 for ac_header in nlist.h
19757 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19759 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19760 $as_echo_n "checking
for $ac_header...
" >&6; }
19761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19762 $as_echo_n "(cached
) " >&6
19764 ac_res=`eval 'as_val=${'$as_ac_Header'}
19765 $as_echo "$as_val"'`
19766 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19767 $as_echo "$ac_res" >&6; }
19769 # Is the header compilable?
19770 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19771 $as_echo_n "checking
$ac_header usability...
" >&6; }
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 $ac_includes_default
19779 #include <$ac_header>
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest.$ac_objext; then
19799 ac_header_compiler=yes
19801 $as_echo "$as_me: failed program was
:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_header_compiler=no
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19809 $as_echo "$ac_header_compiler" >&6; }
19811 # Is the header present?
19812 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19813 $as_echo_n "checking
$ac_header presence...
" >&6; }
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <$ac_header>
19822 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19828 $as_echo "$ac_try_echo") >&5
19829 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19831 grep -v '^ *+' conftest.er1 >conftest.err
19833 cat conftest.err >&5
19834 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19835 (exit $ac_status); } >/dev/null && {
19836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19837 test ! -s conftest.err
19839 ac_header_preproc=yes
19841 $as_echo "$as_me: failed program was
:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_header_preproc=no
19847 rm -f conftest.err conftest.$ac_ext
19848 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19849 $as_echo "$ac_header_preproc" >&6; }
19851 # So? What about this header?
19852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19854 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19855 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19856 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19857 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19858 ac_header_preproc=yes
19861 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19862 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19863 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19864 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19865 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19866 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19867 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19868 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19869 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19871 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19872 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19876 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19877 $as_echo_n "checking
for $ac_header...
" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19879 $as_echo_n "(cached
) " >&6
19881 eval "$as_ac_Header=\
$ac_header_preproc"
19883 ac_res=`eval 'as_val=${'$as_ac_Header'}
19884 $as_echo "$as_val"'`
19885 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19886 $as_echo "$ac_res" >&6; }
19889 if test `eval 'as_val=${'$as_ac_Header'}
19890 $as_echo "$as_val"'` = yes; then
19891 cat >>confdefs.h <<_ACEOF
19892 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19894 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19895 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19896 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19897 $as_echo_n "(cached
) " >&6
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19910 static struct nlist ac_aggr;
19911 if (ac_aggr.n_un.n_name)
19917 rm -f conftest.$ac_objext
19918 if { (ac_try="$ac_compile"
19919 case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19923 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19924 $as_echo "$ac_try_echo") >&5
19925 (eval "$ac_compile") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest.$ac_objext; then
19935 ac_cv_member_struct_nlist_n_un_n_name=yes
19937 $as_echo "$as_me: failed program was
:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19951 static struct nlist ac_aggr;
19952 if (sizeof ac_aggr.n_un.n_name)
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966 (eval "$ac_compile") 2>conftest.er1
19968 grep -v '^ *+' conftest.er1 >conftest.err
19970 cat conftest.err >&5
19971 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19972 (exit $ac_status); } && {
19973 test -z "$ac_c_werror_flag" ||
19974 test ! -s conftest.err
19975 } && test -s conftest.$ac_objext; then
19976 ac_cv_member_struct_nlist_n_un_n_name=yes
19978 $as_echo "$as_me: failed program was
:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19981 ac_cv_member_struct_nlist_n_un_n_name=no
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19990 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19991 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19993 cat >>confdefs.h <<_ACEOF
19994 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19998 cat >>confdefs.h <<\_ACEOF
19999 #define NLIST_NAME_UNION 1
20013 # Some definitions of getloadavg require that the program be installed setgid.
20014 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20015 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20016 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20017 $as_echo_n "(cached
) " >&6
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20026 #ifdef LDAV_PRIVILEGED
20027 Yowza Am I SETGID yet
20030 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20031 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20032 ac_cv_func_getloadavg_setgid=yes
20034 ac_cv_func_getloadavg_setgid=no
20039 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20040 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20041 if test $ac_cv_func_getloadavg_setgid = yes; then
20044 cat >>confdefs.h <<\_ACEOF
20045 #define GETLOADAVG_PRIVILEGED 1
20052 if test $ac_cv_func_getloadavg_setgid = yes; then
20053 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20054 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20055 if test "${ac_cv_group_kmem+set}" = set; then
20056 $as_echo_n "(cached
) " >&6
20058 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20059 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20060 # If we got an error (system does not support symlinks), try without -L.
20061 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20062 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20063 | sed -ne 's/[ ][ ]*/ /g;
20064 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20068 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20069 $as_echo "$ac_cv_group_kmem" >&6; }
20070 KMEM_GROUP=$ac_cv_group_kmem
20072 if test "x
$ac_save_LIBS" = x; then
20073 GETLOADAVG_LIBS=$LIBS
20075 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20081 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20082 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20083 if test "${ac_cv_sys_largefile_source+set}" = set; then
20084 $as_echo_n "(cached
) " >&6
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093 #include <sys/types.h> /* for off_t */
20098 int (*fp) (FILE *, off_t, int) = fseeko;
20099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112 (eval "$ac_link") 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext && {
20122 test "$cross_compiling" = yes ||
20123 $as_test_x conftest$ac_exeext
20125 ac_cv_sys_largefile_source=no; break
20127 $as_echo "$as_me: failed program was
:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135 conftest$ac_exeext conftest.$ac_ext
20136 cat >conftest.$ac_ext <<_ACEOF
20139 cat confdefs.h >>conftest.$ac_ext
20140 cat >>conftest.$ac_ext <<_ACEOF
20141 /* end confdefs.h. */
20142 #define _LARGEFILE_SOURCE 1
20143 #include <sys/types.h> /* for off_t */
20148 int (*fp) (FILE *, off_t, int) = fseeko;
20149 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20154 rm -f conftest.$ac_objext conftest$ac_exeext
20155 if { (ac_try="$ac_link"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20161 $as_echo "$ac_try_echo") >&5
20162 (eval "$ac_link") 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest$ac_exeext && {
20172 test "$cross_compiling" = yes ||
20173 $as_test_x conftest$ac_exeext
20175 ac_cv_sys_largefile_source=1; break
20177 $as_echo "$as_me: failed program was
:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20183 rm -rf conftest.dSYM
20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185 conftest$ac_exeext conftest.$ac_ext
20186 ac_cv_sys_largefile_source=unknown
20190 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20191 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20192 case $ac_cv_sys_largefile_source in #(
20195 cat >>confdefs.h <<_ACEOF
20196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20202 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20203 # in glibc 2.1.3, but that breaks too many other things.
20204 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20205 if test $ac_cv_sys_largefile_source != unknown; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_FSEEKO 1
20214 # Configure getopt.
20215 # getopt.m4 serial 10
20217 # The getopt module assume you want GNU getopt, with getopt_long etc,
20218 # rather than vanilla POSIX getopt. This means your your code should
20219 # always include <getopt.h> for the getopt prototypes.
20231 # Prerequisites of lib/getopt*.
20238 for ac_header in getopt.h
20240 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20242 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20243 $as_echo_n "checking
for $ac_header...
" >&6; }
20244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20245 $as_echo_n "(cached
) " >&6
20247 ac_res=`eval 'as_val=${'$as_ac_Header'}
20248 $as_echo "$as_val"'`
20249 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20250 $as_echo "$ac_res" >&6; }
20252 # Is the header compilable?
20253 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20254 $as_echo_n "checking
$ac_header usability...
" >&6; }
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20261 $ac_includes_default
20262 #include <$ac_header>
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20271 $as_echo "$ac_try_echo") >&5
20272 (eval "$ac_compile") 2>conftest.er1
20274 grep -v '^ *+' conftest.er1 >conftest.err
20276 cat conftest.err >&5
20277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20278 (exit $ac_status); } && {
20279 test -z "$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 } && test -s conftest.$ac_objext; then
20282 ac_header_compiler=yes
20284 $as_echo "$as_me: failed program was
:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_compiler=no
20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20292 $as_echo "$ac_header_compiler" >&6; }
20294 # Is the header present?
20295 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20296 $as_echo_n "checking
$ac_header presence...
" >&6; }
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20303 #include <$ac_header>
20305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20306 case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20311 $as_echo "$ac_try_echo") >&5
20312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20318 (exit $ac_status); } >/dev/null && {
20319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20322 ac_header_preproc=yes
20324 $as_echo "$as_me: failed program was
:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_header_preproc=no
20330 rm -f conftest.err conftest.$ac_ext
20331 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20332 $as_echo "$ac_header_preproc" >&6; }
20334 # So? What about this header?
20335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20337 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20338 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20339 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20341 ac_header_preproc=yes
20344 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20345 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20346 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20347 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20348 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20349 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20350 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20351 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20352 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20355 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20359 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20360 $as_echo_n "checking
for $ac_header...
" >&6; }
20361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20362 $as_echo_n "(cached
) " >&6
20364 eval "$as_ac_Header=\
$ac_header_preproc"
20366 ac_res=`eval 'as_val=${'$as_ac_Header'}
20367 $as_echo "$as_val"'`
20368 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20369 $as_echo "$ac_res" >&6; }
20372 if test `eval 'as_val=${'$as_ac_Header'}
20373 $as_echo "$as_val"'` = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20384 if test -z "$GETOPT_H"; then
20386 for ac_func in getopt_long_only
20388 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20389 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20390 $as_echo_n "checking
for $ac_func...
" >&6; }
20391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20392 $as_echo_n "(cached
) " >&6
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20402 #define $ac_func innocuous_$ac_func
20404 /* System header to define __stub macros and hopefully few prototypes,
20405 which can conflict with char $ac_func (); below.
20406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20407 <limits.h> exists even on freestanding compilers. */
20410 # include <limits.h>
20412 # include <assert.h>
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20424 /* The GNU C library defines this for functions which it implements
20425 to always fail with ENOSYS. Some functions are actually named
20426 something starting with __ and the normal name is an alias. */
20427 #if defined __stub_$ac_func || defined __stub___$ac_func
20434 return $ac_func ();
20439 rm -f conftest.$ac_objext conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20446 $as_echo "$ac_try_echo") >&5
20447 (eval "$ac_link") 2>conftest.er1
20449 grep -v '^ *+' conftest.er1 >conftest.err
20451 cat conftest.err >&5
20452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20453 (exit $ac_status); } && {
20454 test -z "$ac_c_werror_flag" ||
20455 test ! -s conftest.err
20456 } && test -s conftest$ac_exeext && {
20457 test "$cross_compiling" = yes ||
20458 $as_test_x conftest$ac_exeext
20460 eval "$as_ac_var=yes"
20462 $as_echo "$as_me: failed program was
:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 eval "$as_ac_var=no
"
20468 rm -rf conftest.dSYM
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20472 ac_res=`eval 'as_val=${'$as_ac_var'}
20473 $as_echo "$as_val"'`
20474 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20475 $as_echo "$ac_res" >&6; }
20476 if test `eval 'as_val=${'$as_ac_var'}
20477 $as_echo "$as_val"'` = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20489 if test -z "$GETOPT_H"; then
20490 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20491 $as_echo_n "checking whether optreset is declared...
" >&6; }
20492 if test "${ac_cv_have_decl_optreset+set}" = set; then
20493 $as_echo_n "(cached
) " >&6
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 #include <getopt.h>
20514 rm -f conftest.$ac_objext
20515 if { (ac_try="$ac_compile"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20521 $as_echo "$ac_try_echo") >&5
20522 (eval "$ac_compile") 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest.$ac_objext; then
20532 ac_cv_have_decl_optreset=yes
20534 $as_echo "$as_me: failed program was
:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_have_decl_optreset=no
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20542 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20543 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20544 if test $ac_cv_have_decl_optreset = yes; then
20550 if test -z "$GETOPT_H"; then
20551 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20552 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20553 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20554 $as_echo_n "(cached
) " >&6
20556 if test "$cross_compiling" = yes; then
20557 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20558 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20559 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20560 $as_echo_n "(cached
) " >&6
20562 cat >conftest.$ac_ext <<_ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 #include <getopt.h>
20573 #ifndef getopt_clip
20574 (void) getopt_clip;
20581 rm -f conftest.$ac_objext
20582 if { (ac_try="$ac_compile"
20583 case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20587 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20588 $as_echo "$ac_try_echo") >&5
20589 (eval "$ac_compile") 2>conftest.er1
20591 grep -v '^ *+' conftest.er1 >conftest.err
20593 cat conftest.err >&5
20594 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest.$ac_objext; then
20599 ac_cv_have_decl_getopt_clip=yes
20601 $as_echo "$as_me: failed program was
:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_cv_have_decl_getopt_clip=no
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20610 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20611 if test $ac_cv_have_decl_getopt_clip = yes; then
20612 gl_cv_func_gnu_getopt=no
20614 gl_cv_func_gnu_getopt=yes
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <getopt.h>
20630 myargv[0] = "conftest
";
20633 return getopt (2, myargv, "+a
") != '?';
20639 rm -f conftest$ac_exeext
20640 if { (ac_try="$ac_link"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20646 $as_echo "$ac_try_echo") >&5
20647 (eval "$ac_link") 2>&5
20649 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20651 { (case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20656 $as_echo "$ac_try_echo") >&5
20657 (eval "$ac_try") 2>&5
20659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 gl_cv_func_gnu_getopt=yes
20663 $as_echo "$as_me: program exited with status
$ac_status" >&5
20664 $as_echo "$as_me: failed program was
:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 ( exit $ac_status )
20668 gl_cv_func_gnu_getopt=no
20670 rm -rf conftest.dSYM
20671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20676 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20677 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20678 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20685 if test -n "$GETOPT_H"; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define __GETOPT_PREFIX rpl_
20697 GETOPTOBJS='getopt.o getopt1.o'
20704 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20705 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20706 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20707 $as_echo_n "(cached
) " >&6
20709 # Use it with a single arg.
20710 cat >conftest.$ac_ext <<_ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h. */
20716 $ac_includes_default
20725 rm -f conftest.$ac_objext
20726 if { (ac_try="$ac_compile"
20727 case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20732 $as_echo "$ac_try_echo") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20735 grep -v '^ *+' conftest.er1 >conftest.err
20737 cat conftest.err >&5
20738 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest.$ac_objext; then
20743 ac_cv_func_getpgrp_void=no
20745 $as_echo "$as_me: failed program was
:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_cv_func_getpgrp_void=yes
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20755 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20756 if test $ac_cv_func_getpgrp_void = yes; then
20758 cat >>confdefs.h <<\_ACEOF
20759 #define GETPGRP_VOID 1
20766 for ac_func in strftime
20768 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20769 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20770 $as_echo_n "checking
for $ac_func...
" >&6; }
20771 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20772 $as_echo_n "(cached
) " >&6
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20782 #define $ac_func innocuous_$ac_func
20784 /* System header to define __stub macros and hopefully few prototypes,
20785 which can conflict with char $ac_func (); below.
20786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20787 <limits.h> exists even on freestanding compilers. */
20790 # include <limits.h>
20792 # include <assert.h>
20797 /* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
20804 /* The GNU C library defines this for functions which it implements
20805 to always fail with ENOSYS. Some functions are actually named
20806 something starting with __ and the normal name is an alias. */
20807 #if defined __stub_$ac_func || defined __stub___$ac_func
20814 return $ac_func ();
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20826 $as_echo "$ac_try_echo") >&5
20827 (eval "$ac_link") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest$ac_exeext && {
20837 test "$cross_compiling" = yes ||
20838 $as_test_x conftest$ac_exeext
20840 eval "$as_ac_var=yes"
20842 $as_echo "$as_me: failed program was
:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20845 eval "$as_ac_var=no
"
20848 rm -rf conftest.dSYM
20849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20850 conftest$ac_exeext conftest.$ac_ext
20852 ac_res=`eval 'as_val=${'$as_ac_var'}
20853 $as_echo "$as_val"'`
20854 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20855 $as_echo "$ac_res" >&6; }
20856 if test `eval 'as_val=${'$as_ac_var'}
20857 $as_echo "$as_val"'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20863 # strftime is in -lintl on SCO UNIX.
20864 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20865 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20866 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20867 $as_echo_n "(cached
) " >&6
20869 ac_check_lib_save_LIBS=$LIBS
20870 LIBS="-lintl $LIBS"
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20878 /* Override any GCC internal prototype to avoid an error.
20879 Use char because int might match the return type of a GCC
20880 builtin and then its argument prototype would still apply. */
20888 return strftime ();
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20914 ac_cv_lib_intl_strftime=yes
20916 $as_echo "$as_me: failed program was
:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_lib_intl_strftime=no
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924 conftest$ac_exeext conftest.$ac_ext
20925 LIBS=$ac_check_lib_save_LIBS
20927 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20928 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20929 if test $ac_cv_lib_intl_strftime = yes; then
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_STRFTIME 1
20934 LIBS="-lintl $LIBS"
20943 for ac_func in grantpt
20945 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20946 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20947 $as_echo_n "checking
for $ac_func...
" >&6; }
20948 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20949 $as_echo_n "(cached
) " >&6
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define $ac_func innocuous_$ac_func
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20967 # include <limits.h>
20969 # include <assert.h>
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined __stub_$ac_func || defined __stub___$ac_func
20991 return $ac_func ();
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21003 $as_echo "$ac_try_echo") >&5
21004 (eval "$ac_link") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest$ac_exeext && {
21014 test "$cross_compiling" = yes ||
21015 $as_test_x conftest$ac_exeext
21017 eval "$as_ac_var=yes"
21019 $as_echo "$as_me: failed program was
:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21022 eval "$as_ac_var=no
"
21025 rm -rf conftest.dSYM
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027 conftest$ac_exeext conftest.$ac_ext
21029 ac_res=`eval 'as_val=${'$as_ac_var'}
21030 $as_echo "$as_val"'`
21031 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21032 $as_echo "$ac_res" >&6; }
21033 if test `eval 'as_val=${'$as_ac_var'}
21034 $as_echo "$as_val"'` = yes; then
21035 cat >>confdefs.h <<_ACEOF
21036 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21043 # PTY-related GNU extensions.
21045 for ac_func in getpt
21047 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21048 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21049 $as_echo_n "checking
for $ac_func...
" >&6; }
21050 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21051 $as_echo_n "(cached
) " >&6
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21061 #define $ac_func innocuous_$ac_func
21063 /* System header to define __stub macros and hopefully few prototypes,
21064 which can conflict with char $ac_func (); below.
21065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21066 <limits.h> exists even on freestanding compilers. */
21069 # include <limits.h>
21071 # include <assert.h>
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21083 /* The GNU C library defines this for functions which it implements
21084 to always fail with ENOSYS. Some functions are actually named
21085 something starting with __ and the normal name is an alias. */
21086 #if defined __stub_$ac_func || defined __stub___$ac_func
21093 return $ac_func ();
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest$ac_exeext
21119 eval "$as_ac_var=yes"
21121 $as_echo "$as_me: failed program was
:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 eval "$as_ac_var=no
"
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21129 conftest$ac_exeext conftest.$ac_ext
21131 ac_res=`eval 'as_val=${'$as_ac_var'}
21132 $as_echo "$as_val"'`
21133 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21134 $as_echo "$ac_res" >&6; }
21135 if test `eval 'as_val=${'$as_ac_var'}
21136 $as_echo "$as_val"'` = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21145 # Check this now, so that we will NOT find the above functions in ncurses.
21146 # That is because we have not set up to link ncurses in lib-src.
21147 # It's better to believe a function is not available
21148 # than to expect to find it in ncurses.
21149 # Also we need tputs and frieds to be able to build at all.
21150 have_tputs_et_al=true
21151 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21152 $as_echo_n "checking
for library containing tputs...
" >&6; }
21153 if test "${ac_cv_search_tputs+set}" = set; then
21154 $as_echo_n "(cached
) " >&6
21156 ac_func_search_save_LIBS=$LIBS
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21164 /* Override any GCC internal prototype to avoid an error.
21165 Use char because int might match the return type of a GCC
21166 builtin and then its argument prototype would still apply. */
21179 for ac_lib in '' ncurses terminfo termcap; do
21180 if test -z "$ac_lib"; then
21181 ac_res="none required
"
21184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21193 $as_echo "$ac_try_echo") >&5
21194 (eval "$ac_link") 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest$ac_exeext && {
21204 test "$cross_compiling" = yes ||
21205 $as_test_x conftest$ac_exeext
21207 ac_cv_search_tputs=$ac_res
21209 $as_echo "$as_me: failed program was
:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21215 rm -rf conftest.dSYM
21216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21218 if test "${ac_cv_search_tputs+set}" = set; then
21222 if test "${ac_cv_search_tputs+set}" = set; then
21225 ac_cv_search_tputs=no
21227 rm conftest.$ac_ext
21228 LIBS=$ac_func_search_save_LIBS
21230 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21231 $as_echo "$ac_cv_search_tputs" >&6; }
21232 ac_res=$ac_cv_search_tputs
21233 if test "$ac_res" != no; then
21234 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21237 have_tputs_et_al=false
21240 if test "$have_tputs_et_al" != true; then
21241 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21242 Maybe some development libraries/packages are missing? Try installing
21243 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21244 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21245 Maybe some development libraries
/packages are missing? Try installing
21246 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21247 { (exit 1); exit 1; }; }
21249 # Must define this when any termcap library is found.
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_LIBNCURSES 1
21256 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #include <netinet/in.h>
21266 #include <arpa/nameser.h>
21267 #include <resolv.h>
21276 rm -f conftest.$ac_objext conftest$ac_exeext
21277 if { (ac_try="$ac_link"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21283 $as_echo "$ac_try_echo") >&5
21284 (eval "$ac_link") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext && {
21294 test "$cross_compiling" = yes ||
21295 $as_test_x conftest$ac_exeext
21299 $as_echo "$as_me: failed program was
:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21305 rm -rf conftest.dSYM
21306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21307 conftest$ac_exeext conftest.$ac_ext
21308 if test "$have_res_init" = no; then
21310 LIBS="$LIBS -lresolv"
21311 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21312 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <netinet/in.h>
21320 #include <arpa/nameser.h>
21321 #include <resolv.h>
21330 rm -f conftest.$ac_objext conftest$ac_exeext
21331 if { (ac_try="$ac_link"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21337 $as_echo "$ac_try_echo") >&5
21338 (eval "$ac_link") 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest$ac_exeext && {
21348 test "$cross_compiling" = yes ||
21349 $as_test_x conftest$ac_exeext
21353 $as_echo "$as_me: failed program was
:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21359 rm -rf conftest.dSYM
21360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21361 conftest$ac_exeext conftest.$ac_ext
21362 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21363 $as_echo "$have_res_init" >&6; }
21364 if test "$have_res_init" = yes ; then
21370 if test "$have_res_init" = yes; then
21372 cat >>confdefs.h <<\_ACEOF
21373 #define HAVE_RES_INIT 1
21378 # Do we need the Hesiod library to provide the support routines?
21380 if test "$with_hesiod" != no ; then
21381 # Don't set $LIBS here -- see comments above. FIXME which comments?
21382 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21383 $as_echo_n "checking
for res_send...
" >&6; }
21384 if test "${ac_cv_func_res_send+set}" = set; then
21385 $as_echo_n "(cached
) " >&6
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21395 #define res_send innocuous_res_send
21397 /* System header to define __stub macros and hopefully few prototypes,
21398 which can conflict with char res_send (); below.
21399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21400 <limits.h> exists even on freestanding compilers. */
21403 # include <limits.h>
21405 # include <assert.h>
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21417 /* The GNU C library defines this for functions which it implements
21418 to always fail with ENOSYS. Some functions are actually named
21419 something starting with __ and the normal name is an alias. */
21420 #if defined __stub_res_send || defined __stub___res_send
21427 return res_send ();
21432 rm -f conftest.$ac_objext conftest$ac_exeext
21433 if { (ac_try="$ac_link"
21434 case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21438 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21439 $as_echo "$ac_try_echo") >&5
21440 (eval "$ac_link") 2>conftest.er1
21442 grep -v '^ *+' conftest.er1 >conftest.err
21444 cat conftest.err >&5
21445 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest$ac_exeext && {
21450 test "$cross_compiling" = yes ||
21451 $as_test_x conftest$ac_exeext
21453 ac_cv_func_res_send=yes
21455 $as_echo "$as_me: failed program was
:" >&5
21456 sed 's/^/| /' conftest.$ac_ext >&5
21458 ac_cv_func_res_send=no
21461 rm -rf conftest.dSYM
21462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21463 conftest$ac_exeext conftest.$ac_ext
21465 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21466 $as_echo "$ac_cv_func_res_send" >&6; }
21467 if test $ac_cv_func_res_send = yes; then
21470 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21471 $as_echo_n "checking
for __res_send...
" >&6; }
21472 if test "${ac_cv_func___res_send+set}" = set; then
21473 $as_echo_n "(cached
) " >&6
21475 cat >conftest.$ac_ext <<_ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h. */
21481 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21483 #define __res_send innocuous___res_send
21485 /* System header to define __stub macros and hopefully few prototypes,
21486 which can conflict with char __res_send (); below.
21487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21488 <limits.h> exists even on freestanding compilers. */
21491 # include <limits.h>
21493 # include <assert.h>
21498 /* Override any GCC internal prototype to avoid an error.
21499 Use char because int might match the return type of a GCC
21500 builtin and then its argument prototype would still apply. */
21504 char __res_send ();
21505 /* The GNU C library defines this for functions which it implements
21506 to always fail with ENOSYS. Some functions are actually named
21507 something starting with __ and the normal name is an alias. */
21508 #if defined __stub___res_send || defined __stub_____res_send
21515 return __res_send ();
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (ac_try="$ac_link"
21522 case "(($ac_try" in
21523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21524 *) ac_try_echo=$ac_try;;
21526 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21527 $as_echo "$ac_try_echo") >&5
21528 (eval "$ac_link") 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest$ac_exeext && {
21538 test "$cross_compiling" = yes ||
21539 $as_test_x conftest$ac_exeext
21541 ac_cv_func___res_send=yes
21543 $as_echo "$as_me: failed program was
:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_cv_func___res_send=no
21549 rm -rf conftest.dSYM
21550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21551 conftest$ac_exeext conftest.$ac_ext
21553 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21554 $as_echo "$ac_cv_func___res_send" >&6; }
21555 if test $ac_cv_func___res_send = yes; then
21558 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21559 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21560 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21561 $as_echo_n "(cached
) " >&6
21563 ac_check_lib_save_LIBS=$LIBS
21564 LIBS="-lresolv $LIBS"
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21572 /* Override any GCC internal prototype to avoid an error.
21573 Use char because int might match the return type of a GCC
21574 builtin and then its argument prototype would still apply. */
21582 return res_send ();
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (ac_try="$ac_link"
21589 case "(($ac_try" in
21590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21591 *) ac_try_echo=$ac_try;;
21593 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21594 $as_echo "$ac_try_echo") >&5
21595 (eval "$ac_link") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest$ac_exeext && {
21605 test "$cross_compiling" = yes ||
21606 $as_test_x conftest$ac_exeext
21608 ac_cv_lib_resolv_res_send=yes
21610 $as_echo "$as_me: failed program was
:" >&5
21611 sed 's/^/| /' conftest.$ac_ext >&5
21613 ac_cv_lib_resolv_res_send=no
21616 rm -rf conftest.dSYM
21617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21618 conftest$ac_exeext conftest.$ac_ext
21619 LIBS=$ac_check_lib_save_LIBS
21621 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21622 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21623 if test $ac_cv_lib_resolv_res_send = yes; then
21626 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21627 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21628 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21629 $as_echo_n "(cached
) " >&6
21631 ac_check_lib_save_LIBS=$LIBS
21632 LIBS="-lresolv $LIBS"
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21646 char __res_send ();
21650 return __res_send ();
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (ac_try="$ac_link"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21662 $as_echo "$ac_try_echo") >&5
21663 (eval "$ac_link") 2>conftest.er1
21665 grep -v '^ *+' conftest.er1 >conftest.err
21667 cat conftest.err >&5
21668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21669 (exit $ac_status); } && {
21670 test -z "$ac_c_werror_flag" ||
21671 test ! -s conftest.err
21672 } && test -s conftest$ac_exeext && {
21673 test "$cross_compiling" = yes ||
21674 $as_test_x conftest$ac_exeext
21676 ac_cv_lib_resolv___res_send=yes
21678 $as_echo "$as_me: failed program was
:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ac_cv_lib_resolv___res_send=no
21684 rm -rf conftest.dSYM
21685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21686 conftest$ac_exeext conftest.$ac_ext
21687 LIBS=$ac_check_lib_save_LIBS
21689 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21690 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21691 if test $ac_cv_lib_resolv___res_send = yes; then
21701 if test "$resolv" = yes ; then
21706 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21707 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21708 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21709 $as_echo_n "(cached
) " >&6
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21719 #define hes_getmailhost innocuous_hes_getmailhost
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char hes_getmailhost (); below.
21723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21724 <limits.h> exists even on freestanding compilers. */
21727 # include <limits.h>
21729 # include <assert.h>
21732 #undef hes_getmailhost
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21740 char hes_getmailhost ();
21741 /* The GNU C library defines this for functions which it implements
21742 to always fail with ENOSYS. Some functions are actually named
21743 something starting with __ and the normal name is an alias. */
21744 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21751 return hes_getmailhost ();
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21763 $as_echo "$ac_try_echo") >&5
21764 (eval "$ac_link") 2>conftest.er1
21766 grep -v '^ *+' conftest.er1 >conftest.err
21768 cat conftest.err >&5
21769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest$ac_exeext && {
21774 test "$cross_compiling" = yes ||
21775 $as_test_x conftest$ac_exeext
21777 ac_cv_func_hes_getmailhost=yes
21779 $as_echo "$as_me: failed program was
:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21782 ac_cv_func_hes_getmailhost=no
21785 rm -rf conftest.dSYM
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787 conftest$ac_exeext conftest.$ac_ext
21789 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21790 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21791 if test $ac_cv_func_hes_getmailhost = yes; then
21794 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21795 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21796 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21797 $as_echo_n "(cached
) " >&6
21799 ac_check_lib_save_LIBS=$LIBS
21800 LIBS="-lhesiod $RESOLVLIB $LIBS"
21801 cat >conftest.$ac_ext <<_ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21814 char hes_getmailhost ();
21818 return hes_getmailhost ();
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (ac_try="$ac_link"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21830 $as_echo "$ac_try_echo") >&5
21831 (eval "$ac_link") 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest$ac_exeext && {
21841 test "$cross_compiling" = yes ||
21842 $as_test_x conftest$ac_exeext
21844 ac_cv_lib_hesiod_hes_getmailhost=yes
21846 $as_echo "$as_me: failed program was
:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_cv_lib_hesiod_hes_getmailhost=no
21852 rm -rf conftest.dSYM
21853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21854 conftest$ac_exeext conftest.$ac_ext
21855 LIBS=$ac_check_lib_save_LIBS
21857 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21858 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21859 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21868 if test x"$hesiod" = xyes; then
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_LIBHESIOD 1
21879 # Do we need libresolv (due to res_init or Hesiod)?
21880 if test "$resolv" = yes ; then
21882 cat >>confdefs.h <<\_ACEOF
21883 #define HAVE_LIBRESOLV 1
21892 # These tell us which Kerberos-related libraries to use.
21899 if test "${with_kerberos}" != no; then
21900 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21901 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21902 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21903 $as_echo_n "(cached
) " >&6
21905 ac_check_lib_save_LIBS=$LIBS
21906 LIBS="-lcom_err $LIBS"
21907 cat >conftest.$ac_ext <<_ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h. */
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21929 rm -f conftest.$ac_objext conftest$ac_exeext
21930 if { (ac_try="$ac_link"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937 (eval "$ac_link") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest$ac_exeext && {
21947 test "$cross_compiling" = yes ||
21948 $as_test_x conftest$ac_exeext
21950 ac_cv_lib_com_err_com_err=yes
21952 $as_echo "$as_me: failed program was
:" >&5
21953 sed 's/^/| /' conftest.$ac_ext >&5
21955 ac_cv_lib_com_err_com_err=no
21958 rm -rf conftest.dSYM
21959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21960 conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21963 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21964 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21965 if test $ac_cv_lib_com_err_com_err = yes; then
21971 if test $have_com_err = yes; then
21972 COM_ERRLIB=-lcom_err
21973 LIBS="$COM_ERRLIB $LIBS"
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_LIBCOM_ERR 1
21980 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21981 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21982 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21983 $as_echo_n "(cached
) " >&6
21985 ac_check_lib_save_LIBS=$LIBS
21986 LIBS="-lcrypto $LIBS"
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
22000 char mit_des_cbc_encrypt ();
22004 return mit_des_cbc_encrypt ();
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_link") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest$ac_exeext && {
22027 test "$cross_compiling" = yes ||
22028 $as_test_x conftest$ac_exeext
22030 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22032 $as_echo "$as_me: failed program was
:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22038 rm -rf conftest.dSYM
22039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22040 conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22043 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22044 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22045 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22051 if test $have_crypto = yes; then
22053 LIBS="$CRYPTOLIB $LIBS"
22055 cat >>confdefs.h <<\_ACEOF
22056 #define HAVE_LIBCRYPTO 1
22060 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22061 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22062 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22063 $as_echo_n "(cached
) " >&6
22065 ac_check_lib_save_LIBS=$LIBS
22066 LIBS="-lk5crypto $LIBS"
22067 cat >conftest.$ac_ext <<_ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h. */
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22080 char mit_des_cbc_encrypt ();
22084 return mit_des_cbc_encrypt ();
22089 rm -f conftest.$ac_objext conftest$ac_exeext
22090 if { (ac_try="$ac_link"
22091 case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22096 $as_echo "$ac_try_echo") >&5
22097 (eval "$ac_link") 2>conftest.er1
22099 grep -v '^ *+' conftest.er1 >conftest.err
22101 cat conftest.err >&5
22102 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22103 (exit $ac_status); } && {
22104 test -z "$ac_c_werror_flag" ||
22105 test ! -s conftest.err
22106 } && test -s conftest$ac_exeext && {
22107 test "$cross_compiling" = yes ||
22108 $as_test_x conftest$ac_exeext
22110 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22112 $as_echo "$as_me: failed program was
:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22118 rm -rf conftest.dSYM
22119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22120 conftest$ac_exeext conftest.$ac_ext
22121 LIBS=$ac_check_lib_save_LIBS
22123 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22124 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22125 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22131 if test $have_k5crypto = yes; then
22132 CRYPTOLIB=-lk5crypto
22133 LIBS="$CRYPTOLIB $LIBS"
22135 cat >>confdefs.h <<\_ACEOF
22136 #define HAVE_LIBK5CRYPTO 1
22140 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22141 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22142 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22143 $as_echo_n "(cached
) " >&6
22145 ac_check_lib_save_LIBS=$LIBS
22146 LIBS="-lkrb5 $LIBS"
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22154 /* Override any GCC internal prototype to avoid an error.
22155 Use char because int might match the return type of a GCC
22156 builtin and then its argument prototype would still apply. */
22160 char krb5_init_context ();
22164 return krb5_init_context ();
22169 rm -f conftest.$ac_objext conftest$ac_exeext
22170 if { (ac_try="$ac_link"
22171 case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_link") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext && {
22187 test "$cross_compiling" = yes ||
22188 $as_test_x conftest$ac_exeext
22190 ac_cv_lib_krb5_krb5_init_context=yes
22192 $as_echo "$as_me: failed program was
:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_cv_lib_krb5_krb5_init_context=no
22198 rm -rf conftest.dSYM
22199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22200 conftest$ac_exeext conftest.$ac_ext
22201 LIBS=$ac_check_lib_save_LIBS
22203 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22204 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22205 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22211 if test $have_krb5=yes; then
22213 LIBS="$KRB5LIB $LIBS"
22215 cat >>confdefs.h <<\_ACEOF
22216 #define HAVE_LIBKRB5 1
22220 if test "${with_kerberos5}" = no; then
22221 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22222 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22223 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22224 $as_echo_n "(cached
) " >&6
22226 ac_check_lib_save_LIBS=$LIBS
22227 LIBS="-ldes425 $LIBS"
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22241 char des_cbc_encrypt ();
22245 return des_cbc_encrypt ();
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (ac_try="$ac_link"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22257 $as_echo "$ac_try_echo") >&5
22258 (eval "$ac_link") 2>conftest.er1
22260 grep -v '^ *+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest$ac_exeext && {
22268 test "$cross_compiling" = yes ||
22269 $as_test_x conftest$ac_exeext
22271 ac_cv_lib_des425_des_cbc_encrypt=yes
22273 $as_echo "$as_me: failed program was
:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 ac_cv_lib_des425_des_cbc_encrypt=no
22279 rm -rf conftest.dSYM
22280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22281 conftest$ac_exeext conftest.$ac_ext
22282 LIBS=$ac_check_lib_save_LIBS
22284 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22285 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22286 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22292 if test $have_des425 = yes; then
22294 LIBS="$DESLIB $LIBS"
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_LIBDES425 1
22301 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22302 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22303 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22304 $as_echo_n "(cached
) " >&6
22306 ac_check_lib_save_LIBS=$LIBS
22308 cat >conftest.$ac_ext <<_ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22321 char des_cbc_encrypt ();
22325 return des_cbc_encrypt ();
22330 rm -f conftest.$ac_objext conftest$ac_exeext
22331 if { (ac_try="$ac_link"
22332 case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22337 $as_echo "$ac_try_echo") >&5
22338 (eval "$ac_link") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest$ac_exeext && {
22348 test "$cross_compiling" = yes ||
22349 $as_test_x conftest$ac_exeext
22351 ac_cv_lib_des_des_cbc_encrypt=yes
22353 $as_echo "$as_me: failed program was
:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_cv_lib_des_des_cbc_encrypt=no
22359 rm -rf conftest.dSYM
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361 conftest$ac_exeext conftest.$ac_ext
22362 LIBS=$ac_check_lib_save_LIBS
22364 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22365 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22366 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22372 if test $have_des = yes; then
22374 LIBS="$DESLIB $LIBS"
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_LIBDES 1
22382 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22383 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22384 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22385 $as_echo_n "(cached
) " >&6
22387 ac_check_lib_save_LIBS=$LIBS
22388 LIBS="-lkrb4 $LIBS"
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22396 /* Override any GCC internal prototype to avoid an error.
22397 Use char because int might match the return type of a GCC
22398 builtin and then its argument prototype would still apply. */
22402 char krb_get_cred ();
22406 return krb_get_cred ();
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412 if { (ac_try="$ac_link"
22413 case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22417 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419 (eval "$ac_link") 2>conftest.er1
22421 grep -v '^ *+' conftest.er1 >conftest.err
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest$ac_exeext && {
22429 test "$cross_compiling" = yes ||
22430 $as_test_x conftest$ac_exeext
22432 ac_cv_lib_krb4_krb_get_cred=yes
22434 $as_echo "$as_me: failed program was
:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 ac_cv_lib_krb4_krb_get_cred=no
22440 rm -rf conftest.dSYM
22441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext conftest.$ac_ext
22443 LIBS=$ac_check_lib_save_LIBS
22445 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22446 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22447 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22453 if test $have_krb4 = yes; then
22455 LIBS="$KRB4LIB $LIBS"
22457 cat >>confdefs.h <<\_ACEOF
22458 #define HAVE_LIBKRB4 1
22462 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22463 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22464 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22465 $as_echo_n "(cached
) " >&6
22467 ac_check_lib_save_LIBS=$LIBS
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22476 /* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
22482 char krb_get_cred ();
22486 return krb_get_cred ();
22491 rm -f conftest.$ac_objext conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22498 $as_echo "$ac_try_echo") >&5
22499 (eval "$ac_link") 2>conftest.er1
22501 grep -v '^ *+' conftest.er1 >conftest.err
22503 cat conftest.err >&5
22504 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22505 (exit $ac_status); } && {
22506 test -z "$ac_c_werror_flag" ||
22507 test ! -s conftest.err
22508 } && test -s conftest$ac_exeext && {
22509 test "$cross_compiling" = yes ||
22510 $as_test_x conftest$ac_exeext
22512 ac_cv_lib_krb_krb_get_cred=yes
22514 $as_echo "$as_me: failed program was
:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ac_cv_lib_krb_krb_get_cred=no
22520 rm -rf conftest.dSYM
22521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22522 conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22525 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22526 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22527 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22533 if test $have_krb = yes; then
22535 LIBS="$KRB4LIB $LIBS"
22537 cat >>confdefs.h <<\_ACEOF
22538 #define HAVE_LIBKRB 1
22545 if test "${with_kerberos5}" != no; then
22547 for ac_header in krb5.h
22549 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22550 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22551 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22552 $as_echo_n "checking
for $ac_header...
" >&6; }
22553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22554 $as_echo_n "(cached
) " >&6
22556 ac_res=`eval 'as_val=${'$as_ac_Header'}
22557 $as_echo "$as_val"'`
22558 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22559 $as_echo "$ac_res" >&6; }
22561 # Is the header compilable?
22562 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22563 $as_echo_n "checking
$ac_header usability...
" >&6; }
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 #include <$ac_header>
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581 (eval "$ac_compile") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest.$ac_objext; then
22591 ac_header_compiler=yes
22593 $as_echo "$as_me: failed program was
:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_header_compiler=no
22599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22601 $as_echo "$ac_header_compiler" >&6; }
22603 # Is the header present?
22604 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22605 $as_echo_n "checking
$ac_header presence...
" >&6; }
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 #include <$ac_header>
22614 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22620 $as_echo "$ac_try_echo") >&5
22621 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22627 (exit $ac_status); } >/dev/null && {
22628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22631 ac_header_preproc=yes
22633 $as_echo "$as_me: failed program was
:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ac_header_preproc=no
22639 rm -f conftest.err conftest.$ac_ext
22640 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22641 $as_echo "$ac_header_preproc" >&6; }
22643 # So? What about this header?
22644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22646 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22647 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22648 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22649 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22650 ac_header_preproc=yes
22653 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22654 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22655 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22656 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22657 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22658 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22659 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22660 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22661 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22663 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22664 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22668 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22669 $as_echo_n "checking
for $ac_header...
" >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22671 $as_echo_n "(cached
) " >&6
22673 eval "$as_ac_Header=\
$ac_header_preproc"
22675 ac_res=`eval 'as_val=${'$as_ac_Header'}
22676 $as_echo "$as_val"'`
22677 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22678 $as_echo "$ac_res" >&6; }
22681 if test `eval 'as_val=${'$as_ac_Header'}
22682 $as_echo "$as_val"'` = yes; then
22683 cat >>confdefs.h <<_ACEOF
22684 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22686 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22687 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22688 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22689 $as_echo_n "(cached
) " >&6
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22702 static krb5_error ac_aggr;
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22715 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22716 $as_echo "$ac_try_echo") >&5
22717 (eval "$ac_compile") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22723 (exit $ac_status); } && {
22724 test -z "$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22726 } && test -s conftest.$ac_objext; then
22727 ac_cv_member_krb5_error_text=yes
22729 $as_echo "$as_me: failed program was
:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22743 static krb5_error ac_aggr;
22744 if (sizeof ac_aggr.text)
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754 *) ac_try_echo=$ac_try;;
22756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22757 $as_echo "$ac_try_echo") >&5
22758 (eval "$ac_compile") 2>conftest.er1
22760 grep -v '^ *+' conftest.er1 >conftest.err
22762 cat conftest.err >&5
22763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22764 (exit $ac_status); } && {
22765 test -z "$ac_c_werror_flag" ||
22766 test ! -s conftest.err
22767 } && test -s conftest.$ac_objext; then
22768 ac_cv_member_krb5_error_text=yes
22770 $as_echo "$as_me: failed program was
:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22773 ac_cv_member_krb5_error_text=no
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22782 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22783 if test $ac_cv_member_krb5_error_text = yes; then
22785 cat >>confdefs.h <<_ACEOF
22786 #define HAVE_KRB5_ERROR_TEXT 1
22791 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22792 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22793 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22794 $as_echo_n "(cached
) " >&6
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22807 static krb5_error ac_aggr;
22808 if (ac_aggr.e_text)
22814 rm -f conftest.$ac_objext
22815 if { (ac_try="$ac_compile"
22816 case "(($ac_try" in
22817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818 *) ac_try_echo=$ac_try;;
22820 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22821 $as_echo "$ac_try_echo") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_cv_member_krb5_error_e_text=yes
22834 $as_echo "$as_me: failed program was
:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22837 cat >conftest.$ac_ext <<_ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22848 static krb5_error ac_aggr;
22849 if (sizeof ac_aggr.e_text)
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22862 $as_echo "$ac_try_echo") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 ac_cv_member_krb5_error_e_text=yes
22875 $as_echo "$as_me: failed program was
:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 ac_cv_member_krb5_error_e_text=no
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22887 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22888 if test $ac_cv_member_krb5_error_e_text = yes; then
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_KRB5_ERROR_E_TEXT 1
22903 for ac_header in des.h
22905 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22907 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22908 $as_echo_n "checking
for $ac_header...
" >&6; }
22909 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22910 $as_echo_n "(cached
) " >&6
22912 ac_res=`eval 'as_val=${'$as_ac_Header'}
22913 $as_echo "$as_val"'`
22914 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22915 $as_echo "$ac_res" >&6; }
22917 # Is the header compilable?
22918 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22919 $as_echo_n "checking
$ac_header usability...
" >&6; }
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 #include <$ac_header>
22929 rm -f conftest.$ac_objext
22930 if { (ac_try="$ac_compile"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_header_compiler=yes
22949 $as_echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_header_compiler=no
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22957 $as_echo "$ac_header_compiler" >&6; }
22959 # Is the header present?
22960 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22961 $as_echo_n "checking
$ac_header presence...
" >&6; }
22962 cat >conftest.$ac_ext <<_ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22968 #include <$ac_header>
22970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22976 $as_echo "$ac_try_echo") >&5
22977 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22979 grep -v '^ *+' conftest.er1 >conftest.err
22981 cat conftest.err >&5
22982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22983 (exit $ac_status); } >/dev/null && {
22984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22985 test ! -s conftest.err
22987 ac_header_preproc=yes
22989 $as_echo "$as_me: failed program was
:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 ac_header_preproc=no
22995 rm -f conftest.err conftest.$ac_ext
22996 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22997 $as_echo "$ac_header_preproc" >&6; }
22999 # So? What about this header?
23000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23002 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23003 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23006 ac_header_preproc=yes
23009 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23010 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23011 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23012 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23013 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23014 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23015 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23016 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23017 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23019 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23020 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23024 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23025 $as_echo_n "checking
for $ac_header...
" >&6; }
23026 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23027 $as_echo_n "(cached
) " >&6
23029 eval "$as_ac_Header=\
$ac_header_preproc"
23031 ac_res=`eval 'as_val=${'$as_ac_Header'}
23032 $as_echo "$as_val"'`
23033 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23034 $as_echo "$ac_res" >&6; }
23037 if test `eval 'as_val=${'$as_ac_Header'}
23038 $as_echo "$as_val"'` = yes; then
23039 cat >>confdefs.h <<_ACEOF
23040 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23045 for ac_header in kerberosIV/des.h
23047 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23049 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23050 $as_echo_n "checking
for $ac_header...
" >&6; }
23051 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23052 $as_echo_n "(cached
) " >&6
23054 ac_res=`eval 'as_val=${'$as_ac_Header'}
23055 $as_echo "$as_val"'`
23056 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23057 $as_echo "$ac_res" >&6; }
23059 # Is the header compilable?
23060 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23061 $as_echo_n "checking
$ac_header usability...
" >&6; }
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 $ac_includes_default
23069 #include <$ac_header>
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_compile") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest.$ac_objext; then
23089 ac_header_compiler=yes
23091 $as_echo "$as_me: failed program was
:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_compiler=no
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23099 $as_echo "$ac_header_compiler" >&6; }
23101 # Is the header present?
23102 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23103 $as_echo_n "checking
$ac_header presence...
" >&6; }
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 #include <$ac_header>
23112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23117 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23118 $as_echo "$ac_try_echo") >&5
23119 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23121 grep -v '^ *+' conftest.er1 >conftest.err
23123 cat conftest.err >&5
23124 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23125 (exit $ac_status); } >/dev/null && {
23126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23127 test ! -s conftest.err
23129 ac_header_preproc=yes
23131 $as_echo "$as_me: failed program was
:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 ac_header_preproc=no
23137 rm -f conftest.err conftest.$ac_ext
23138 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23139 $as_echo "$ac_header_preproc" >&6; }
23141 # So? What about this header?
23142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23144 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23145 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23148 ac_header_preproc=yes
23151 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23152 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23153 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23154 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23155 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23156 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23157 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23158 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23159 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23160 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23161 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23162 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23166 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23167 $as_echo_n "checking
for $ac_header...
" >&6; }
23168 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23169 $as_echo_n "(cached
) " >&6
23171 eval "$as_ac_Header=\
$ac_header_preproc"
23173 ac_res=`eval 'as_val=${'$as_ac_Header'}
23174 $as_echo "$as_val"'`
23175 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23176 $as_echo "$ac_res" >&6; }
23179 if test `eval 'as_val=${'$as_ac_Header'}
23180 $as_echo "$as_val"'` = yes; then
23181 cat >>confdefs.h <<_ACEOF
23182 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23187 for ac_header in kerberos/des.h
23189 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23191 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23192 $as_echo_n "checking
for $ac_header...
" >&6; }
23193 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23194 $as_echo_n "(cached
) " >&6
23196 ac_res=`eval 'as_val=${'$as_ac_Header'}
23197 $as_echo "$as_val"'`
23198 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23199 $as_echo "$ac_res" >&6; }
23201 # Is the header compilable?
23202 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23203 $as_echo_n "checking
$ac_header usability...
" >&6; }
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 #include <$ac_header>
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_compile") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest.$ac_objext; then
23231 ac_header_compiler=yes
23233 $as_echo "$as_me: failed program was
:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_compiler=no
23239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23241 $as_echo "$ac_header_compiler" >&6; }
23243 # Is the header present?
23244 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23245 $as_echo_n "checking
$ac_header presence...
" >&6; }
23246 cat >conftest.$ac_ext <<_ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23252 #include <$ac_header>
23254 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23255 case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23259 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23260 $as_echo "$ac_try_echo") >&5
23261 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23267 (exit $ac_status); } >/dev/null && {
23268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23269 test ! -s conftest.err
23271 ac_header_preproc=yes
23273 $as_echo "$as_me: failed program was
:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ac_header_preproc=no
23279 rm -f conftest.err conftest.$ac_ext
23280 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23281 $as_echo "$ac_header_preproc" >&6; }
23283 # So? What about this header?
23284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23286 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23287 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23288 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23289 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23290 ac_header_preproc=yes
23293 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23294 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23295 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23296 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23297 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23298 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23299 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23300 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23301 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23303 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23304 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23308 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23309 $as_echo_n "checking
for $ac_header...
" >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23311 $as_echo_n "(cached
) " >&6
23313 eval "$as_ac_Header=\
$ac_header_preproc"
23315 ac_res=`eval 'as_val=${'$as_ac_Header'}
23316 $as_echo "$as_val"'`
23317 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23318 $as_echo "$ac_res" >&6; }
23321 if test `eval 'as_val=${'$as_ac_Header'}
23322 $as_echo "$as_val"'` = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23340 for ac_header in krb.h
23342 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23344 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23345 $as_echo_n "checking
for $ac_header...
" >&6; }
23346 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23347 $as_echo_n "(cached
) " >&6
23349 ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23352 $as_echo "$ac_res" >&6; }
23354 # Is the header compilable?
23355 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23356 $as_echo_n "checking
$ac_header usability...
" >&6; }
23357 cat >conftest.$ac_ext <<_ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 $ac_includes_default
23364 #include <$ac_header>
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23373 $as_echo "$ac_try_echo") >&5
23374 (eval "$ac_compile") 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23380 (exit $ac_status); } && {
23381 test -z "$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 } && test -s conftest.$ac_objext; then
23384 ac_header_compiler=yes
23386 $as_echo "$as_me: failed program was
:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ac_header_compiler=no
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23394 $as_echo "$ac_header_compiler" >&6; }
23396 # Is the header present?
23397 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23398 $as_echo_n "checking
$ac_header presence...
" >&6; }
23399 cat >conftest.$ac_ext <<_ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 #include <$ac_header>
23407 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23413 $as_echo "$ac_try_echo") >&5
23414 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23420 (exit $ac_status); } >/dev/null && {
23421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23424 ac_header_preproc=yes
23426 $as_echo "$as_me: failed program was
:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_header_preproc=no
23432 rm -f conftest.err conftest.$ac_ext
23433 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23434 $as_echo "$ac_header_preproc" >&6; }
23436 # So? What about this header?
23437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23439 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23440 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23441 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23443 ac_header_preproc=yes
23446 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23447 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23448 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23449 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23450 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23451 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23452 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23453 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23454 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23455 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23456 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23457 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23461 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23462 $as_echo_n "checking
for $ac_header...
" >&6; }
23463 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23464 $as_echo_n "(cached
) " >&6
23466 eval "$as_ac_Header=\
$ac_header_preproc"
23468 ac_res=`eval 'as_val=${'$as_ac_Header'}
23469 $as_echo "$as_val"'`
23470 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23471 $as_echo "$ac_res" >&6; }
23474 if test `eval 'as_val=${'$as_ac_Header'}
23475 $as_echo "$as_val"'` = yes; then
23476 cat >>confdefs.h <<_ACEOF
23477 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23482 for ac_header in kerberosIV/krb.h
23484 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23486 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23487 $as_echo_n "checking
for $ac_header...
" >&6; }
23488 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23489 $as_echo_n "(cached
) " >&6
23491 ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23496 # Is the header compilable?
23497 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23498 $as_echo_n "checking
$ac_header usability...
" >&6; }
23499 cat >conftest.$ac_ext <<_ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 #include <$ac_header>
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_compile") 2>conftest.er1
23518 grep -v '^ *+' conftest.er1 >conftest.err
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23522 (exit $ac_status); } && {
23523 test -z "$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23525 } && test -s conftest.$ac_objext; then
23526 ac_header_compiler=yes
23528 $as_echo "$as_me: failed program was
:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_header_compiler=no
23534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23536 $as_echo "$ac_header_compiler" >&6; }
23538 # Is the header present?
23539 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23540 $as_echo_n "checking
$ac_header presence...
" >&6; }
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 #include <$ac_header>
23549 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23555 $as_echo "$ac_try_echo") >&5
23556 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23562 (exit $ac_status); } >/dev/null && {
23563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23564 test ! -s conftest.err
23566 ac_header_preproc=yes
23568 $as_echo "$as_me: failed program was
:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ac_header_preproc=no
23574 rm -f conftest.err conftest.$ac_ext
23575 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23576 $as_echo "$ac_header_preproc" >&6; }
23578 # So? What about this header?
23579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23581 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23582 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23583 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23584 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23585 ac_header_preproc=yes
23588 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23589 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23590 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23591 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23592 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23593 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23594 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23595 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23596 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23598 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23599 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23603 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23604 $as_echo_n "checking
for $ac_header...
" >&6; }
23605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23606 $as_echo_n "(cached
) " >&6
23608 eval "$as_ac_Header=\
$ac_header_preproc"
23610 ac_res=`eval 'as_val=${'$as_ac_Header'}
23611 $as_echo "$as_val"'`
23612 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23613 $as_echo "$ac_res" >&6; }
23616 if test `eval 'as_val=${'$as_ac_Header'}
23617 $as_echo "$as_val"'` = yes; then
23618 cat >>confdefs.h <<_ACEOF
23619 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23624 for ac_header in kerberos/krb.h
23626 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23627 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23628 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23629 $as_echo_n "checking
for $ac_header...
" >&6; }
23630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23631 $as_echo_n "(cached
) " >&6
23633 ac_res=`eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23638 # Is the header compilable?
23639 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23640 $as_echo_n "checking
$ac_header usability...
" >&6; }
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 $ac_includes_default
23648 #include <$ac_header>
23650 rm -f conftest.$ac_objext
23651 if { (ac_try="$ac_compile"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23657 $as_echo "$ac_try_echo") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.$ac_objext; then
23668 ac_header_compiler=yes
23670 $as_echo "$as_me: failed program was
:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_header_compiler=no
23676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23678 $as_echo "$ac_header_compiler" >&6; }
23680 # Is the header present?
23681 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23682 $as_echo_n "checking
$ac_header presence...
" >&6; }
23683 cat >conftest.$ac_ext <<_ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 #include <$ac_header>
23691 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23697 $as_echo "$ac_try_echo") >&5
23698 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23700 grep -v '^ *+' conftest.er1 >conftest.err
23702 cat conftest.err >&5
23703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23704 (exit $ac_status); } >/dev/null && {
23705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23708 ac_header_preproc=yes
23710 $as_echo "$as_me: failed program was
:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_header_preproc=no
23716 rm -f conftest.err conftest.$ac_ext
23717 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23718 $as_echo "$ac_header_preproc" >&6; }
23720 # So? What about this header?
23721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23723 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23724 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23725 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23726 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23727 ac_header_preproc=yes
23730 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23731 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23732 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23733 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23734 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23735 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23736 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23737 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23738 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23740 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23741 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23745 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23746 $as_echo_n "checking
for $ac_header...
" >&6; }
23747 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23748 $as_echo_n "(cached
) " >&6
23750 eval "$as_ac_Header=\
$ac_header_preproc"
23752 ac_res=`eval 'as_val=${'$as_ac_Header'}
23753 $as_echo "$as_val"'`
23754 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23755 $as_echo "$ac_res" >&6; }
23758 if test `eval 'as_val=${'$as_ac_Header'}
23759 $as_echo "$as_val"'` = yes; then
23760 cat >>confdefs.h <<_ACEOF
23761 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23778 for ac_header in com_err.h
23780 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23782 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23783 $as_echo_n "checking
for $ac_header...
" >&6; }
23784 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23785 $as_echo_n "(cached
) " >&6
23787 ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23790 $as_echo "$ac_res" >&6; }
23792 # Is the header compilable?
23793 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23794 $as_echo_n "checking
$ac_header usability...
" >&6; }
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 $ac_includes_default
23802 #include <$ac_header>
23804 rm -f conftest.$ac_objext
23805 if { (ac_try="$ac_compile"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23811 $as_echo "$ac_try_echo") >&5
23812 (eval "$ac_compile") 2>conftest.er1
23814 grep -v '^ *+' conftest.er1 >conftest.err
23816 cat conftest.err >&5
23817 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest.$ac_objext; then
23822 ac_header_compiler=yes
23824 $as_echo "$as_me: failed program was
:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ac_header_compiler=no
23830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23831 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23832 $as_echo "$ac_header_compiler" >&6; }
23834 # Is the header present?
23835 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23836 $as_echo_n "checking
$ac_header presence...
" >&6; }
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 #include <$ac_header>
23845 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23851 $as_echo "$ac_try_echo") >&5
23852 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23854 grep -v '^ *+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23858 (exit $ac_status); } >/dev/null && {
23859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23860 test ! -s conftest.err
23862 ac_header_preproc=yes
23864 $as_echo "$as_me: failed program was
:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23867 ac_header_preproc=no
23870 rm -f conftest.err conftest.$ac_ext
23871 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23872 $as_echo "$ac_header_preproc" >&6; }
23874 # So? What about this header?
23875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23877 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23878 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23879 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23881 ac_header_preproc=yes
23884 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23885 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23886 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23887 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23888 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23889 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23890 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23891 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23892 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23894 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23895 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23899 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23900 $as_echo_n "checking
for $ac_header...
" >&6; }
23901 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23902 $as_echo_n "(cached
) " >&6
23904 eval "$as_ac_Header=\
$ac_header_preproc"
23906 ac_res=`eval 'as_val=${'$as_ac_Header'}
23907 $as_echo "$as_val"'`
23908 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23909 $as_echo "$ac_res" >&6; }
23912 if test `eval 'as_val=${'$as_ac_Header'}
23913 $as_echo "$as_val"'` = yes; then
23914 cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23930 # Solaris requires -lintl if you want strerror (which calls dgettext)
23931 # to return localized messages.
23933 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23934 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23935 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23936 $as_echo_n "(cached
) " >&6
23938 ac_check_lib_save_LIBS=$LIBS
23939 LIBS="-lintl $LIBS"
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23947 /* Override any GCC internal prototype to avoid an error.
23948 Use char because int might match the return type of a GCC
23949 builtin and then its argument prototype would still apply. */
23957 return dgettext ();
23962 rm -f conftest.$ac_objext conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1 >conftest.err
23974 cat conftest.err >&5
23975 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest$ac_exeext && {
23980 test "$cross_compiling" = yes ||
23981 $as_test_x conftest$ac_exeext
23983 ac_cv_lib_intl_dgettext=yes
23985 $as_echo "$as_me: failed program was
:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23988 ac_cv_lib_intl_dgettext=no
23991 rm -rf conftest.dSYM
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993 conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23996 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23997 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23998 if test $ac_cv_lib_intl_dgettext = yes; then
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE_LIBINTL 1
24003 LIBS="-lintl $LIBS"
24008 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24009 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24010 if test "${emacs_cv_localtime_cache+set}" = set; then
24011 $as_echo_n "(cached
) " >&6
24013 if test x$ac_cv_func_tzset = xyes; then
24014 if test "$cross_compiling" = yes; then
24015 # If we have tzset, assume the worst when cross-compiling.
24016 emacs_cv_localtime_cache=yes
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24025 extern char **environ;
24029 for (to = from = environ; (*to = *from); from++)
24030 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24033 char TZ_GMT0[] = "TZ
=GMT0
";
24034 char TZ_PST8[] = "TZ
=PST8
";
24037 time_t now = time ((time_t *) 0);
24038 int hour_GMT0, hour_unset;
24039 if (putenv (TZ_GMT0) != 0)
24041 hour_GMT0 = localtime (&now)->tm_hour;
24043 hour_unset = localtime (&now)->tm_hour;
24044 if (putenv (TZ_PST8) != 0)
24046 if (localtime (&now)->tm_hour == hour_GMT0)
24049 if (localtime (&now)->tm_hour != hour_unset)
24054 rm -f conftest$ac_exeext
24055 if { (ac_try="$ac_link"
24056 case "(($ac_try" in
24057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24058 *) ac_try_echo=$ac_try;;
24060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24061 $as_echo "$ac_try_echo") >&5
24062 (eval "$ac_link") 2>&5
24064 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24066 { (case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24071 $as_echo "$ac_try_echo") >&5
24072 (eval "$ac_try") 2>&5
24074 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24075 (exit $ac_status); }; }; then
24076 emacs_cv_localtime_cache=no
24078 $as_echo "$as_me: program exited with status
$ac_status" >&5
24079 $as_echo "$as_me: failed program was
:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 ( exit $ac_status )
24083 emacs_cv_localtime_cache=yes
24085 rm -rf conftest.dSYM
24086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24091 # If we lack tzset, report that localtime does not cache TZ,
24092 # since we can't invalidate the cache if we don't have tzset.
24093 emacs_cv_localtime_cache=no
24096 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24097 $as_echo "$emacs_cv_localtime_cache" >&6; }
24098 if test $emacs_cv_localtime_cache = yes; then
24100 cat >>confdefs.h <<\_ACEOF
24101 #define LOCALTIME_CACHE 1
24106 if test "x
$HAVE_TIMEVAL" = xyes; then
24108 for ac_func in gettimeofday
24110 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24111 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24112 $as_echo_n "checking
for $ac_func...
" >&6; }
24113 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24114 $as_echo_n "(cached
) " >&6
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24124 #define $ac_func innocuous_$ac_func
24126 /* System header to define __stub macros and hopefully few prototypes,
24127 which can conflict with char $ac_func (); below.
24128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24129 <limits.h> exists even on freestanding compilers. */
24132 # include <limits.h>
24134 # include <assert.h>
24139 /* Override any GCC internal prototype to avoid an error.
24140 Use char because int might match the return type of a GCC
24141 builtin and then its argument prototype would still apply. */
24146 /* The GNU C library defines this for functions which it implements
24147 to always fail with ENOSYS. Some functions are actually named
24148 something starting with __ and the normal name is an alias. */
24149 #if defined __stub_$ac_func || defined __stub___$ac_func
24156 return $ac_func ();
24161 rm -f conftest.$ac_objext conftest$ac_exeext
24162 if { (ac_try="$ac_link"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_link") 2>conftest.er1
24171 grep -v '^ *+' conftest.er1 >conftest.err
24173 cat conftest.err >&5
24174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest$ac_exeext && {
24179 test "$cross_compiling" = yes ||
24180 $as_test_x conftest$ac_exeext
24182 eval "$as_ac_var=yes"
24184 $as_echo "$as_me: failed program was
:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 eval "$as_ac_var=no
"
24190 rm -rf conftest.dSYM
24191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24192 conftest$ac_exeext conftest.$ac_ext
24194 ac_res=`eval 'as_val=${'$as_ac_var'}
24195 $as_echo "$as_val"'`
24196 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24197 $as_echo "$ac_res" >&6; }
24198 if test `eval 'as_val=${'$as_ac_var'}
24199 $as_echo "$as_val"'` = yes; then
24200 cat >>confdefs.h <<_ACEOF
24201 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24207 if test $ac_cv_func_gettimeofday = yes; then
24208 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24209 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24210 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24211 $as_echo_n "(cached
) " >&6
24213 cat >conftest.$ac_ext <<_ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h. */
24220 #ifdef TIME_WITH_SYS_TIME
24221 #include <sys/time.h>
24224 #ifdef HAVE_SYS_TIME_H
24225 #include <sys/time.h>
24233 struct timeval time;
24234 gettimeofday (&time, 0);
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24246 $as_echo "$ac_try_echo") >&5
24247 (eval "$ac_compile") 2>conftest.er1
24249 grep -v '^ *+' conftest.er1 >conftest.err
24251 cat conftest.err >&5
24252 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24253 (exit $ac_status); } && {
24254 test -z "$ac_c_werror_flag" ||
24255 test ! -s conftest.err
24256 } && test -s conftest.$ac_objext; then
24257 emacs_cv_gettimeofday_two_arguments=yes
24259 $as_echo "$as_me: failed program was
:" >&5
24260 sed 's/^/| /' conftest.$ac_ext >&5
24262 emacs_cv_gettimeofday_two_arguments=no
24265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24268 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24269 if test $emacs_cv_gettimeofday_two_arguments = no; then
24271 cat >>confdefs.h <<\_ACEOF
24272 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24280 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24281 $as_echo_n "checking
for socket...
" >&6; }
24282 if test "${ac_cv_func_socket+set}" = set; then
24283 $as_echo_n "(cached
) " >&6
24285 cat >conftest.$ac_ext <<_ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24293 #define socket innocuous_socket
24295 /* System header to define __stub macros and hopefully few prototypes,
24296 which can conflict with char socket (); below.
24297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24298 <limits.h> exists even on freestanding compilers. */
24301 # include <limits.h>
24303 # include <assert.h>
24308 /* Override any GCC internal prototype to avoid an error.
24309 Use char because int might match the return type of a GCC
24310 builtin and then its argument prototype would still apply. */
24315 /* The GNU C library defines this for functions which it implements
24316 to always fail with ENOSYS. Some functions are actually named
24317 something starting with __ and the normal name is an alias. */
24318 #if defined __stub_socket || defined __stub___socket
24330 rm -f conftest.$ac_objext conftest$ac_exeext
24331 if { (ac_try="$ac_link"
24332 case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24336 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24337 $as_echo "$ac_try_echo") >&5
24338 (eval "$ac_link") 2>conftest.er1
24340 grep -v '^ *+' conftest.er1 >conftest.err
24342 cat conftest.err >&5
24343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24344 (exit $ac_status); } && {
24345 test -z "$ac_c_werror_flag" ||
24346 test ! -s conftest.err
24347 } && test -s conftest$ac_exeext && {
24348 test "$cross_compiling" = yes ||
24349 $as_test_x conftest$ac_exeext
24351 ac_cv_func_socket=yes
24353 $as_echo "$as_me: failed program was
:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_cv_func_socket=no
24359 rm -rf conftest.dSYM
24360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24361 conftest$ac_exeext conftest.$ac_ext
24363 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24364 $as_echo "$ac_cv_func_socket" >&6; }
24365 if test $ac_cv_func_socket = yes; then
24371 if test $ok_so_far = yes; then
24372 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24373 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24374 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24375 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24376 $as_echo_n "(cached
) " >&6
24378 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24379 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24381 # Is the header compilable?
24382 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24383 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 $ac_includes_default
24391 #include <netinet/in.h>
24393 rm -f conftest.$ac_objext
24394 if { (ac_try="$ac_compile"
24395 case "(($ac_try" in
24396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397 *) ac_try_echo=$ac_try;;
24399 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401 (eval "$ac_compile") 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24407 (exit $ac_status); } && {
24408 test -z "$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 } && test -s conftest.$ac_objext; then
24411 ac_header_compiler=yes
24413 $as_echo "$as_me: failed program was
:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24416 ac_header_compiler=no
24419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24420 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24421 $as_echo "$ac_header_compiler" >&6; }
24423 # Is the header present?
24424 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24425 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 #include <netinet/in.h>
24434 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24447 (exit $ac_status); } >/dev/null && {
24448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24451 ac_header_preproc=yes
24453 $as_echo "$as_me: failed program was
:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_header_preproc=no
24459 rm -f conftest.err conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24461 $as_echo "$ac_header_preproc" >&6; }
24463 # So? What about this header?
24464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24466 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24467 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24468 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24469 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24470 ac_header_preproc=yes
24473 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24474 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24475 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24476 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24477 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24478 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24479 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24480 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24481 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24482 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24483 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24484 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24488 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24489 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24490 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24491 $as_echo_n "(cached
) " >&6
24493 ac_cv_header_netinet_in_h=$ac_header_preproc
24495 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24496 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24499 if test $ac_cv_header_netinet_in_h = yes; then
24507 if test $ok_so_far = yes; then
24508 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24509 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24510 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24511 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24512 $as_echo_n "(cached
) " >&6
24514 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24515 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24517 # Is the header compilable?
24518 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24519 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24520 cat >conftest.$ac_ext <<_ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24526 $ac_includes_default
24527 #include <arpa/inet.h>
24529 rm -f conftest.$ac_objext
24530 if { (ac_try="$ac_compile"
24531 case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24535 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24536 $as_echo "$ac_try_echo") >&5
24537 (eval "$ac_compile") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24543 (exit $ac_status); } && {
24544 test -z "$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24546 } && test -s conftest.$ac_objext; then
24547 ac_header_compiler=yes
24549 $as_echo "$as_me: failed program was
:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_header_compiler=no
24555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24556 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24557 $as_echo "$ac_header_compiler" >&6; }
24559 # Is the header present?
24560 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24561 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24568 #include <arpa/inet.h>
24570 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24576 $as_echo "$ac_try_echo") >&5
24577 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24583 (exit $ac_status); } >/dev/null && {
24584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24585 test ! -s conftest.err
24587 ac_header_preproc=yes
24589 $as_echo "$as_me: failed program was
:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_header_preproc=no
24595 rm -f conftest.err conftest.$ac_ext
24596 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24597 $as_echo "$ac_header_preproc" >&6; }
24599 # So? What about this header?
24600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24602 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24603 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24604 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24605 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24606 ac_header_preproc=yes
24609 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24610 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24611 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24612 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24613 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24614 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24615 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24616 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24617 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24618 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24619 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24620 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24624 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24625 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24626 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24627 $as_echo_n "(cached
) " >&6
24629 ac_cv_header_arpa_inet_h=$ac_header_preproc
24631 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24632 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24635 if test $ac_cv_header_arpa_inet_h = yes; then
24643 if test $ok_so_far = yes; then
24645 cat >>confdefs.h <<\_ACEOF
24646 #define HAVE_INET_SOCKETS 1
24652 for ac_header in sys/ioctl.h
24654 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24656 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24657 $as_echo_n "checking
for $ac_header...
" >&6; }
24658 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24659 $as_echo_n "(cached
) " >&6
24661 ac_res=`eval 'as_val=${'$as_ac_Header'}
24662 $as_echo "$as_val"'`
24663 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24664 $as_echo "$ac_res" >&6; }
24666 # Is the header compilable?
24667 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24668 $as_echo_n "checking
$ac_header usability...
" >&6; }
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24676 #include <$ac_header>
24678 rm -f conftest.$ac_objext
24679 if { (ac_try="$ac_compile"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24685 $as_echo "$ac_try_echo") >&5
24686 (eval "$ac_compile") 2>conftest.er1
24688 grep -v '^ *+' conftest.er1 >conftest.err
24690 cat conftest.err >&5
24691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest.$ac_objext; then
24696 ac_header_compiler=yes
24698 $as_echo "$as_me: failed program was
:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_header_compiler=no
24704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24706 $as_echo "$ac_header_compiler" >&6; }
24708 # Is the header present?
24709 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24710 $as_echo_n "checking
$ac_header presence...
" >&6; }
24711 cat >conftest.$ac_ext <<_ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24717 #include <$ac_header>
24719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24724 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24728 grep -v '^ *+' conftest.er1 >conftest.err
24730 cat conftest.err >&5
24731 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24732 (exit $ac_status); } >/dev/null && {
24733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24736 ac_header_preproc=yes
24738 $as_echo "$as_me: failed program was
:" >&5
24739 sed 's/^/| /' conftest.$ac_ext >&5
24741 ac_header_preproc=no
24744 rm -f conftest.err conftest.$ac_ext
24745 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24746 $as_echo "$ac_header_preproc" >&6; }
24748 # So? What about this header?
24749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24751 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24752 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24755 ac_header_preproc=yes
24758 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24759 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24760 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24761 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24762 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24763 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24764 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24765 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24766 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24767 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24769 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24773 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24774 $as_echo_n "checking
for $ac_header...
" >&6; }
24775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24776 $as_echo_n "(cached
) " >&6
24778 eval "$as_ac_Header=\
$ac_header_preproc"
24780 ac_res=`eval 'as_val=${'$as_ac_Header'}
24781 $as_echo "$as_val"'`
24782 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24783 $as_echo "$ac_res" >&6; }
24786 if test `eval 'as_val=${'$as_ac_Header'}
24787 $as_echo "$as_val"'` = yes; then
24788 cat >>confdefs.h <<_ACEOF
24789 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24797 if test -f /usr/lpp/X11/bin/smt.exp; then
24799 cat >>confdefs.h <<\_ACEOF
24800 #define HAVE_AIX_SMT_EXP 1
24805 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24806 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24807 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24808 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24809 $as_echo "yes" >&6; }
24811 cat >>confdefs.h <<\_ACEOF
24812 #define HAVE_DEV_PTMX 1
24816 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24817 $as_echo "no
" >&6; }
24820 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24821 $as_echo_n "checking
for pid_t...
" >&6; }
24822 if test "${ac_cv_type_pid_t+set}" = set; then
24823 $as_echo_n "(cached
) " >&6
24825 ac_cv_type_pid_t=no
24826 cat >conftest.$ac_ext <<_ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24836 if (sizeof (pid_t))
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 cat >conftest.$ac_ext <<_ACEOF
24863 cat confdefs.h >>conftest.$ac_ext
24864 cat >>conftest.$ac_ext <<_ACEOF
24865 /* end confdefs.h. */
24866 $ac_includes_default
24870 if (sizeof ((pid_t)))
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24883 $as_echo "$ac_try_echo") >&5
24884 (eval "$ac_compile") 2>conftest.er1
24886 grep -v '^ *+' conftest.er1 >conftest.err
24888 cat conftest.err >&5
24889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24890 (exit $ac_status); } && {
24891 test -z "$ac_c_werror_flag" ||
24892 test ! -s conftest.err
24893 } && test -s conftest.$ac_objext; then
24896 $as_echo "$as_me: failed program was
:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 ac_cv_type_pid_t=yes
24902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904 $as_echo "$as_me: failed program was
:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24912 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24913 $as_echo "$ac_cv_type_pid_t" >&6; }
24914 if test $ac_cv_type_pid_t = yes; then
24918 cat >>confdefs.h <<_ACEOF
24925 for ac_header in vfork.h
24927 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24928 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24929 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24930 $as_echo_n "checking
for $ac_header...
" >&6; }
24931 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24932 $as_echo_n "(cached
) " >&6
24934 ac_res=`eval 'as_val=${'$as_ac_Header'}
24935 $as_echo "$as_val"'`
24936 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24937 $as_echo "$ac_res" >&6; }
24939 # Is the header compilable?
24940 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24941 $as_echo_n "checking
$ac_header usability...
" >&6; }
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24948 $ac_includes_default
24949 #include <$ac_header>
24951 rm -f conftest.$ac_objext
24952 if { (ac_try="$ac_compile"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24957 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24958 $as_echo "$ac_try_echo") >&5
24959 (eval "$ac_compile") 2>conftest.er1
24961 grep -v '^ *+' conftest.er1 >conftest.err
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24965 (exit $ac_status); } && {
24966 test -z "$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24968 } && test -s conftest.$ac_objext; then
24969 ac_header_compiler=yes
24971 $as_echo "$as_me: failed program was
:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 ac_header_compiler=no
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24979 $as_echo "$ac_header_compiler" >&6; }
24981 # Is the header present?
24982 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24983 $as_echo_n "checking
$ac_header presence...
" >&6; }
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 #include <$ac_header>
24992 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24993 case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24998 $as_echo "$ac_try_echo") >&5
24999 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25001 grep -v '^ *+' conftest.er1 >conftest.err
25003 cat conftest.err >&5
25004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25005 (exit $ac_status); } >/dev/null && {
25006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25009 ac_header_preproc=yes
25011 $as_echo "$as_me: failed program was
:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_header_preproc=no
25017 rm -f conftest.err conftest.$ac_ext
25018 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25019 $as_echo "$ac_header_preproc" >&6; }
25021 # So? What about this header?
25022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25024 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25025 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25026 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25028 ac_header_preproc=yes
25031 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25032 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25033 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25034 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25035 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25036 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25037 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25038 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25039 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25042 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25046 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25047 $as_echo_n "checking
for $ac_header...
" >&6; }
25048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25049 $as_echo_n "(cached
) " >&6
25051 eval "$as_ac_Header=\
$ac_header_preproc"
25053 ac_res=`eval 'as_val=${'$as_ac_Header'}
25054 $as_echo "$as_val"'`
25055 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25056 $as_echo "$ac_res" >&6; }
25059 if test `eval 'as_val=${'$as_ac_Header'}
25060 $as_echo "$as_val"'` = yes; then
25061 cat >>confdefs.h <<_ACEOF
25062 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25071 for ac_func in fork vfork
25073 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25074 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25075 $as_echo_n "checking
for $ac_func...
" >&6; }
25076 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25077 $as_echo_n "(cached
) " >&6
25079 cat >conftest.$ac_ext <<_ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h. */
25085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25087 #define $ac_func innocuous_$ac_func
25089 /* System header to define __stub macros and hopefully few prototypes,
25090 which can conflict with char $ac_func (); below.
25091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25092 <limits.h> exists even on freestanding compilers. */
25095 # include <limits.h>
25097 # include <assert.h>
25102 /* Override any GCC internal prototype to avoid an error.
25103 Use char because int might match the return type of a GCC
25104 builtin and then its argument prototype would still apply. */
25109 /* The GNU C library defines this for functions which it implements
25110 to always fail with ENOSYS. Some functions are actually named
25111 something starting with __ and the normal name is an alias. */
25112 #if defined __stub_$ac_func || defined __stub___$ac_func
25119 return $ac_func ();
25124 rm -f conftest.$ac_objext conftest$ac_exeext
25125 if { (ac_try="$ac_link"
25126 case "(($ac_try" in
25127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25128 *) ac_try_echo=$ac_try;;
25130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25131 $as_echo "$ac_try_echo") >&5
25132 (eval "$ac_link") 2>conftest.er1
25134 grep -v '^ *+' conftest.er1 >conftest.err
25136 cat conftest.err >&5
25137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25138 (exit $ac_status); } && {
25139 test -z "$ac_c_werror_flag" ||
25140 test ! -s conftest.err
25141 } && test -s conftest$ac_exeext && {
25142 test "$cross_compiling" = yes ||
25143 $as_test_x conftest$ac_exeext
25145 eval "$as_ac_var=yes"
25147 $as_echo "$as_me: failed program was
:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 eval "$as_ac_var=no
"
25153 rm -rf conftest.dSYM
25154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25155 conftest$ac_exeext conftest.$ac_ext
25157 ac_res=`eval 'as_val=${'$as_ac_var'}
25158 $as_echo "$as_val"'`
25159 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25160 $as_echo "$ac_res" >&6; }
25161 if test `eval 'as_val=${'$as_ac_var'}
25162 $as_echo "$as_val"'` = yes; then
25163 cat >>confdefs.h <<_ACEOF
25164 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25170 if test "x
$ac_cv_func_fork" = xyes; then
25171 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25172 $as_echo_n "checking
for working fork...
" >&6; }
25173 if test "${ac_cv_func_fork_works+set}" = set; then
25174 $as_echo_n "(cached
) " >&6
25176 if test "$cross_compiling" = yes; then
25177 ac_cv_func_fork_works=cross
25179 cat >conftest.$ac_ext <<_ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25185 $ac_includes_default
25190 /* By Ruediger Kuhlmann. */
25191 return fork () < 0;
25197 rm -f conftest$ac_exeext
25198 if { (ac_try="$ac_link"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25204 $as_echo "$ac_try_echo") >&5
25205 (eval "$ac_link") 2>&5
25207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25213 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215 (eval "$ac_try") 2>&5
25217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 ac_cv_func_fork_works=yes
25221 $as_echo "$as_me: program exited with status
$ac_status" >&5
25222 $as_echo "$as_me: failed program was
:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ( exit $ac_status )
25226 ac_cv_func_fork_works=no
25228 rm -rf conftest.dSYM
25229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25234 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25235 $as_echo "$ac_cv_func_fork_works" >&6; }
25238 ac_cv_func_fork_works=$ac_cv_func_fork
25240 if test "x
$ac_cv_func_fork_works" = xcross; then
25242 *-*-amigaos* | *-*-msdosdjgpp*)
25243 # Override, as these systems have only a dummy fork() stub
25244 ac_cv_func_fork_works=no
25247 ac_cv_func_fork_works=yes
25250 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25251 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25253 ac_cv_func_vfork_works=$ac_cv_func_vfork
25254 if test "x
$ac_cv_func_vfork" = xyes; then
25255 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25256 $as_echo_n "checking
for working vfork...
" >&6; }
25257 if test "${ac_cv_func_vfork_works+set}" = set; then
25258 $as_echo_n "(cached
) " >&6
25260 if test "$cross_compiling" = yes; then
25261 ac_cv_func_vfork_works=cross
25263 cat >conftest.$ac_ext <<_ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h. */
25269 /* Thanks to Paul Eggert for this test. */
25270 $ac_includes_default
25271 #include <sys/wait.h>
25272 #ifdef HAVE_VFORK_H
25273 # include <vfork.h>
25275 /* On some sparc systems, changes by the child to local and incoming
25276 argument registers are propagated back to the parent. The compiler
25277 is told about this with #include <vfork.h>, but some compilers
25278 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25279 static variable whose address is put into a register that is
25280 clobbered by the vfork. */
25283 sparc_address_test (int arg)
25285 sparc_address_test (arg) int arg;
25288 static pid_t child;
25306 pid_t parent = getpid ();
25309 sparc_address_test (0);
25314 /* Here is another test for sparc vfork register problems. This
25315 test uses lots of local variables, at least as many local
25316 variables as main has allocated so far including compiler
25317 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25318 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25319 reuse the register of parent for one of the local variables,
25320 since it will think that parent can't possibly be used any more
25321 in this routine. Assigning to the local variable will thus
25322 munge parent in the parent process. */
25324 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25325 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25326 /* Convince the compiler that p..p7 are live; otherwise, it might
25327 use the same hardware register for all 8 local variables. */
25328 if (p != p1 || p != p2 || p != p3 || p != p4
25329 || p != p5 || p != p6 || p != p7)
25332 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25333 from child file descriptors. If the child closes a descriptor
25334 before it execs or exits, this munges the parent's descriptor
25335 as well. Test for this by closing stdout in the child. */
25336 _exit(close(fileno(stdout)) != 0);
25341 while (wait(&status) != child)
25344 /* Was there some problem with vforking? */
25347 /* Did the child fail? (This shouldn't happen.) */
25350 /* Did the vfork/compiler bug occur? */
25351 || parent != getpid()
25353 /* Did the file descriptor bug occur? */
25354 || fstat(fileno(stdout), &st) != 0
25359 rm -f conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25366 $as_echo "$ac_try_echo") >&5
25367 (eval "$ac_link") 2>&5
25369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25371 { (case "(($ac_try" in
25372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25373 *) ac_try_echo=$ac_try;;
25375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25376 $as_echo "$ac_try_echo") >&5
25377 (eval "$ac_try") 2>&5
25379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25380 (exit $ac_status); }; }; then
25381 ac_cv_func_vfork_works=yes
25383 $as_echo "$as_me: program exited with status
$ac_status" >&5
25384 $as_echo "$as_me: failed program was
:" >&5
25385 sed 's/^/| /' conftest.$ac_ext >&5
25387 ( exit $ac_status )
25388 ac_cv_func_vfork_works=no
25390 rm -rf conftest.dSYM
25391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25396 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25397 $as_echo "$ac_cv_func_vfork_works" >&6; }
25400 if test "x
$ac_cv_func_fork_works" = xcross; then
25401 ac_cv_func_vfork_works=$ac_cv_func_vfork
25402 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25403 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25406 if test "x
$ac_cv_func_vfork_works" = xyes; then
25408 cat >>confdefs.h <<\_ACEOF
25409 #define HAVE_WORKING_VFORK 1
25414 cat >>confdefs.h <<\_ACEOF
25419 if test "x
$ac_cv_func_fork_works" = xyes; then
25421 cat >>confdefs.h <<\_ACEOF
25422 #define HAVE_WORKING_FORK 1
25428 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25429 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25430 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25431 $as_echo_n "(cached
) " >&6
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 #include <langinfo.h>
25443 char* cs = nl_langinfo(CODESET);
25448 rm -f conftest.$ac_objext conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25455 $as_echo "$ac_try_echo") >&5
25456 (eval "$ac_link") 2>conftest.er1
25458 grep -v '^ *+' conftest.er1 >conftest.err
25460 cat conftest.err >&5
25461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25462 (exit $ac_status); } && {
25463 test -z "$ac_c_werror_flag" ||
25464 test ! -s conftest.err
25465 } && test -s conftest$ac_exeext && {
25466 test "$cross_compiling" = yes ||
25467 $as_test_x conftest$ac_exeext
25469 emacs_cv_langinfo_codeset=yes
25471 $as_echo "$as_me: failed program was
:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 emacs_cv_langinfo_codeset=no
25477 rm -rf conftest.dSYM
25478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25479 conftest$ac_exeext conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25483 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25484 if test $emacs_cv_langinfo_codeset = yes; then
25486 cat >>confdefs.h <<\_ACEOF
25487 #define HAVE_LANGINFO_CODESET 1
25492 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25493 $as_echo_n "checking
for size_t...
" >&6; }
25494 if test "${ac_cv_type_size_t+set}" = set; then
25495 $as_echo_n "(cached
) " >&6
25497 ac_cv_type_size_t=no
25498 cat >conftest.$ac_ext <<_ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 $ac_includes_default
25508 if (sizeof (size_t))
25514 rm -f conftest.$ac_objext
25515 if { (ac_try="$ac_compile"
25516 case "(($ac_try" in
25517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518 *) ac_try_echo=$ac_try;;
25520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25521 $as_echo "$ac_try_echo") >&5
25522 (eval "$ac_compile") 2>conftest.er1
25524 grep -v '^ *+' conftest.er1 >conftest.err
25526 cat conftest.err >&5
25527 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25528 (exit $ac_status); } && {
25529 test -z "$ac_c_werror_flag" ||
25530 test ! -s conftest.err
25531 } && test -s conftest.$ac_objext; then
25532 cat >conftest.$ac_ext <<_ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h. */
25538 $ac_includes_default
25542 if (sizeof ((size_t)))
25548 rm -f conftest.$ac_objext
25549 if { (ac_try="$ac_compile"
25550 case "(($ac_try" in
25551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25552 *) ac_try_echo=$ac_try;;
25554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25555 $as_echo "$ac_try_echo") >&5
25556 (eval "$ac_compile") 2>conftest.er1
25558 grep -v '^ *+' conftest.er1 >conftest.err
25560 cat conftest.err >&5
25561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25562 (exit $ac_status); } && {
25563 test -z "$ac_c_werror_flag" ||
25564 test ! -s conftest.err
25565 } && test -s conftest.$ac_objext; then
25568 $as_echo "$as_me: failed program was
:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25571 ac_cv_type_size_t=yes
25574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25576 $as_echo "$as_me: failed program was
:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25584 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25585 $as_echo "$ac_cv_type_size_t" >&6; }
25586 if test $ac_cv_type_size_t = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589 #define HAVE_SIZE_T 1
25596 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25597 $as_echo_n "checking
for mbstate_t...
" >&6; }
25598 if test "${ac_cv_type_mbstate_t+set}" = set; then
25599 $as_echo_n "(cached
) " >&6
25601 cat >conftest.$ac_ext <<_ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h. */
25607 $ac_includes_default
25608 # include <wchar.h>
25612 mbstate_t x; return sizeof x;
25617 rm -f conftest.$ac_objext
25618 if { (ac_try="$ac_compile"
25619 case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25624 $as_echo "$ac_try_echo") >&5
25625 (eval "$ac_compile") 2>conftest.er1
25627 grep -v '^ *+' conftest.er1 >conftest.err
25629 cat conftest.err >&5
25630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25631 (exit $ac_status); } && {
25632 test -z "$ac_c_werror_flag" ||
25633 test ! -s conftest.err
25634 } && test -s conftest.$ac_objext; then
25635 ac_cv_type_mbstate_t=yes
25637 $as_echo "$as_me: failed program was
:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_cv_type_mbstate_t=no
25643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25645 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25646 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25647 if test $ac_cv_type_mbstate_t = yes; then
25649 cat >>confdefs.h <<\_ACEOF
25650 #define HAVE_MBSTATE_T 1
25655 cat >>confdefs.h <<\_ACEOF
25656 #define mbstate_t int
25661 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25662 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25663 if test "${emacs_cv_c_restrict+set}" = set; then
25664 $as_echo_n "(cached
) " >&6
25666 cat >conftest.$ac_ext <<_ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h. */
25672 void fred (int *restrict x);
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685 *) ac_try_echo=$ac_try;;
25687 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25688 $as_echo "$ac_try_echo") >&5
25689 (eval "$ac_compile") 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest.$ac_objext; then
25699 emacs_cv_c_restrict=yes
25701 $as_echo "$as_me: failed program was
:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25704 cat >conftest.$ac_ext <<_ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25710 void fred (int *__restrict x);
25719 rm -f conftest.$ac_objext
25720 if { (ac_try="$ac_compile"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25725 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25726 $as_echo "$ac_try_echo") >&5
25727 (eval "$ac_compile") 2>conftest.er1
25729 grep -v '^ *+' conftest.er1 >conftest.err
25731 cat conftest.err >&5
25732 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25733 (exit $ac_status); } && {
25734 test -z "$ac_c_werror_flag" ||
25735 test ! -s conftest.err
25736 } && test -s conftest.$ac_objext; then
25737 emacs_cv_c_restrict=__restrict
25739 $as_echo "$as_me: failed program was
:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25742 emacs_cv_c_restrict=no
25745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25750 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25751 $as_echo "$emacs_cv_c_restrict" >&6; }
25752 case "$emacs_cv_c_restrict" in
25753 yes) emacs_restrict=restrict;;
25754 no) emacs_restrict="";;
25755 *) emacs_restrict="$emacs_cv_c_restrict";;
25757 if test "$emacs_restrict" != __restrict; then
25759 cat >>confdefs.h <<_ACEOF
25760 #define __restrict $emacs_restrict
25765 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25766 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25767 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25768 $as_echo_n "(cached
) " >&6
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 void fred (int x[__restrict]);
25785 rm -f conftest.$ac_objext
25786 if { (ac_try="$ac_compile"
25787 case "(($ac_try" in
25788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25789 *) ac_try_echo=$ac_try;;
25791 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25792 $as_echo "$ac_try_echo") >&5
25793 (eval "$ac_compile") 2>conftest.er1
25795 grep -v '^ *+' conftest.er1 >conftest.err
25797 cat conftest.err >&5
25798 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25799 (exit $ac_status); } && {
25800 test -z "$ac_c_werror_flag" ||
25801 test ! -s conftest.err
25802 } && test -s conftest.$ac_objext; then
25803 emacs_cv_c_restrict_arr=yes
25805 $as_echo "$as_me: failed program was
:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25808 emacs_cv_c_restrict_arr=no
25811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25813 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25814 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25815 if test "$emacs_cv_c_restrict_arr" = yes; then
25817 cat >>confdefs.h <<\_ACEOF
25818 #define __restrict_arr __restrict
25825 # Set up the CFLAGS for real compilation, so we can substitute it.
25826 CFLAGS="$REAL_CFLAGS"
25827 CPPFLAGS="$REAL_CPPFLAGS"
25829 #### Find out which version of Emacs this is.
25830 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25831 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25832 if test x"${version}" = x; then
25833 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25834 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25835 { (exit 1); exit 1; }; }
25837 if test x"${version}" != x"$PACKAGE_VERSION"; then
25838 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25839 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25842 ### Specify what sort of things we'll be editing into Makefile and config.h.
25843 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25888 cat >>confdefs.h
<<_ACEOF
25889 #define EMACS_CONFIGURATION "${canonical}"
25893 cat >>confdefs.h
<<_ACEOF
25894 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25898 cat >>confdefs.h
<<_ACEOF
25899 #define config_machfile "${machfile}"
25903 cat >>confdefs.h
<<_ACEOF
25904 #define config_opsysfile "${opsysfile}"
25908 cat >>confdefs.h
<<_ACEOF
25909 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25913 cat >>confdefs.h
<<_ACEOF
25914 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25918 cat >>confdefs.h
<<_ACEOF
25919 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25923 cat >>confdefs.h
<<_ACEOF
25924 #define UNEXEC_SRC ${UNEXEC_SRC}
25930 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25932 cat >>confdefs.h
<<\_ACEOF
25933 #define HAVE_X_WINDOWS 1
25937 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25942 if test "${USE_X_TOOLKIT}" != "none" ; then
25944 cat >>confdefs.h
<<\_ACEOF
25945 #define USE_X_TOOLKIT 1
25948 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25950 cat >>confdefs.h
<<\_ACEOF
25951 #define USE_LUCID 1
25954 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25956 cat >>confdefs.h
<<\_ACEOF
25957 #define USE_MOTIF 1
25962 if test "${HAVE_X11}" = "yes" ; then
25964 cat >>confdefs.h
<<\_ACEOF
25969 if test "${HAVE_MENUS}" = "yes" ; then
25971 cat >>confdefs.h
<<\_ACEOF
25972 #define HAVE_MENUS 1
25976 if test "${GNU_MALLOC}" = "yes" ; then
25978 cat >>confdefs.h
<<\_ACEOF
25979 #define GNU_MALLOC 1
25983 if test "${REL_ALLOC}" = "yes" ; then
25985 cat >>confdefs.h
<<\_ACEOF
25986 #define REL_ALLOC 1
25996 #### Report on what we decided to do.
25997 #### Report GTK as a toolkit, even if it doesn't use Xt.
25998 #### It makes printing result more understandable as using GTK sets
25999 #### toolkit_scroll_bars to yes by default.
26000 if test "${HAVE_GTK}" = "yes"; then
26005 Configured for \`${canonical}'.
26007 Where should the build process find the source code? ${srcdir}
26008 What operating system and machine description files should Emacs use?
26009 \`${opsysfile}' and \`${machfile}'
26010 What compiler should emacs be built with? ${CC} ${CFLAGS}
26011 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26012 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26013 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26014 What window system should Emacs use? ${window_system}
26015 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26017 if test -n "${x_includes}"; then
26018 echo " Where do we find X Windows header files? ${x_includes}"
26020 echo " Where do we find X Windows header files? Standard dirs"
26022 if test -n "${x_libraries}"; then
26023 echo " Where do we find X Windows libraries? ${x_libraries}"
26025 echo " Where do we find X Windows libraries? Standard dirs"
26028 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26029 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26030 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26031 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26032 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26033 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26034 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26035 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26036 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26037 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26038 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26040 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26041 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26042 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26043 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26045 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26048 if test $USE_XASSERTS = yes; then
26049 echo " Compiling with asserts turned on."
26050 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26055 if test "$HAVE_NS" = "yes"; then
26057 echo "You must run \"make install\" in order to test the built application.
26058 The installed application will go to nextstep/Emacs.app and can be
26059 run or moved from there."
26060 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26061 echo "The application will be fully self-contained."
26063 echo "The lisp resources for the application will be installed under ${prefix}.
26064 You may need to run \"make install\" with sudo. The application will fail
26065 to run if these resources are not installed."
26070 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26071 echo "D-Bus integration has been tested for GNU/Linux only."
26076 # Remove any trailing slashes in these variables.
26077 test "${prefix}" != NONE
&&
26078 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26079 test "${exec_prefix}" != NONE
&&
26080 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26082 # Now get this: Some word that is part of the ${srcdir} directory name
26083 # or the ${configuration} value might, just might, happen to be an
26084 # identifier like `sun4' or `i386' or something, and be predefined by
26085 # the C preprocessor to some helpful value like 1, or maybe the empty
26086 # string. Needless to say consequent macro substitutions are less
26087 # than conducive to the makefile finding the correct directory.
26088 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
26089 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26090 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26092 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26093 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26094 ## from Makefile.c can correctly provide the arg `-traditional' to the
26097 cat >conftest.
$ac_ext <<_ACEOF
26100 cat confdefs.h
>>conftest.
$ac_ext
26101 cat >>conftest.
$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26106 $EGREP "yes..yes" >/dev
/null
2>&1; then
26107 CPP_NEED_TRADITIONAL
=no
26109 CPP_NEED_TRADITIONAL
=yes
26114 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"
26116 ac_config_commands
="$ac_config_commands default"
26118 cat >confcache
<<\_ACEOF
26119 # This file is a shell script that caches the results of configure
26120 # tests run on this system so they can be shared between configure
26121 # scripts and configure runs, see configure's option --config-cache.
26122 # It is not useful on other systems. If it contains results you don't
26123 # want to keep, you may remove or edit it.
26125 # config.status only pays attention to the cache file if you give it
26126 # the --recheck option to rerun configure.
26128 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26130 # following values.
26134 # The following way of writing the cache mishandles newlines in values,
26135 # but we know of no workaround that is simple, portable, and efficient.
26136 # So, we kill variables containing newlines.
26137 # Ultrix sh set writes to stderr and can't be redirected directly,
26138 # and sets the high bit in the cache file unless we assign to the vars.
26140 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26141 eval ac_val
=\$
$ac_var
26145 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26146 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26149 _ | IFS | as_nl
) ;; #(
26150 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26151 *) $as_unset $ac_var ;;
26157 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26158 *${as_nl}ac_space
=\
*)
26159 # `set' does not quote correctly, so add quotes (double-quote
26160 # substitution turns \\\\ into \\, and sed turns \\ into \).
26163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26166 # `set' quotes correctly as required by POSIX, so do not add quotes.
26167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26178 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26180 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26181 if test -w "$cache_file"; then
26182 test "x$cache_file" != "x/dev/null" &&
26183 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26184 $as_echo "$as_me: updating cache $cache_file" >&6;}
26185 cat confcache
>$cache_file
26187 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26193 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26194 # Let make expand exec_prefix.
26195 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26197 DEFS
=-DHAVE_CONFIG_H
26201 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26202 # 1. Remove the extension, and $U if already installed.
26203 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26204 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26206 # will be set to the directory where LIBOBJS objects are built.
26207 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26208 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26210 LIBOBJS
=$ac_libobjs
26212 LTLIBOBJS
=$ac_ltlibobjs
26216 : ${CONFIG_STATUS=./config.status}
26218 ac_clean_files_save
=$ac_clean_files
26219 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26220 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26222 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26224 # Generated by $as_me.
26225 # Run this file to recreate the current configuration.
26226 # Compiler output produced by configure, useful for debugging
26227 # configure, is in config.log if it exists.
26230 ac_cs_recheck=false
26232 SHELL=\${CONFIG_SHELL-$SHELL}
26235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26236 ## --------------------- ##
26237 ## M4sh Initialization. ##
26238 ## --------------------- ##
26240 # Be more Bourne compatible
26241 DUALCASE
=1; export DUALCASE
# for MKS sh
26242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26246 # is contrary to our usage. Disable this feature.
26247 alias -g '${1+"$@"}'='"$@"'
26248 setopt NO_GLOB_SUBST
26250 case `(set -o) 2>/dev/null` in
26251 *posix
*) set -o posix
;;
26260 # Avoid depending upon Character Ranges.
26261 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26262 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26263 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26264 as_cr_digits
='0123456789'
26265 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26271 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26274 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26275 as_echo='printf %s
\n'
26276 as_echo_n='printf %s
'
26278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26279 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26280 as_echo_n='/usr
/ucb
/echo -n'
26282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26283 as_echo_n_body='eval
26287 expr "X$arg" : "X\\(.*\\)$as_nl";
26288 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26290 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26292 export as_echo_n_body
26293 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26295 export as_echo_body
26296 as_echo='sh
-c $as_echo_body as_echo
'
26299 # The user is always right.
26300 if test "${PATH_SEPARATOR+set}" != set; then
26302 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26303 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26308 # Support unset when possible.
26309 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26317 # We need space, tab and new line, in precisely that order. Quoting is
26318 # there to prevent editors from complaining about space-tab.
26319 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26320 # splitting by setting IFS to empty value.)
26323 # Find who we are. Look in the path if we contain no directory separator.
26325 *[\\/]* ) as_myself=$0 ;;
26326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26327 for as_dir in $PATH
26330 test -z "$as_dir" && as_dir=.
26331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26337 # We did not find ourselves, most probably we were run as `sh COMMAND'
26338 # in which case we are not to be found in the path.
26339 if test "x$as_myself" = x
; then
26342 if test ! -f "$as_myself"; then
26343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26344 { (exit 1); exit 1; }
26347 # Work around bugs in pre-3.0 UWIN ksh.
26348 for as_var
in ENV MAIL MAILPATH
26349 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26361 # Required to use basename.
26362 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26363 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26369 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26370 as_basename
=basename
26376 # Name of the executable.
26377 as_me
=`$as_basename -- "$0" ||
26378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26379 X"$0" : 'X\(//\)$' \| \
26380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26382 sed '/^.*\/\([^/][^/]*\)\/*$/{
26401 as_lineno_1
=$LINENO
26402 as_lineno_2
=$LINENO
26403 test "x$as_lineno_1" != "x$as_lineno_2" &&
26404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26407 # uniformly replaced by the line number. The first 'sed' inserts a
26408 # line-number line after each line using $LINENO; the second 'sed'
26409 # does the real work. The second script uses 'N' to pair each
26410 # line-number line with the line containing $LINENO, and appends
26411 # trailing '-' during substitution so that $LINENO is not a special
26412 # case at line end.
26413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26414 # scripts with optimization help from Paolo Bonzini. Blame Lee
26415 # E. McMahon (1931-1989) for sed's syntax. :-)
26427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26430 ' >$as_me.lineno
&&
26431 chmod +x
"$as_me.lineno" ||
26432 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26433 { (exit 1); exit 1; }; }
26435 # Don't try to exec as it changes $[0], causing all sort of problems
26436 # (the dirname of $[0] is not the place where we might find the
26437 # original and so on. Autoconf is especially sensitive to this).
26438 .
"./$as_me.lineno"
26439 # Exit status is that of the last command.
26444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26450 ECHO_C
= ECHO_N
= ECHO_T
=
26451 case `echo -n x` in
26453 case `echo 'x\c'` in
26454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26460 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26461 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26467 rm -f conf$$ conf$$.exe conf$$.
file
26468 if test -d conf$$.dir
; then
26469 rm -f conf$$.dir
/conf$$.
file
26472 mkdir conf$$.dir
2>/dev
/null
26474 if (echo >conf$$.
file) 2>/dev
/null
; then
26475 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26477 # ... but there are two gotchas:
26478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26480 # In both cases, we have to default to `cp -p'.
26481 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26483 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26491 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26492 rmdir conf$$.dir
2>/dev
/null
26494 if mkdir
-p .
2>/dev
/null
; then
26497 test -d .
/-p && rmdir .
/-p
26501 if test -x / >/dev
/null
2>&1; then
26502 as_test_x
='test -x'
26504 if ls -dL / >/dev
/null
2>&1; then
26511 if test -d "$1"; then
26517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26518 ???[sx]*):;;*)false;;esac;fi
26522 as_executable_p
=$as_test_x
26524 # Sed expression to map a string onto a valid CPP name.
26525 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26527 # Sed expression to map a string onto a valid variable name.
26528 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26533 # Save the log message, to keep $[0] and so on meaningful, and to
26534 # report actual input values of CONFIG_FILES etc. instead of their
26535 # values after options handling.
26537 This file was extended by emacs $as_me 24.0.50, which was
26538 generated by GNU Autoconf 2.62. Invocation command line was
26540 CONFIG_FILES = $CONFIG_FILES
26541 CONFIG_HEADERS = $CONFIG_HEADERS
26542 CONFIG_LINKS = $CONFIG_LINKS
26543 CONFIG_COMMANDS = $CONFIG_COMMANDS
26546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26552 # Files that config.status was made for.
26553 config_files="$ac_config_files"
26554 config_headers="$ac_config_headers"
26555 config_commands="$ac_config_commands"
26559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26561 \`$as_me' instantiates files from templates according to the
26562 current configuration.
26564 Usage: $0 [OPTIONS] [FILE]...
26566 -h, --help print this help, then exit
26567 -V, --version print version number and configuration settings, then exit
26568 -q, --quiet do not print progress messages
26569 -d, --debug don't remove temporary files
26570 --recheck update $as_me by reconfiguring in the same conditions
26571 --file=FILE[:TEMPLATE]
26572 instantiate the configuration file FILE
26573 --header=FILE[:TEMPLATE]
26574 instantiate the configuration header FILE
26576 Configuration files:
26579 Configuration headers:
26582 Configuration commands:
26585 Report bugs to <bug-autoconf@gnu.org>."
26588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26590 emacs config.status 24.0.50
26591 configured by $0, generated by GNU Autoconf 2.62,
26592 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26594 Copyright (C) 2008 Free Software Foundation, Inc.
26595 This config.status script is free software; the Free Software Foundation
26596 gives unlimited permission to copy, distribute and modify it."
26601 test -n "\$AWK" || AWK=awk
26604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26605 # The default lists apply if the user does not specify any file.
26611 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26612 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26623 # Handling of the options.
26624 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26626 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26627 $as_echo "$ac_cs_version"; exit ;;
26628 --debug |
--debu |
--deb |
--de |
--d |
-d )
26630 --file |
--fil |
--fi |
--f )
26633 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26635 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26636 ac_need_defaults
=false
;;
26637 --header |
--heade |
--head |
--hea )
26640 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26642 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26643 ac_need_defaults
=false
;;
26645 # Conflict between --help and --header
26646 { $as_echo "$as_me: error: ambiguous option: $1
26647 Try \`$0 --help' for more information." >&2
26648 { (exit 1); exit 1; }; };;
26649 --help |
--hel |
-h )
26650 $as_echo "$ac_cs_usage"; exit ;;
26651 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26652 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26655 # This is an error.
26656 -*) { $as_echo "$as_me: error: unrecognized option: $1
26657 Try \`$0 --help' for more information." >&2
26658 { (exit 1); exit 1; }; } ;;
26660 *) ac_config_targets
="$ac_config_targets $1"
26661 ac_need_defaults
=false
;;
26667 ac_configure_extra_args
=
26669 if $ac_cs_silent; then
26671 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26676 if \$ac_cs_recheck; then
26677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26680 CONFIG_SHELL='$SHELL'
26681 export CONFIG_SHELL
26686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26691 ## Running $as_me. ##
26697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26701 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26707 # Handling of arguments.
26708 for ac_config_target
in $ac_config_targets
26710 case $ac_config_target in
26711 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26712 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26713 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26714 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26715 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26716 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26717 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26718 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26719 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26720 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26721 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26722 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26723 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26725 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26726 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26727 { (exit 1); exit 1; }; };;
26732 # If the user did not use the arguments to specify the items to instantiate,
26733 # then the envvar interface is used. Set only those that are not.
26734 # We use the long form for the default assignment because of an extremely
26735 # bizarre bug on SunOS 4.1.3.
26736 if $ac_need_defaults; then
26737 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26738 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26739 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26742 # Have a temporary directory for convenience. Make it in the build tree
26743 # simply because there is no reason against having it here, and in addition,
26744 # creating and moving files from /tmp can sometimes cause problems.
26745 # Hook for its removal unless debugging.
26746 # Note that there is a small window in which the directory will not be cleaned:
26747 # after its creation but before its name has been assigned to `$tmp'.
26751 trap 'exit_status=$?
26752 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26754 trap '{ (exit 1); exit 1; }' 1 2 13 15
26756 # Create a (secure) tmp directory for tmp files.
26759 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26760 test -n "$tmp" && test -d "$tmp"
26763 tmp
=.
/conf$$
-$RANDOM
26764 (umask 077 && mkdir
"$tmp")
26767 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26768 { (exit 1); exit 1; }
26771 # Set up the scripts for CONFIG_FILES section.
26772 # No need to generate them if there are no CONFIG_FILES.
26773 # This happens for instance with `./config.status config.h'.
26774 if test -n "$CONFIG_FILES"; then
26778 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26779 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26782 ac_cs_awk_cr
=$ac_cr
26785 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26790 echo "cat >conf$$subs.awk <<_ACEOF" &&
26791 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26793 } >conf$$subs.sh ||
26794 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26795 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26796 { (exit 1); exit 1; }; }
26797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26799 for ac_last_try in false false false false false :; do
26800 . ./conf$$subs.sh ||
26801 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26802 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26803 { (exit 1); exit 1; }; }
26805 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26807 elif $ac_last_try; then
26808 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26809 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26810 { (exit 1); exit 1; }; }
26812 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26815 rm -f conf$$subs.sh
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26818 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26822 s/^/S["/; s
/!.
*/"]=/
26832 s/\(.\{148\}\).*/\1/
26834 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26839 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26846 s/\(.\{148\}\).*/\1/
26848 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26852 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26857 ' <conf$$subs.awk | sed '
26862 ' >>$CONFIG_STATUS || ac_write_fail=1
26863 rm -f conf$$subs.awk
26864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26866 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26867 for (key in S) S_is_set[key] = 1
26873 nfields = split(line, field, "@
")
26875 len = length(field[1])
26876 for (i = 2; i < nfields; i++) {
26878 keylen = length(key)
26879 if (S_is_set[key]) {
26881 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26882 len += length(value) + length(field[++i])
26893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26894 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26895 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26898 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26899 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26900 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26901 { (exit 1); exit 1; }; }
26904 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26905 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26906 # trailing colons and then remove the whole line if VPATH becomes empty
26907 # (actually we leave an empty line to preserve line numbers).
26908 if test "x
$srcdir" = x.; then
26909 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26910 s/:*\$(srcdir):*/:/
26911 s/:*\${srcdir}:*/:/
26913 s/^\([^=]*=[ ]*\):*/\1/
26919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26920 fi # test -n "$CONFIG_FILES"
26922 # Set up the scripts for CONFIG_HEADERS section.
26923 # No need to generate them if there are no CONFIG_HEADERS.
26924 # This happens for instance with `./config.status Makefile'.
26925 if test -n "$CONFIG_HEADERS"; then
26926 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26930 # Transform confdefs.h into an awk script `defines.awk', embedded as
26931 # here-document in config.status, that substitutes the proper values into
26932 # config.h.in to produce config.h.
26934 # Create a delimiter string that does not exist in confdefs.h, to ease
26935 # handling of long lines.
26937 for ac_last_try in false false :; do
26938 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26939 if test -z "$ac_t"; then
26941 elif $ac_last_try; then
26942 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26943 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26944 { (exit 1); exit 1; }; }
26946 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26950 # For the awk script, D is an array of macro values keyed by name,
26951 # likewise P contains macro parameters if any. Preserve backslash
26952 # newline sequences.
26954 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26956 s/.\{148\}/&'"$ac_delim"'/g
26959 s/^[ ]*#[ ]*define[ ][ ]*/ /
26966 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26968 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26972 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26973 D["\
1"]=" \
3\\\\\\n
"\\/p
26975 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26980 s/.\{148\}/&'"$ac_delim"'/g
26985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26988 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26990 ' <confdefs.h | sed '
26991 s/'"$ac_delim"'/"\\\
26992 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 for (key in D) D_is_set[key] = 1
26998 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27000 split(line, arg, " ")
27001 if (arg[1] == "#") {
27005 defundef
= substr
(arg
[1], 2)
27008 split(mac1
, mac2
, "(") #)
27010 if (D_is_set
[macro
]) {
27011 # Preserve the white space surrounding the "#".
27012 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27013 print prefix
"define", macro P
[macro
] D
[macro
]
27016 # Replace #undef with comments. This is necessary, for example,
27017 # in the case of _POSIX_SOURCE, which is predefined and required
27018 # on some systems where configure will not decide to define it.
27019 if (defundef
== "undef") {
27020 print
"/*", line
, "*/"
27028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27029 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27030 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27031 { (exit 1); exit 1; }; }
27032 fi # test -n "$CONFIG_HEADERS"
27035 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27040 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27042 case $ac_mode$ac_tag in
27044 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27045 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27046 { (exit 1); exit 1; }; };;
27047 :[FH
]-) ac_tag
=-:-;;
27048 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27065 -) ac_f
="$tmp/stdin";;
27066 *) # Look for the file first in the build tree, then in the source tree
27067 # (if the path is not absolute). The absolute path cannot be DOS-style,
27068 # because $ac_f cannot contain `:'.
27072 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27074 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27075 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27076 { (exit 1); exit 1; }; };;
27078 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27079 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27082 # Let's still pretend it is `configure' which instantiates (i.e., don't
27083 # use $as_me), people would be surprised to read:
27084 # /* config.h. Generated by config.status. */
27085 configure_input
='Generated from '`
27086 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27088 if test x
"$ac_file" != x-
; then
27089 configure_input
="$ac_file. $configure_input"
27090 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27091 $as_echo "$as_me: creating $ac_file" >&6;}
27093 # Neutralize special characters interpreted by sed in replacement strings.
27094 case $configure_input in #(
27095 *\
&* |
*\|
* |
*\\* )
27096 ac_sed_conf_input
=`$as_echo "$configure_input" |
27097 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27098 *) ac_sed_conf_input
=$configure_input;;
27102 *:-:* |
*:-) cat >"$tmp/stdin" \
27103 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27104 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27105 { (exit 1); exit 1; }; } ;;
27110 ac_dir
=`$as_dirname -- "$ac_file" ||
27111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27112 X"$ac_file" : 'X\(//\)[^/]' \| \
27113 X"$ac_file" : 'X\(//\)$' \| \
27114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27115 $as_echo X"$ac_file" |
27116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27120 /^X\(\/\/\)[^/].*/{
27135 -*) as_dir
=.
/$as_dir;;
27137 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27141 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27142 *) as_qdir
=$as_dir;;
27144 as_dirs
="'$as_qdir' $as_dirs"
27145 as_dir
=`$as_dirname -- "$as_dir" ||
27146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27147 X"$as_dir" : 'X\(//\)[^/]' \| \
27148 X"$as_dir" : 'X\(//\)$' \| \
27149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27150 $as_echo X"$as_dir" |
27151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27155 /^X\(\/\/\)[^/].*/{
27168 test -d "$as_dir" && break
27170 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27171 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27172 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27173 { (exit 1); exit 1; }; }; }
27177 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27179 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27180 # A ".." for each directory in $ac_dir_suffix.
27181 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27182 case $ac_top_builddir_sub in
27183 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27184 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27187 ac_abs_top_builddir
=$ac_pwd
27188 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27189 # for backward compatibility:
27190 ac_top_builddir
=$ac_top_build_prefix
27193 .
) # We are building in place.
27195 ac_top_srcdir
=$ac_top_builddir_sub
27196 ac_abs_top_srcdir
=$ac_pwd ;;
27197 [\\/]* | ?
:[\\/]* ) # Absolute name.
27198 ac_srcdir
=$srcdir$ac_dir_suffix;
27199 ac_top_srcdir
=$srcdir
27200 ac_abs_top_srcdir
=$srcdir ;;
27201 *) # Relative name.
27202 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27203 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27204 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27206 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27216 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27217 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27222 # If the template does not know about datarootdir, expand it.
27223 # FIXME: This hack should be removed a few years after 2.60.
27224 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27237 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27238 *datarootdir
*) ac_datarootdir_seen
=yes;;
27239 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27240 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27241 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27244 ac_datarootdir_hack='
27245 s&@datadir@&$datadir&g
27246 s&@docdir@&$docdir&g
27247 s&@infodir@&$infodir&g
27248 s&@localedir@&$localedir&g
27249 s&@mandir@&$mandir&g
27250 s&\\\${datarootdir}&$datarootdir&g' ;;
27254 # Neutralize VPATH when `$srcdir' = `.'.
27255 # Shell code in configure.ac might set extrasub.
27256 # FIXME: do we really want to maintain this feature?
27257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27258 ac_sed_extra="$ac_vpsub
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27263 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27264 s|@configure_input@|
$ac_sed_conf_input|
;t t
27265 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27266 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27267 s
&@srcdir@
&$ac_srcdir&;t t
27268 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27269 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27270 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27271 s
&@builddir@
&$ac_builddir&;t t
27272 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27273 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27274 s
&@INSTALL@
&$ac_INSTALL&;t t
27275 $ac_datarootdir_hack
27277 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27278 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27279 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27280 { (exit 1); exit 1; }; }
27282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27283 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27285 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27286 which seems to be undefined. Please make sure it is defined." >&5
27287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27288 which seems to be undefined. Please make sure it is defined." >&2;}
27292 -) cat "$tmp/out" && rm -f "$tmp/out";;
27293 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27295 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27297 { (exit 1); exit 1; }; }
27303 if test x"$ac_file" != x-; then
27305 $as_echo "/* $configure_input */" \
27306 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27307 } >"$tmp/config.h" \
27308 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27310 { (exit 1); exit 1; }; }
27311 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27312 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27316 mv "$tmp/config.h" "$ac_file" \
27317 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27318 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27319 { (exit 1); exit 1; }; }
27322 $as_echo "/* $configure_input */" \
27323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27324 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27325 $as_echo "$as_me: error: could not create -" >&2;}
27326 { (exit 1); exit 1; }; }
27330 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27331 $as_echo "$as_me: executing $ac_file commands" >&6;}
27336 case $ac_file$ac_mode in
27339 ### Make the necessary directories, if they don't exist.
27340 for dir
in etc lisp
; do
27341 test -d ${dir} || mkdir
${dir}
27344 # Build src/Makefile from ${srcdir}/src/Makefile.c
27345 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27346 # This must be done after src/config.h is built, since we rely on that file.
27348 echo creating src
/epaths.h
27349 ${MAKE-make} epaths-force
27351 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27352 # `..' to `. .' unless invoked with -traditional
27354 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27355 CPPFLAGS
="$CPPFLAGS -traditional"
27358 echo creating lib-src
/Makefile
27360 rm -f junk.c junk1.c junk2.c
27361 sed -e '/start of cpp stuff/q' \
27362 < Makefile.c
> junk1.c
27363 sed -e '1,/start of cpp stuff/d'\
27364 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27365 < Makefile.c
> junk.c
27366 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27367 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27368 cat junk1.c junk2.c
> Makefile.new
27369 rm -f junk.c junk1.c junk2.c
27370 chmod 444 Makefile.new
27371 mv -f Makefile.new Makefile
27374 echo creating src
/Makefile
27376 rm -f junk.c junk1.c junk2.c
27377 sed -e '/start of cpp stuff/q' \
27378 < Makefile.c
> junk1.c
27379 sed -e '1,/start of cpp stuff/d'\
27380 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27381 < Makefile.c
> junk.c
27382 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27383 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27384 cat junk1.c junk2.c
> Makefile.new
27385 rm -f junk.c junk1.c junk2.c
27386 chmod 444 Makefile.new
27387 mv -f Makefile.new Makefile
27390 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27391 echo creating src
/.gdbinit
27392 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27401 { (exit 0); exit 0; }
27403 chmod +x
$CONFIG_STATUS
27404 ac_clean_files
=$ac_clean_files_save
27406 test $ac_write_fail = 0 ||
27407 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27408 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27409 { (exit 1); exit 1; }; }
27412 # configure is writing to config.log, and then calls config.status.
27413 # config.status does its own redirection, appending to config.log.
27414 # Unfortunately, on DOS this fails, as config.log is still kept open
27415 # by configure, so config.status won't be able to write to it; its
27416 # output is simply discarded. So we exec the FD to /dev/null,
27417 # effectively closing config.log, so it can be properly (re)opened and
27418 # appended to by config.status. When coming back to configure, we
27419 # need to make the FD available again.
27420 if test "$no_create" != yes; then
27422 ac_config_status_args
=
27423 test "$silent" = yes &&
27424 ac_config_status_args
="$ac_config_status_args --quiet"
27426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27429 # would make configure fail if this is the last instruction.
27430 $ac_cs_success ||
{ (exit 1); exit 1; }
27432 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27433 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27434 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}