2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.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
='23.1.50'
598 PACKAGE_STRING
='emacs 23.1.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
744 x_default_search_path
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
766 LIB_SRC_EXTRA_INSTALLABLES
771 enable_option_checking
788 with_toolkit_scroll_bars
799 enable_ns_self_contained
801 enable_maintainer_mode
808 ac_precious_vars
='build_alias
820 # Initialize some variables set by options.
822 ac_init_version
=false
823 ac_unrecognized_opts
=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name
=s
,x
,x
,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir
='${exec_prefix}/bin'
849 sbindir
='${exec_prefix}/sbin'
850 libexecdir
='${exec_prefix}/libexec'
851 datarootdir
='${prefix}/share'
852 datadir
='${datarootdir}'
853 sysconfdir
='${prefix}/etc'
854 sharedstatedir
='${prefix}/com'
855 localstatedir
='${prefix}/var'
856 includedir
='${prefix}/include'
857 oldincludedir
='/usr/include'
858 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir
='${datarootdir}/info'
864 libdir
='${exec_prefix}/lib'
865 localedir
='${datarootdir}/locale'
866 mandir
='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\
$ac_option
880 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
892 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
895 -build |
--build |
--buil |
--bui |
--bu)
896 ac_prev
=build_alias
;;
897 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
898 build_alias
=$ac_optarg ;;
900 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
901 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
902 ac_prev
=cache_file
;;
903 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
904 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
905 cache_file
=$ac_optarg ;;
908 cache_file
=config.cache
;;
910 -datadir |
--datadir |
--datadi |
--datad)
912 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
913 datadir
=$ac_optarg ;;
915 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
916 |
--dataroo |
--dataro |
--datar)
917 ac_prev
=datarootdir
;;
918 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
919 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
920 datarootdir
=$ac_optarg ;;
922 -disable-* |
--disable-*)
923 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
926 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
927 { (exit 1); exit 1; }; }
928 ac_useropt_orig
=$ac_useropt
929 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep
=', ';;
937 eval enable_
$ac_useropt=no
;;
939 -docdir |
--docdir |
--docdi |
--doc |
--do)
941 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
944 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
946 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
949 -enable-* |
--enable-*)
950 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
953 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954 { (exit 1); exit 1; }; }
955 ac_useropt_orig
=$ac_useropt
956 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep
=', ';;
964 eval enable_
$ac_useropt=\
$ac_optarg ;;
966 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
967 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
968 |
--exec |
--exe |
--ex)
969 ac_prev
=exec_prefix
;;
970 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
971 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
972 |
--exec=* |
--exe=* |
--ex=*)
973 exec_prefix
=$ac_optarg ;;
975 -gas |
--gas |
--ga |
--g)
976 # Obsolete; use --with-gas.
979 -help |
--help |
--hel |
--he |
-h)
981 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
982 ac_init_help
=recursive
;;
983 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
984 ac_init_help
=short
;;
986 -host |
--host |
--hos |
--ho)
987 ac_prev
=host_alias
;;
988 -host=* |
--host=* |
--hos=* |
--ho=*)
989 host_alias
=$ac_optarg ;;
991 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
993 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
995 htmldir
=$ac_optarg ;;
997 -includedir |
--includedir |
--includedi |
--included |
--include \
998 |
--includ |
--inclu |
--incl |
--inc)
999 ac_prev
=includedir
;;
1000 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1001 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1002 includedir
=$ac_optarg ;;
1004 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1006 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1007 infodir
=$ac_optarg ;;
1009 -libdir |
--libdir |
--libdi |
--libd)
1011 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1012 libdir
=$ac_optarg ;;
1014 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1015 |
--libexe |
--libex |
--libe)
1016 ac_prev
=libexecdir
;;
1017 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1018 |
--libexe=* |
--libex=* |
--libe=*)
1019 libexecdir
=$ac_optarg ;;
1021 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1022 ac_prev
=localedir
;;
1023 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1024 localedir
=$ac_optarg ;;
1026 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1027 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1028 ac_prev
=localstatedir
;;
1029 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1030 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1031 localstatedir
=$ac_optarg ;;
1033 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1035 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1036 mandir
=$ac_optarg ;;
1038 -nfp |
--nfp |
--nf)
1039 # Obsolete; use --without-fp.
1042 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1043 |
--no-cr |
--no-c |
-n)
1046 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1047 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1050 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1051 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1052 |
--oldin |
--oldi |
--old |
--ol |
--o)
1053 ac_prev
=oldincludedir
;;
1054 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1055 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1056 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1057 oldincludedir
=$ac_optarg ;;
1059 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1061 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1062 prefix
=$ac_optarg ;;
1064 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1065 |
--program-pre |
--program-pr |
--program-p)
1066 ac_prev
=program_prefix
;;
1067 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1068 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1069 program_prefix
=$ac_optarg ;;
1071 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1072 |
--program-suf |
--program-su |
--program-s)
1073 ac_prev
=program_suffix
;;
1074 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1075 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1076 program_suffix
=$ac_optarg ;;
1078 -program-transform-name |
--program-transform-name \
1079 |
--program-transform-nam |
--program-transform-na \
1080 |
--program-transform-n |
--program-transform- \
1081 |
--program-transform |
--program-transfor \
1082 |
--program-transfo |
--program-transf \
1083 |
--program-trans |
--program-tran \
1084 |
--progr-tra |
--program-tr |
--program-t)
1085 ac_prev
=program_transform_name
;;
1086 -program-transform-name=* |
--program-transform-name=* \
1087 |
--program-transform-nam=* |
--program-transform-na=* \
1088 |
--program-transform-n=* |
--program-transform-=* \
1089 |
--program-transform=* |
--program-transfor=* \
1090 |
--program-transfo=* |
--program-transf=* \
1091 |
--program-trans=* |
--program-tran=* \
1092 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1093 program_transform_name
=$ac_optarg ;;
1095 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1097 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1098 pdfdir
=$ac_optarg ;;
1100 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1102 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1105 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1106 |
-silent |
--silent |
--silen |
--sile |
--sil)
1109 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1111 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1113 sbindir
=$ac_optarg ;;
1115 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1116 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1117 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1119 ac_prev
=sharedstatedir
;;
1120 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1121 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1122 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1124 sharedstatedir
=$ac_optarg ;;
1126 -site |
--site |
--sit)
1128 -site=* |
--site=* |
--sit=*)
1131 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1133 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1134 srcdir
=$ac_optarg ;;
1136 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1137 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1138 ac_prev
=sysconfdir
;;
1139 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1140 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1141 sysconfdir
=$ac_optarg ;;
1143 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1144 ac_prev
=target_alias
;;
1145 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1146 target_alias
=$ac_optarg ;;
1148 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1151 -version |
--version |
--versio |
--versi |
--vers |
-V)
1152 ac_init_version
=: ;;
1155 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval with_
$ac_useropt=\
$ac_optarg ;;
1171 -without-* |
--without-*)
1172 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1175 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=no
;;
1189 # Obsolete; use --with-x.
1192 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1193 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1194 ac_prev
=x_includes
;;
1195 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1196 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1197 x_includes
=$ac_optarg ;;
1199 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1200 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1201 ac_prev
=x_libraries
;;
1202 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1203 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1204 x_libraries
=$ac_optarg ;;
1206 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1212 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1215 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\
$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1233 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1240 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1241 { (exit 1); exit 1; }; } ;;
1242 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val
=\$
$ac_var
1253 # Remove trailing slashes.
1256 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\
$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$
]* | ?
:[\\/]* ) continue;;
1262 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1264 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1265 { (exit 1); exit 1; }; }
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1273 target
=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x
; then
1277 if test "x$build_alias" = x
; then
1278 cross_compiling
=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1289 test "$silent" = yes && exec 6>/dev
/null
1292 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di
=`ls -di .` &&
1294 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1295 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1296 { (exit 1); exit 1; }; }
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1299 { (exit 1); exit 1; }; }
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted
=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir
=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1334 ac_srcdir_defaulted
=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1338 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1339 { (exit 1); exit 1; }; }
1341 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1344 { (exit 1); exit 1; }; }
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 for ac_var
in $ac_precious_vars; do
1357 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1359 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1370 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1433 --x-includes=DIR X include files are
in DIR
1434 --x-libraries=DIR X library files are
in DIR
1437 --build=BUILD configure
for building on BUILD
[guessed
]
1438 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1449 --disable-option-checking ignore unrecognized
--enable/--with options
1450 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1451 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1452 --disable-ns-self-contained
1453 disable self contained build under NeXTstep
1454 --enable-asserts compile code with asserts enabled
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful
(and
1457 sometimes confusing
) to the casual installer
1458 --enable-locallisppath=PATH
1459 directories Emacs should search
for lisp files
1460 specific to this site
1461 --enable-checking[=LIST
]
1462 enable expensive run-time checks. With LIST
, enable
1463 only specific categories of checks. Categories are
:
1464 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1465 stringfreelist
, xmallocoverrun
, conslist
1466 --enable-profiling build emacs with profiling support. This might not
1467 work on all platforms
1468 --disable-largefile omit support
for large files
1471 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1472 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1473 --without-pop don
't support POP mail retrieval with movemail
1474 --with-kerberos support Kerberos-authenticated POP
1475 --with-kerberos5 support Kerberos version 5 authenticated POP
1476 --with-hesiod support Hesiod to get the POP server host
1477 --without-sound don't compile with sound support
1478 --without-sync-input process async input synchronously
1479 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1481 --without-xpm don
't compile with XPM image support
1482 --without-jpeg don't compile with JPEG image support
1483 --without-tiff don
't compile with TIFF image support
1484 --without-gif don't compile with GIF image support
1485 --without-png don
't compile with PNG image support
1486 --without-rsvg don't compile with SVG image support
1487 --without-xft don
't use XFT for anti aliased fonts
1488 --without-libotf don't use libotf
for OpenType font support
1489 --without-m17n-flt don
't use m17n-flt for text shaping
1490 --without-toolkit-scroll-bars
1491 don't use Motif or Xaw3d scroll bars
1492 --without-xaw3d don
't use Xaw3d
1493 --without-xim don't use X11 XIM
1494 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1495 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1497 --without-dbus don't compile with D-Bus support
1498 --without-makeinfo don
't require makeinfo for building manuals
1500 --with-pkg-config-prog=PATH
1501 path to pkg-config for finding GTK and librsvg
1502 --with-gnustep-conf=PATH
1503 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1504 or /etc/GNUstep/GNUstep.conf
1505 --with-x use the X Window System
1507 Some influential environment variables:
1508 CC C compiler command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1511 nonstandard directory <lib dir>
1512 LIBS libraries to pass to the linker, e.g. -l<library>
1513 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514 you have headers in a nonstandard directory <include dir>
1516 XMKMF Path to xmkmf, Makefile generator for X Window System
1518 Use these variables to override the choices made by `configure' or to
help
1519 it to
find libraries and programs with nonstandard names
/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1534 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1536 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1541 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir
=$ac_pwd
1545 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir
=$ac_top_build_prefix
1550 .
) # We are building in place.
1552 ac_top_srcdir
=$ac_top_builddir_sub
1553 ac_abs_top_srcdir
=$ac_pwd ;;
1554 [\\/]* | ?
:[\\/]* ) # Absolute name.
1555 ac_srcdir
=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir
=$srcdir
1557 ac_abs_top_srcdir
=$srcdir ;;
1559 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1583 emacs configure
23.1.50
1584 generated by GNU Autoconf
2.62
1586 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1588 This configure
script is free software
; the Free Software Foundation
1589 gives unlimited permission to copy
, distribute and modify it.
1593 cat >config.log
<<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by emacs $as_me 23.1.50, which was
1598 generated by GNU Autoconf 2.62. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir
=.
1634 $as_echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next
=false
1664 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1665 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1666 |
-silent |
--silent |
--silen |
--sile |
--sil)
1669 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true
; then
1676 ac_must_keep_next
=false
# Got value, back to normal.
1679 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1680 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1681 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1682 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next
=true
;;
1690 ac_configure_args
="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1696 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1727 *) $as_unset $ac_var ;;
1732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733 *${as_nl}ac_space=\ *)
1735 "s/'\''/'\''\\\\'\'''\''/g;
1736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1752 for ac_var in $ac_subst_vars
1754 eval ac_val=\$$ac_var
1756 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 $as_echo "$ac_var='\''$ac_val'\''"
1762 if test -n "$ac_subst_files"; then
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1769 for ac_var
in $ac_subst_files
1771 eval ac_val
=\$
$ac_var
1773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 $as_echo "$ac_var='\''$ac_val'\''"
1780 if test -s confdefs.h; then
1790 test "$ac_signal" != 0 &&
1791 $as_echo "$as_me: caught signal $ac_signal"
1792 $as_echo "$as_me: exit $exit_status"
1794 rm -f core *.core core.conftest.* &&
1795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798 for ac_signal
in 1 2 13 15; do
1799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest
* confdefs.h
1806 # Predefined preprocessor variables.
1808 cat >>confdefs.h
<<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1813 cat >>confdefs.h
<<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818 cat >>confdefs.h
<<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1823 cat >>confdefs.h
<<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1828 cat >>confdefs.h
<<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer an explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838 ac_site_file1
=$CONFIG_SITE
1839 elif test "x$prefix" != xNONE
; then
1840 ac_site_file1
=$prefix/share
/config.site
1841 ac_site_file2
=$prefix/etc
/config.site
1843 ac_site_file1
=$ac_default_prefix/share
/config.site
1844 ac_site_file2
=$ac_default_prefix/etc
/config.site
1846 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1848 test "x$ac_site_file" = xNONE
&& continue
1849 if test -r "$ac_site_file"; then
1850 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1852 sed 's/^/| /' "$ac_site_file" >&5
1857 if test -r "$cache_file"; then
1858 # Some versions of bash will fail to source /dev/null (special
1859 # files actually), so we avoid doing that.
1860 if test -f "$cache_file"; then
1861 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 $as_echo "$as_me: loading cache $cache_file" >&6;}
1864 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1865 *) .
"./$cache_file";;
1869 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 $as_echo "$as_me: creating cache $cache_file" >&6;}
1874 ac_header_list
="$ac_header_list sys/time.h"
1875 ac_header_list
="$ac_header_list unistd.h"
1876 ac_func_list
="$ac_func_list alarm"
1877 # Check that the precious variables saved in the cache have kept the same
1879 ac_cache_corrupted
=false
1880 for ac_var
in $ac_precious_vars; do
1881 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1882 eval ac_new_set
=\
$ac_env_${ac_var}_set
1883 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1884 eval ac_new_val
=\
$ac_env_${ac_var}_value
1885 case $ac_old_set,$ac_new_set in
1887 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1889 ac_cache_corrupted
=: ;;
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1893 ac_cache_corrupted
=: ;;
1896 if test "x$ac_old_val" != "x$ac_new_val"; then
1897 # differences in whitespace do not lead to failure.
1898 ac_old_val_w
=`echo x $ac_old_val`
1899 ac_new_val_w
=`echo x $ac_new_val`
1900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 ac_cache_corrupted
=:
1905 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1907 eval $ac_var=\
$ac_old_val
1909 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1911 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1915 # Pass precious variables to config.status.
1916 if test "$ac_new_set" = set; then
1918 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 *) ac_arg
=$ac_var=$ac_new_val ;;
1921 case " $ac_configure_args " in
1922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1923 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1927 if $ac_cache_corrupted; then
1928 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1930 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1931 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1932 { (exit 1); exit 1; }; }
1960 ac_cpp
='$CPP $CPPFLAGS'
1961 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1966 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1970 test "$program_prefix" != NONE
&&
1971 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1972 # Use a double $ so make ignores it.
1973 test "$program_suffix" != NONE
&&
1974 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1975 # Double any \ or $.
1976 # By default was `s,x,x', remove it if useless.
1977 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
1978 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
1981 lispdir
='${datadir}/emacs/${version}/lisp'
1982 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1983 '${datadir}/emacs/site-lisp'
1984 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1985 etcdir
='${datadir}/emacs/${version}/etc'
1986 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1987 docdir
='${datadir}/emacs/${version}/etc'
1988 gamedir
='${localstatedir}/games/emacs'
1995 # Check whether --with-pop was given.
1996 if test "${with_pop+set}" = set; then
2002 if test "$with_pop" = yes; then
2003 cat >>confdefs.h
<<\_ACEOF
2004 #define MAIL_USE_POP 1
2011 # Check whether --with-kerberos was given.
2012 if test "${with_kerberos+set}" = set; then
2013 withval
=$with_kerberos;
2018 if test "$with_kerberos" != no
; then
2019 cat >>confdefs.h
<<\_ACEOF
2027 # Check whether --with-kerberos5 was given.
2028 if test "${with_kerberos5+set}" = set; then
2029 withval
=$with_kerberos5;
2034 if test "${with_kerberos5}" != no
; then
2035 if test "${with_kerberos}" = no
; then
2037 cat >>confdefs.h
<<\_ACEOF
2043 cat >>confdefs.h
<<\_ACEOF
2050 # Check whether --with-hesiod was given.
2051 if test "${with_hesiod+set}" = set; then
2052 withval
=$with_hesiod;
2057 if test "$with_hesiod" != no
; then
2059 cat >>confdefs.h
<<\_ACEOF
2066 # Check whether --with-sound was given.
2067 if test "${with_sound+set}" = set; then
2068 withval
=$with_sound;
2075 # Check whether --with-sync-input was given.
2076 if test "${with_sync_input+set}" = set; then
2077 withval
=$with_sync_input;
2082 if test "$with_sync_input" = yes; then
2084 cat >>confdefs.h
<<\_ACEOF
2085 #define SYNC_INPUT 1
2091 # Check whether --with-x-toolkit was given.
2092 if test "${with_x_toolkit+set}" = set; then
2093 withval
=$with_x_toolkit; case "${withval}" in
2094 y | ye |
yes ) val
=gtk
;;
2096 l | lu | luc | luci | lucid
) val
=lucid
;;
2097 a |
at | ath | athe | athen | athena
) val
=athena
;;
2098 m | mo | mot | moti | motif
) val
=motif
;;
2099 g | gt | gtk
) val
=gtk
;;
2101 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2102 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2103 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2104 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2105 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2106 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2107 { (exit 1); exit 1; }; }
2116 # Check whether --with-xpm was given.
2117 if test "${with_xpm+set}" = set; then
2124 # Check whether --with-jpeg was given.
2125 if test "${with_jpeg+set}" = set; then
2132 # Check whether --with-tiff was given.
2133 if test "${with_tiff+set}" = set; then
2140 # Check whether --with-gif was given.
2141 if test "${with_gif+set}" = set; then
2148 # Check whether --with-png was given.
2149 if test "${with_png+set}" = set; then
2156 # Check whether --with-rsvg was given.
2157 if test "${with_rsvg+set}" = set; then
2165 # Check whether --with-xft was given.
2166 if test "${with_xft+set}" = set; then
2173 # Check whether --with-libotf was given.
2174 if test "${with_libotf+set}" = set; then
2175 withval
=$with_libotf;
2181 # Check whether --with-m17n-flt was given.
2182 if test "${with_m17n_flt+set}" = set; then
2183 withval
=$with_m17n_flt;
2190 # Check whether --with-toolkit-scroll-bars was given.
2191 if test "${with_toolkit_scroll_bars+set}" = set; then
2192 withval
=$with_toolkit_scroll_bars;
2194 with_toolkit_scroll_bars
=yes
2198 # Check whether --with-xaw3d was given.
2199 if test "${with_xaw3d+set}" = set; then
2200 withval
=$with_xaw3d;
2206 # Check whether --with-xim was given.
2207 if test "${with_xim+set}" = set; then
2214 # Check whether --with-ns was given.
2215 if test "${with_ns+set}" = set; then
2223 # Check whether --with-gpm was given.
2224 if test "${with_gpm+set}" = set; then
2231 # Check whether --with-dbus was given.
2232 if test "${with_dbus+set}" = set; then
2239 ## For the times when you want to build Emacs but don't have
2240 ## a suitable makeinfo, and can live without the manuals.
2242 # Check whether --with-makeinfo was given.
2243 if test "${with_makeinfo+set}" = set; then
2244 withval
=$with_makeinfo;
2251 # Check whether --with-gtk was given.
2252 if test "${with_gtk+set}" = set; then
2253 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2254 specify a toolkit." >&5
2255 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&2;}
2257 { (exit 1); exit 1; }; }
2262 # Check whether --with-gcc was given.
2263 if test "${with_gcc+set}" = set; then
2264 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2265 variable to specify a compiler." >&5
2266 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&2;}
2268 { (exit 1); exit 1; }; }
2273 # Check whether --with-pkg-config-prog was given.
2274 if test "${with_pkg_config_prog+set}" = set; then
2275 withval
=$with_pkg_config_prog;
2278 if test "X${with_pkg_config_prog}" != X
; then
2279 if test "${with_pkg_config_prog}" != yes; then
2280 PKG_CONFIG
="${with_pkg_config_prog}"
2285 # Check whether --with-gnustep-conf was given.
2286 if test "${with_gnustep_conf+set}" = set; then
2287 withval
=$with_gnustep_conf;
2290 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2291 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2292 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2293 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2295 # Check whether --enable-ns-self-contained was given.
2296 if test "${enable_ns_self_contained+set}" = set; then
2297 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2299 EN_NS_SELF_CONTAINED
=yes
2303 # Check whether --enable-asserts was given.
2304 if test "${enable_asserts+set}" = set; then
2305 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2311 # Check whether --enable-maintainer-mode was given.
2312 if test "${enable_maintainer_mode+set}" = set; then
2313 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2315 USE_MAINTAINER_MODE
=no
2318 if test $USE_MAINTAINER_MODE = yes; then
2325 # Check whether --enable-locallisppath was given.
2326 if test "${enable_locallisppath+set}" = set; then
2327 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2329 elif test "${enableval}" != "yes"; then
2330 locallisppath
=${enableval}
2335 # Check whether --enable-checking was given.
2336 if test "${enable_checking+set}" = set; then
2337 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2340 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2341 for check
in $ac_checking_flags
2344 # these set all the flags to specific states
2345 yes) ac_enable_checking
=1 ;;
2346 no
) ac_enable_checking
= ;
2347 ac_gc_check_stringbytes
= ;
2348 ac_gc_check_string_overrun
= ;
2349 ac_gc_check_string_free_list
= ;
2350 ac_xmalloc_overrun
= ;
2351 ac_gc_check_cons_list
= ;;
2352 all
) ac_enable_checking
=1 ;
2353 ac_gc_check_stringbytes
=1 ;
2354 ac_gc_check_string_overrun
=1 ;
2355 ac_gc_check_string_free_list
=1 ;
2356 ac_xmalloc_overrun
=1 ;
2357 ac_gc_check_cons_list
=1 ;;
2358 # these enable particular checks
2359 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2360 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2361 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2362 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2363 conslist
) ac_gc_check_cons_list
=1 ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2365 $as_echo "$as_me: error: unknown check category $check" >&2;}
2366 { (exit 1); exit 1; }; } ;;
2371 if test x
$ac_enable_checking != x
; then
2373 cat >>confdefs.h
<<\_ACEOF
2374 #define ENABLE_CHECKING 1
2378 if test x
$ac_gc_check_stringbytes != x
; then
2380 cat >>confdefs.h
<<\_ACEOF
2381 #define GC_CHECK_STRING_BYTES 1
2385 if test x
$ac_gc_check_stringoverrun != x
; then
2387 cat >>confdefs.h
<<\_ACEOF
2388 #define GC_CHECK_STRING_OVERRUN 1
2392 if test x
$ac_gc_check_string_free_list != x
; then
2394 cat >>confdefs.h
<<\_ACEOF
2395 #define GC_CHECK_STRING_FREE_LIST 1
2399 if test x
$ac_xmalloc_overrun != x
; then
2401 cat >>confdefs.h
<<\_ACEOF
2402 #define XMALLOC_OVERRUN_CHECK 1
2406 if test x
$ac_gc_check_cons_list != x
; then
2408 cat >>confdefs.h
<<\_ACEOF
2409 #define GC_CHECK_CONS_LIST 1
2414 # Check whether --enable-profiling was given.
2415 if test "${enable_profiling+set}" = set; then
2416 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2419 if test x
$ac_enable_profiling != x
; then
2420 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2421 PROFILING_LDFLAGS
="-pg"
2427 #### Make srcdir absolute, if it isn't already. It's important to
2428 #### avoid running the path through pwd unnecessarily, since pwd can
2429 #### give you automounter prefixes, which can go away. We do all this
2430 #### so Emacs can find its files when run uninstalled.
2431 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2436 ## We may be able to use the $PWD environment variable to make this
2437 ## absolute. But sometimes PWD is inaccurate.
2438 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2439 ## but that tested only for a well-formed and valid PWD,
2440 ## it did not object when PWD was well-formed and valid but just wrong.
2441 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2445 srcdir
="`(cd ${srcdir}; pwd)`"
2448 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2451 #### Check if the source directory already has a configured system in it.
2452 if test `pwd` != `(cd ${srcdir} && pwd)` \
2453 && test -f "${srcdir}/src/config.h" ; then
2454 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2455 as a build directory right now; it has been configured in its own
2456 right. To configure in another directory as well, you MUST
2457 use GNU make. If you do not have GNU make, then you must
2458 now do \`make distclean' in ${srcdir},
2459 and then run $0 again." >&5
2460 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2461 as a build directory right now; it has been configured in its own
2462 right. To configure in another directory as well, you MUST
2463 use GNU make. If you do not have GNU make, then you must
2464 now do \`make distclean' in ${srcdir},
2465 and then run $0 again." >&2;}
2468 #### Given the configuration name, set machfile and opsysfile to the
2469 #### names of the m/*.h and s/*.h files we should use.
2471 ### Canonicalize the configuration name.
2474 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2475 if test -f "$ac_dir/install-sh"; then
2477 ac_install_sh
="$ac_aux_dir/install-sh -c"
2479 elif test -f "$ac_dir/install.sh"; then
2481 ac_install_sh
="$ac_aux_dir/install.sh -c"
2483 elif test -f "$ac_dir/shtool"; then
2485 ac_install_sh
="$ac_aux_dir/shtool install -c"
2489 if test -z "$ac_aux_dir"; then
2490 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2491 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2492 { (exit 1); exit 1; }; }
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2506 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2507 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2508 { (exit 1); exit 1; }; }
2510 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2511 $as_echo_n "checking build system type... " >&6; }
2512 if test "${ac_cv_build+set}" = set; then
2513 $as_echo_n "(cached) " >&6
2515 ac_build_alias
=$build_alias
2516 test "x$ac_build_alias" = x
&&
2517 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2518 test "x$ac_build_alias" = x
&&
2519 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2520 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2521 { (exit 1); exit 1; }; }
2522 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2523 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2524 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2525 { (exit 1); exit 1; }; }
2528 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2529 $as_echo "$ac_cv_build" >&6; }
2530 case $ac_cv_build in
2532 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2533 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2534 { (exit 1); exit 1; }; };;
2537 ac_save_IFS
=$IFS; IFS
='-'
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2547 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2551 $as_echo_n "checking host system type... " >&6; }
2552 if test "${ac_cv_host+set}" = set; then
2553 $as_echo_n "(cached) " >&6
2555 if test "x$host_alias" = x
; then
2556 ac_cv_host
=$ac_cv_build
2558 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2559 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2560 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2561 { (exit 1); exit 1; }; }
2565 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2566 $as_echo "$ac_cv_host" >&6; }
2569 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2570 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2571 { (exit 1); exit 1; }; };;
2574 ac_save_IFS
=$IFS; IFS
='-'
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2584 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2588 configuration
=${host_alias-${build_alias-$host}}
2592 ### If you add support for a new configuration, add code to this
2593 ### switch statement to recognize your configuration name and select
2594 ### the appropriate operating system and machine description files.
2596 ### You would hope that you could choose an m/*.h file pretty much
2597 ### based on the machine portion of the configuration name, and an s-
2598 ### file based on the operating system portion. However, it turns out
2599 ### that each m/*.h file is pretty manufacturer-specific - for
2600 ### example mips.h is MIPS
2601 ### So we basically have to have a special case for each
2602 ### configuration name.
2604 ### As far as handling version numbers on operating systems is
2605 ### concerned, make sure things will fail in a fixable way. If
2606 ### /etc/MACHINES doesn't say anything about version numbers, be
2607 ### prepared to handle anything reasonably. If version numbers
2608 ### matter, be sure /etc/MACHINES says something about it.
2610 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2611 ### "System V Release 4"; he writes, "The old convention encouraged
2612 ### confusion between `system' and `release' levels'."
2614 machine
='' opsys
='' unported
=no
2615 case "${canonical}" in
2620 case "${canonical}" in
2621 alpha
*-*-freebsd*) machine
=alpha
;;
2622 arm
*-*-freebsd*) machine
=arm
;;
2623 ia64-
*-freebsd*) machine
=ia64
;;
2624 sparc-
*-freebsd*) machine
=sparc
;;
2625 sparc64-
*-freebsd*) machine
=sparc
;;
2626 powerpc-
*-freebsd*) machine
=macppc
;;
2627 i
[3456]86-*-freebsd*) machine
=intel386
;;
2628 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2632 ## FreeBSD kernel + glibc based userland
2635 case "${canonical}" in
2636 alpha
*-*-kfreebsd*) machine
=alpha
;;
2637 ia64-
*-kfreebsd*) machine
=ia64
;;
2638 sparc-
*-kfreebsd*) machine
=sparc
;;
2639 sparc64-
*-kfreebsd*) machine
=sparc
;;
2640 powerpc-
*-kfreebsd*) machine
=macppc
;;
2641 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2642 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2649 if test -f /usr
/lib
/crti.o
; then
2651 cat >>confdefs.h
<<\_ACEOF
2652 #define HAVE_CRTIN /**/
2657 case "${canonical}" in
2658 alpha
*-*-netbsd*) machine
=alpha
;;
2659 i
[3456]86-*-netbsd*) machine
=intel386
;;
2660 mips-
*-netbsd*) machine
=mips
;;
2661 mipsel-
*-netbsd*) machine
=mips
;;
2662 mipseb-
*-netbsd*) machine
=mips
;;
2663 powerpc-
*-netbsd*) machine
=macppc
;;
2664 sparc
*-*-netbsd*) machine
=sparc
;;
2665 vax-
*-netbsd*) machine
=vax
;;
2666 arm-
*-netbsd*) machine
=arm
;;
2667 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2668 hppa-
*-netbsd*) machine
=hp800
;;
2669 m68k-
*-netbsd*) machine
=m68k
;;
2676 case "${canonical}" in
2677 alpha
*-*-openbsd*) machine
=alpha
;;
2678 arm-
*-openbsd*) machine
=arm
;;
2679 i386-
*-openbsd*) machine
=intel386
;;
2680 powerpc-
*-openbsd*) machine
=macppc
;;
2681 sparc
*-*-openbsd*) machine
=sparc
;;
2682 vax-
*-openbsd*) machine
=vax
;;
2683 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2684 hppa-
*-openbsd*) machine
=hp800
;;
2691 case "${canonical}" in
2692 i
[3456]86-*-lynxos*) machine
=intel386
;;
2693 powerpc-
*-lynxos*) machine
=powerpc
;;
2697 alpha
*-*-linux-gnu* )
2698 machine
=alpha opsys
=gnu-linux
2702 machine
=arm opsys
=gnu-linux
2705 ## Apple Darwin / Mac OS X
2707 case "${canonical}" in
2708 i
[3456]86-* ) machine
=intel386
;;
2709 powerpc-
* ) machine
=macppc
;;
2713 # Define CPP as follows to make autoconf work correctly.
2714 CPP
="${CC-cc} -E -no-cpp-precomp"
2715 # Use fink packages if available.
2716 if test -d /sw
/include
&& test -d /sw
/lib
; then
2717 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2718 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2719 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2723 ## HP 9000 series 700 and 800, running HP/UX
2724 hppa
*-hp-hpux10.2
* )
2725 machine
=hp800 opsys
=hpux10-20
2727 hppa
*-hp-hpux1[1-9]* )
2728 machine
=hp800 opsys
=hpux11
2729 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2732 hppa
*-*-linux-gnu* )
2733 machine
=hp800 opsys
=gnu-linux
2738 machine
=ibms390 opsys
=gnu-linux
2740 s390x-
*-linux-gnu* )
2741 machine
=ibms390x opsys
=gnu-linux
2743 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2744 machine
=ibmrs6000 opsys
=aix4-2
2746 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2747 machine
=ibmrs6000 opsys
=aix4-2
2749 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2750 machine
=ibmrs6000 opsys
=aix4-2
2752 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2753 machine
=ibmrs6000 opsys
=aix4-2
2756 ## Macintosh PowerPC
2757 powerpc
*-*-linux-gnu* )
2758 machine
=macppc opsys
=gnu-linux
2761 ## Silicon Graphics machines
2764 machine
=iris4d opsys
=irix6-5
2765 # Without defining _LANGUAGE_C, things get masked out in the headers
2766 # so that, for instance, grepping for `free' in stdlib.h fails and
2767 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2768 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2769 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2773 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2774 machine
=sparc opsys
=gnu-linux
2778 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2779 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2780 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2781 case "${canonical}" in
2782 i
[3456]86-*-* ) machine
=intel386
;;
2783 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2784 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2785 sparc
* ) machine
=sparc
;;
2788 case "${canonical}" in
2789 *-sunos5.3
* |
*-solaris2.3
* )
2791 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2793 *-sunos5.4
* |
*-solaris2.4
* )
2795 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2798 *-sunos5.5
* |
*-solaris2.5
* )
2800 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2803 *-sunos5.6
* |
*-solaris2.6
* )
2805 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2808 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2810 emacs_check_sunpro_c
=yes
2811 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2813 *-sunos5* |
*-solaris* )
2815 emacs_check_sunpro_c
=yes
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2819 ## Watch out for a compiler that we know will not work.
2820 case "${canonical}" in
2821 *-solaris* |
*-sunos5* )
2822 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2823 ## /usr/ucb/cc doesn't work;
2824 ## we should find some other compiler that does work.
2835 case "${canonical}" in
2836 *-vms* ) opsys
=vms
;;
2843 machine
=ia64 opsys
=gnu-linux
2846 ## Intel 386 machines where we don't care about the manufacturer
2849 case "${canonical}" in
2850 *-cygwin ) opsys
=cygwin
;;
2851 *-darwin* ) opsys
=darwin
2852 CPP
="${CC-cc} -E -no-cpp-precomp"
2854 *-linux-gnu* ) opsys
=gnu-linux
;;
2855 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2856 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2857 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2858 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2862 ## m68k Linux-based GNU system
2864 machine
=m68k opsys
=gnu-linux
2867 ## Mips Linux-based GNU system
2868 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2869 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2870 machine
=mips opsys
=gnu-linux
2873 ## AMD x86-64 Linux-based GNU system
2874 x86_64-
*-linux-gnu* )
2875 machine
=amdx86-64 opsys
=gnu-linux
2878 ## Tensilica Xtensa Linux-based GNU system
2879 xtensa
*-*-linux-gnu* )
2880 machine
=xtensa opsys
=gnu-linux
2883 ## SuperH Linux-based GNU system
2884 sh
[34]*-*-linux-gnu* )
2885 machine
=sh3 opsys
=gnu-linux
2893 ### If the code above didn't choose an operating system, just choose
2894 ### an operating system based on the configuration name. You really
2895 ### only want to use this when you have no idea what the right
2896 ### operating system is; if you know what operating systems a machine
2897 ### runs, it's cleaner to make it explicit in the case statement
2899 if test x
"${opsys}" = x
; then
2900 case "${canonical}" in
2901 *-gnu* ) opsys
=gnu
;;
2902 *-sysv4.2uw
* ) opsys
=unixware
;;
2903 *-sysv5uw* ) opsys
=unixware
;;
2904 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2905 *-sysv4.1
* |
*-sysvr4.1
* )
2906 NON_GNU_CPP
=/usr
/lib
/cpp
2908 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2909 if [ x
$NON_GNU_CPP = x
]; then
2910 if [ -f /usr
/ccs
/lib
/cpp
]; then
2911 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2913 NON_GNU_CPP
=/lib
/cpp
2917 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2926 if test $unported = yes; then
2927 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2928 Check \`etc/MACHINES' for recognized configuration names." >&5
2929 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2930 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2931 { (exit 1); exit 1; }; }
2934 machfile
="m/${machine}.h"
2935 opsysfile
="s/${opsys}.h"
2938 #### Choose a compiler.
2939 test -n "$CC" && cc_specified
=yes
2941 # Save the value of CFLAGS that the user specified.
2942 SPECIFIED_CFLAGS
="$CFLAGS"
2945 ac_cpp
='$CPP $CPPFLAGS'
2946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2951 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC
="$CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2988 if test -z "$ac_cv_prog_CC"; then
2990 # Extract the first word of "gcc", so it can be a program name with args.
2991 set dummy gcc
; ac_word
=$2
2992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir
=.
3005 for ac_exec_ext
in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_CC
="gcc"
3008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3020 $as_echo "$ac_ct_CC" >&6; }
3022 { $as_echo "$as_me:$LINENO: result: no" >&5
3023 $as_echo "no" >&6; }
3026 if test "x$ac_ct_CC" = x
; then
3029 case $cross_compiling:$ac_tool_warned in
3031 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&5
3034 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3035 whose name does not start with the host triplet. If you think this
3036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3037 ac_tool_warned
=yes ;;
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3048 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC
="$CC" # Let the user override the test.
3057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir
=.
3062 for ac_exec_ext
in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:$LINENO: result: no" >&5
3080 $as_echo "no" >&6; }
3086 if test -z "$CC"; then
3087 # Extract the first word of "cc", so it can be a program name with args.
3088 set dummy cc
; ac_word
=$2
3089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC
="$CC" # Let the user override the test.
3098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir
=.
3103 for ac_exec_ext
in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3106 ac_prog_rejected
=yes
3110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test $ac_prog_rejected = yes; then
3118 # We found a bogon in the path, so make sure we never use it.
3119 set dummy
$ac_cv_prog_CC
3121 if test $# != 0; then
3122 # We chose a different compiler from the bogus one.
3123 # However, it has the same basename, so the bogon will be chosen
3124 # first if we set CC to just the basename; use the full file name.
3126 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 for ac_prog
in cl.exe
3146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3147 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC
="$CC" # Let the user override the test.
3156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir
=.
3161 for ac_exec_ext
in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3178 { $as_echo "$as_me:$LINENO: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$CC" && break
3186 if test -z "$CC"; then
3188 for ac_prog
in cl.exe
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy
$ac_prog; ac_word
=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir
=.
3205 for ac_exec_ext
in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC
="$ac_prog"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3227 test -n "$ac_ct_CC" && break
3230 if test "x$ac_ct_CC" = x
; then
3233 case $cross_compiling:$ac_tool_warned in
3235 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3236 whose name does not start with the host triplet. If you think this
3237 configuration is useful to you, please write to autoconf@gnu.org." >&5
3238 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3239 whose name does not start with the host triplet. If you think this
3240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3241 ac_tool_warned
=yes ;;
3250 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details." >&5
3252 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3253 See \`config.log' for more details." >&2;}
3254 { (exit 1); exit 1; }; }
3256 # Provide some information about the compiler.
3257 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3260 { (ac_try
="$ac_compiler --version >&5"
3262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3266 $as_echo "$ac_try_echo") >&5
3267 (eval "$ac_compiler --version >&5") 2>&5
3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }
3271 { (ac_try="$ac_compiler -v >&5"
3273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3274 *) ac_try_echo
=$ac_try;;
3276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3277 $as_echo "$ac_try_echo") >&5
3278 (eval "$ac_compiler -v >&5") 2>&5
3280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282 { (ac_try
="$ac_compiler -V >&5"
3284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3288 $as_echo "$ac_try_echo") >&5
3289 (eval "$ac_compiler -V >&5") 2>&5
3291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3314 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3315 $as_echo_n "checking for C compiler default output file name... " >&6; }
3316 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322 for ac_file in $ac_files
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 if { (ac_try="$ac_link_default"
3333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3334 *) ac_try_echo
=$ac_try;;
3336 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3337 $as_echo "$ac_try_echo") >&5
3338 (eval "$ac_link_default") 2>&5
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; then
3342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3344 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3345 # so that the user can short-circuit this test for compilers unknown to
3347 for ac_file
in $ac_files ''
3349 test -f "$ac_file" ||
continue
3351 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3354 # We found the default executable, but exeext='' is most
3358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3360 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 # We set ac_cv_exeext here because the later test for it is not
3363 # safe: cross compilers may not add the suffix if given an `-o'
3364 # argument, so we may need to know it at that point already.
3365 # Even if this section looks crufty: it has the advantage of
3372 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3378 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3379 $as_echo "$ac_file" >&6; }
3380 if test -z "$ac_file"; then
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.
$ac_ext >&5
3384 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3385 See \`config.log' for more details." >&5
3386 $as_echo "$as_me: error: C compiler cannot create executables
3387 See \`config.log' for more details." >&2;}
3388 { (exit 77); exit 77; }; }
3391 ac_exeext
=$ac_cv_exeext
3393 # Check that the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3396 $as_echo_n "checking whether the C compiler works... " >&6; }
3397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3398 # If not cross compiling, check that we can run a simple program.
3399 if test "$cross_compiling" != yes; then
3400 if { ac_try
='./$ac_file'
3401 { (case "(($ac_try" in
3402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_try") 2>&5
3409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3413 if test "$cross_compiling" = maybe; then
3416 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details.
" >&5
3419 $as_echo "$as_me: error
: cannot run C compiled programs.
3420 If you meant to cross compile
, use \
`--host'.
3421 See \`config.log
' for more details." >&2;}
3422 { (exit 1); exit 1; }; }
3426 { $as_echo "$as_me:$LINENO: result: yes" >&5
3427 $as_echo "yes" >&6; }
3429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3430 ac_clean_files=$ac_clean_files_save
3431 # Check that the compiler produces executables we can run. If not, either
3432 # the compiler is broken, or we cross compile.
3433 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3434 $as_echo_n "checking whether we are cross compiling... " >&6; }
3435 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3436 $as_echo "$cross_compiling" >&6; }
3438 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { (ac_try="$ac_link"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_link") 2>&5
3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; then
3451 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3452 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3455 for ac_file
in conftest.exe conftest conftest.
*; do
3456 test -f "$ac_file" ||
continue
3458 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3459 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3465 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3466 See \`config.log' for more details." >&5
3467 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details." >&2;}
3469 { (exit 1); exit 1; }; }
3472 rm -f conftest
$ac_cv_exeext
3473 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3476 rm -f conftest.
$ac_ext
3477 EXEEXT
=$ac_cv_exeext
3479 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if test "${ac_cv_objext+set}" = set; then
3482 $as_echo_n "(cached) " >&6
3484 cat >conftest.
$ac_ext <<_ACEOF
3487 cat confdefs.h
>>conftest.
$ac_ext
3488 cat >>conftest.
$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.o conftest.obj
3500 if { (ac_try
="$ac_compile"
3502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3506 $as_echo "$ac_try_echo") >&5
3507 (eval "$ac_compile") 2>&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; then
3511 for ac_file in conftest.o conftest.obj conftest.*; do
3512 test -f "$ac_file" || continue;
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3524 See \`config.log
' for more details." >&5
3525 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details.
" >&2;}
3527 { (exit 1); exit 1; }; }
3530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3532 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3533 $as_echo "$ac_cv_objext" >&6; }
3534 OBJEXT=$ac_cv_objext
3536 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3537 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3539 $as_echo_n "(cached
) " >&6
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3566 $as_echo "$ac_try_echo") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3569 grep -v '^ *+' conftest.er1 >conftest.err
3571 cat conftest.err >&5
3572 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3579 $as_echo "$as_me: failed program was
:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3589 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3590 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3591 if test $ac_compiler_gnu = yes; then
3596 ac_test_CFLAGS=${CFLAGS+set}
3597 ac_save_CFLAGS=$CFLAGS
3598 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3599 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3600 if test "${ac_cv_prog_cc_g+set}" = set; then
3601 $as_echo_n "(cached
) " >&6
3603 ac_save_c_werror_flag=$ac_c_werror_flag
3604 ac_c_werror_flag=yes
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3642 $as_echo "$as_me: failed program was
:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3646 cat >conftest.$ac_ext <<_ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3661 rm -f conftest.$ac_objext
3662 if { (ac_try="$ac_compile"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669 (eval "$ac_compile") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3675 (exit $ac_status); } && {
3676 test -z "$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 } && test -s conftest.$ac_objext; then
3681 $as_echo "$as_me: failed program was
:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3708 $as_echo "$ac_try_echo") >&5
3709 (eval "$ac_compile") 2>conftest.er1
3711 grep -v '^ *+' conftest.er1 >conftest.err
3713 cat conftest.err >&5
3714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3715 (exit $ac_status); } && {
3716 test -z "$ac_c_werror_flag" ||
3717 test ! -s conftest.err
3718 } && test -s conftest.$ac_objext; then
3721 $as_echo "$as_me: failed program was
:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3736 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3737 $as_echo "$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3747 if test "$GCC" = yes; then
3753 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3754 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3755 if test "${ac_cv_prog_cc_c89+set}" = set; then
3756 $as_echo_n "(cached
) " >&6
3758 ac_cv_prog_cc_c89=no
3760 cat >conftest.$ac_ext <<_ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3768 #include <sys/types.h>
3769 #include <sys/stat.h>
3770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3771 struct buf { int x; };
3772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3773 static char *e (p, i)
3779 static char *f (char * (*g) (char **, int), char **p, ...)
3784 s = g (p, va_arg (v,int));
3789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3790 function prototypes and stuff, but not '\xHH' hex character constants.
3791 These don't provoke an error unfortunately, instead are silently treated
3792 as 'x'. The following induces an error, until -std is added to get
3793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3794 array size at least. It's necessary to write '\x00'==0 to get something
3795 that's true only with -std. */
3796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3799 inside strings and character constants. */
3801 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803 int test (int i, double x);
3804 struct s1 {int (*f) (int a);};
3805 struct s2 {int (*f) (double a);};
3806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3818 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820 CC="$ac_save_CC $ac_arg"
3821 rm -f conftest.$ac_objext
3822 if { (ac_try="$ac_compile"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3828 $as_echo "$ac_try_echo") >&5
3829 (eval "$ac_compile") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3835 (exit $ac_status); } && {
3836 test -z "$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3838 } && test -s conftest.$ac_objext; then
3839 ac_cv_prog_cc_c89=$ac_arg
3841 $as_echo "$as_me: failed program was
:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3850 rm -f conftest.$ac_ext
3855 case "x
$ac_cv_prog_cc_c89" in
3857 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3858 $as_echo "none needed
" >&6; } ;;
3860 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3861 $as_echo "unsupported
" >&6; } ;;
3863 CC="$CC $ac_cv_prog_cc_c89"
3864 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876 # On Suns, sometimes $CPP names a directory.
3877 if test -n "$CPP" && test -d "$CPP"; then
3881 ## If not using gcc, and on Solaris, and no CPP specified, see if
3882 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3883 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3884 test x"$CPP" = x; then
3885 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3886 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3888 if test "${emacs_cv_sunpro_c+set}" = set; then
3889 $as_echo_n "(cached
) " >&6
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3909 rm -f conftest.$ac_objext conftest$ac_exeext
3910 if { (ac_try="$ac_link"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo") >&5
3917 (eval "$ac_link") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest$ac_exeext && {
3927 test "$cross_compiling" = yes ||
3928 $as_test_x conftest$ac_exeext
3930 emacs_cv_sunpro_c=yes
3932 $as_echo "$as_me: failed program was
:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 emacs_cv_sunpro_c=no
3938 rm -rf conftest.dSYM
3939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3940 conftest$ac_exeext conftest.$ac_ext
3943 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3944 $as_echo "$emacs_cv_sunpro_c" >&6; }
3946 if test x"$emacs_cv_sunpro_c" = xyes; then
3947 NON_GNU_CPP="$CC -E -Xs"
3951 #### Some systems specify a CPP to use unless we are using GCC.
3952 #### Now that we know whether we are using GCC, we can decide whether
3953 #### to use that one.
3954 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3959 #### Some systems specify a CC to use unless we are using GCC.
3960 #### Now that we know whether we are using GCC, we can decide whether
3961 #### to use that one.
3962 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3963 test x$cc_specified != xyes
3968 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3970 CC="$CC $GCC_TEST_OPTIONS"
3973 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3975 CC="$CC $NON_GCC_TEST_OPTIONS"
3979 ac_cpp='$CPP $CPPFLAGS'
3980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3984 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3985 # On Suns, sometimes $CPP names a directory.
3986 if test -n "$CPP" && test -d "$CPP"; then
3989 if test -z "$CPP"; then
3990 if test "${ac_cv_prog_CPP+set}" = set; then
3991 $as_echo_n "(cached
) " >&6
3993 # Double quotes because CPP needs to be expanded
3994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3997 for ac_c_preproc_warn_flag in '' yes
3999 # Use a header file that comes with gcc, so configuring glibc
4000 # with a fresh cross-compiler works.
4001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4002 # <limits.h> exists even on freestanding compilers.
4003 # On the NeXT, cc -E runs the code through the compiler's parser,
4004 # not just through cpp. "Syntax error
" is here to catch this case.
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4012 # include <limits.h>
4014 # include <assert.h>
4018 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4031 (exit $ac_status); } >/dev/null && {
4032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4037 $as_echo "$as_me: failed program was
:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 # Broken: fails on valid input.
4044 rm -f conftest.err conftest.$ac_ext
4046 # OK, works on sane cases. Now check whether nonexistent headers
4047 # can be detected and how.
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <ac_nonexistent.h>
4056 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4065 grep -v '^ *+' conftest.er1 >conftest.err
4067 cat conftest.err >&5
4068 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4069 (exit $ac_status); } >/dev/null && {
4070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4073 # Broken: success on invalid input.
4076 $as_echo "$as_me: failed program was
:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 # Passes both tests.
4084 rm -f conftest.err conftest.$ac_ext
4087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4088 rm -f conftest.err conftest.$ac_ext
4089 if $ac_preproc_ok; then
4101 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4102 $as_echo "$CPP" >&6; }
4104 for ac_c_preproc_warn_flag in '' yes
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 # <limits.h> exists even on freestanding compilers.
4110 # On the NeXT, cc -E runs the code through the compiler's parser,
4111 # not just through cpp. "Syntax error
" is here to catch this case.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4119 # include <limits.h>
4121 # include <assert.h>
4125 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4131 $as_echo "$ac_try_echo") >&5
4132 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4134 grep -v '^ *+' conftest.er1 >conftest.err
4136 cat conftest.err >&5
4137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4138 (exit $ac_status); } >/dev/null && {
4139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4140 test ! -s conftest.err
4144 $as_echo "$as_me: failed program was
:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <ac_nonexistent.h>
4163 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4169 $as_echo "$ac_try_echo") >&5
4170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4180 # Broken: success on invalid input.
4183 $as_echo "$as_me: failed program was
:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 # Passes both tests.
4191 rm -f conftest.err conftest.$ac_ext
4194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.err conftest.$ac_ext
4196 if $ac_preproc_ok; then
4199 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4200 See \
`config.log' for more details." >&5
4201 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log
' for more details." >&2;}
4203 { (exit 1); exit 1; }; }
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4209 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if test "${ac_cv_path_GREP+set}" = set; then
4216 $as_echo_n "(cached) " >&6
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found=false
4220 # Loop through the user's path and
test for each of PROGNAME-LIST
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_prog
in grep ggrep
; do
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4234 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4237 $as_echo_n 0123456789 >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4245 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4246 ac_count
=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP
="$ac_path_GREP"
4250 ac_path_GREP_max
=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4258 $ac_path_GREP_found && break 3
4263 if test -z "$ac_cv_path_GREP"; then
4264 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4265 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4266 { (exit 1); exit 1; }; }
4269 ac_cv_path_GREP
=$GREP
4273 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4274 $as_echo "$ac_cv_path_GREP" >&6; }
4275 GREP
="$ac_cv_path_GREP"
4278 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4279 $as_echo_n "checking for egrep... " >&6; }
4280 if test "${ac_cv_path_EGREP+set}" = set; then
4281 $as_echo_n "(cached) " >&6
4283 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4284 then ac_cv_path_EGREP
="$GREP -E"
4286 if test -z "$EGREP"; then
4287 ac_path_EGREP_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 egrep; do
4295 for ac_exec_ext
in '' $ac_executable_extensions; do
4296 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4298 # Check for GNU ac_path_EGREP and select it if it is found.
4299 # Check for GNU $ac_path_EGREP
4300 case `"$ac_path_EGREP" --version 2>&1` in
4302 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
4312 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
4316 # Best one so far, save it but keep looking for a better one
4317 ac_cv_path_EGREP
="$ac_path_EGREP"
4318 ac_path_EGREP_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_EGREP_found && break 3
4331 if test -z "$ac_cv_path_EGREP"; then
4332 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4333 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4334 { (exit 1); exit 1; }; }
4337 ac_cv_path_EGREP
=$EGREP
4342 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4343 $as_echo "$ac_cv_path_EGREP" >&6; }
4344 EGREP
="$ac_cv_path_EGREP"
4347 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4348 $as_echo_n "checking for ANSI C header files... " >&6; }
4349 if test "${ac_cv_header_stdc+set}" = set; then
4350 $as_echo_n "(cached) " >&6
4352 cat >conftest.
$ac_ext <<_ACEOF
4355 cat confdefs.h
>>conftest.
$ac_ext
4356 cat >>conftest.
$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4371 rm -f conftest.
$ac_objext
4372 if { (ac_try
="$ac_compile"
4374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4378 $as_echo "$ac_try_echo") >&5
4379 (eval "$ac_compile") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && {
4386 test -z "$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4388 } && test -s conftest.$ac_objext; then
4389 ac_cv_header_stdc=yes
4391 $as_echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_header_stdc=no
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 if test $ac_cv_header_stdc = yes; then
4400 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 $EGREP "memchr" >/dev/null 2>&1; then
4414 ac_cv_header_stdc=no
4420 if test $ac_cv_header_stdc = yes; then
4421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "free" >/dev/null 2>&1; then
4435 ac_cv_header_stdc=no
4441 if test $ac_cv_header_stdc = yes; then
4442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4443 if test "$cross_compiling" = yes; then
4446 cat >conftest.$ac_ext <<_ACEOF
4449 cat confdefs.h >>conftest.$ac_ext
4450 cat >>conftest.$ac_ext <<_ACEOF
4451 /* end confdefs.h. */
4454 #if ((' ' & 0x0FF) == 0x020)
4455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4458 # define ISLOWER(c) \
4459 (('a' <= (c) && (c) <= 'i') \
4460 || ('j' <= (c) && (c) <= 'r') \
4461 || ('s' <= (c) && (c) <= 'z'))
4462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4470 for (i = 0; i < 256; i++)
4471 if (XOR (islower (i), ISLOWER (i))
4472 || toupper (i) != TOUPPER (i))
4477 rm -f conftest$ac_exeext
4478 if { (ac_try="$ac_link"
4480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4481 *) ac_try_echo
=$ac_try;;
4483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4484 $as_echo "$ac_try_echo") >&5
4485 (eval "$ac_link") 2>&5
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4489 { (case "(($ac_try" in
4490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4494 $as_echo "$ac_try_echo") >&5
4495 (eval "$ac_try") 2>&5
4497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4501 $as_echo "$as_me: program exited with status $ac_status" >&5
4502 $as_echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_header_stdc=no
4508 rm -rf conftest.dSYM
4509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4515 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4516 $as_echo "$ac_cv_header_stdc" >&6; }
4517 if test $ac_cv_header_stdc = yes; then
4519 cat >>confdefs.h <<\_ACEOF
4520 #define STDC_HEADERS 1
4525 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4536 inttypes.h stdint.h unistd.h
4538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 $as_echo_n "checking for $ac_header... " >&6; }
4541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4542 $as_echo_n "(cached) " >&6
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 $ac_includes_default
4552 #include <$ac_header>
4554 rm -f conftest.$ac_objext
4555 if { (ac_try="$ac_compile"
4557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4558 *) ac_try_echo
=$ac_try;;
4560 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4561 $as_echo "$ac_try_echo") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.
$ac_objext; then
4572 eval "$as_ac_Header=yes"
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 eval "$as_ac_Header=no"
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4583 $as_echo "$as_val"'`
4584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4585 $as_echo "$ac_res" >&6; }
4586 if test `eval 'as_val=${'$as_ac_Header'}
4587 $as_echo "$as_val"'` = yes; then
4588 cat >>confdefs.h
<<_ACEOF
4589 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4600 $as_echo_n "checking for minix/config.h... " >&6; }
4601 if test "${ac_cv_header_minix_config_h+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4605 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4607 # Is the header compilable?
4608 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4609 $as_echo_n "checking minix/config.h usability... " >&6; }
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4617 #include <minix/config.h>
4619 rm -f conftest.
$ac_objext
4620 if { (ac_try
="$ac_compile"
4622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4626 $as_echo "$ac_try_echo") >&5
4627 (eval "$ac_compile") 2>conftest.er1
4629 grep -v '^ *+' conftest.er1 >conftest.err
4631 cat conftest.err >&5
4632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && {
4634 test -z "$ac_c_werror_flag" ||
4635 test ! -s conftest.err
4636 } && test -s conftest.$ac_objext; then
4637 ac_header_compiler=yes
4639 $as_echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 ac_header_compiler=no
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647 $as_echo "$ac_header_compiler" >&6; }
4649 # Is the header present?
4650 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4651 $as_echo_n "checking minix/config.h presence... " >&6; }
4652 cat >conftest.$ac_ext <<_ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658 #include <minix/config.h>
4660 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4663 *) ac_try_echo
=$ac_try;;
4665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev
/null
&& {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4677 ac_header_preproc
=yes
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.
$ac_ext >&5
4682 ac_header_preproc
=no
4685 rm -f conftest.err conftest.
$ac_ext
4686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4687 $as_echo "$ac_header_preproc" >&6; }
4689 # So? What about this header?
4690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4692 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4693 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4695 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4696 ac_header_preproc
=yes
4699 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4700 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4701 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4702 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4703 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4704 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4705 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4706 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4707 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4708 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4709 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4710 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4714 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4715 $as_echo_n "checking for minix/config.h... " >&6; }
4716 if test "${ac_cv_header_minix_config_h+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4719 ac_cv_header_minix_config_h
=$ac_header_preproc
4721 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4722 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4725 if test $ac_cv_header_minix_config_h = yes; then
4732 if test "$MINIX" = yes; then
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define _POSIX_SOURCE 1
4739 cat >>confdefs.h
<<\_ACEOF
4740 #define _POSIX_1_SOURCE 2
4744 cat >>confdefs.h
<<\_ACEOF
4752 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4753 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4754 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4757 cat >conftest.
$ac_ext <<_ACEOF
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 # define __EXTENSIONS__ 1
4765 $ac_includes_default
4774 rm -f conftest.
$ac_objext
4775 if { (ac_try
="$ac_compile"
4777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4781 $as_echo "$ac_try_echo") >&5
4782 (eval "$ac_compile") 2>conftest.er1
4784 grep -v '^ *+' conftest.er1 >conftest.err
4786 cat conftest.err >&5
4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } && {
4789 test -z "$ac_c_werror_flag" ||
4790 test ! -s conftest.err
4791 } && test -s conftest.$ac_objext; then
4792 ac_cv_safe_to_define___extensions__=yes
4794 $as_echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 ac_cv_safe_to_define___extensions__=no
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4803 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4804 test $ac_cv_safe_to_define___extensions__ = yes &&
4805 cat >>confdefs.h <<\_ACEOF
4806 #define __EXTENSIONS__ 1
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _ALL_SOURCE 1
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _GNU_SOURCE 1
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _POSIX_PTHREAD_SEMANTICS 1
4821 cat >>confdefs.h <<\_ACEOF
4822 #define _TANDEM_SOURCE 1
4827 ### Use -Wno-pointer-sign if the compiler supports it
4828 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4829 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4830 SAVE_CFLAGS="$CFLAGS"
4831 CFLAGS="$CFLAGS -Wno-pointer-sign"
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4851 *) ac_try_echo
=$ac_try;;
4853 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_compile") 2>conftest.er1
4857 grep -v '^ *+' conftest.er1
>conftest.err
4859 cat conftest.err
>&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && {
4862 test -z "$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 } && test -s conftest.
$ac_objext; then
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.
$ac_ext >&5
4873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4874 if test $has_option = yes; then
4875 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4877 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4878 $as_echo "$has_option" >&6; }
4879 CFLAGS
="$SAVE_CFLAGS"
4883 #### Some other nice autoconf tests.
4885 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886 $as_echo_n "checking whether ln -s works... " >&6; }
4888 if test "$LN_S" = "ln -s"; then
4889 { $as_echo "$as_me:$LINENO: result: yes" >&5
4890 $as_echo "yes" >&6; }
4892 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893 $as_echo "no, using $LN_S" >&6; }
4897 ac_cpp
='$CPP $CPPFLAGS'
4898 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4901 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4902 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4903 # On Suns, sometimes $CPP names a directory.
4904 if test -n "$CPP" && test -d "$CPP"; then
4907 if test -z "$CPP"; then
4908 if test "${ac_cv_prog_CPP+set}" = set; then
4909 $as_echo_n "(cached) " >&6
4911 # Double quotes because CPP needs to be expanded
4912 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4915 for ac_c_preproc_warn_flag
in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat >conftest.
$ac_ext <<_ACEOF
4926 cat confdefs.h
>>conftest.
$ac_ext
4927 cat >>conftest.
$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4930 # include <limits.h>
4932 # include <assert.h>
4936 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4942 $as_echo "$ac_try_echo") >&5
4943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null && {
4950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4955 $as_echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 # Broken: fails on valid input.
4962 rm -f conftest.err conftest.$ac_ext
4964 # OK, works on sane cases. Now check whether nonexistent headers
4965 # can be detected and how.
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <ac_nonexistent.h>
4974 if { (ac_try="$ac_cpp conftest.$ac_ext"
4976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4977 *) ac_try_echo
=$ac_try;;
4979 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1
>conftest.err
4985 cat conftest.err
>&5
4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } >/dev
/null
&& {
4988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4991 # Broken: success on invalid input.
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.
$ac_ext >&5
4997 # Passes both tests.
5002 rm -f conftest.err conftest.
$ac_ext
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.
$ac_ext
5007 if $ac_preproc_ok; then
5019 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5020 $as_echo "$CPP" >&6; }
5022 for ac_c_preproc_warn_flag
in '' yes
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat >conftest.
$ac_ext <<_ACEOF
5033 cat confdefs.h
>>conftest.
$ac_ext
5034 cat >>conftest.
$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5037 # include <limits.h>
5039 # include <assert.h>
5043 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5046 *) ac_try_echo=$ac_try;;
5048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5049 $as_echo "$ac_try_echo") >&5
5050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5052 grep -v '^ *+' conftest.er1 >conftest.err
5054 cat conftest.err >&5
5055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } >/dev/null && {
5057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5062 $as_echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Broken: fails on valid input.
5069 rm -f conftest.err conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5084 *) ac_try_echo
=$ac_try;;
5086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5087 $as_echo "$ac_try_echo") >&5
5088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1
>conftest.err
5092 cat conftest.err
>&5
5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } >/dev
/null
&& {
5095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5098 # Broken: success on invalid input.
5101 $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.
$ac_ext >&5
5104 # Passes both tests.
5109 rm -f conftest.err conftest.
$ac_ext
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.
$ac_ext
5114 if $ac_preproc_ok; then
5117 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121 { (exit 1); exit 1; }; }
5125 ac_cpp
='$CPP $CPPFLAGS'
5126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5130 # Find a good install program. We prefer a C program (faster),
5131 # so one script is as good as another. But avoid the broken or
5132 # incompatible versions:
5133 # SysV /etc/install, /usr/sbin/install
5134 # SunOS /usr/etc/install
5135 # IRIX /sbin/install
5137 # AmigaOS /C/install, which installs bootblocks on floppy discs
5138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5141 # OS/2's system install, which has a completely different semantic
5142 # ./install, which can be erroneously created by make from ./install.sh.
5143 # Reject install programs that cannot install multiple files.
5144 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5146 if test -z "$INSTALL"; then
5147 if test "${ac_cv_path_install+set}" = set; then
5148 $as_echo_n "(cached) " >&6
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir
=.
5155 # Account for people who put trailing slashes in PATH elements.
5157 .
/ | .
// |
/cC
/* | \
5158 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5159 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5162 # OSF1 and SCO ODT 3.0 have their own names for install.
5163 # Don't use installbsd from OSF since it installs stuff as root
5165 for ac_prog
in ginstall scoinst
install; do
5166 for ac_exec_ext
in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5168 if test $ac_prog = install &&
5169 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5170 # AIX install. It has an incompatible calling convention.
5172 elif test $ac_prog = install &&
5173 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5174 # program-specific install script used by HP pwplus--don't use.
5177 rm -rf conftest.one conftest.two conftest.dir
5178 echo one
> conftest.one
5179 echo two
> conftest.two
5181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5182 test -s conftest.one
&& test -s conftest.two
&&
5183 test -s conftest.dir
/conftest.one
&&
5184 test -s conftest.dir
/conftest.two
5186 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5199 rm -rf conftest.one conftest.two conftest.dir
5202 if test "${ac_cv_path_install+set}" = set; then
5203 INSTALL
=$ac_cv_path_install
5205 # As a last resort, use the slow shell script. Don't cache a
5206 # value for INSTALL within a source directory, because that will
5207 # break other packages using the cache if that directory is
5208 # removed, or if the value is a relative name.
5209 INSTALL
=$ac_install_sh
5212 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5213 $as_echo "$INSTALL" >&6; }
5215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5216 # It thinks the first close brace ends the variable substitution.
5217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5221 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5223 if test "x$RANLIB" = x
; then
5224 if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5226 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_RANLIB+set}" = set; then
5230 $as_echo_n "(cached) " >&6
5232 if test -n "$RANLIB"; then
5233 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir
=.
5240 for ac_exec_ext
in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 RANLIB
=$ac_cv_prog_RANLIB
5253 if test -n "$RANLIB"; then
5254 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5255 $as_echo "$RANLIB" >&6; }
5257 { $as_echo "$as_me:$LINENO: result: no" >&5
5258 $as_echo "no" >&6; }
5263 if test -z "$ac_cv_prog_RANLIB"; then
5264 ac_ct_RANLIB
=$RANLIB
5265 # Extract the first word of "ranlib", so it can be a program name with args.
5266 set dummy ranlib
; ac_word
=$2
5267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$ac_ct_RANLIB"; then
5273 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir
=.
5280 for ac_exec_ext
in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5293 if test -n "$ac_ct_RANLIB"; then
5294 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5295 $as_echo "$ac_ct_RANLIB" >&6; }
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5301 if test "x$ac_ct_RANLIB" = x
; then
5304 case $cross_compiling:$ac_tool_warned in
5306 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5307 whose name does not start with the host triplet. If you think this
5308 configuration is useful to you, please write to autoconf@gnu.org." >&5
5309 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5310 whose name does not start with the host triplet. If you think this
5311 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5312 ac_tool_warned
=yes ;;
5314 RANLIB
=$ac_ct_RANLIB
5317 RANLIB
="$ac_cv_prog_RANLIB"
5321 # Extract the first word of "install-info", so it can be a program name with args.
5322 set dummy install-info
; ac_word
=$2
5323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5326 $as_echo_n "(cached) " >&6
5328 case $INSTALL_INFO in
5330 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir
=.
5338 for ac_exec_ext
in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5352 if test -n "$INSTALL_INFO"; then
5353 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5354 $as_echo "$INSTALL_INFO" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5361 # Extract the first word of "install-info", so it can be a program name with args.
5362 set dummy install-info
; ac_word
=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5368 case $INSTALL_INFO in
5370 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5374 for as_dir
in /usr
/sbin
5377 test -z "$as_dir" && as_dir
=.
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5392 if test -n "$INSTALL_INFO"; then
5393 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5394 $as_echo "$INSTALL_INFO" >&6; }
5396 { $as_echo "$as_me:$LINENO: result: no" >&5
5397 $as_echo "no" >&6; }
5401 # Extract the first word of "install-info", so it can be a program name with args.
5402 set dummy install-info
; ac_word
=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 case $INSTALL_INFO in
5410 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_exec_ext
in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5432 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5433 if test -n "$INSTALL_INFO"; then
5434 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5435 $as_echo "$INSTALL_INFO" >&6; }
5437 { $as_echo "$as_me:$LINENO: result: no" >&5
5438 $as_echo "no" >&6; }
5442 # Extract the first word of "gzip", so it can be a program name with args.
5443 set dummy
gzip; ac_word
=$2
5444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5447 $as_echo_n "(cached) " >&6
5451 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir
=.
5459 for ac_exec_ext
in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5473 if test -n "$GZIP_PROG"; then
5474 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5475 $as_echo "$GZIP_PROG" >&6; }
5477 { $as_echo "$as_me:$LINENO: result: no" >&5
5478 $as_echo "no" >&6; }
5484 ## Need makeinfo >= 4.6 (?) to build the manuals.
5485 # Extract the first word of "makeinfo", so it can be a program name with args.
5486 set dummy makeinfo
; 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_MAKEINFO+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5494 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5516 MAKEINFO
=$ac_cv_path_MAKEINFO
5517 if test -n "$MAKEINFO"; then
5518 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5519 $as_echo "$MAKEINFO" >&6; }
5521 { $as_echo "$as_me:$LINENO: result: no" >&5
5522 $as_echo "no" >&6; }
5526 if test "$MAKEINFO" != "no" && \
5527 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
5531 ## Makeinfo is unusual. For a released Emacs, the manuals are
5532 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5533 ## therefore in the category of "special tools" not normally required, which
5534 ## configure does not have to check for (eg autoconf itself).
5535 ## In a CVS checkout on the other hand, the manuals are not included.
5536 ## So makeinfo is a requirement to build from CVS, and configure
5537 ## should test for it as it does for any other build requirement.
5538 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5539 ## with pre-built manuals, from a CVS checkout.
5540 if test "$MAKEINFO" = "no"; then
5541 if test "x${with_makeinfo}" = "xno"; then
5543 elif ! test -e $srcdir/info
/emacs
; then
5544 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5545 source tree does not seem to have pre-built manuals in the \`info' directory.
5546 Either install a suitable version of makeinfo, or re-run configure
5547 with the \`--without-makeinfo' option to build without the manuals. " >&5
5548 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5549 source tree does not seem to have pre-built manuals in the \`info' directory.
5550 Either install a suitable version of makeinfo, or re-run configure
5551 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5552 { (exit 1); exit 1; }; }
5557 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5559 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5562 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5564 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5568 late_LDFLAGS
=$LDFLAGS
5569 if test "$GCC" = yes; then
5570 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5572 LDFLAGS
="$LDFLAGS -znocombreloc"
5575 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5576 $as_echo_n "checking for -znocombreloc... " >&6; }
5577 cat >conftest.
$ac_ext <<_ACEOF
5580 rm -f conftest.
$ac_objext conftest
$ac_exeext
5581 if { (ac_try
="$ac_link"
5583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587 $as_echo "$ac_try_echo") >&5
5588 (eval "$ac_link") 2>conftest.er1
5590 grep -v '^ *+' conftest.er1 >conftest.err
5592 cat conftest.err >&5
5593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest$ac_exeext && {
5598 test "$cross_compiling" = yes ||
5599 $as_test_x conftest$ac_exeext
5601 { $as_echo "$as_me:$LINENO: result: yes" >&5
5602 $as_echo "yes" >&6; }
5604 $as_echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 LDFLAGS=$late_LDFLAGS
5608 { $as_echo "$as_me:$LINENO: result: no" >&5
5609 $as_echo "no" >&6; }
5612 rm -rf conftest.dSYM
5613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5614 conftest$ac_exeext conftest.$ac_ext
5616 #### Extract some information from the operating system and machine files.
5618 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5619 - which libraries the lib-src programs will want, and
5620 - whether the GNU malloc routines are usable..." >&5
5621 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5622 - which libraries the lib-src programs will want, and
5623 - whether the GNU malloc routines are usable..." >&6;}
5625 ### First figure out CFLAGS (which we use for running the compiler here)
5626 ### and REAL_CFLAGS (which we use for real compilation).
5627 ### The two are the same except on a few systems, where they are made
5628 ### different to work around various lossages. For example,
5629 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5630 ### as implying static linking.
5632 ### If the CFLAGS env var is specified, we use that value
5633 ### instead of the default.
5635 ### It's not important that this name contain the PID; you can't run
5636 ### two configures in the same directory and have anything work
5638 tempcname="conftest.c"
5641 #include "'${srcdir}'/src/'${opsysfile}'"
5642 #include "'${srcdir}'/src/'${machfile}'"
5643 #ifndef LIBS_MACHINE
5644 #define LIBS_MACHINE
5649 #ifndef C_SWITCH_SYSTEM
5650 #define C_SWITCH_SYSTEM
5652 #ifndef C_SWITCH_MACHINE
5653 #define C_SWITCH_MACHINE
5655 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5656 configure___ c_switch_system=C_SWITCH_SYSTEM
5657 configure___ c_switch_machine=C_SWITCH_MACHINE
5660 #define LIB_X11_LIB -lX11
5663 #ifndef LIBX11_SYSTEM
5664 #define LIBX11_SYSTEM
5666 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5669 configure___ unexec=UNEXEC
5671 configure___ unexec=unexec.o
5674 #ifdef SYSTEM_MALLOC
5675 configure___ system_malloc=yes
5677 configure___ system_malloc=no
5680 #ifdef USE_MMAP_FOR_BUFFERS
5681 configure___ use_mmap_for_buffers=yes
5683 configure___ use_mmap_for_buffers=no
5686 #ifndef C_DEBUG_SWITCH
5687 #define C_DEBUG_SWITCH -g
5690 #ifndef C_OPTIMIZE_SWITCH
5692 #define C_OPTIMIZE_SWITCH -O2
5694 #define C_OPTIMIZE_SWITCH -O
5698 #ifndef C_WARNINGS_SWITCH
5699 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5702 #ifndef LD_SWITCH_MACHINE
5703 #define LD_SWITCH_MACHINE
5706 #ifndef LD_SWITCH_SYSTEM
5707 #define LD_SWITCH_SYSTEM
5710 #ifndef LD_SWITCH_X_SITE_AUX
5711 #define LD_SWITCH_X_SITE_AUX
5714 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5715 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5717 #ifdef THIS_IS_CONFIGURE
5719 /* Get the CFLAGS for tests in configure. */
5721 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5723 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5726 #else /* not THIS_IS_CONFIGURE */
5728 /* Get the CFLAGS for real compilation. */
5730 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5732 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5735 #endif /* not THIS_IS_CONFIGURE */
5738 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5740 # The value of CPP is a quoted variable reference, so we need to do this
5741 # to get its actual value...
5742 CPP=`eval "echo $CPP"`
5743 eval `${CPP} -Isrc ${tempcname} \
5744 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5745 if test "x$SPECIFIED_CFLAGS" = x; then
5746 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5747 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5749 REAL_CFLAGS="$CFLAGS"
5753 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5755 ### Make sure subsequent tests use flags consistent with the build flags.
5757 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5758 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5760 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5765 # Check whether --enable-largefile was given.
5766 if test "${enable_largefile+set}" = set; then
5767 enableval=$enable_largefile;
5770 if test "$enable_largefile" != no; then
5772 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5773 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5774 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5775 $as_echo_n "(cached) " >&6
5777 ac_cv_sys_largefile_CC=no
5778 if test "$GCC" != yes; then
5781 # IRIX 6.2 and later do not support large files by default,
5782 # so use the C compiler's -n32 option if that helps.
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5806 rm -f conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5810 *) ac_try_echo
=$ac_try;;
5812 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5813 $as_echo "$ac_try_echo") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.
$ac_objext; then
5826 $as_echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5832 rm -f core conftest.err conftest.
$ac_objext
5834 rm -f conftest.
$ac_objext
5835 if { (ac_try
="$ac_compile"
5837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_sys_largefile_CC=' -n32'; break
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f core conftest.err conftest.$ac_objext
5864 rm -f conftest.$ac_ext
5867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5868 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5869 if test "$ac_cv_sys_largefile_CC" != no; then
5870 CC=$CC$ac_cv_sys_largefile_CC
5873 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5874 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5875 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5906 *) ac_try_echo
=$ac_try;;
5908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1
>conftest.err
5914 cat conftest.err
>&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.
$ac_objext; then
5920 ac_cv_sys_file_offset_bits
=no
; break
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.
$ac_ext >&5
5928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 cat >conftest.
$ac_ext <<_ACEOF
5932 cat confdefs.h
>>conftest.
$ac_ext
5933 cat >>conftest.
$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #define _FILE_OFFSET_BITS 64
5936 #include <sys/types.h>
5937 /* Check that off_t can represent 2**63 - 1 correctly.
5938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5939 since some C++ compilers masquerading as C compilers
5940 incorrectly reject 9223372036854775807. */
5941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5943 && LARGE_OFF_T % 2147483647 == 1)
5953 rm -f conftest.
$ac_objext
5954 if { (ac_try
="$ac_compile"
5956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
5971 ac_cv_sys_file_offset_bits=64; break
5973 $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 ac_cv_sys_file_offset_bits=unknown
5984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5985 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5986 case $ac_cv_sys_file_offset_bits in #(
5989 cat >>confdefs.h <<_ACEOF
5990 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5995 if test $ac_cv_sys_file_offset_bits = unknown; then
5996 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5997 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5998 if test "${ac_cv_sys_large_files+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6029 *) ac_try_echo
=$ac_try;;
6031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1
>conftest.err
6037 cat conftest.err
>&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.
$ac_objext; then
6043 ac_cv_sys_large_files
=no
; break
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.
$ac_ext >&5
6051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6052 cat >conftest.
$ac_ext <<_ACEOF
6055 cat confdefs.h
>>conftest.
$ac_ext
6056 cat >>conftest.
$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #define _LARGE_FILES 1
6059 #include <sys/types.h>
6060 /* Check that off_t can represent 2**63 - 1 correctly.
6061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6062 since some C++ compilers masquerading as C compilers
6063 incorrectly reject 9223372036854775807. */
6064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6066 && LARGE_OFF_T % 2147483647 == 1)
6076 rm -f conftest.
$ac_objext
6077 if { (ac_try
="$ac_compile"
6079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 ac_cv_sys_large_files=1; break
6096 $as_echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cv_sys_large_files=unknown
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6108 $as_echo "$ac_cv_sys_large_files" >&6; }
6109 case $ac_cv_sys_large_files in #(
6112 cat >>confdefs.h <<_ACEOF
6113 #define _LARGE_FILES $ac_cv_sys_large_files
6123 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6124 ### be located in either /usr/lib64 or /usr/lib.
6125 ### In some rare cases, /usr/lib64 exists but does not contain the
6126 ### relevant files (bug#1287). Hence test for crtn.o.
6127 case "${canonical}" in
6128 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6129 if test -e /usr/lib64/crtn.o; then
6131 cat >>confdefs.h <<\_ACEOF
6132 #define HAVE_LIB64_DIR 1
6141 if test "${with_sound}" != "no"; then
6142 # Sound support for GNU/Linux and the free BSDs.
6146 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6151 $as_echo_n "checking for $ac_header... " >&6; }
6152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6153 $as_echo_n "(cached) " >&6
6155 ac_res=`eval 'as_val=${'$as_ac_Header'}
6156 $as_echo "$as_val"'`
6157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6158 $as_echo "$ac_res" >&6; }
6160 # Is the header compilable?
6161 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6162 $as_echo_n "checking $ac_header usability... " >&6; }
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6170 #include <$ac_header>
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6176 *) ac_try_echo
=$ac_try;;
6178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1
>conftest.err
6184 cat conftest.err
>&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.
$ac_objext; then
6190 ac_header_compiler
=yes
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.
$ac_ext >&5
6195 ac_header_compiler
=no
6198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6200 $as_echo "$ac_header_compiler" >&6; }
6202 # Is the header present?
6203 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6204 $as_echo_n "checking $ac_header presence... " >&6; }
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <$ac_header>
6213 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } >/dev/null && {
6227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6230 ac_header_preproc=yes
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 ac_header_preproc=no
6238 rm -f conftest.err conftest.$ac_ext
6239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6240 $as_echo "$ac_header_preproc" >&6; }
6242 # So? What about this header?
6243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6246 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6249 ac_header_preproc=yes
6252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6253 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6255 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6257 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6259 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6263 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6268 $as_echo_n "checking for $ac_header... " >&6; }
6269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 $as_echo_n "(cached) " >&6
6272 eval "$as_ac_Header=\$ac_header_preproc"
6274 ac_res=`eval 'as_val=${'$as_ac_Header'}
6275 $as_echo "$as_val"'`
6276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6277 $as_echo "$ac_res" >&6; }
6280 if test `eval 'as_val=${'$as_ac_Header'}
6281 $as_echo "$as_val"'` = yes; then
6282 cat >>confdefs.h <<_ACEOF
6283 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6290 # Emulation library used on NetBSD.
6291 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6292 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6293 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6294 $as_echo_n "(cached) " >&6
6296 ac_check_lib_save_LIBS=$LIBS
6297 LIBS="-lossaudio $LIBS"
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6305 /* Override any GCC internal prototype to avoid an error.
6306 Use char because int might match the return type of a GCC
6307 builtin and then its argument prototype would still apply. */
6315 return _oss_ioctl ();
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (ac_try="$ac_link"
6323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6324 *) ac_try_echo
=$ac_try;;
6326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6327 $as_echo "$ac_try_echo") >&5
6328 (eval "$ac_link") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1
>conftest.err
6332 cat conftest.err
>&5
6333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest
$ac_exeext && {
6338 test "$cross_compiling" = yes ||
6339 $as_test_x conftest
$ac_exeext
6341 ac_cv_lib_ossaudio__oss_ioctl
=yes
6343 $as_echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6346 ac_cv_lib_ossaudio__oss_ioctl
=no
6349 rm -rf conftest.dSYM
6350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6351 conftest
$ac_exeext conftest.
$ac_ext
6352 LIBS
=$ac_check_lib_save_LIBS
6354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6355 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6356 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6365 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6369 # Extract the first word of "pkg-config", so it can be a program name with args.
6370 set dummy pkg-config
; ac_word
=$2
6371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6374 $as_echo_n "(cached) " >&6
6378 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir
=.
6386 for ac_exec_ext
in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6400 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6401 if test -n "$PKG_CONFIG"; then
6402 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6403 $as_echo "$PKG_CONFIG" >&6; }
6405 { $as_echo "$as_me:$LINENO: result: no" >&5
6406 $as_echo "no" >&6; }
6411 if test "$PKG_CONFIG" = "no" ; then
6414 PKG_CONFIG_MIN_VERSION
=0.9.0
6415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6416 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6417 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6419 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6420 { $as_echo "$as_me:$LINENO: result: yes" >&5
6421 $as_echo "yes" >&6; }
6424 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6425 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6426 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6427 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6428 $as_echo "$ALSA_CFLAGS" >&6; }
6430 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6431 $as_echo_n "checking ALSA_LIBS... " >&6; }
6432 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6433 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6434 $as_echo "$ALSA_LIBS" >&6; }
6436 { $as_echo "$as_me:$LINENO: result: no" >&5
6437 $as_echo "no" >&6; }
6440 ## If we have a custom action on failure, don't print errors, but
6441 ## do set a variable so people can do so.
6442 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6454 if test $succeeded = yes; then
6460 if test $HAVE_ALSA = yes; then
6461 SAVE_CFLAGS
="$CFLAGS"
6462 SAVE_LDFLAGS
="$LDFLAGS"
6463 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6464 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6465 cat >conftest.
$ac_ext <<_ACEOF
6468 cat confdefs.h
>>conftest.
$ac_ext
6469 cat >>conftest.
$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <asoundlib.h>
6475 snd_lib_error_set_handler (0);
6480 rm -f conftest.
$ac_objext
6481 if { (ac_try
="$ac_compile"
6483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
6498 emacs_alsa_normal=yes
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 emacs_alsa_normal=no
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 if test "$emacs_alsa_normal" != yes; then
6508 cat >conftest.$ac_ext <<_ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <alsa/asoundlib.h>
6518 snd_lib_error_set_handler (0);
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6527 *) ac_try_echo
=$ac_try;;
6529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6530 $as_echo "$ac_try_echo") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1
>conftest.err
6535 cat conftest.err
>&5
6536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.
$ac_objext; then
6541 emacs_alsa_subdir
=yes
6543 $as_echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.
$ac_ext >&5
6546 emacs_alsa_subdir
=no
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6550 if test "$emacs_alsa_subdir" != yes; then
6551 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6552 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6553 { (exit 1); exit 1; }; }
6555 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6558 CFLAGS
="$SAVE_CFLAGS"
6559 LDFLAGS
="$SAVE_LDFLAGS"
6560 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6561 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6563 cat >>confdefs.h
<<\_ACEOF
6596 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6597 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6598 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6599 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6602 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6603 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6605 $as_echo_n "checking for $ac_header... " >&6; }
6606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6607 $as_echo_n "(cached) " >&6
6609 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6610 $as_echo "$as_val"'`
6611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6612 $as_echo "$ac_res" >&6; }
6614 # Is the header compilable?
6615 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6616 $as_echo_n "checking $ac_header usability... " >&6; }
6617 cat >conftest.
$ac_ext <<_ACEOF
6620 cat confdefs.h
>>conftest.
$ac_ext
6621 cat >>conftest.
$ac_ext <<_ACEOF
6622 /* end confdefs.h. */
6623 $ac_includes_default
6624 #include <$ac_header>
6626 rm -f conftest.
$ac_objext
6627 if { (ac_try
="$ac_compile"
6629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_header_compiler=yes
6646 $as_echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6649 ac_header_compiler=no
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6654 $as_echo "$ac_header_compiler" >&6; }
6656 # Is the header present?
6657 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6658 $as_echo_n "checking $ac_header presence... " >&6; }
6659 cat >conftest.$ac_ext <<_ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 #include <$ac_header>
6667 if { (ac_try="$ac_cpp conftest.$ac_ext"
6669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6670 *) ac_try_echo
=$ac_try;;
6672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6673 $as_echo "$ac_try_echo") >&5
6674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev
/null
&& {
6681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6684 ac_header_preproc
=yes
6686 $as_echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.
$ac_ext >&5
6689 ac_header_preproc
=no
6692 rm -f conftest.err conftest.
$ac_ext
6693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 $as_echo "$ac_header_preproc" >&6; }
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6700 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc
=yes
6706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6707 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6709 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6711 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6713 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6715 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6721 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 $as_echo_n "checking for $ac_header... " >&6; }
6723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6724 $as_echo_n "(cached) " >&6
6726 eval "$as_ac_Header=\$ac_header_preproc"
6728 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6729 $as_echo "$as_val"'`
6730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6731 $as_echo "$ac_res" >&6; }
6734 if test `eval 'as_val=${'$as_ac_Header'}
6735 $as_echo "$as_val"'` = yes; then
6736 cat >>confdefs.h
<<_ACEOF
6737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6745 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6746 $as_echo_n "checking if personality LINUX32 can be set... " >&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 #include <sys/personality.h>
6757 personality (PER_LINUX32)
6762 rm -f conftest.
$ac_objext
6763 if { (ac_try
="$ac_compile"
6765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6772 grep -v '^ *+' conftest.er1 >conftest.err
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 emacs_cv_personality_linux32=yes
6782 $as_echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 emacs_cv_personality_linux32=no
6788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6790 $as_echo "$emacs_cv_personality_linux32" >&6; }
6792 if test $emacs_cv_personality_linux32 = yes; then
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_PERSONALITY_LINUX32 1
6801 for ac_header in term.h
6803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6805 $as_echo_n "checking for $ac_header... " >&6; }
6806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6807 $as_echo_n "(cached) " >&6
6809 cat >conftest.$ac_ext <<_ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <$ac_header>
6817 if { (ac_try="$ac_cpp conftest.$ac_ext"
6819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6820 *) ac_try_echo
=$ac_try;;
6822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } >/dev
/null
&& {
6831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6834 eval "$as_ac_Header=yes"
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.
$ac_ext >&5
6839 eval "$as_ac_Header=no"
6842 rm -f conftest.err conftest.
$ac_ext
6844 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6845 $as_echo "$as_val"'`
6846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6847 $as_echo "$ac_res" >&6; }
6848 if test `eval 'as_val=${'$as_ac_Header'}
6849 $as_echo "$as_val"'` = yes; then
6850 cat >>confdefs.h
<<_ACEOF
6851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6859 $as_echo_n "checking for ANSI C header files... " >&6; }
6860 if test "${ac_cv_header_stdc+set}" = set; then
6861 $as_echo_n "(cached) " >&6
6863 cat >conftest.
$ac_ext <<_ACEOF
6866 cat confdefs.h
>>conftest.
$ac_ext
6867 cat >>conftest.
$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6882 rm -f conftest.
$ac_objext
6883 if { (ac_try
="$ac_compile"
6885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_header_stdc=yes
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_header_stdc=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 if test $ac_cv_header_stdc = yes; then
6911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6912 cat >conftest.$ac_ext <<_ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922 $EGREP "memchr" >/dev/null 2>&1; then
6925 ac_cv_header_stdc=no
6931 if test $ac_cv_header_stdc = yes; then
6932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "free" >/dev/null 2>&1; then
6946 ac_cv_header_stdc=no
6952 if test $ac_cv_header_stdc = yes; then
6953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6954 if test "$cross_compiling" = yes; then
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6965 #if ((' ' & 0x0FF) == 0x020)
6966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6969 # define ISLOWER(c) \
6970 (('a' <= (c) && (c) <= 'i') \
6971 || ('j' <= (c) && (c) <= 'r') \
6972 || ('s' <= (c) && (c) <= 'z'))
6973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6981 for (i = 0; i < 256; i++)
6982 if (XOR (islower (i), ISLOWER (i))
6983 || toupper (i) != TOUPPER (i))
6988 rm -f conftest$ac_exeext
6989 if { (ac_try="$ac_link"
6991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6992 *) ac_try_echo
=$ac_try;;
6994 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_link") 2>&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7000 { (case "(($ac_try" in
7001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006 (eval "$ac_try") 2>&5
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7012 $as_echo "$as_me: program exited with status $ac_status" >&5
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 ac_cv_header_stdc=no
7019 rm -rf conftest.dSYM
7020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7026 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7027 $as_echo "$ac_cv_header_stdc" >&6; }
7028 if test $ac_cv_header_stdc = yes; then
7030 cat >>confdefs.h <<\_ACEOF
7031 #define STDC_HEADERS 1
7036 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7037 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7038 if test "${ac_cv_header_time+set}" = set; then
7039 $as_echo_n "(cached) " >&6
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <sys/types.h>
7048 #include <sys/time.h>
7054 if ((struct tm *) 0)
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_compile") 2>conftest.er1
7070 grep -v '^ *+' conftest.er1
>conftest.err
7072 cat conftest.err
>&5
7073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_c_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest.
$ac_objext; then
7078 ac_cv_header_time
=yes
7080 $as_echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.
$ac_ext >&5
7083 ac_cv_header_time
=no
7086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7088 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7089 $as_echo "$ac_cv_header_time" >&6; }
7090 if test $ac_cv_header_time = yes; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define TIME_WITH_SYS_TIME 1
7098 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7099 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7100 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7103 cat >conftest.
$ac_ext <<_ACEOF
7106 cat confdefs.h
>>conftest.
$ac_ext
7107 cat >>conftest.
$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 $ac_includes_default
7121 rm -f conftest.
$ac_objext
7122 if { (ac_try
="$ac_compile"
7124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_have_decl_sys_siglist=yes
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_have_decl_sys_siglist=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7150 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7151 if test $ac_cv_have_decl_sys_siglist = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define HAVE_DECL_SYS_SIGLIST 1
7159 cat >>confdefs.h <<_ACEOF
7160 #define HAVE_DECL_SYS_SIGLIST 0
7167 if test $ac_cv_have_decl_sys_siglist != yes; then
7168 # For Tru64, at least:
7169 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7170 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7171 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7184 #ifndef __sys_siglist
7185 (void) __sys_siglist;
7192 rm -f conftest.$ac_objext
7193 if { (ac_try="$ac_compile"
7195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7196 *) ac_try_echo
=$ac_try;;
7198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 ac_cv_have_decl___sys_siglist
=yes
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7215 ac_cv_have_decl___sys_siglist
=no
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7221 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7222 if test $ac_cv_have_decl___sys_siglist = yes; then
7224 cat >>confdefs.h
<<_ACEOF
7225 #define HAVE_DECL___SYS_SIGLIST 1
7230 cat >>confdefs.h
<<_ACEOF
7231 #define HAVE_DECL___SYS_SIGLIST 0
7238 if test $ac_cv_have_decl___sys_siglist = yes; then
7240 cat >>confdefs.h
<<\_ACEOF
7241 #define sys_siglist __sys_siglist
7246 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7247 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7248 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7249 $as_echo_n "(cached) " >&6
7251 cat >conftest.
$ac_ext <<_ACEOF
7254 cat confdefs.h
>>conftest.
$ac_ext
7255 cat >>conftest.
$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 #include <sys/types.h>
7258 #include <sys/wait.h>
7260 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7263 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7271 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7276 rm -f conftest.
$ac_objext
7277 if { (ac_try
="$ac_compile"
7279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7283 $as_echo "$ac_try_echo") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7294 ac_cv_header_sys_wait_h=yes
7296 $as_echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_cv_header_sys_wait_h=no
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7305 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7306 if test $ac_cv_header_sys_wait_h = yes; then
7308 cat >>confdefs.h <<\_ACEOF
7309 #define HAVE_SYS_WAIT_H 1
7315 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7316 $as_echo_n "checking for struct utimbuf... " >&6; }
7317 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7320 cat >conftest.$ac_ext <<_ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 #ifdef TIME_WITH_SYS_TIME
7327 #include <sys/time.h>
7330 #ifdef HAVE_SYS_TIME_H
7331 #include <sys/time.h>
7342 static struct utimbuf x; x.actime = x.modtime;
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7351 *) ac_try_echo
=$ac_try;;
7353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1
>conftest.err
7359 cat conftest.err
>&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.
$ac_objext; then
7365 emacs_cv_struct_utimbuf
=yes
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 emacs_cv_struct_utimbuf
=no
7373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7375 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7376 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7377 if test $emacs_cv_struct_utimbuf = yes; then
7379 cat >>confdefs.h
<<\_ACEOF
7380 #define HAVE_STRUCT_UTIMBUF 1
7385 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7386 $as_echo_n "checking return type of signal handlers... " >&6; }
7387 if test "${ac_cv_type_signal+set}" = set; then
7388 $as_echo_n "(cached) " >&6
7390 cat >conftest.
$ac_ext <<_ACEOF
7393 cat confdefs.h
>>conftest.
$ac_ext
7394 cat >>conftest.
$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 #include <sys/types.h>
7402 return *(signal (0, 0)) (0) == 1;
7407 rm -f conftest.
$ac_objext
7408 if { (ac_try
="$ac_compile"
7410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 ac_cv_type_signal=int
7427 $as_echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_cv_type_signal=void
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7436 $as_echo "$ac_cv_type_signal" >&6; }
7438 cat >>confdefs.h <<_ACEOF
7439 #define RETSIGTYPE $ac_cv_type_signal
7444 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7445 $as_echo_n "checking for speed_t... " >&6; }
7446 if test "${emacs_cv_speed_t+set}" = set; then
7447 $as_echo_n "(cached) " >&6
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <termios.h>
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7468 *) ac_try_echo
=$ac_try;;
7470 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7471 $as_echo "$ac_try_echo") >&5
7472 (eval "$ac_compile") 2>conftest.er1
7474 grep -v '^ *+' conftest.er1
>conftest.err
7476 cat conftest.err
>&5
7477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest.
$ac_objext; then
7482 emacs_cv_speed_t
=yes
7484 $as_echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.
$ac_ext >&5
7490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7492 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7493 $as_echo "$emacs_cv_speed_t" >&6; }
7494 if test $emacs_cv_speed_t = yes; then
7496 cat >>confdefs.h
<<\_ACEOF
7497 #define HAVE_SPEED_T 1
7502 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7503 $as_echo_n "checking for struct timeval... " >&6; }
7504 if test "${emacs_cv_struct_timeval+set}" = set; then
7505 $as_echo_n "(cached) " >&6
7507 cat >conftest.
$ac_ext <<_ACEOF
7510 cat confdefs.h
>>conftest.
$ac_ext
7511 cat >>conftest.
$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 #ifdef TIME_WITH_SYS_TIME
7514 #include <sys/time.h>
7517 #ifdef HAVE_SYS_TIME_H
7518 #include <sys/time.h>
7526 static struct timeval x; x.tv_sec = x.tv_usec;
7531 rm -f conftest.
$ac_objext
7532 if { (ac_try
="$ac_compile"
7534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7538 $as_echo "$ac_try_echo") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 emacs_cv_struct_timeval=yes
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 emacs_cv_struct_timeval=no
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7560 $as_echo "$emacs_cv_struct_timeval" >&6; }
7561 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7562 if test $emacs_cv_struct_timeval = yes; then
7564 cat >>confdefs.h <<\_ACEOF
7565 #define HAVE_TIMEVAL 1
7570 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7571 $as_echo_n "checking for struct exception... " >&6; }
7572 if test "${emacs_cv_struct_exception+set}" = set; then
7573 $as_echo_n "(cached) " >&6
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7585 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7590 rm -f conftest.$ac_objext
7591 if { (ac_try="$ac_compile"
7593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7594 *) ac_try_echo
=$ac_try;;
7596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7597 $as_echo "$ac_try_echo") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7600 grep -v '^ *+' conftest.er1
>conftest.err
7602 cat conftest.err
>&5
7603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.
$ac_objext; then
7608 emacs_cv_struct_exception
=yes
7610 $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.
$ac_ext >&5
7613 emacs_cv_struct_exception
=no
7616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7618 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7619 $as_echo "$emacs_cv_struct_exception" >&6; }
7620 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7621 if test $emacs_cv_struct_exception != yes; then
7623 cat >>confdefs.h
<<\_ACEOF
7624 #define NO_MATHERR 1
7630 for ac_header
in sys
/socket.h
7632 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7633 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 $as_echo_n "checking for $ac_header... " >&6; }
7636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 $as_echo_n "(cached) " >&6
7639 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7640 $as_echo "$as_val"'`
7641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7642 $as_echo "$ac_res" >&6; }
7644 # Is the header compilable?
7645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7646 $as_echo_n "checking $ac_header usability... " >&6; }
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #include <$ac_header>
7656 rm -f conftest.
$ac_objext
7657 if { (ac_try
="$ac_compile"
7659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7663 $as_echo "$ac_try_echo") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_header_compiler=yes
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_header_compiler=no
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 $as_echo "$ac_header_compiler" >&6; }
7686 # Is the header present?
7687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 $as_echo_n "checking $ac_header presence... " >&6; }
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7697 if { (ac_try="$ac_cpp conftest.$ac_ext"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7703 $as_echo "$ac_try_echo") >&5
7704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7706 grep -v '^ *+' conftest.er1
>conftest.err
7708 cat conftest.err
>&5
7709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } >/dev
/null
&& {
7711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7714 ac_header_preproc
=yes
7716 $as_echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.
$ac_ext >&5
7719 ac_header_preproc
=no
7722 rm -f conftest.err conftest.
$ac_ext
7723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7724 $as_echo "$ac_header_preproc" >&6; }
7726 # So? What about this header?
7727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7733 ac_header_preproc
=yes
7736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7739 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7743 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7752 $as_echo_n "checking for $ac_header... " >&6; }
7753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7754 $as_echo_n "(cached) " >&6
7756 eval "$as_ac_Header=\$ac_header_preproc"
7758 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7759 $as_echo "$as_val"'`
7760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7761 $as_echo "$ac_res" >&6; }
7764 if test `eval 'as_val=${'$as_ac_Header'}
7765 $as_echo "$as_val"'` = yes; then
7766 cat >>confdefs.h
<<_ACEOF
7767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7775 for ac_header
in net
/if.h
7777 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 $as_echo_n "checking for $ac_header... " >&6; }
7780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7781 $as_echo_n "(cached) " >&6
7783 cat >conftest.
$ac_ext <<_ACEOF
7786 cat confdefs.h
>>conftest.
$ac_ext
7787 cat >>conftest.
$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 #if HAVE_SYS_SOCKET_H
7791 #include <sys/socket.h>
7794 #include <$ac_header>
7796 rm -f conftest.
$ac_objext
7797 if { (ac_try
="$ac_compile"
7799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7800 *) ac_try_echo=$ac_try;;
7802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7803 $as_echo "$ac_try_echo") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7806 grep -v '^ *+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7814 eval "$as_ac_Header=yes"
7816 $as_echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 eval "$as_ac_Header=no"
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 ac_res=`eval 'as_val=${'$as_ac_Header'}
7825 $as_echo "$as_val"'`
7826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7827 $as_echo "$ac_res" >&6; }
7828 if test `eval 'as_val=${'$as_ac_Header'}
7829 $as_echo "$as_val"'` = yes; then
7830 cat >>confdefs.h <<_ACEOF
7831 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7839 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7840 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7841 if test "${ac_cv_struct_tm+set}" = set; then
7842 $as_echo_n "(cached) " >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7857 int *p = &tm.tm_sec;
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7867 *) ac_try_echo
=$ac_try;;
7869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7870 $as_echo "$ac_try_echo") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7873 grep -v '^ *+' conftest.er1
>conftest.err
7875 cat conftest.err
>&5
7876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.
$ac_objext; then
7881 ac_cv_struct_tm
=time.h
7883 $as_echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.
$ac_ext >&5
7886 ac_cv_struct_tm
=sys
/time.h
7889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7892 $as_echo "$ac_cv_struct_tm" >&6; }
7893 if test $ac_cv_struct_tm = sys
/time.h
; then
7895 cat >>confdefs.h
<<\_ACEOF
7896 #define TM_IN_SYS_TIME 1
7901 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7902 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7903 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7904 $as_echo_n "(cached) " >&6
7906 cat >conftest.
$ac_ext <<_ACEOF
7909 cat confdefs.h
>>conftest.
$ac_ext
7910 cat >>conftest.
$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <sys/types.h>
7913 #include <$ac_cv_struct_tm>
7919 static struct tm ac_aggr;
7920 if (ac_aggr.tm_zone)
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 ac_cv_member_struct_tm_tm_zone=yes
7946 $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <sys/types.h>
7956 #include <$ac_cv_struct_tm>
7962 static struct tm ac_aggr;
7963 if (sizeof ac_aggr.tm_zone)
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7973 *) ac_try_echo
=$ac_try;;
7975 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7976 $as_echo "$ac_try_echo") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1
>conftest.err
7981 cat conftest.err
>&5
7982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.
$ac_objext; then
7987 ac_cv_member_struct_tm_tm_zone
=yes
7989 $as_echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.
$ac_ext >&5
7992 ac_cv_member_struct_tm_tm_zone
=no
7995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8001 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8002 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8004 cat >>confdefs.h
<<_ACEOF
8005 #define HAVE_STRUCT_TM_TM_ZONE 1
8011 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8013 cat >>confdefs.h
<<\_ACEOF
8014 #define HAVE_TM_ZONE 1
8018 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8019 $as_echo_n "checking whether tzname is declared... " >&6; }
8020 if test "${ac_cv_have_decl_tzname+set}" = set; then
8021 $as_echo_n "(cached) " >&6
8023 cat >conftest.
$ac_ext <<_ACEOF
8026 cat confdefs.h
>>conftest.
$ac_ext
8027 cat >>conftest.
$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8042 rm -f conftest.
$ac_objext
8043 if { (ac_try
="$ac_compile"
8045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8049 $as_echo "$ac_try_echo") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_have_decl_tzname=yes
8062 $as_echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_cv_have_decl_tzname=no
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8071 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8072 if test $ac_cv_have_decl_tzname = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_DECL_TZNAME 1
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL_TZNAME 0
8088 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8089 $as_echo_n "checking for tzname... " >&6; }
8090 if test "${ac_cv_var_tzname+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8100 #if !HAVE_DECL_TZNAME
8101 extern char *tzname[];
8107 return tzname[0][0];
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (ac_try="$ac_link"
8115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8116 *) ac_try_echo
=$ac_try;;
8118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8119 $as_echo "$ac_try_echo") >&5
8120 (eval "$ac_link") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1
>conftest.err
8124 cat conftest.err
>&5
8125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest
$ac_exeext && {
8130 test "$cross_compiling" = yes ||
8131 $as_test_x conftest
$ac_exeext
8133 ac_cv_var_tzname
=yes
8135 $as_echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.
$ac_ext >&5
8141 rm -rf conftest.dSYM
8142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8143 conftest
$ac_exeext conftest.
$ac_ext
8145 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8146 $as_echo "$ac_cv_var_tzname" >&6; }
8147 if test $ac_cv_var_tzname = yes; then
8149 cat >>confdefs.h
<<\_ACEOF
8150 #define HAVE_TZNAME 1
8156 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8157 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8158 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8159 $as_echo_n "(cached) " >&6
8161 cat >conftest.
$ac_ext <<_ACEOF
8164 cat confdefs.h
>>conftest.
$ac_ext
8165 cat >>conftest.
$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8172 static struct tm ac_aggr;
8173 if (ac_aggr.tm_gmtoff)
8179 rm -f conftest.
$ac_objext
8180 if { (ac_try
="$ac_compile"
8182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 ac_cv_member_struct_tm_tm_gmtoff=yes
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 cat >conftest.$ac_ext <<_ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8213 static struct tm ac_aggr;
8214 if (sizeof ac_aggr.tm_gmtoff)
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8224 *) ac_try_echo
=$ac_try;;
8226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8227 $as_echo "$ac_try_echo") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1
>conftest.err
8232 cat conftest.err
>&5
8233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.
$ac_objext; then
8238 ac_cv_member_struct_tm_tm_gmtoff
=yes
8240 $as_echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.
$ac_ext >&5
8243 ac_cv_member_struct_tm_tm_gmtoff
=no
8246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8251 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8252 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8253 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8255 cat >>confdefs.h
<<\_ACEOF
8256 #define HAVE_TM_GMTOFF 1
8261 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8262 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8263 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8264 $as_echo_n "(cached) " >&6
8266 cat >conftest.
$ac_ext <<_ACEOF
8269 cat confdefs.h
>>conftest.
$ac_ext
8270 cat >>conftest.
$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8283 static struct ifreq ac_aggr;
8284 if (ac_aggr.ifr_flags)
8290 rm -f conftest.
$ac_objext
8291 if { (ac_try
="$ac_compile"
8293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_cv_member_struct_ifreq_ifr_flags=yes
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8320 #if HAVE_SYS_SOCKET_H
8321 #include <sys/socket.h>
8330 static struct ifreq ac_aggr;
8331 if (sizeof ac_aggr.ifr_flags)
8337 rm -f conftest.$ac_objext
8338 if { (ac_try="$ac_compile"
8340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8341 *) ac_try_echo
=$ac_try;;
8343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8344 $as_echo "$ac_try_echo") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1
>conftest.err
8349 cat conftest.err
>&5
8350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.
$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_flags
=yes
8357 $as_echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.
$ac_ext >&5
8360 ac_cv_member_struct_ifreq_ifr_flags
=no
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8369 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8370 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8378 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8379 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8380 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8381 $as_echo_n "(cached) " >&6
8383 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #if HAVE_SYS_SOCKET_H
8391 #include <sys/socket.h>
8400 static struct ifreq ac_aggr;
8401 if (ac_aggr.ifr_hwaddr)
8407 rm -f conftest.
$ac_objext
8408 if { (ac_try
="$ac_compile"
8410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1 >conftest.err
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8437 #if HAVE_SYS_SOCKET_H
8438 #include <sys/socket.h>
8447 static struct ifreq ac_aggr;
8448 if (sizeof ac_aggr.ifr_hwaddr)
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8458 *) ac_try_echo
=$ac_try;;
8460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8461 $as_echo "$ac_try_echo") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.
$ac_objext; then
8472 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8474 $as_echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.
$ac_ext >&5
8477 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8486 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8487 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8489 cat >>confdefs.h
<<_ACEOF
8490 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8495 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8496 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8497 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8500 cat >conftest.
$ac_ext <<_ACEOF
8503 cat confdefs.h
>>conftest.
$ac_ext
8504 cat >>conftest.
$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8517 static struct ifreq ac_aggr;
8518 if (ac_aggr.ifr_netmask)
8524 rm -f conftest.
$ac_objext
8525 if { (ac_try
="$ac_compile"
8527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532 (eval "$ac_compile") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest.$ac_objext; then
8542 ac_cv_member_struct_ifreq_ifr_netmask=yes
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8553 $ac_includes_default
8554 #if HAVE_SYS_SOCKET_H
8555 #include <sys/socket.h>
8564 static struct ifreq ac_aggr;
8565 if (sizeof ac_aggr.ifr_netmask)
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8575 *) ac_try_echo
=$ac_try;;
8577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1
>conftest.err
8583 cat conftest.err
>&5
8584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.
$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_cv_member_struct_ifreq_ifr_netmask
=no
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8603 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8606 cat >>confdefs.h
<<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8612 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8613 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8617 cat >conftest.
$ac_ext <<_ACEOF
8620 cat confdefs.h
>>conftest.
$ac_ext
8621 cat >>conftest.
$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_broadaddr)
8641 rm -f conftest.
$ac_objext
8642 if { (ac_try
="$ac_compile"
8644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649 (eval "$ac_compile") 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } && {
8656 test -z "$ac_c_werror_flag" ||
8657 test ! -s conftest.err
8658 } && test -s conftest.$ac_objext; then
8659 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8661 $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 cat >conftest.$ac_ext <<_ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 $ac_includes_default
8671 #if HAVE_SYS_SOCKET_H
8672 #include <sys/socket.h>
8681 static struct ifreq ac_aggr;
8682 if (sizeof ac_aggr.ifr_broadaddr)
8688 rm -f conftest.$ac_objext
8689 if { (ac_try="$ac_compile"
8691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8692 *) ac_try_echo
=$ac_try;;
8694 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8695 $as_echo "$ac_try_echo") >&5
8696 (eval "$ac_compile") 2>conftest.er1
8698 grep -v '^ *+' conftest.er1
>conftest.err
8700 cat conftest.err
>&5
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && {
8703 test -z "$ac_c_werror_flag" ||
8704 test ! -s conftest.err
8705 } && test -s conftest.
$ac_objext; then
8706 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8708 $as_echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.
$ac_ext >&5
8711 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8719 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8720 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8721 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8723 cat >>confdefs.h
<<_ACEOF
8724 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8729 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8730 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8731 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8732 $as_echo_n "(cached) " >&6
8734 cat >conftest.
$ac_ext <<_ACEOF
8737 cat confdefs.h
>>conftest.
$ac_ext
8738 cat >>conftest.
$ac_ext <<_ACEOF
8739 /* end confdefs.h. */
8740 $ac_includes_default
8741 #if HAVE_SYS_SOCKET_H
8742 #include <sys/socket.h>
8751 static struct ifreq ac_aggr;
8752 if (ac_aggr.ifr_addr)
8758 rm -f conftest.
$ac_objext
8759 if { (ac_try
="$ac_compile"
8761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 ac_cv_member_struct_ifreq_ifr_addr=yes
8778 $as_echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787 $ac_includes_default
8788 #if HAVE_SYS_SOCKET_H
8789 #include <sys/socket.h>
8798 static struct ifreq ac_aggr;
8799 if (sizeof ac_aggr.ifr_addr)
8805 rm -f conftest.$ac_objext
8806 if { (ac_try="$ac_compile"
8808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8809 *) ac_try_echo
=$ac_try;;
8811 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8815 grep -v '^ *+' conftest.er1
>conftest.err
8817 cat conftest.err
>&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.
$ac_objext; then
8823 ac_cv_member_struct_ifreq_ifr_addr
=yes
8825 $as_echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.
$ac_ext >&5
8828 ac_cv_member_struct_ifreq_ifr_addr
=no
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8837 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8838 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8840 cat >>confdefs.h
<<_ACEOF
8841 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8849 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8850 $as_echo_n "checking for function prototypes... " >&6; }
8851 if test "$ac_cv_prog_cc_c89" != no
; then
8852 { $as_echo "$as_me:$LINENO: result: yes" >&5
8853 $as_echo "yes" >&6; }
8855 cat >>confdefs.h
<<\_ACEOF
8856 #define PROTOTYPES 1
8860 cat >>confdefs.h
<<\_ACEOF
8861 #define __PROTOTYPES 1
8865 { $as_echo "$as_me:$LINENO: result: no" >&5
8866 $as_echo "no" >&6; }
8869 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8870 $as_echo_n "checking for working volatile... " >&6; }
8871 if test "${ac_cv_c_volatile+set}" = set; then
8872 $as_echo_n "(cached) " >&6
8874 cat >conftest.
$ac_ext <<_ACEOF
8877 cat confdefs.h
>>conftest.
$ac_ext
8878 cat >>conftest.
$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8886 int * volatile y = (int *) 0;
8892 rm -f conftest.
$ac_objext
8893 if { (ac_try
="$ac_compile"
8895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8899 $as_echo "$ac_try_echo") >&5
8900 (eval "$ac_compile") 2>conftest.er1
8902 grep -v '^ *+' conftest.er1 >conftest.err
8904 cat conftest.err >&5
8905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.$ac_objext; then
8910 ac_cv_c_volatile=yes
8912 $as_echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8921 $as_echo "$ac_cv_c_volatile" >&6; }
8922 if test $ac_cv_c_volatile = no; then
8924 cat >>confdefs.h <<\_ACEOF
8925 #define volatile /**/
8930 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8931 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8932 if test "${ac_cv_c_const+set}" = set; then
8933 $as_echo_n "(cached) " >&6
8935 cat >conftest.$ac_ext <<_ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8945 /* FIXME: Include the comments suggested by Paul. */
8947 /* Ultrix mips cc rejects this. */
8948 typedef int charset[2];
8950 /* SunOS 4.1.1 cc rejects this. */
8951 char const *const *pcpcc;
8953 /* NEC SVR4.0.2 mips cc rejects this. */
8954 struct point {int x, y;};
8955 static struct point const zero = {0,0};
8956 /* AIX XL C 1.02.0.0 rejects this.
8957 It does not let you subtract one const X* pointer from another in
8958 an arm of an if-expression whose if-part is not a constant
8960 const char *g = "string";
8961 pcpcc = &g + (g ? g-g : 0);
8962 /* HPUX 7.0 cc rejects these. */
8964 ppc = (char**) pcpcc;
8965 pcpcc = (char const *const *) ppc;
8966 { /* SCO 3.2v4 cc rejects this. */
8968 char const *s = 0 ? (char *) 0 : (char const *) 0;
8973 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8975 const int *foo = &x[0];
8978 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8979 typedef const int *iptr;
8983 { /* AIX XL C 1.02.0.0 rejects this saying
8984 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8985 struct s { int j; const int *ap[3]; };
8986 struct s *b; b->j = 5;
8988 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8992 return !cs[0] && !zero.x;
8999 rm -f conftest.$ac_objext
9000 if { (ac_try="$ac_compile"
9002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9003 *) ac_try_echo
=$ac_try;;
9005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9006 $as_echo "$ac_try_echo") >&5
9007 (eval "$ac_compile") 2>conftest.er1
9009 grep -v '^ *+' conftest.er1
>conftest.err
9011 cat conftest.err
>&5
9012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } && {
9014 test -z "$ac_c_werror_flag" ||
9015 test ! -s conftest.err
9016 } && test -s conftest.
$ac_objext; then
9019 $as_echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.
$ac_ext >&5
9025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9028 $as_echo "$ac_cv_c_const" >&6; }
9029 if test $ac_cv_c_const = no
; then
9031 cat >>confdefs.h
<<\_ACEOF
9037 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9038 $as_echo_n "checking for void * support... " >&6; }
9039 if test "${emacs_cv_void_star+set}" = set; then
9040 $as_echo_n "(cached) " >&6
9042 cat >conftest.
$ac_ext <<_ACEOF
9045 cat confdefs.h
>>conftest.
$ac_ext
9046 cat >>conftest.
$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9057 rm -f conftest.
$ac_objext
9058 if { (ac_try
="$ac_compile"
9060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9064 $as_echo "$ac_try_echo") >&5
9065 (eval "$ac_compile") 2>conftest.er1
9067 grep -v '^ *+' conftest.er1 >conftest.err
9069 cat conftest.err >&5
9070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } && {
9072 test -z "$ac_c_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
9075 emacs_cv_void_star=yes
9077 $as_echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 emacs_cv_void_star=no
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9085 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9086 $as_echo "$emacs_cv_void_star" >&6; }
9087 if test $emacs_cv_void_star = yes; then
9088 cat >>confdefs.h <<\_ACEOF
9089 #define POINTER_TYPE void
9093 cat >>confdefs.h <<\_ACEOF
9094 #define POINTER_TYPE char
9103 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9104 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9106 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9107 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9108 $as_echo_n "(cached) " >&6
9110 cat >conftest.make <<\_ACEOF
9113 @echo '@@@%%%=$(MAKE)=@@@%%%'
9115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9116 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9118 eval ac_cv_prog_make_${ac_make}_set=yes;;
9120 eval ac_cv_prog_make_${ac_make}_set=no;;
9124 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9125 { $as_echo "$as_me:$LINENO: result: yes" >&5
9126 $as_echo "yes" >&6; }
9129 { $as_echo "$as_me:$LINENO: result: no" >&5
9130 $as_echo "no" >&6; }
9131 SET_MAKE="MAKE=${MAKE-make}"
9135 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9136 $as_echo_n "checking for long file names... " >&6; }
9137 if test "${ac_cv_sys_long_file_names+set}" = set; then
9138 $as_echo_n "(cached) " >&6
9140 ac_cv_sys_long_file_names=yes
9141 # Test for long file names in all the places we know might matter:
9142 # . the current directory, where building will happen
9143 # $prefix/lib where we will be installing things
9144 # $exec_prefix/lib likewise
9145 # $TMPDIR if set, where it might want to write temporary files
9146 # /tmp where it might want to write temporary files
9149 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9150 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9151 # in the usual case where exec_prefix is '${prefix}'.
9153 . | /* | ?:[\\/]*) ;; #(
9156 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9157 ac_xdir=$ac_dir/cf$$
9158 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9159 ac_tf1=$ac_xdir/conftest9012345
9160 ac_tf2=$ac_xdir/conftest9012346
9161 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9162 ac_cv_sys_long_file_names=no
9163 rm -f -r "$ac_xdir" 2>/dev/null
9164 test $ac_cv_sys_long_file_names = no && break
9167 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9168 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9169 if test $ac_cv_sys_long_file_names = yes; then
9171 cat >>confdefs.h <<\_ACEOF
9172 #define HAVE_LONG_FILE_NAMES 1
9178 #### Choose a window system.
9180 { $as_echo "$as_me:$LINENO: checking for X" >&5
9181 $as_echo_n "checking for X... " >&6; }
9184 # Check whether --with-x was given.
9185 if test "${with_x+set}" = set; then
9189 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9190 if test "x$with_x" = xno; then
9191 # The user explicitly disabled X.
9194 case $x_includes,$x_libraries in #(
9195 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9196 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9197 { (exit 1); exit 1; }; };; #(
9198 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9199 $as_echo_n "(cached) " >&6
9201 # One or both of the vars are not set, and there is no cached value.
9202 ac_x_includes=no ac_x_libraries=no
9203 rm -f -r conftest.dir
9204 if mkdir conftest.dir; then
9206 cat >Imakefile <<'_ACEOF'
9208 @echo incroot='${INCROOT}'
9210 @echo usrlibdir='${USRLIBDIR}'
9212 @echo libdir='${LIBDIR}'
9214 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9216 for ac_var in incroot usrlibdir libdir; do
9217 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9219 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9220 for ac_extension in a so sl dylib la dll; do
9221 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9222 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9223 ac_im_usrlibdir=$ac_im_libdir; break
9226 # Screen out bogus values from the imake configuration. They are
9227 # bogus both because they are the default anyway, and because
9228 # using them would break gcc on systems where it needs fixed includes.
9229 case $ac_im_incroot in
9230 /usr/include) ac_x_includes= ;;
9231 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9233 case $ac_im_usrlibdir in
9235 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9239 rm -f -r conftest.dir
9242 # Standard set of common directories for X headers.
9243 # Check X11 before X11Rn because it is often a symlink to the current release.
9255 /usr/local/X11/include
9256 /usr/local/X11R6/include
9257 /usr/local/X11R5/include
9258 /usr/local/X11R4/include
9260 /usr/local/include/X11
9261 /usr/local/include/X11R6
9262 /usr/local/include/X11R5
9263 /usr/local/include/X11R4
9267 /usr/XFree86/include/X11
9271 /usr/unsupported/include
9273 /usr/local/x11r5/include
9274 /usr/lpp/Xamples/include
9276 /usr/openwin/include
9277 /usr/openwin/share/include'
9279 if test "$ac_x_includes" = no; then
9280 # Guess where to find include files, by looking for Xlib.h.
9281 # First, try using that file with no special directory specified.
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 #include <X11/Xlib.h>
9290 if { (ac_try="$ac_cpp conftest.$ac_ext"
9292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9293 *) ac_try_echo
=$ac_try;;
9295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1
>conftest.err
9301 cat conftest.err
>&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } >/dev
/null
&& {
9304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9307 # We can compile using X headers with no special include directory.
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9313 for ac_dir
in $ac_x_header_dirs; do
9314 if test -r "$ac_dir/X11/Xlib.h"; then
9315 ac_x_includes
=$ac_dir
9321 rm -f conftest.err conftest.
$ac_ext
9322 fi # $ac_x_includes = no
9324 if test "$ac_x_libraries" = no
; then
9325 # Check for the libraries.
9326 # See if we find them without any special options.
9327 # Don't add to $LIBS permanently.
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 #include <X11/Xlib.h>
9345 rm -f conftest.
$ac_objext conftest
$ac_exeext
9346 if { (ac_try
="$ac_link"
9348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352 $as_echo "$ac_try_echo") >&5
9353 (eval "$ac_link") 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest$ac_exeext && {
9363 test "$cross_compiling" = yes ||
9364 $as_test_x conftest$ac_exeext
9367 # We can link X programs with no special library path.
9370 $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9374 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9376 # Don't even attempt the hair of trying to link an X program!
9377 for ac_extension in a so sl dylib la dll; do
9378 if test -r "$ac_dir/libX11.$ac_extension"; then
9379 ac_x_libraries=$ac_dir
9386 rm -rf conftest.dSYM
9387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9388 conftest$ac_exeext conftest.$ac_ext
9389 fi # $ac_x_libraries = no
9391 case $ac_x_includes,$ac_x_libraries in #(
9393 # Didn't find X, or a directory has "'" in its name.
9394 ac_cv_have_x="have_x=no";; #(
9396 # Record where we found X for the cache.
9397 ac_cv_have_x="have_x=yes\
9398 ac_x_includes='$ac_x_includes'\
9399 ac_x_libraries='$ac_x_libraries'"
9405 eval "$ac_cv_have_x"
9408 if test "$have_x" != yes; then
9409 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9410 $as_echo "$have_x" >&6; }
9413 # If each of the values was on the command line, it overrides each guess.
9414 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9415 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9416 # Update the cache value to reflect the command line values.
9417 ac_cv_have_x="have_x=yes\
9418 ac_x_includes='$x_includes'\
9419 ac_x_libraries='$x_libraries'"
9420 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9421 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9424 if test "$no_x" = yes; then
9430 ## Workaround for bug in autoconf <= 2.62.
9431 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9432 ## No need to do anything special for these standard directories.
9433 ## This is an experiment, take it out if it causes problems.
9434 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9436 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9440 if test "${x_libraries}" != NONE; then
9441 if test -n "${x_libraries}"; then
9442 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9443 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9445 x_default_search_path=""
9446 x_search_path=${x_libraries}
9447 if test -z "${x_search_path}"; then
9448 x_search_path=/usr/lib
9450 for x_library in `echo ${x_search_path}: | \
9451 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9453 ${x_library}/X11/%L/%T/%N%C%S:\
9454 ${x_library}/X11/%l/%T/%N%C%S:\
9455 ${x_library}/X11/%T/%N%C%S:\
9456 ${x_library}/X11/%L/%T/%N%S:\
9457 ${x_library}/X11/%l/%T/%N%S:\
9458 ${x_library}/X11/%T/%N%S"
9459 if test x"${x_default_search_path}" = x; then
9460 x_default_search_path=${x_search_path}
9462 x_default_search_path="${x_search_path}:${x_default_search_path}"
9466 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9467 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9470 if test x"${x_includes}" = x; then
9471 bitmapdir=/usr/include/X11/bitmaps
9473 # accumulate include directories that have X11 bitmap subdirectories
9475 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9476 if test -d "${bmd}/X11/bitmaps"; then
9477 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9479 if test -d "${bmd}/bitmaps"; then
9480 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9483 if test ${bmd_acc} != "dummyval"; then
9484 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9491 tmp_CPPFLAGS="$CPPFLAGS"
9492 tmp_CFLAGS="$CFLAGS"
9493 CPPFLAGS="$CPPFLAGS -x objective-c"
9494 CFLAGS="$CFLAGS -x objective-c"
9495 if test "${with_ns}" != no; then
9496 if test "${opsys}" = darwin; then
9498 ns_appdir=`pwd`/nextstep/Emacs.app
9499 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9500 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9501 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9502 elif test -f $GNUSTEP_CONFIG_FILE; then
9504 ns_appdir=`pwd`/nextstep/Emacs.app
9505 ns_appbindir=`pwd`/nextstep/Emacs.app
9506 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9507 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9508 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9509 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9510 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9511 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9514 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9516 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9517 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9518 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9519 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9520 $as_echo_n "(cached) " >&6
9522 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9523 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9525 # Is the header compilable?
9526 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9527 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 #include <AppKit/AppKit.h>
9537 rm -f conftest.$ac_objext
9538 if { (ac_try="$ac_compile"
9540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9541 *) ac_try_echo
=$ac_try;;
9543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9544 $as_echo "$ac_try_echo") >&5
9545 (eval "$ac_compile") 2>conftest.er1
9547 grep -v '^ *+' conftest.er1
>conftest.err
9549 cat conftest.err
>&5
9550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && {
9552 test -z "$ac_c_werror_flag" ||
9553 test ! -s conftest.err
9554 } && test -s conftest.
$ac_objext; then
9555 ac_header_compiler
=yes
9557 $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.
$ac_ext >&5
9560 ac_header_compiler
=no
9563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9565 $as_echo "$ac_header_compiler" >&6; }
9567 # Is the header present?
9568 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9569 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9570 cat >conftest.
$ac_ext <<_ACEOF
9573 cat confdefs.h
>>conftest.
$ac_ext
9574 cat >>conftest.
$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <AppKit/AppKit.h>
9578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9587 grep -v '^ *+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } >/dev/null && {
9592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9595 ac_header_preproc=yes
9597 $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_header_preproc=no
9603 rm -f conftest.err conftest.$ac_ext
9604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 $as_echo "$ac_header_preproc" >&6; }
9607 # So? What about this header?
9608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9610 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9611 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9613 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9614 ac_header_preproc=yes
9617 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9618 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9619 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9620 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9621 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9622 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9623 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9624 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9625 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9626 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9627 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9628 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9632 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9633 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9634 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9637 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9640 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9643 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9646 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9647 files are missing or cannot be compiled." >&5
9648 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9649 files are missing or cannot be compiled.
" >&2;}
9650 { (exit 1); exit 1; }; }
9654 NS_HAVE_NSINTEGER=yes
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 #include <Foundation/NSObjCRuntime.h>
9670 rm -f conftest.$ac_objext
9671 if { (ac_try="$ac_compile"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9677 $as_echo "$ac_try_echo") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1 >conftest.err
9682 cat conftest.err >&5
9683 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.$ac_objext; then
9688 ns_have_nsinteger=yes
9690 $as_echo "$as_me: failed program was
:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9693 ns_have_nsinteger=no
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 if test $ns_have_nsinteger = no; then
9698 NS_HAVE_NSINTEGER=no
9701 if test "${HAVE_NS}" = yes; then
9702 window_system=nextstep
9704 # set up packaging dirs
9705 exec_prefix=${ns_appbindir}
9706 libexecdir=${ns_appbindir}/libexec
9707 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9708 prefix=${ns_appresdir}
9711 CFLAGS="$tmp_CFLAGS"
9712 CPPFLAGS="$tmp_CPPFLAGS"
9714 case "${window_system}" in
9718 case "${with_x_toolkit}" in
9719 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9720 motif ) USE_X_TOOLKIT=MOTIF ;;
9722 USE_X_TOOLKIT=none ;;
9723 no ) USE_X_TOOLKIT=none ;;
9724 * ) USE_X_TOOLKIT=maybe ;;
9734 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9735 # Extract the first word of "X
", so it can be a program name with args.
9736 set dummy X; ac_word=$2
9737 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9738 $as_echo_n "checking
for $ac_word...
" >&6; }
9739 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9740 $as_echo_n "(cached
) " >&6
9742 if test -n "$HAVE_XSERVER"; then
9743 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 test -z "$as_dir" && as_dir=.
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9752 ac_cv_prog_HAVE_XSERVER="true
"
9753 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9760 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9763 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9764 if test -n "$HAVE_XSERVER"; then
9765 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9766 $as_echo "$HAVE_XSERVER" >&6; }
9768 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9769 $as_echo "no
" >&6; }
9773 if test "$HAVE_XSERVER" = true ||
9774 test -n "$DISPLAY" ||
9775 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9776 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9777 were found. You should
install the relevant development files
for X
9778 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9779 sure you have development files
for image handling
, i.e.
9780 tiff
, gif
, jpeg
, png and xpm.
9781 If you are sure you want Emacs compiled without X window support
, pass
9784 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
9785 were found. You should
install the relevant development files
for X
9786 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9787 sure you have development files
for image handling
, i.e.
9788 tiff
, gif
, jpeg
, png and xpm.
9789 If you are sure you want Emacs compiled without X window support
, pass
9791 to configure.
" >&2;}
9792 { (exit 1); exit 1; }; }
9796 ### If we're using X11, we should use the X menu package.
9799 yes ) HAVE_MENUS=yes ;;
9802 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9803 # Assume not, until told otherwise.
9806 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9807 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9808 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9809 $as_echo_n "(cached
) " >&6
9811 cat >conftest.$ac_ext <<_ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819 #define malloc_get_state innocuous_malloc_get_state
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char malloc_get_state (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9827 # include <limits.h>
9829 # include <assert.h>
9832 #undef malloc_get_state
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9840 char malloc_get_state ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9851 return malloc_get_state ();
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9863 $as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext && {
9874 test "$cross_compiling" = yes ||
9875 $as_test_x conftest$ac_exeext
9877 ac_cv_func_malloc_get_state=yes
9879 $as_echo "$as_me: failed program was
:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_func_malloc_get_state=no
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9890 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9891 if test $ac_cv_func_malloc_get_state = yes; then
9897 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9898 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9899 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9900 $as_echo_n "(cached
) " >&6
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9910 #define malloc_set_state innocuous_malloc_set_state
9912 /* System header to define __stub macros and hopefully few prototypes,
9913 which can conflict with char malloc_set_state (); below.
9914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9915 <limits.h> exists even on freestanding compilers. */
9918 # include <limits.h>
9920 # include <assert.h>
9923 #undef malloc_set_state
9925 /* Override any GCC internal prototype to avoid an error.
9926 Use char because int might match the return type of a GCC
9927 builtin and then its argument prototype would still apply. */
9931 char malloc_set_state ();
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9942 return malloc_set_state ();
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9954 $as_echo "$ac_try_echo") >&5
9955 (eval "$ac_link") 2>conftest.er1
9957 grep -v '^ *+' conftest.er1 >conftest.err
9959 cat conftest.err >&5
9960 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9961 (exit $ac_status); } && {
9962 test -z "$ac_c_werror_flag" ||
9963 test ! -s conftest.err
9964 } && test -s conftest$ac_exeext && {
9965 test "$cross_compiling" = yes ||
9966 $as_test_x conftest$ac_exeext
9968 ac_cv_func_malloc_set_state=yes
9970 $as_echo "$as_me: failed program was
:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_cv_func_malloc_set_state=no
9976 rm -rf conftest.dSYM
9977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9978 conftest$ac_exeext conftest.$ac_ext
9980 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9981 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9982 if test $ac_cv_func_malloc_set_state = yes; then
9988 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9989 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9990 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9991 $as_echo_n "(cached
) " >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 extern void (* __after_morecore_hook)();
10003 __after_morecore_hook = 0
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10015 $as_echo "$ac_try_echo") >&5
10016 (eval "$ac_link") 2>conftest.er1
10018 grep -v '^ *+' conftest.er1 >conftest.err
10020 cat conftest.err >&5
10021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10022 (exit $ac_status); } && {
10023 test -z "$ac_c_werror_flag" ||
10024 test ! -s conftest.err
10025 } && test -s conftest$ac_exeext && {
10026 test "$cross_compiling" = yes ||
10027 $as_test_x conftest$ac_exeext
10029 emacs_cv_var___after_morecore_hook=yes
10031 $as_echo "$as_me: failed program was
:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 emacs_cv_var___after_morecore_hook=no
10037 rm -rf conftest.dSYM
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10041 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10042 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10043 if test $emacs_cv_var___after_morecore_hook = no; then
10046 if test "${system_malloc}" = "yes"; then
10048 GNU_MALLOC_reason="
10049 (The GNU allocators don
't work with this system configuration.)"
10051 if test "$doug_lea_malloc" = "yes" ; then
10052 if test "$GNU_MALLOC" = yes ; then
10053 GNU_MALLOC_reason="
10054 (Using Doug Lea's new malloc from the GNU C Library.
)"
10057 cat >>confdefs.h <<\_ACEOF
10058 #define DOUG_LEA_MALLOC 1
10063 if test x"${REL_ALLOC}" = x; then
10064 REL_ALLOC=${GNU_MALLOC}
10070 for ac_header in stdlib.h unistd.h
10072 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10073 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10074 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10075 $as_echo_n "checking
for $ac_header...
" >&6; }
10076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10077 $as_echo_n "(cached
) " >&6
10079 ac_res=`eval 'as_val=${'$as_ac_Header'}
10080 $as_echo "$as_val"'`
10081 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10082 $as_echo "$ac_res" >&6; }
10084 # Is the header compilable?
10085 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10086 $as_echo_n "checking
$ac_header usability...
" >&6; }
10087 cat >conftest.$ac_ext <<_ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10093 $ac_includes_default
10094 #include <$ac_header>
10096 rm -f conftest.$ac_objext
10097 if { (ac_try="$ac_compile"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10102 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10103 $as_echo "$ac_try_echo") >&5
10104 (eval "$ac_compile") 2>conftest.er1
10106 grep -v '^ *+' conftest.er1 >conftest.err
10108 cat conftest.err >&5
10109 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10110 (exit $ac_status); } && {
10111 test -z "$ac_c_werror_flag" ||
10112 test ! -s conftest.err
10113 } && test -s conftest.$ac_objext; then
10114 ac_header_compiler=yes
10116 $as_echo "$as_me: failed program was
:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_header_compiler=no
10122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10124 $as_echo "$ac_header_compiler" >&6; }
10126 # Is the header present?
10127 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10128 $as_echo_n "checking
$ac_header presence...
" >&6; }
10129 cat >conftest.$ac_ext <<_ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 #include <$ac_header>
10137 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10143 $as_echo "$ac_try_echo") >&5
10144 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10146 grep -v '^ *+' conftest.er1 >conftest.err
10148 cat conftest.err >&5
10149 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10150 (exit $ac_status); } >/dev/null && {
10151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10154 ac_header_preproc=yes
10156 $as_echo "$as_me: failed program was
:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_header_preproc=no
10162 rm -f conftest.err conftest.$ac_ext
10163 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10164 $as_echo "$ac_header_preproc" >&6; }
10166 # So? What about this header?
10167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10169 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10170 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10171 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10173 ac_header_preproc=yes
10176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10177 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10178 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10179 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10180 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10181 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10182 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10183 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10184 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10187 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10191 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10192 $as_echo_n "checking
for $ac_header...
" >&6; }
10193 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10194 $as_echo_n "(cached
) " >&6
10196 eval "$as_ac_Header=\
$ac_header_preproc"
10198 ac_res=`eval 'as_val=${'$as_ac_Header'}
10199 $as_echo "$as_val"'`
10200 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10201 $as_echo "$ac_res" >&6; }
10204 if test `eval 'as_val=${'$as_ac_Header'}
10205 $as_echo "$as_val"'` = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10215 for ac_func in getpagesize
10217 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10218 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10219 $as_echo_n "checking
for $ac_func...
" >&6; }
10220 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10221 $as_echo_n "(cached
) " >&6
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10231 #define $ac_func innocuous_$ac_func
10233 /* System header to define __stub macros and hopefully few prototypes,
10234 which can conflict with char $ac_func (); below.
10235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236 <limits.h> exists even on freestanding compilers. */
10239 # include <limits.h>
10241 # include <assert.h>
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10253 /* The GNU C library defines this for functions which it implements
10254 to always fail with ENOSYS. Some functions are actually named
10255 something starting with __ and the normal name is an alias. */
10256 #if defined __stub_$ac_func || defined __stub___$ac_func
10263 return $ac_func ();
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (ac_try="$ac_link"
10270 case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10275 $as_echo "$ac_try_echo") >&5
10276 (eval "$ac_link") 2>conftest.er1
10278 grep -v '^ *+' conftest.er1 >conftest.err
10280 cat conftest.err >&5
10281 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10282 (exit $ac_status); } && {
10283 test -z "$ac_c_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest$ac_exeext && {
10286 test "$cross_compiling" = yes ||
10287 $as_test_x conftest$ac_exeext
10289 eval "$as_ac_var=yes"
10291 $as_echo "$as_me: failed program was
:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 eval "$as_ac_var=no
"
10297 rm -rf conftest.dSYM
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10301 ac_res=`eval 'as_val=${'$as_ac_var'}
10302 $as_echo "$as_val"'`
10303 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10304 $as_echo "$ac_res" >&6; }
10305 if test `eval 'as_val=${'$as_ac_var'}
10306 $as_echo "$as_val"'` = yes; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10314 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10315 $as_echo_n "checking
for working mmap...
" >&6; }
10316 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10317 $as_echo_n "(cached
) " >&6
10319 if test "$cross_compiling" = yes; then
10320 ac_cv_func_mmap_fixed_mapped=no
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 /* malloc might have been renamed as rpl_malloc. */
10332 /* Thanks to Mike Haertel and Jim Avera for this test.
10333 Here is a matrix of mmap possibilities:
10334 mmap private not fixed
10335 mmap private fixed at somewhere currently unmapped
10336 mmap private fixed at somewhere already mapped
10337 mmap shared not fixed
10338 mmap shared fixed at somewhere currently unmapped
10339 mmap shared fixed at somewhere already mapped
10340 For private mappings, we should verify that changes cannot be read()
10341 back from the file, nor mmap's back from the file at a different
10342 address. (There have been systems where private was not correctly
10343 implemented like the infamous i386 svr4.0, and systems where the
10344 VM page cache was not coherent with the file system buffer cache
10345 like early versions of FreeBSD and possibly contemporary NetBSD.)
10346 For shared mappings, we should conversely verify that changes get
10347 propagated back to all the places they're supposed to be.
10349 Grep wants private fixed already mapped.
10350 The main things grep needs to know about mmap are:
10351 * does it exist and is it safe to write into the mmap'd area
10352 * how to use it (BSD variants) */
10355 #include <sys/mman.h>
10357 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10361 /* This mess was copied from the GNU getpagesize.h. */
10362 #ifndef HAVE_GETPAGESIZE
10363 /* Assume that all systems that can run configure have sys/param.h. */
10364 # ifndef HAVE_SYS_PARAM_H
10365 # define HAVE_SYS_PARAM_H 1
10368 # ifdef _SC_PAGESIZE
10369 # define getpagesize() sysconf(_SC_PAGESIZE)
10370 # else /* no _SC_PAGESIZE */
10371 # ifdef HAVE_SYS_PARAM_H
10372 # include <sys/param.h>
10373 # ifdef EXEC_PAGESIZE
10374 # define getpagesize() EXEC_PAGESIZE
10375 # else /* no EXEC_PAGESIZE */
10377 # define getpagesize() NBPG * CLSIZE
10380 # endif /* no CLSIZE */
10381 # else /* no NBPG */
10383 # define getpagesize() NBPC
10384 # else /* no NBPC */
10386 # define getpagesize() PAGESIZE
10387 # endif /* PAGESIZE */
10388 # endif /* no NBPC */
10389 # endif /* no NBPG */
10390 # endif /* no EXEC_PAGESIZE */
10391 # else /* no HAVE_SYS_PARAM_H */
10392 # define getpagesize() 8192 /* punt totally */
10393 # endif /* no HAVE_SYS_PARAM_H */
10394 # endif /* no _SC_PAGESIZE */
10396 #endif /* no HAVE_GETPAGESIZE */
10401 char *data, *data2, *data3;
10405 pagesize = getpagesize ();
10407 /* First, make a file with some known garbage in it. */
10408 data = (char *) malloc (pagesize);
10411 for (i = 0; i < pagesize; ++i)
10412 *(data + i) = rand ();
10414 fd = creat ("conftest.mmap
", 0600);
10417 if (write (fd, data, pagesize) != pagesize)
10421 /* Next, try to mmap the file at a fixed address which already has
10422 something else allocated at it. If we can, also make sure that
10423 we see the same garbage. */
10424 fd = open ("conftest.mmap
", O_RDWR);
10427 data2 = (char *) malloc (2 * pagesize);
10430 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10431 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10432 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10434 for (i = 0; i < pagesize; ++i)
10435 if (*(data + i) != *(data2 + i))
10438 /* Finally, make sure that changes to the mapped area do not
10439 percolate back to the file as seen by read(). (This is a bug on
10440 some variants of i386 svr4.0.) */
10441 for (i = 0; i < pagesize; ++i)
10442 *(data2 + i) = *(data2 + i) + 1;
10443 data3 = (char *) malloc (pagesize);
10446 if (read (fd, data3, pagesize) != pagesize)
10448 for (i = 0; i < pagesize; ++i)
10449 if (*(data + i) != *(data3 + i))
10455 rm -f conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>&5
10465 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467 { (case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10472 $as_echo "$ac_try_echo") >&5
10473 (eval "$ac_try") 2>&5
10475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_func_mmap_fixed_mapped=yes
10479 $as_echo "$as_me: program exited with status
$ac_status" >&5
10480 $as_echo "$as_me: failed program was
:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 ( exit $ac_status )
10484 ac_cv_func_mmap_fixed_mapped=no
10486 rm -rf conftest.dSYM
10487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10492 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10493 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_MMAP 1
10501 rm -f conftest.mmap
10503 if test $use_mmap_for_buffers = yes; then
10507 LIBS="$libsrc_libs $LIBS"
10510 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10511 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10512 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10513 $as_echo_n "(cached
) " >&6
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldnet $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10534 return dnet_ntoa ();
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (ac_try="$ac_link"
10541 case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_link") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest$ac_exeext && {
10557 test "$cross_compiling" = yes ||
10558 $as_test_x conftest$ac_exeext
10560 ac_cv_lib_dnet_dnet_ntoa=yes
10562 $as_echo "$as_me: failed program was
:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_lib_dnet_dnet_ntoa=no
10568 rm -rf conftest.dSYM
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10571 LIBS=$ac_check_lib_save_LIBS
10573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10574 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10575 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_LIBDNET 1
10580 LIBS="-ldnet $LIBS"
10585 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10586 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10587 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10588 $as_echo_n "(cached
) " >&6
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lXbsd $LIBS"
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1 >conftest.err
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest$ac_exeext && {
10626 test "$cross_compiling" = yes ||
10627 $as_test_x conftest$ac_exeext
10629 ac_cv_lib_Xbsd_main=yes
10631 $as_echo "$as_me: failed program was
:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ac_cv_lib_Xbsd_main=no
10637 rm -rf conftest.dSYM
10638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10639 conftest$ac_exeext conftest.$ac_ext
10640 LIBS=$ac_check_lib_save_LIBS
10642 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10643 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10644 if test $ac_cv_lib_Xbsd_main = yes; then
10645 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10650 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10651 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10652 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10653 $as_echo_n "(cached
) " >&6
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lpthreads $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10674 return cma_open ();
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687 (eval "$ac_link") 2>conftest.er1
10689 grep -v '^ *+' conftest.er1 >conftest.err
10691 cat conftest.err >&5
10692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10693 (exit $ac_status); } && {
10694 test -z "$ac_c_werror_flag" ||
10695 test ! -s conftest.err
10696 } && test -s conftest$ac_exeext && {
10697 test "$cross_compiling" = yes ||
10698 $as_test_x conftest$ac_exeext
10700 ac_cv_lib_pthreads_cma_open=yes
10702 $as_echo "$as_me: failed program was
:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ac_cv_lib_pthreads_cma_open=no
10708 rm -rf conftest.dSYM
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LIBS=$ac_check_lib_save_LIBS
10713 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10714 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10715 if test $ac_cv_lib_pthreads_cma_open = yes; then
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_LIBPTHREADS 1
10720 LIBS="-lpthreads $LIBS"
10728 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10729 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10730 if test "${gdb_cv_bigtoc+set}" = set; then
10731 $as_echo_n "(cached
) " >&6
10735 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10736 *) gdb_cv_bigtoc=-bbigtoc ;;
10739 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10755 rm -f conftest.$ac_objext conftest$ac_exeext
10756 if { (ac_try="$ac_link"
10757 case "(($ac_try" in
10758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759 *) ac_try_echo=$ac_try;;
10761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10762 $as_echo "$ac_try_echo") >&5
10763 (eval "$ac_link") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext && {
10773 test "$cross_compiling" = yes ||
10774 $as_test_x conftest$ac_exeext
10778 $as_echo "$as_me: failed program was
:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10784 rm -rf conftest.dSYM
10785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10786 conftest$ac_exeext conftest.$ac_ext
10789 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10790 $as_echo "$gdb_cv_bigtoc" >&6; }
10794 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10795 # used for the tests that follow. We set them back to REAL_CFLAGS and
10796 # REAL_CPPFLAGS later on.
10798 REAL_CPPFLAGS="$CPPFLAGS"
10800 if test "${HAVE_X11}" = "yes"; then
10801 DEFS="$C_SWITCH_X_SITE $DEFS"
10802 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10804 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10805 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10807 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10808 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10809 # but it's more convenient here to set LD_RUN_PATH
10810 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10811 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10812 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10816 if test "${opsys}" = "gnu-linux
"; then
10817 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10818 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10829 XOpenDisplay ("foo
");
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10841 $as_echo "$ac_try_echo") >&5
10842 (eval "$ac_link") 2>conftest.er1
10844 grep -v '^ *+' conftest.er1 >conftest.err
10846 cat conftest.err >&5
10847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10848 (exit $ac_status); } && {
10849 test -z "$ac_c_werror_flag" ||
10850 test ! -s conftest.err
10851 } && test -s conftest$ac_exeext && {
10852 test "$cross_compiling" = yes ||
10853 $as_test_x conftest$ac_exeext
10855 xlinux_first_failure=no
10857 $as_echo "$as_me: failed program was
:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10860 xlinux_first_failure=yes
10863 rm -rf conftest.dSYM
10864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10865 conftest$ac_exeext conftest.$ac_ext
10866 if test "${xlinux_first_failure}" = "yes"; then
10867 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10868 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10869 OLD_CPPFLAGS="$CPPFLAGS"
10871 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10872 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10873 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10874 LIBS="$LIBS -b i486-linuxaout
"
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10885 XOpenDisplay ("foo
");
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_link") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest$ac_exeext && {
10908 test "$cross_compiling" = yes ||
10909 $as_test_x conftest$ac_exeext
10911 xlinux_second_failure=no
10913 $as_echo "$as_me: failed program was
:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10916 xlinux_second_failure=yes
10919 rm -rf conftest.dSYM
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10922 if test "${xlinux_second_failure}" = "yes"; then
10923 # If we get the same failure with -b, there is no use adding -b.
10924 # So take it out. This plays safe.
10925 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10926 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10927 CPPFLAGS="$OLD_CPPFLAGS"
10929 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10930 $as_echo "no
" >&6; }
10932 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10933 $as_echo "yes" >&6; }
10936 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10937 $as_echo "no
" >&6; }
10941 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10942 # header files included from there.
10943 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10944 $as_echo_n "checking
for Xkb...
" >&6; }
10945 cat >conftest.$ac_ext <<_ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 #include <X11/Xlib.h>
10952 #include <X11/XKBlib.h>
10956 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10968 $as_echo "$ac_try_echo") >&5
10969 (eval "$ac_link") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext && {
10979 test "$cross_compiling" = yes ||
10980 $as_test_x conftest$ac_exeext
10984 $as_echo "$as_me: failed program was
:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10990 rm -rf conftest.dSYM
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10994 $as_echo "$emacs_xkb" >&6; }
10995 if test $emacs_xkb = yes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_XKBGETKEYBOARD 1
11007 for ac_func in XrmSetDatabase XScreenResourceString \
11008 XScreenNumberOfScreen XSetWMProtocols
11010 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11011 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11012 $as_echo_n "checking
for $ac_func...
" >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached
) " >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11024 #define $ac_func innocuous_$ac_func
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char $ac_func (); below.
11028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029 <limits.h> exists even on freestanding compilers. */
11032 # include <limits.h>
11034 # include <assert.h>
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11056 return $ac_func ();
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11068 $as_echo "$ac_try_echo") >&5
11069 (eval "$ac_link") 2>conftest.er1
11071 grep -v '^ *+' conftest.er1 >conftest.err
11073 cat conftest.err >&5
11074 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest$ac_exeext && {
11079 test "$cross_compiling" = yes ||
11080 $as_test_x conftest$ac_exeext
11082 eval "$as_ac_var=yes"
11084 $as_echo "$as_me: failed program was
:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 eval "$as_ac_var=no
"
11090 rm -rf conftest.dSYM
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11094 ac_res=`eval 'as_val=${'$as_ac_var'}
11095 $as_echo "$as_val"'`
11096 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11097 $as_echo "$ac_res" >&6; }
11098 if test `eval 'as_val=${'$as_ac_var'}
11099 $as_echo "$as_val"'` = yes; then
11100 cat >>confdefs.h <<_ACEOF
11101 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11109 if test "${window_system}" = "x11
"; then
11110 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11111 $as_echo_n "checking X11 version
6...
" >&6; }
11112 if test "${emacs_cv_x11_version_6+set}" = set; then
11113 $as_echo_n "(cached
) " >&6
11115 cat >conftest.$ac_ext <<_ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <X11/Xlib.h>
11125 #if XlibSpecificationRelease < 6
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (ac_try="$ac_link"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11140 $as_echo "$ac_try_echo") >&5
11141 (eval "$ac_link") 2>conftest.er1
11143 grep -v '^ *+' conftest.er1 >conftest.err
11145 cat conftest.err >&5
11146 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11147 (exit $ac_status); } && {
11148 test -z "$ac_c_werror_flag" ||
11149 test ! -s conftest.err
11150 } && test -s conftest$ac_exeext && {
11151 test "$cross_compiling" = yes ||
11152 $as_test_x conftest$ac_exeext
11154 emacs_cv_x11_version_6=yes
11156 $as_echo "$as_me: failed program was
:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 emacs_cv_x11_version_6=no
11162 rm -rf conftest.dSYM
11163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11164 conftest$ac_exeext conftest.$ac_ext
11167 if test $emacs_cv_x11_version_6 = yes; then
11168 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11169 $as_echo "6 or newer
" >&6; }
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_X11R6 1
11176 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11177 $as_echo "before
6" >&6; }
11182 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11184 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11185 if test "${with_rsvg}" != "no
"; then
11186 RSVG_REQUIRED=2.11.0
11187 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11192 # Extract the first word of "pkg-config
", so it can be a program name with args.
11193 set dummy pkg-config; ac_word=$2
11194 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11195 $as_echo_n "checking
for $ac_word...
" >&6; }
11196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11197 $as_echo_n "(cached
) " >&6
11199 case $PKG_CONFIG in
11201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11224 if test -n "$PKG_CONFIG"; then
11225 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11226 $as_echo "$PKG_CONFIG" >&6; }
11228 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11229 $as_echo "no
" >&6; }
11234 if test "$PKG_CONFIG" = "no
" ; then
11237 PKG_CONFIG_MIN_VERSION=0.9.0
11238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11239 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11240 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11242 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11243 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11244 $as_echo "yes" >&6; }
11247 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11248 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11249 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11250 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11251 $as_echo "$RSVG_CFLAGS" >&6; }
11253 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11254 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11255 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11256 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11257 $as_echo "$RSVG_LIBS" >&6; }
11259 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11260 $as_echo "no
" >&6; }
11263 ## If we have a custom action on failure, don't print errors, but
11264 ## do set a variable so people can do so.
11265 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11272 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11273 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11277 if test $succeeded = yes; then
11286 if test ".
${RSVG_CFLAGS}" != ".
"; then
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_RSVG 1
11293 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11294 LIBS="$RSVG_LIBS $LIBS"
11301 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11304 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11309 # Extract the first word of "pkg-config
", so it can be a program name with args.
11310 set dummy pkg-config; ac_word=$2
11311 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11312 $as_echo_n "checking
for $ac_word...
" >&6; }
11313 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11314 $as_echo_n "(cached
) " >&6
11316 case $PKG_CONFIG in
11318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11329 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11340 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11341 if test -n "$PKG_CONFIG"; then
11342 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11343 $as_echo "$PKG_CONFIG" >&6; }
11345 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11346 $as_echo "no
" >&6; }
11351 if test "$PKG_CONFIG" = "no
" ; then
11354 PKG_CONFIG_MIN_VERSION=0.9.0
11355 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11356 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11357 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11359 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11360 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11361 $as_echo "yes" >&6; }
11364 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11365 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11366 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11367 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11368 $as_echo "$GTK_CFLAGS" >&6; }
11370 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11371 $as_echo_n "checking GTK_LIBS...
" >&6; }
11372 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11373 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11374 $as_echo "$GTK_LIBS" >&6; }
11376 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11377 $as_echo "no
" >&6; }
11380 ## If we have a custom action on failure, don't print errors, but
11381 ## do set a variable so people can do so.
11382 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11389 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11390 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11394 if test $succeeded = yes; then
11400 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11401 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11402 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11403 { (exit 1); exit 1; }; }
11408 if test x"$pkg_check_gtk" = xyes; then
11412 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11413 CFLAGS="$CFLAGS $GTK_CFLAGS"
11414 LIBS="$GTK_LIBS $LIBS"
11417 for ac_func in gtk_main
11419 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11420 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11421 $as_echo_n "checking
for $ac_func...
" >&6; }
11422 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11423 $as_echo_n "(cached
) " >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11433 #define $ac_func innocuous_$ac_func
11435 /* System header to define __stub macros and hopefully few prototypes,
11436 which can conflict with char $ac_func (); below.
11437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11438 <limits.h> exists even on freestanding compilers. */
11441 # include <limits.h>
11443 # include <assert.h>
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11455 /* The GNU C library defines this for functions which it implements
11456 to always fail with ENOSYS. Some functions are actually named
11457 something starting with __ and the normal name is an alias. */
11458 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 return $ac_func ();
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (ac_try="$ac_link"
11472 case "(($ac_try" in
11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11474 *) ac_try_echo=$ac_try;;
11476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11477 $as_echo "$ac_try_echo") >&5
11478 (eval "$ac_link") 2>conftest.er1
11480 grep -v '^ *+' conftest.er1 >conftest.err
11482 cat conftest.err >&5
11483 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11484 (exit $ac_status); } && {
11485 test -z "$ac_c_werror_flag" ||
11486 test ! -s conftest.err
11487 } && test -s conftest$ac_exeext && {
11488 test "$cross_compiling" = yes ||
11489 $as_test_x conftest$ac_exeext
11491 eval "$as_ac_var=yes"
11493 $as_echo "$as_me: failed program was
:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 eval "$as_ac_var=no
"
11499 rm -rf conftest.dSYM
11500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11501 conftest$ac_exeext conftest.$ac_ext
11503 ac_res=`eval 'as_val=${'$as_ac_var'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11507 if test `eval 'as_val=${'$as_ac_var'}
11508 $as_echo "$as_val"'` = yes; then
11509 cat >>confdefs.h <<_ACEOF
11510 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11516 if test "${GTK_COMPILES}" != "yes"; then
11517 if test "$USE_X_TOOLKIT" != "maybe
"; then
11518 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11519 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11520 { (exit 1); exit 1; }; };
11525 cat >>confdefs.h <<\_ACEOF
11530 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11533 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11534 closing open displays. This is no problem
if you just use
11535 one display
, but
if you use
more than one and close one of them
11536 Emacs may crash.
" >&5
11537 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11538 closing open displays. This is no problem
if you just use
11539 one display
, but
if you use
more than one and close one of them
11540 Emacs may crash.
" >&2;}
11548 if test "${HAVE_GTK}" = "yes"; then
11550 if test "$with_toolkit_scroll_bars" != no; then
11551 with_toolkit_scroll_bars=yes
11554 HAVE_GTK_MULTIDISPLAY=no
11556 for ac_func in gdk_display_open
11558 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11559 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11560 $as_echo_n "checking
for $ac_func...
" >&6; }
11561 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11562 $as_echo_n "(cached
) " >&6
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11572 #define $ac_func innocuous_$ac_func
11574 /* System header to define __stub macros and hopefully few prototypes,
11575 which can conflict with char $ac_func (); below.
11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11577 <limits.h> exists even on freestanding compilers. */
11580 # include <limits.h>
11582 # include <assert.h>
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11594 /* The GNU C library defines this for functions which it implements
11595 to always fail with ENOSYS. Some functions are actually named
11596 something starting with __ and the normal name is an alias. */
11597 #if defined __stub_$ac_func || defined __stub___$ac_func
11604 return $ac_func ();
11609 rm -f conftest.$ac_objext conftest$ac_exeext
11610 if { (ac_try="$ac_link"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11616 $as_echo "$ac_try_echo") >&5
11617 (eval "$ac_link") 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest$ac_exeext && {
11627 test "$cross_compiling" = yes ||
11628 $as_test_x conftest$ac_exeext
11630 eval "$as_ac_var=yes"
11632 $as_echo "$as_me: failed program was
:" >&5
11633 sed 's/^/| /' conftest.$ac_ext >&5
11635 eval "$as_ac_var=no
"
11638 rm -rf conftest.dSYM
11639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11640 conftest$ac_exeext conftest.$ac_ext
11642 ac_res=`eval 'as_val=${'$as_ac_var'}
11643 $as_echo "$as_val"'`
11644 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11645 $as_echo "$ac_res" >&6; }
11646 if test `eval 'as_val=${'$as_ac_var'}
11647 $as_echo "$as_val"'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11651 HAVE_GTK_MULTIDISPLAY=yes
11655 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_GTK_MULTIDISPLAY 1
11663 HAVE_GTK_FILE_SELECTION=no
11664 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11665 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11666 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11667 $as_echo_n "(cached
) " >&6
11669 cat >conftest.$ac_ext <<_ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11676 #include <gtk/gtk.h>
11681 #ifndef GTK_TYPE_FILE_SELECTION
11682 (void) GTK_TYPE_FILE_SELECTION;
11689 rm -f conftest.$ac_objext
11690 if { (ac_try="$ac_compile"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11709 $as_echo "$as_me: failed program was
:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11718 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11719 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11720 HAVE_GTK_FILE_SELECTION=yes
11722 HAVE_GTK_FILE_SELECTION=no
11725 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11727 for ac_func in gtk_file_selection_new
11729 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11730 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11731 $as_echo_n "checking
for $ac_func...
" >&6; }
11732 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11733 $as_echo_n "(cached
) " >&6
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11743 #define $ac_func innocuous_$ac_func
11745 /* System header to define __stub macros and hopefully few prototypes,
11746 which can conflict with char $ac_func (); below.
11747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748 <limits.h> exists even on freestanding compilers. */
11751 # include <limits.h>
11753 # include <assert.h>
11758 /* Override any GCC internal prototype to avoid an error.
11759 Use char because int might match the return type of a GCC
11760 builtin and then its argument prototype would still apply. */
11765 /* The GNU C library defines this for functions which it implements
11766 to always fail with ENOSYS. Some functions are actually named
11767 something starting with __ and the normal name is an alias. */
11768 #if defined __stub_$ac_func || defined __stub___$ac_func
11775 return $ac_func ();
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11787 $as_echo "$ac_try_echo") >&5
11788 (eval "$ac_link") 2>conftest.er1
11790 grep -v '^ *+' conftest.er1 >conftest.err
11792 cat conftest.err >&5
11793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11794 (exit $ac_status); } && {
11795 test -z "$ac_c_werror_flag" ||
11796 test ! -s conftest.err
11797 } && test -s conftest$ac_exeext && {
11798 test "$cross_compiling" = yes ||
11799 $as_test_x conftest$ac_exeext
11801 eval "$as_ac_var=yes"
11803 $as_echo "$as_me: failed program was
:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11806 eval "$as_ac_var=no
"
11809 rm -rf conftest.dSYM
11810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11811 conftest$ac_exeext conftest.$ac_ext
11813 ac_res=`eval 'as_val=${'$as_ac_var'}
11814 $as_echo "$as_val"'`
11815 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11816 $as_echo "$ac_res" >&6; }
11817 if test `eval 'as_val=${'$as_ac_var'}
11818 $as_echo "$as_val"'` = yes; then
11819 cat >>confdefs.h <<_ACEOF
11820 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11822 HAVE_GTK_FILE_SELECTION=yes
11824 HAVE_GTK_FILE_SELECTION=no
11830 HAVE_GTK_FILE_CHOOSER=no
11831 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11832 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11833 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11834 $as_echo_n "(cached
) " >&6
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 $ac_includes_default
11843 #include <gtk/gtk.h>
11848 #ifndef GTK_TYPE_FILE_CHOOSER
11849 (void) GTK_TYPE_FILE_CHOOSER;
11856 rm -f conftest.$ac_objext
11857 if { (ac_try="$ac_compile"
11858 case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11863 $as_echo "$ac_try_echo") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11874 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11876 $as_echo "$as_me: failed program was
:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11879 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11884 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11885 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11886 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11887 HAVE_GTK_FILE_CHOOSER=yes
11889 HAVE_GTK_FILE_CHOOSER=no
11892 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11894 for ac_func in gtk_file_chooser_dialog_new
11896 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11897 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11898 $as_echo_n "checking
for $ac_func...
" >&6; }
11899 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11900 $as_echo_n "(cached
) " >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11910 #define $ac_func innocuous_$ac_func
11912 /* System header to define __stub macros and hopefully few prototypes,
11913 which can conflict with char $ac_func (); below.
11914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11915 <limits.h> exists even on freestanding compilers. */
11918 # include <limits.h>
11920 # include <assert.h>
11925 /* Override any GCC internal prototype to avoid an error.
11926 Use char because int might match the return type of a GCC
11927 builtin and then its argument prototype would still apply. */
11932 /* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935 #if defined __stub_$ac_func || defined __stub___$ac_func
11942 return $ac_func ();
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11954 $as_echo "$ac_try_echo") >&5
11955 (eval "$ac_link") 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest$ac_exeext && {
11965 test "$cross_compiling" = yes ||
11966 $as_test_x conftest$ac_exeext
11968 eval "$as_ac_var=yes"
11970 $as_echo "$as_me: failed program was
:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 eval "$as_ac_var=no
"
11976 rm -rf conftest.dSYM
11977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11978 conftest$ac_exeext conftest.$ac_ext
11980 ac_res=`eval 'as_val=${'$as_ac_var'}
11981 $as_echo "$as_val"'`
11982 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11983 $as_echo "$ac_res" >&6; }
11984 if test `eval 'as_val=${'$as_ac_var'}
11985 $as_echo "$as_val"'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11989 HAVE_GTK_FILE_CHOOSER=yes
11991 HAVE_GTK_FILE_CHOOSER=no
11997 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11998 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_GTK_FILE_BOTH 1
12006 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12007 HAVE_GTK_AND_PTHREAD=no
12009 for ac_header in pthread.h
12011 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12012 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12013 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12014 $as_echo_n "checking
for $ac_header...
" >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12016 $as_echo_n "(cached
) " >&6
12018 ac_res=`eval 'as_val=${'$as_ac_Header'}
12019 $as_echo "$as_val"'`
12020 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12021 $as_echo "$ac_res" >&6; }
12023 # Is the header compilable?
12024 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12025 $as_echo_n "checking
$ac_header usability...
" >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 $ac_includes_default
12033 #include <$ac_header>
12035 rm -f conftest.$ac_objext
12036 if { (ac_try="$ac_compile"
12037 case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12041 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12042 $as_echo "$ac_try_echo") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12045 grep -v '^ *+' conftest.er1 >conftest.err
12047 cat conftest.err >&5
12048 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
12053 ac_header_compiler=yes
12055 $as_echo "$as_me: failed program was
:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_header_compiler=no
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12063 $as_echo "$ac_header_compiler" >&6; }
12065 # Is the header present?
12066 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12067 $as_echo_n "checking
$ac_header presence...
" >&6; }
12068 cat >conftest.$ac_ext <<_ACEOF
12071 cat confdefs.h >>conftest.$ac_ext
12072 cat >>conftest.$ac_ext <<_ACEOF
12073 /* end confdefs.h. */
12074 #include <$ac_header>
12076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12077 case "(($ac_try" in
12078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12082 $as_echo "$ac_try_echo") >&5
12083 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12085 grep -v '^ *+' conftest.er1 >conftest.err
12087 cat conftest.err >&5
12088 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12089 (exit $ac_status); } >/dev/null && {
12090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12093 ac_header_preproc=yes
12095 $as_echo "$as_me: failed program was
:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12103 $as_echo "$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12109 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12112 ac_header_preproc=yes
12115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12116 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12118 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12120 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12121 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12122 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12123 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12126 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12130 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12131 $as_echo_n "checking
for $ac_header...
" >&6; }
12132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12133 $as_echo_n "(cached
) " >&6
12135 eval "$as_ac_Header=\
$ac_header_preproc"
12137 ac_res=`eval 'as_val=${'$as_ac_Header'}
12138 $as_echo "$as_val"'`
12139 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12140 $as_echo "$ac_res" >&6; }
12143 if test `eval 'as_val=${'$as_ac_Header'}
12144 $as_echo "$as_val"'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12153 if test "$ac_cv_header_pthread_h"; then
12154 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12155 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12156 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12157 $as_echo_n "(cached
) " >&6
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lpthread $LIBS"
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12168 /* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12174 char pthread_self ();
12178 return pthread_self ();
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (ac_try="$ac_link"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12190 $as_echo "$ac_try_echo") >&5
12191 (eval "$ac_link") 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest$ac_exeext && {
12201 test "$cross_compiling" = yes ||
12202 $as_test_x conftest$ac_exeext
12204 ac_cv_lib_pthread_pthread_self=yes
12206 $as_echo "$as_me: failed program was
:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_lib_pthread_pthread_self=no
12212 rm -rf conftest.dSYM
12213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12214 conftest$ac_exeext conftest.$ac_ext
12215 LIBS=$ac_check_lib_save_LIBS
12217 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12218 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12219 if test $ac_cv_lib_pthread_pthread_self = yes; then
12220 HAVE_GTK_AND_PTHREAD=yes
12224 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12225 case "${canonical}" in
12227 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_GTK_AND_PTHREAD 1
12239 if test "${with_dbus}" = "yes"; then
12243 # Extract the first word of "pkg-config
", so it can be a program name with args.
12244 set dummy pkg-config; ac_word=$2
12245 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12246 $as_echo_n "checking
for $ac_word...
" >&6; }
12247 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12248 $as_echo_n "(cached
) " >&6
12250 case $PKG_CONFIG in
12252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12275 if test -n "$PKG_CONFIG"; then
12276 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12277 $as_echo "$PKG_CONFIG" >&6; }
12279 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12280 $as_echo "no
" >&6; }
12285 if test "$PKG_CONFIG" = "no
" ; then
12288 PKG_CONFIG_MIN_VERSION=0.9.0
12289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12290 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12291 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12293 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12294 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12295 $as_echo "yes" >&6; }
12298 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12299 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12300 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12301 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12302 $as_echo "$DBUS_CFLAGS" >&6; }
12304 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12305 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12306 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12307 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12308 $as_echo "$DBUS_LIBS" >&6; }
12310 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12311 $as_echo "no
" >&6; }
12314 ## If we have a custom action on failure, don't print errors, but
12315 ## do set a variable so people can do so.
12316 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12323 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12324 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12328 if test $succeeded = yes; then
12334 if test "$HAVE_DBUS" = yes; then
12335 LIBS="$LIBS $DBUS_LIBS"
12337 cat >>confdefs.h <<\_ACEOF
12338 #define HAVE_DBUS 1
12342 for ac_func in dbus_watch_get_unix_fd
12344 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12345 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12346 $as_echo_n "checking
for $ac_func...
" >&6; }
12347 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12348 $as_echo_n "(cached
) " >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12358 #define $ac_func innocuous_$ac_func
12360 /* System header to define __stub macros and hopefully few prototypes,
12361 which can conflict with char $ac_func (); below.
12362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12363 <limits.h> exists even on freestanding compilers. */
12366 # include <limits.h>
12368 # include <assert.h>
12373 /* Override any GCC internal prototype to avoid an error.
12374 Use char because int might match the return type of a GCC
12375 builtin and then its argument prototype would still apply. */
12380 /* The GNU C library defines this for functions which it implements
12381 to always fail with ENOSYS. Some functions are actually named
12382 something starting with __ and the normal name is an alias. */
12383 #if defined __stub_$ac_func || defined __stub___$ac_func
12390 return $ac_func ();
12395 rm -f conftest.$ac_objext conftest$ac_exeext
12396 if { (ac_try="$ac_link"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12402 $as_echo "$ac_try_echo") >&5
12403 (eval "$ac_link") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest$ac_exeext && {
12413 test "$cross_compiling" = yes ||
12414 $as_test_x conftest$ac_exeext
12416 eval "$as_ac_var=yes"
12418 $as_echo "$as_me: failed program was
:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 eval "$as_ac_var=no
"
12424 rm -rf conftest.dSYM
12425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12426 conftest$ac_exeext conftest.$ac_ext
12428 ac_res=`eval 'as_val=${'$as_ac_var'}
12429 $as_echo "$as_val"'`
12430 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12431 $as_echo "$ac_res" >&6; }
12432 if test `eval 'as_val=${'$as_ac_var'}
12433 $as_echo "$as_val"'` = yes; then
12434 cat >>confdefs.h <<_ACEOF
12435 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12445 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12446 if test "$with_xaw3d" != no; then
12447 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12448 $as_echo_n "checking
for xaw3d...
" >&6; }
12449 if test "${emacs_cv_xaw3d+set}" = set; then
12450 $as_echo_n "(cached
) " >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12459 #include <X11/Intrinsic.h>
12460 #include <X11/Xaw3d/Simple.h>
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (ac_try="$ac_link"
12471 case "(($ac_try" in
12472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12473 *) ac_try_echo=$ac_try;;
12475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12476 $as_echo "$ac_try_echo") >&5
12477 (eval "$ac_link") 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest$ac_exeext && {
12487 test "$cross_compiling" = yes ||
12488 $as_test_x conftest$ac_exeext
12492 $as_echo "$as_me: failed program was
:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12498 rm -rf conftest.dSYM
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12506 if test $emacs_cv_xaw3d = yes; then
12507 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12508 $as_echo "yes; using Lucid toolkit
" >&6; }
12509 USE_X_TOOLKIT=LUCID
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_XAW3D 1
12517 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12518 $as_echo "no
" >&6; }
12519 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12520 $as_echo_n "checking
for libXaw...
" >&6; }
12521 if test "${emacs_cv_xaw+set}" = set; then
12522 $as_echo_n "(cached
) " >&6
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 #include <X11/Intrinsic.h>
12532 #include <X11/Xaw/Simple.h>
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12564 $as_echo "$as_me: failed program was
:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12575 if test $emacs_cv_xaw = yes; then
12576 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12577 $as_echo "yes; using Lucid toolkit
" >&6; }
12578 USE_X_TOOLKIT=LUCID
12579 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12580 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12581 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12582 { (exit 1); exit 1; }; }
12584 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12585 $as_echo "no
; do not use toolkit by default
" >&6; }
12591 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12593 if test "${USE_X_TOOLKIT}" != "none
"; then
12594 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12595 $as_echo_n "checking X11 toolkit version...
" >&6; }
12596 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12597 $as_echo_n "(cached
) " >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 #include <X11/Intrinsic.h>
12609 #if XtSpecificationRelease < 6
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625 (eval "$ac_link") 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12631 (exit $ac_status); } && {
12632 test -z "$ac_c_werror_flag" ||
12633 test ! -s conftest.err
12634 } && test -s conftest$ac_exeext && {
12635 test "$cross_compiling" = yes ||
12636 $as_test_x conftest$ac_exeext
12638 emacs_cv_x11_toolkit_version_6=yes
12640 $as_echo "$as_me: failed program was
:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 emacs_cv_x11_toolkit_version_6=no
12646 rm -rf conftest.dSYM
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12651 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12652 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12653 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12654 $as_echo "6 or newer
" >&6; }
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_X11XTR6 1
12661 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12662 $as_echo "before
6" >&6; }
12666 if test x$HAVE_X11XTR6 = xyes; then
12667 LIBS="-lXt -lSM -lICE $LIBS"
12672 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12673 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12674 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12675 $as_echo_n "(cached
) " >&6
12677 ac_check_lib_save_LIBS=$LIBS
12679 cat >conftest.$ac_ext <<_ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h. */
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12692 char XmuConvertStandardSelection ();
12696 return XmuConvertStandardSelection ();
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (ac_try="$ac_link"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12708 $as_echo "$ac_try_echo") >&5
12709 (eval "$ac_link") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest$ac_exeext && {
12719 test "$cross_compiling" = yes ||
12720 $as_test_x conftest$ac_exeext
12722 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12724 $as_echo "$as_me: failed program was
:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12730 rm -rf conftest.dSYM
12731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12732 conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12736 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12737 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_LIBXMU 1
12746 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12749 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12750 if test "${HAVE_X11}" = "yes"; then
12751 if test "${USE_X_TOOLKIT}" != "none
"; then
12753 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12754 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12755 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12756 $as_echo_n "(cached
) " >&6
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lXext $LIBS"
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12767 /* Override any GCC internal prototype to avoid an error.
12768 Use char because int might match the return type of a GCC
12769 builtin and then its argument prototype would still apply. */
12773 char XShapeQueryExtension ();
12777 return XShapeQueryExtension ();
12782 rm -f conftest.$ac_objext conftest$ac_exeext
12783 if { (ac_try="$ac_link"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_link") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest$ac_exeext && {
12800 test "$cross_compiling" = yes ||
12801 $as_test_x conftest$ac_exeext
12803 ac_cv_lib_Xext_XShapeQueryExtension=yes
12805 $as_echo "$as_me: failed program was
:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 ac_cv_lib_Xext_XShapeQueryExtension=no
12811 rm -rf conftest.dSYM
12812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12817 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12818 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_LIBXEXT 1
12823 LIBS="-lXext $LIBS"
12830 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12831 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12832 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12833 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12834 $as_echo_n "(cached
) " >&6
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12846 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12849 Motif version prior to 2.1.
12855 rm -f conftest.$ac_objext
12856 if { (ac_try="$ac_compile"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12862 $as_echo "$ac_try_echo") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12869 (exit $ac_status); } && {
12870 test -z "$ac_c_werror_flag" ||
12871 test ! -s conftest.err
12872 } && test -s conftest.$ac_objext; then
12873 emacs_cv_motif_version_2_1=yes
12875 $as_echo "$as_me: failed program was
:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12878 emacs_cv_motif_version_2_1=no
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12884 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12885 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12886 if test $emacs_cv_motif_version_2_1 = yes; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define HAVE_MOTIF_2_1 1
12893 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12894 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12895 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12896 $as_echo_n "(cached
) " >&6
12898 ac_check_lib_save_LIBS=$LIBS
12900 cat >conftest.$ac_ext <<_ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12913 char XpCreateContext ();
12917 return XpCreateContext ();
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (ac_try="$ac_link"
12924 case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12929 $as_echo "$ac_try_echo") >&5
12930 (eval "$ac_link") 2>conftest.er1
12932 grep -v '^ *+' conftest.er1 >conftest.err
12934 cat conftest.err >&5
12935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest$ac_exeext && {
12940 test "$cross_compiling" = yes ||
12941 $as_test_x conftest$ac_exeext
12943 ac_cv_lib_Xp_XpCreateContext=yes
12945 $as_echo "$as_me: failed program was
:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12948 ac_cv_lib_Xp_XpCreateContext=no
12951 rm -rf conftest.dSYM
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12957 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12958 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12962 if test ${HAVE_LIBXP} = yes; then
12964 cat >>confdefs.h <<\_ACEOF
12965 #define HAVE_LIBXP 1
12970 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12971 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12972 if test "${emacs_cv_lesstif+set}" = set; then
12973 $as_echo_n "(cached
) " >&6
12975 # We put this in CFLAGS temporarily to precede other -I options
12976 # that might be in CFLAGS temporarily.
12977 # We put this in CPPFLAGS where it precedes the other -I options.
12978 OLD_CPPFLAGS=$CPPFLAGS
12980 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12981 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12982 cat >conftest.$ac_ext <<_ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12997 rm -f conftest.$ac_objext
12998 if { (ac_try="$ac_compile"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13003 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_compile") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1 >conftest.err
13009 cat conftest.err >&5
13010 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.$ac_objext; then
13015 emacs_cv_lesstif=yes
13017 $as_echo "$as_me: failed program was
:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 emacs_cv_lesstif=no
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13026 $as_echo "$emacs_cv_lesstif" >&6; }
13027 if test $emacs_cv_lesstif = yes; then
13028 # Make sure this -I option remains in CPPFLAGS after it is set
13029 # back to REAL_CPPFLAGS.
13030 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13031 # have those other -I options anyway. Ultimately, having this
13032 # directory ultimately in CPPFLAGS will be enough.
13033 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13034 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13037 CPPFLAGS=$OLD_CPPFLAGS
13044 USE_TOOLKIT_SCROLL_BARS=no
13045 if test "${with_toolkit_scroll_bars}" != "no
"; then
13046 if test "${USE_X_TOOLKIT}" != "none
"; then
13047 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13048 cat >>confdefs.h <<\_ACEOF
13049 #define USE_TOOLKIT_SCROLL_BARS 1
13053 USE_TOOLKIT_SCROLL_BARS=yes
13054 elif test "${HAVE_XAW3D}" = "yes"; then
13055 cat >>confdefs.h <<\_ACEOF
13056 #define USE_TOOLKIT_SCROLL_BARS 1
13059 USE_TOOLKIT_SCROLL_BARS=yes
13061 elif test "${HAVE_GTK}" = "yes"; then
13062 cat >>confdefs.h <<\_ACEOF
13063 #define USE_TOOLKIT_SCROLL_BARS 1
13066 USE_TOOLKIT_SCROLL_BARS=yes
13067 elif test "${HAVE_NS}" = "yes"; then
13068 cat >>confdefs.h <<\_ACEOF
13069 #define USE_TOOLKIT_SCROLL_BARS 1
13072 USE_TOOLKIT_SCROLL_BARS=yes
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13083 #include <X11/Xlib.h>
13084 #include <X11/Xresource.h>
13093 rm -f conftest.$ac_objext
13094 if { (ac_try="$ac_compile"
13095 case "(($ac_try" in
13096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097 *) ac_try_echo=$ac_try;;
13099 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13100 $as_echo "$ac_try_echo") >&5
13101 (eval "$ac_compile") 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13107 (exit $ac_status); } && {
13108 test -z "$ac_c_werror_flag" ||
13109 test ! -s conftest.err
13110 } && test -s conftest.$ac_objext; then
13113 cat >>confdefs.h <<\_ACEOF
13118 $as_echo "$as_me: failed program was
:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127 if test "${with_xim}" != "no
"; then
13129 cat >>confdefs.h <<\_ACEOF
13136 if test "${HAVE_XIM}" != "no
"; then
13137 late_CFLAGS=$CFLAGS
13138 if test "$GCC" = yes; then
13139 CFLAGS="$CFLAGS --pedantic-errors"
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13148 #include <X11/Xlib.h>
13149 #include <X11/Xresource.h>
13158 XPointer *client_data;
13160 /* If we're not using GCC, it's probably not XFree86, and this is
13161 probably right, but we can't use something like --pedantic-errors. */
13162 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13163 char*, XIMProc, XPointer*);
13165 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_compile") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest.$ac_objext; then
13189 emacs_cv_arg6_star=yes
13191 $as_echo "$as_me: failed program was
:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 if test "$emacs_cv_arg6_star" = yes; then
13200 cat >>confdefs.h <<\_ACEOF
13201 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13205 cat >>confdefs.h <<\_ACEOF
13206 #define XRegisterIMInstantiateCallback_arg6 XPointer
13210 CFLAGS=$late_CFLAGS
13213 ### Start of font-backend (under any platform) section.
13214 # (nothing here yet -- this is a placeholder)
13215 ### End of font-backend (under any platform) section.
13217 ### Start of font-backend (under X11) section.
13218 if test "${HAVE_X11}" = "yes"; then
13222 # Extract the first word of "pkg-config
", so it can be a program name with args.
13223 set dummy pkg-config; ac_word=$2
13224 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 $as_echo_n "(cached
) " >&6
13229 case $PKG_CONFIG in
13231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13256 $as_echo "$PKG_CONFIG" >&6; }
13258 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13259 $as_echo "no
" >&6; }
13264 if test "$PKG_CONFIG" = "no
" ; then
13267 PKG_CONFIG_MIN_VERSION=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13270 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13272 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13273 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13274 $as_echo "yes" >&6; }
13277 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13278 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13279 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13280 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13281 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13283 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13284 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13285 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13286 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13287 $as_echo "$FONTCONFIG_LIBS" >&6; }
13289 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13291 FONTCONFIG_CFLAGS=""
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13302 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13303 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13307 if test $succeeded = yes; then
13314 ## Use -lXft if available, unless `--with-xft=no'.
13316 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13319 if test "x
${with_xft}" != "xno
"; then
13324 # Extract the first word of "pkg-config
", so it can be a program name with args.
13325 set dummy pkg-config; ac_word=$2
13326 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13327 $as_echo_n "checking
for $ac_word...
" >&6; }
13328 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13329 $as_echo_n "(cached
) " >&6
13331 case $PKG_CONFIG in
13333 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13344 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13351 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13355 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13356 if test -n "$PKG_CONFIG"; then
13357 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13358 $as_echo "$PKG_CONFIG" >&6; }
13360 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13361 $as_echo "no
" >&6; }
13366 if test "$PKG_CONFIG" = "no
" ; then
13369 PKG_CONFIG_MIN_VERSION=0.9.0
13370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13371 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13372 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13374 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13375 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13376 $as_echo "yes" >&6; }
13379 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13380 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13381 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13382 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13383 $as_echo "$XFT_CFLAGS" >&6; }
13385 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13386 $as_echo_n "checking XFT_LIBS...
" >&6; }
13387 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13388 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13389 $as_echo "$XFT_LIBS" >&6; }
13391 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13392 $as_echo "no
" >&6; }
13395 ## If we have a custom action on failure, don't print errors, but
13396 ## do set a variable so people can do so.
13397 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13404 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13405 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13409 if test $succeeded = yes; then
13415 if test "$HAVE_XFT" != no; then
13416 OLD_CPPFLAGS="$CPPFLAGS"
13417 OLD_CFLAGS="$CFLAGS"
13419 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13420 CFLAGS="$CFLAGS $XFT_CFLAGS"
13421 LIBS="$XFT_LIBS $LIBS"
13422 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13423 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13424 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13425 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13426 $as_echo_n "(cached
) " >&6
13428 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13429 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13431 # Is the header compilable?
13432 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13433 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13441 #include <X11/Xft/Xft.h>
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451 (eval "$ac_compile") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest.$ac_objext; then
13461 ac_header_compiler=yes
13463 $as_echo "$as_me: failed program was
:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 ac_header_compiler=no
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13471 $as_echo "$ac_header_compiler" >&6; }
13473 # Is the header present?
13474 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13475 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <X11/Xft/Xft.h>
13484 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13493 grep -v '^ *+' conftest.er1 >conftest.err
13495 cat conftest.err >&5
13496 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13497 (exit $ac_status); } >/dev/null && {
13498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13501 ac_header_preproc=yes
13503 $as_echo "$as_me: failed program was
:" >&5
13504 sed 's/^/| /' conftest.$ac_ext >&5
13506 ac_header_preproc=no
13509 rm -f conftest.err conftest.$ac_ext
13510 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13511 $as_echo "$ac_header_preproc" >&6; }
13513 # So? What about this header?
13514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13516 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13517 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13518 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13519 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13520 ac_header_preproc=yes
13523 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13524 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13526 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13527 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13528 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13529 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13530 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13531 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13532 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13533 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13534 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13538 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13539 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13540 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13541 $as_echo_n "(cached
) " >&6
13543 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13545 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13546 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13549 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13550 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13551 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13552 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13553 $as_echo_n "(cached
) " >&6
13555 ac_check_lib_save_LIBS=$LIBS
13556 LIBS="-lXft $XFT_LIBS $LIBS"
13557 cat >conftest.$ac_ext <<_ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13564 /* Override any GCC internal prototype to avoid an error.
13565 Use char because int might match the return type of a GCC
13566 builtin and then its argument prototype would still apply. */
13570 char XftFontOpen ();
13574 return XftFontOpen ();
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13586 $as_echo "$ac_try_echo") >&5
13587 (eval "$ac_link") 2>conftest.er1
13589 grep -v '^ *+' conftest.er1 >conftest.err
13591 cat conftest.err >&5
13592 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest$ac_exeext && {
13597 test "$cross_compiling" = yes ||
13598 $as_test_x conftest$ac_exeext
13600 ac_cv_lib_Xft_XftFontOpen=yes
13602 $as_echo "$as_me: failed program was
:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_cv_lib_Xft_XftFontOpen=no
13608 rm -rf conftest.dSYM
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13613 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13614 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13615 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13623 if test "${HAVE_XFT}" = "yes"; then
13625 cat >>confdefs.h <<\_ACEOF
13630 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13632 CPPFLAGS="$OLD_CPPFLAGS"
13633 CFLAGS="$OLD_CFLAGS"
13635 fi # "${HAVE_XFT}" = "yes"
13636 fi # "$HAVE_XFT" != no
13637 fi # "x
${with_xft}" != "xno
"
13639 if test "$HAVE_XFT" != "yes"; then
13645 ## We used to allow building with FreeType and without Xft.
13646 ## However, the ftx font backend driver is not in good shape.
13647 if test "${HAVE_XFT}" = "yes"; then
13654 if test "${HAVE_FREETYPE}" = "yes"; then
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_FREETYPE 1
13660 if test "${with_libotf}" != "no
"; then
13664 # Extract the first word of "pkg-config
", so it can be a program name with args.
13665 set dummy pkg-config; ac_word=$2
13666 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13667 $as_echo_n "checking
for $ac_word...
" >&6; }
13668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13669 $as_echo_n "(cached
) " >&6
13671 case $PKG_CONFIG in
13673 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13683 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13684 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13696 if test -n "$PKG_CONFIG"; then
13697 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13698 $as_echo "$PKG_CONFIG" >&6; }
13700 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13701 $as_echo "no
" >&6; }
13706 if test "$PKG_CONFIG" = "no
" ; then
13709 PKG_CONFIG_MIN_VERSION=0.9.0
13710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13711 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13712 $as_echo_n "checking
for libotf...
" >&6; }
13714 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13715 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13716 $as_echo "yes" >&6; }
13719 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13720 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13721 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13722 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13723 $as_echo "$LIBOTF_CFLAGS" >&6; }
13725 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13726 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13727 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13728 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13729 $as_echo "$LIBOTF_LIBS" >&6; }
13731 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13732 $as_echo "no
" >&6; }
13735 ## If we have a custom action on failure, don't print errors, but
13736 ## do set a variable so people can do so.
13737 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13744 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13745 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13749 if test $succeeded = yes; then
13755 if test "$HAVE_LIBOTF" = "yes"; then
13757 cat >>confdefs.h <<\_ACEOF
13758 #define HAVE_LIBOTF 1
13761 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13762 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13763 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13764 $as_echo_n "(cached
) " >&6
13766 ac_check_lib_save_LIBS=$LIBS
13768 cat >conftest.$ac_ext <<_ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13775 /* Override any GCC internal prototype to avoid an error.
13776 Use char because int might match the return type of a GCC
13777 builtin and then its argument prototype would still apply. */
13781 char OTF_get_variation_glyphs ();
13785 return OTF_get_variation_glyphs ();
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798 (eval "$ac_link") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest$ac_exeext && {
13808 test "$cross_compiling" = yes ||
13809 $as_test_x conftest$ac_exeext
13811 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13813 $as_echo "$as_me: failed program was
:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13819 rm -rf conftest.dSYM
13820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LIBS=$ac_check_lib_save_LIBS
13824 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13825 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13826 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13827 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13829 HAVE_OTF_GET_VARIATION_GLYPHS=no
13832 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13834 cat >>confdefs.h <<\_ACEOF
13835 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13844 if test "${HAVE_LIBOTF}" = yes; then
13845 if test "${with_m17n_flt}" != "no
"; then
13849 # Extract the first word of "pkg-config
", so it can be a program name with args.
13850 set dummy pkg-config; ac_word=$2
13851 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13852 $as_echo_n "checking
for $ac_word...
" >&6; }
13853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13854 $as_echo_n "(cached
) " >&6
13856 case $PKG_CONFIG in
13858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862 for as_dir in $PATH
13865 test -z "$as_dir" && as_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13869 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13881 if test -n "$PKG_CONFIG"; then
13882 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13883 $as_echo "$PKG_CONFIG" >&6; }
13885 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13886 $as_echo "no
" >&6; }
13891 if test "$PKG_CONFIG" = "no
" ; then
13894 PKG_CONFIG_MIN_VERSION=0.9.0
13895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13896 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13897 $as_echo_n "checking
for m17n-flt...
" >&6; }
13899 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13900 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13901 $as_echo "yes" >&6; }
13904 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13905 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13906 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13907 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13908 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13910 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13911 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13912 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13913 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13914 $as_echo "$M17N_FLT_LIBS" >&6; }
13916 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13917 $as_echo "no
" >&6; }
13920 ## If we have a custom action on failure, don't print errors, but
13921 ## do set a variable so people can do so.
13922 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13929 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13930 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13934 if test $succeeded = yes; then
13940 if test "$HAVE_M17N_FLT" = "yes"; then
13942 cat >>confdefs.h <<\_ACEOF
13943 #define HAVE_M17N_FLT 1
13955 ### End of font-backend (under X11) section.
13966 ### Use -lXpm if available, unless `--with-xpm=no'.
13968 if test "${HAVE_X11}" = "yes"; then
13969 if test "${with_xpm}" != "no
"; then
13970 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13971 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13972 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13973 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13974 $as_echo_n "(cached
) " >&6
13976 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13977 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13979 # Is the header compilable?
13980 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13981 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13982 cat >conftest.$ac_ext <<_ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 $ac_includes_default
13989 #include <X11/xpm.h>
13991 rm -f conftest.$ac_objext
13992 if { (ac_try="$ac_compile"
13993 case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13998 $as_echo "$ac_try_echo") >&5
13999 (eval "$ac_compile") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest.$ac_objext; then
14009 ac_header_compiler=yes
14011 $as_echo "$as_me: failed program was
:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_header_compiler=no
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14019 $as_echo "$ac_header_compiler" >&6; }
14021 # Is the header present?
14022 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14023 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <X11/xpm.h>
14032 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14038 $as_echo "$ac_try_echo") >&5
14039 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14045 (exit $ac_status); } >/dev/null && {
14046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14049 ac_header_preproc=yes
14051 $as_echo "$as_me: failed program was
:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_header_preproc=no
14057 rm -f conftest.err conftest.$ac_ext
14058 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14059 $as_echo "$ac_header_preproc" >&6; }
14061 # So? What about this header?
14062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14064 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14065 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14066 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14067 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14068 ac_header_preproc=yes
14071 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14072 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14073 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14074 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14075 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14076 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14077 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14078 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14079 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14080 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14081 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14082 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14086 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14087 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14088 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14089 $as_echo_n "(cached
) " >&6
14091 ac_cv_header_X11_xpm_h=$ac_header_preproc
14093 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14094 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14097 if test $ac_cv_header_X11_xpm_h = yes; then
14098 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14099 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14100 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14101 $as_echo_n "(cached
) " >&6
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lXpm -lX11 $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14118 char XpmReadFileToPixmap ();
14122 return XpmReadFileToPixmap ();
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135 (eval "$ac_link") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest$ac_exeext && {
14145 test "$cross_compiling" = yes ||
14146 $as_test_x conftest$ac_exeext
14148 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14150 $as_echo "$as_me: failed program was
:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14153 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14156 rm -rf conftest.dSYM
14157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14158 conftest$ac_exeext conftest.$ac_ext
14159 LIBS=$ac_check_lib_save_LIBS
14161 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14162 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14163 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14170 if test "${HAVE_XPM}" = "yes"; then
14171 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14172 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14173 cat >conftest.$ac_ext <<_ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 #include "X11
/xpm.h
"
14180 #ifndef XpmReturnAllocPixels
14181 no_return_alloc_pixels
14185 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14186 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14194 if test "${HAVE_XPM}" = "yes"; then
14195 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14196 $as_echo "yes" >&6; }
14198 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14199 $as_echo "no
" >&6; }
14204 if test "${HAVE_XPM}" = "yes"; then
14206 cat >>confdefs.h <<\_ACEOF
14213 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14215 if test "${HAVE_X11}" = "yes"; then
14216 if test "${with_jpeg}" != "no
"; then
14217 if test "${ac_cv_header_jerror_h+set}" = set; then
14218 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14219 $as_echo_n "checking
for jerror.h...
" >&6; }
14220 if test "${ac_cv_header_jerror_h+set}" = set; then
14221 $as_echo_n "(cached
) " >&6
14223 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14224 $as_echo "$ac_cv_header_jerror_h" >&6; }
14226 # Is the header compilable?
14227 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14228 $as_echo_n "checking jerror.h usability...
" >&6; }
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 $ac_includes_default
14236 #include <jerror.h>
14238 rm -f conftest.$ac_objext
14239 if { (ac_try="$ac_compile"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.$ac_objext; then
14256 ac_header_compiler=yes
14258 $as_echo "$as_me: failed program was
:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_header_compiler=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14266 $as_echo "$ac_header_compiler" >&6; }
14268 # Is the header present?
14269 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14270 $as_echo_n "checking jerror.h presence...
" >&6; }
14271 cat >conftest.$ac_ext <<_ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277 #include <jerror.h>
14279 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14280 case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14285 $as_echo "$ac_try_echo") >&5
14286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14292 (exit $ac_status); } >/dev/null && {
14293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14296 ac_header_preproc=yes
14298 $as_echo "$as_me: failed program was
:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14301 ac_header_preproc=no
14304 rm -f conftest.err conftest.$ac_ext
14305 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14306 $as_echo "$ac_header_preproc" >&6; }
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14312 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14314 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14315 ac_header_preproc=yes
14318 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14319 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14320 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14321 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14322 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14323 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14324 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14325 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14326 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14327 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14329 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14333 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14334 $as_echo_n "checking
for jerror.h...
" >&6; }
14335 if test "${ac_cv_header_jerror_h+set}" = set; then
14336 $as_echo_n "(cached
) " >&6
14338 ac_cv_header_jerror_h=$ac_header_preproc
14340 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14341 $as_echo "$ac_cv_header_jerror_h" >&6; }
14344 if test $ac_cv_header_jerror_h = yes; then
14345 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14346 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14347 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14348 $as_echo_n "(cached
) " >&6
14350 ac_check_lib_save_LIBS=$LIBS
14351 LIBS="-ljpeg $LIBS"
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14365 char jpeg_destroy_compress ();
14369 return jpeg_destroy_compress ();
14374 rm -f conftest.$ac_objext conftest$ac_exeext
14375 if { (ac_try="$ac_link"
14376 case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14381 $as_echo "$ac_try_echo") >&5
14382 (eval "$ac_link") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest$ac_exeext && {
14392 test "$cross_compiling" = yes ||
14393 $as_test_x conftest$ac_exeext
14395 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14397 $as_echo "$as_me: failed program was
:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14403 rm -rf conftest.dSYM
14404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14405 conftest$ac_exeext conftest.$ac_ext
14406 LIBS=$ac_check_lib_save_LIBS
14408 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14409 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14410 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14420 if test "${HAVE_JPEG}" = "yes"; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_JPEG 1
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <jpeglib.h>
14432 version=JPEG_LIB_VERSION
14435 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14436 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14437 cat >>confdefs.h <<\_ACEOF
14438 #define HAVE_JPEG 1
14442 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14443 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14451 ### Use -lpng if available, unless `--with-png=no'.
14453 if test "${HAVE_X11}" = "yes"; then
14454 if test "${with_png}" != "no
"; then
14455 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14456 # in /usr/include/libpng.
14459 for ac_header in png.h libpng/png.h
14461 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14462 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14463 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14464 $as_echo_n "checking
for $ac_header...
" >&6; }
14465 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14466 $as_echo_n "(cached
) " >&6
14468 ac_res=`eval 'as_val=${'$as_ac_Header'}
14469 $as_echo "$as_val"'`
14470 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14471 $as_echo "$ac_res" >&6; }
14473 # Is the header compilable?
14474 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14475 $as_echo_n "checking
$ac_header usability...
" >&6; }
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 $ac_includes_default
14483 #include <$ac_header>
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14492 $as_echo "$ac_try_echo") >&5
14493 (eval "$ac_compile") 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
14497 cat conftest.err >&5
14498 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14499 (exit $ac_status); } && {
14500 test -z "$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 } && test -s conftest.$ac_objext; then
14503 ac_header_compiler=yes
14505 $as_echo "$as_me: failed program was
:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_header_compiler=no
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14513 $as_echo "$ac_header_compiler" >&6; }
14515 # Is the header present?
14516 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14517 $as_echo_n "checking
$ac_header presence...
" >&6; }
14518 cat >conftest.$ac_ext <<_ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <$ac_header>
14526 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14527 case "(($ac_try" in
14528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529 *) ac_try_echo=$ac_try;;
14531 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14532 $as_echo "$ac_try_echo") >&5
14533 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14535 grep -v '^ *+' conftest.er1 >conftest.err
14537 cat conftest.err >&5
14538 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14539 (exit $ac_status); } >/dev/null && {
14540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14541 test ! -s conftest.err
14543 ac_header_preproc=yes
14545 $as_echo "$as_me: failed program was
:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14548 ac_header_preproc=no
14551 rm -f conftest.err conftest.$ac_ext
14552 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14553 $as_echo "$ac_header_preproc" >&6; }
14555 # So? What about this header?
14556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14558 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14559 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14560 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14562 ac_header_preproc=yes
14565 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14566 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14568 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14569 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14570 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14572 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14575 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14576 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14580 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14581 $as_echo_n "checking
for $ac_header...
" >&6; }
14582 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14583 $as_echo_n "(cached
) " >&6
14585 eval "$as_ac_Header=\
$ac_header_preproc"
14587 ac_res=`eval 'as_val=${'$as_ac_Header'}
14588 $as_echo "$as_val"'`
14589 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14590 $as_echo "$ac_res" >&6; }
14593 if test `eval 'as_val=${'$as_ac_Header'}
14594 $as_echo "$as_val"'` = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14603 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14604 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14605 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14606 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14607 $as_echo_n "(cached
) " >&6
14609 ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-lpng -lz -lm $LIBS"
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 /* Override any GCC internal prototype to avoid an error.
14619 Use char because int might match the return type of a GCC
14620 builtin and then its argument prototype would still apply. */
14624 char png_get_channels ();
14628 return png_get_channels ();
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14640 $as_echo "$ac_try_echo") >&5
14641 (eval "$ac_link") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext && {
14651 test "$cross_compiling" = yes ||
14652 $as_test_x conftest$ac_exeext
14654 ac_cv_lib_png_png_get_channels=yes
14656 $as_echo "$as_me: failed program was
:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14659 ac_cv_lib_png_png_get_channels=no
14662 rm -rf conftest.dSYM
14663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14664 conftest$ac_exeext conftest.$ac_ext
14665 LIBS=$ac_check_lib_save_LIBS
14667 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14668 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14669 if test $ac_cv_lib_png_png_get_channels = yes; then
14676 if test "${HAVE_PNG}" = "yes"; then
14678 cat >>confdefs.h <<\_ACEOF
14685 ### Use -ltiff if available, unless `--with-tiff=no'.
14687 if test "${HAVE_X11}" = "yes"; then
14688 if test "${with_tiff}" != "no
"; then
14689 if test "${ac_cv_header_tiffio_h+set}" = set; then
14690 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14691 $as_echo_n "checking
for tiffio.h...
" >&6; }
14692 if test "${ac_cv_header_tiffio_h+set}" = set; then
14693 $as_echo_n "(cached
) " >&6
14695 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14696 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14698 # Is the header compilable?
14699 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14700 $as_echo_n "checking tiffio.h usability...
" >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 #include <tiffio.h>
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest.$ac_objext; then
14728 ac_header_compiler=yes
14730 $as_echo "$as_me: failed program was
:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_header_compiler=no
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14738 $as_echo "$ac_header_compiler" >&6; }
14740 # Is the header present?
14741 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14742 $as_echo_n "checking tiffio.h presence...
" >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <tiffio.h>
14751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14760 grep -v '^ *+' conftest.er1 >conftest.err
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14764 (exit $ac_status); } >/dev/null && {
14765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14768 ac_header_preproc=yes
14770 $as_echo "$as_me: failed program was
:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_header_preproc=no
14776 rm -f conftest.err conftest.$ac_ext
14777 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14778 $as_echo "$ac_header_preproc" >&6; }
14780 # So? What about this header?
14781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14784 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14785 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14786 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14787 ac_header_preproc=yes
14790 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14791 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14792 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14793 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14794 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14795 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14796 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14797 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14798 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14799 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14800 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14801 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14805 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14806 $as_echo_n "checking
for tiffio.h...
" >&6; }
14807 if test "${ac_cv_header_tiffio_h+set}" = set; then
14808 $as_echo_n "(cached
) " >&6
14810 ac_cv_header_tiffio_h=$ac_header_preproc
14812 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14813 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14816 if test $ac_cv_header_tiffio_h = yes; then
14818 # At least one tiff package requires the jpeg library.
14819 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14820 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14821 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14822 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14823 $as_echo_n "(cached
) " >&6
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-ltiff $tifflibs $LIBS"
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14834 /* Override any GCC internal prototype to avoid an error.
14835 Use char because int might match the return type of a GCC
14836 builtin and then its argument prototype would still apply. */
14840 char TIFFGetVersion ();
14844 return TIFFGetVersion ();
14849 rm -f conftest.$ac_objext conftest$ac_exeext
14850 if { (ac_try="$ac_link"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14856 $as_echo "$ac_try_echo") >&5
14857 (eval "$ac_link") 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext && {
14867 test "$cross_compiling" = yes ||
14868 $as_test_x conftest$ac_exeext
14870 ac_cv_lib_tiff_TIFFGetVersion=yes
14872 $as_echo "$as_me: failed program was
:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_cv_lib_tiff_TIFFGetVersion=no
14878 rm -rf conftest.dSYM
14879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14883 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14884 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14885 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14894 if test "${HAVE_TIFF}" = "yes"; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_TIFF 1
14903 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14905 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14906 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14907 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14908 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14909 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14910 $as_echo_n "(cached
) " >&6
14912 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14913 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14915 # Is the header compilable?
14916 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14917 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 $ac_includes_default
14925 #include <gif_lib.h>
14927 rm -f conftest.$ac_objext
14928 if { (ac_try="$ac_compile"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 ac_header_compiler=yes
14947 $as_echo "$as_me: failed program was
:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_header_compiler=no
14953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14955 $as_echo "$ac_header_compiler" >&6; }
14957 # Is the header present?
14958 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14959 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <gif_lib.h>
14968 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
14982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14985 ac_header_preproc=yes
14987 $as_echo "$as_me: failed program was
:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_preproc=no
14993 rm -f conftest.err conftest.$ac_ext
14994 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14995 $as_echo "$ac_header_preproc" >&6; }
14997 # So? What about this header?
14998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15000 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15001 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15002 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
15003 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
15004 ac_header_preproc=yes
15007 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15008 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15010 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15011 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15012 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15013 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15014 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15015 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15016 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15017 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15018 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15022 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15023 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15024 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15025 $as_echo_n "(cached
) " >&6
15027 ac_cv_header_gif_lib_h=$ac_header_preproc
15029 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15030 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15033 if test $ac_cv_header_gif_lib_h = yes; then
15034 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15035 # Earlier versions can crash Emacs.
15036 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15037 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15038 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15039 $as_echo_n "(cached
) " >&6
15041 ac_check_lib_save_LIBS=$LIBS
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15056 char EGifPutExtensionLast ();
15060 return EGifPutExtensionLast ();
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15072 $as_echo "$ac_try_echo") >&5
15073 (eval "$ac_link") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest$ac_exeext && {
15083 test "$cross_compiling" = yes ||
15084 $as_test_x conftest$ac_exeext
15086 ac_cv_lib_gif_EGifPutExtensionLast=yes
15088 $as_echo "$as_me: failed program was
:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 ac_cv_lib_gif_EGifPutExtensionLast=no
15094 rm -rf conftest.dSYM
15095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15096 conftest$ac_exeext conftest.$ac_ext
15097 LIBS=$ac_check_lib_save_LIBS
15099 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15100 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15101 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15111 if test "$HAVE_GIF" = yes; then
15112 ac_gif_lib_name="-lgif"
15115 # If gif_lib.h but no libgif, try libungif.
15116 if test x"$try_libungif" = xyes; then
15117 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15118 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15119 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15120 $as_echo_n "(cached
) " >&6
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lungif $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15137 char EGifPutExtensionLast ();
15141 return EGifPutExtensionLast ();
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (ac_try="$ac_link"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15153 $as_echo "$ac_try_echo") >&5
15154 (eval "$ac_link") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext && {
15164 test "$cross_compiling" = yes ||
15165 $as_test_x conftest$ac_exeext
15167 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15169 $as_echo "$as_me: failed program was
:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_cv_lib_ungif_EGifPutExtensionLast=no
15175 rm -rf conftest.dSYM
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15180 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15181 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15182 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15187 if test "$HAVE_GIF" = yes; then
15189 cat >>confdefs.h <<\_ACEOF
15190 #define LIBGIF -lungif
15193 ac_gif_lib_name="-lungif"
15197 if test "${HAVE_GIF}" = "yes"; then
15199 cat >>confdefs.h <<\_ACEOF
15206 if test "${HAVE_X11}" = "yes"; then
15209 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15210 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15211 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15212 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15213 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15214 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15215 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15216 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15217 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15218 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15220 if test "X
${MISSING}" != X; then
15221 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15223 Maybe some development libraries
/packages are missing?
15224 If you don
't want to link with them give
15226 as options to configure" >&5
15227 $as_echo "$as_me: error: The following required libraries were not found:
15229 Maybe some development libraries/packages are missing?
15230 If you don't want to link with them give
15232 as options to configure
" >&2;}
15233 { (exit 1); exit 1; }; }
15237 ### Use -lgpm if available, unless `--with-gpm=no'.
15239 if test "${with_gpm}" != "no
"; then
15240 if test "${ac_cv_header_gpm_h+set}" = set; then
15241 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15242 $as_echo_n "checking
for gpm.h...
" >&6; }
15243 if test "${ac_cv_header_gpm_h+set}" = set; then
15244 $as_echo_n "(cached
) " >&6
15246 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15247 $as_echo "$ac_cv_header_gpm_h" >&6; }
15249 # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15251 $as_echo_n "checking gpm.h usability...
" >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_header_compiler=yes
15281 $as_echo "$as_me: failed program was
:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15293 $as_echo_n "checking gpm.h presence...
" >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15302 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15319 ac_header_preproc=yes
15321 $as_echo "$as_me: failed program was
:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_preproc=no
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15335 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15337 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15338 ac_header_preproc=yes
15341 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15342 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15344 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15346 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15348 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15350 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15352 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15356 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15357 $as_echo_n "checking
for gpm.h...
" >&6; }
15358 if test "${ac_cv_header_gpm_h+set}" = set; then
15359 $as_echo_n "(cached
) " >&6
15361 ac_cv_header_gpm_h=$ac_header_preproc
15363 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15364 $as_echo "$ac_cv_header_gpm_h" >&6; }
15367 if test $ac_cv_header_gpm_h = yes; then
15368 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15369 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15370 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15371 $as_echo_n "(cached
) " >&6
15373 ac_check_lib_save_LIBS=$LIBS
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15392 return Gpm_Open ();
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_link") 2>conftest.er1
15407 grep -v '^ *+' conftest.er1 >conftest.err
15409 cat conftest.err >&5
15410 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest$ac_exeext && {
15415 test "$cross_compiling" = yes ||
15416 $as_test_x conftest$ac_exeext
15418 ac_cv_lib_gpm_Gpm_Open=yes
15420 $as_echo "$as_me: failed program was
:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15423 ac_cv_lib_gpm_Gpm_Open=no
15426 rm -rf conftest.dSYM
15427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15431 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15432 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15433 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15442 if test "${HAVE_GPM}" = "yes"; then
15444 cat >>confdefs.h <<\_ACEOF
15450 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15451 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15452 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15453 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15454 $as_echo_n "(cached
) " >&6
15456 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15457 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15459 # Is the header compilable?
15460 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15461 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <malloc/malloc.h>
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15478 $as_echo "$ac_try_echo") >&5
15479 (eval "$ac_compile") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest.$ac_objext; then
15489 ac_header_compiler=yes
15491 $as_echo "$as_me: failed program was
:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 ac_header_compiler=no
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15499 $as_echo "$ac_header_compiler" >&6; }
15501 # Is the header present?
15502 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15503 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <malloc/malloc.h>
15512 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15518 $as_echo "$ac_try_echo") >&5
15519 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15521 grep -v '^ *+' conftest.er1 >conftest.err
15523 cat conftest.err >&5
15524 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15525 (exit $ac_status); } >/dev/null && {
15526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15527 test ! -s conftest.err
15529 ac_header_preproc=yes
15531 $as_echo "$as_me: failed program was
:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 ac_header_preproc=no
15537 rm -f conftest.err conftest.$ac_ext
15538 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15539 $as_echo "$ac_header_preproc" >&6; }
15541 # So? What about this header?
15542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15544 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15545 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15546 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15547 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15548 ac_header_preproc=yes
15551 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15552 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15554 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15555 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15556 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15557 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15558 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15559 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15560 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15561 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15562 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15566 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15567 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15568 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15569 $as_echo_n "(cached
) " >&6
15571 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15574 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15577 if test $ac_cv_header_malloc_malloc_h = yes; then
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_MALLOC_MALLOC_H 1
15587 ### Use NeXTstep API to implement GUI.
15588 if test "${HAVE_NS}" = "yes"; then
15590 cat >>confdefs.h <<\_ACEOF
15594 if test "${NS_IMPL_COCOA}" = "yes"; then
15596 cat >>confdefs.h <<\_ACEOF
15597 #define NS_IMPL_COCOA 1
15602 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define NS_IMPL_GNUSTEP 1
15608 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15610 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15612 cat >>confdefs.h <<\_ACEOF
15613 #define NS_HAVE_NSINTEGER 1
15617 # We also have mouse menus.
15623 ### Use session management (-lSM -lICE) if available
15625 if test "${HAVE_X11}" = "yes"; then
15626 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15627 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15628 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15629 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15630 $as_echo_n "(cached
) " >&6
15632 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15633 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15635 # Is the header compilable?
15636 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15637 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 $ac_includes_default
15645 #include <X11/SM/SMlib.h>
15647 rm -f conftest.$ac_objext
15648 if { (ac_try="$ac_compile"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15653 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15654 $as_echo "$ac_try_echo") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.$ac_objext; then
15665 ac_header_compiler=yes
15667 $as_echo "$as_me: failed program was
:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_compiler=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15675 $as_echo "$ac_header_compiler" >&6; }
15677 # Is the header present?
15678 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15679 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <X11/SM/SMlib.h>
15688 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1 >conftest.err
15699 cat conftest.err >&5
15700 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15701 (exit $ac_status); } >/dev/null && {
15702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15703 test ! -s conftest.err
15705 ac_header_preproc=yes
15707 $as_echo "$as_me: failed program was
:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15710 ac_header_preproc=no
15713 rm -f conftest.err conftest.$ac_ext
15714 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15715 $as_echo "$ac_header_preproc" >&6; }
15717 # So? What about this header?
15718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15720 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15721 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15722 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15723 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15724 ac_header_preproc=yes
15727 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15728 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15730 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15731 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15732 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15734 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15736 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15737 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15738 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15742 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15743 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15744 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15745 $as_echo_n "(cached
) " >&6
15747 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15749 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15750 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15753 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15754 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15755 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15756 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15757 $as_echo_n "(cached
) " >&6
15759 ac_check_lib_save_LIBS=$LIBS
15760 LIBS="-lSM -lICE $LIBS"
15761 cat >conftest.$ac_ext <<_ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h. */
15768 /* Override any GCC internal prototype to avoid an error.
15769 Use char because int might match the return type of a GCC
15770 builtin and then its argument prototype would still apply. */
15774 char SmcOpenConnection ();
15778 return SmcOpenConnection ();
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (ac_try="$ac_link"
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_link") 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); } && {
15798 test -z "$ac_c_werror_flag" ||
15799 test ! -s conftest.err
15800 } && test -s conftest$ac_exeext && {
15801 test "$cross_compiling" = yes ||
15802 $as_test_x conftest$ac_exeext
15804 ac_cv_lib_SM_SmcOpenConnection=yes
15806 $as_echo "$as_me: failed program was
:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_cv_lib_SM_SmcOpenConnection=no
15812 rm -rf conftest.dSYM
15813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15818 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15819 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15827 if test "${HAVE_X_SM}" = "yes"; then
15829 cat >>confdefs.h <<\_ACEOF
15830 #define HAVE_X_SM 1
15835 *) LIBS="-lSM -lICE $LIBS" ;;
15840 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15841 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15842 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15843 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15844 $as_echo_n "(cached
) " >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h. */
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest$ac_exeext
15882 emacs_cv_netdb_declares_h_errno=yes
15884 $as_echo "$as_me: failed program was
:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 emacs_cv_netdb_declares_h_errno=no
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15894 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15895 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15896 if test $emacs_cv_netdb_declares_h_errno = yes; then
15898 cat >>confdefs.h <<\_ACEOF
15899 #define HAVE_H_ERRNO 1
15904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15905 # for constant arguments. Useless!
15906 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15907 $as_echo_n "checking
for working alloca.h...
" >&6; }
15908 if test "${ac_cv_working_alloca_h+set}" = set; then
15909 $as_echo_n "(cached
) " >&6
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 #include <alloca.h>
15921 char *p = (char *) alloca (2 * sizeof (int));
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (ac_try="$ac_link"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15934 $as_echo "$ac_try_echo") >&5
15935 (eval "$ac_link") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext && {
15945 test "$cross_compiling" = yes ||
15946 $as_test_x conftest$ac_exeext
15948 ac_cv_working_alloca_h=yes
15950 $as_echo "$as_me: failed program was
:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15953 ac_cv_working_alloca_h=no
15956 rm -rf conftest.dSYM
15957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15958 conftest$ac_exeext conftest.$ac_ext
15960 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15961 $as_echo "$ac_cv_working_alloca_h" >&6; }
15962 if test $ac_cv_working_alloca_h = yes; then
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE_ALLOCA_H 1
15970 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15971 $as_echo_n "checking
for alloca...
" >&6; }
15972 if test "${ac_cv_func_alloca_works+set}" = set; then
15973 $as_echo_n "(cached
) " >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 # define alloca __builtin_alloca
15985 # include <malloc.h>
15986 # define alloca _alloca
15988 # ifdef HAVE_ALLOCA_H
15989 # include <alloca.h>
15994 # ifndef alloca /* predefined by HP cc +Olibcalls */
16005 char *p = (char *) alloca (1);
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_link") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest$ac_exeext && {
16029 test "$cross_compiling" = yes ||
16030 $as_test_x conftest$ac_exeext
16032 ac_cv_func_alloca_works=yes
16034 $as_echo "$as_me: failed program was
:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_cv_func_alloca_works=no
16040 rm -rf conftest.dSYM
16041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16042 conftest$ac_exeext conftest.$ac_ext
16044 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16045 $as_echo "$ac_cv_func_alloca_works" >&6; }
16047 if test $ac_cv_func_alloca_works = yes; then
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_ALLOCA 1
16054 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16055 # that cause trouble. Some versions do not even contain alloca or
16056 # contain a buggy version. If you still want to use their alloca,
16057 # use ar to extract alloca.o from them instead of compiling alloca.c.
16059 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16061 cat >>confdefs.h <<\_ACEOF
16066 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16067 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16068 if test "${ac_cv_os_cray+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #if defined CRAY && ! defined CRAY2
16084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16085 $EGREP "webecray" >/dev/null 2>&1; then
16093 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16094 $as_echo "$ac_cv_os_cray" >&6; }
16095 if test $ac_cv_os_cray = yes; then
16096 for ac_func in _getb67 GETB67 getb67; do
16097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16098 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16099 $as_echo_n "checking for $ac_func... " >&6; }
16100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16101 $as_echo_n "(cached) " >&6
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16111 #define $ac_func innocuous_$ac_func
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char $ac_func (); below.
16115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16116 <limits.h> exists even on freestanding compilers. */
16119 # include <limits.h>
16121 # include <assert.h>
16126 /* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
16133 /* The GNU C library defines this for functions which it implements
16134 to always fail with ENOSYS. Some functions are actually named
16135 something starting with __ and the normal name is an alias. */
16136 #if defined __stub_$ac_func || defined __stub___$ac_func
16143 return $ac_func ();
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156 (eval "$ac_link") 2>conftest.er1
16158 grep -v '^
*+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest$ac_exeext && {
16166 test "$cross_compiling" = yes ||
16167 $as_test_x conftest$ac_exeext
16169 eval "$as_ac_var=yes"
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's
/^
/|
/' conftest.$ac_ext >&5
16174 eval "$as_ac_var=no"
16177 rm -rf conftest.dSYM
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16181 ac_res=`eval 'as_val
=${'$as_ac_var'}
16182 $as_echo "$as_val"'`
16183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16184 $as_echo "$ac_res" >&6; }
16185 if test `eval 'as_val
=${'$as_ac_var'}
16186 $as_echo "$as_val"'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define CRAY_STACKSEG_END $ac_func
16198 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16199 $as_echo_n "checking stack direction for C alloca... " >&6; }
16200 if test "${ac_cv_c_stack_direction+set}" = set; then
16201 $as_echo_n "(cached) " >&6
16203 if test "$cross_compiling" = yes; then
16204 ac_cv_c_stack_direction=0
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 $ac_includes_default
16214 find_stack_direction ()
16216 static char *addr = 0;
16221 return find_stack_direction ();
16224 return (&dummy > addr) ? 1 : -1;
16230 return find_stack_direction () < 0;
16233 rm -f conftest$ac_exeext
16234 if { (ac_try="$ac_link"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16240 $as_echo "$ac_try_echo") >&5
16241 (eval "$ac_link") 2>&5
16243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16250 $as_echo "$ac_try_echo") >&5
16251 (eval "$ac_try") 2>&5
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_c_stack_direction=1
16257 $as_echo "$as_me: program exited with status $ac_status" >&5
16258 $as_echo "$as_me: failed program was:" >&5
16259 sed 's
/^
/|
/' conftest.$ac_ext >&5
16261 ( exit $ac_status )
16262 ac_cv_c_stack_direction=-1
16264 rm -rf conftest.dSYM
16265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16270 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16271 $as_echo "$ac_cv_c_stack_direction" >&6; }
16273 cat >>confdefs.h <<_ACEOF
16274 #define STACK_DIRECTION $ac_cv_c_stack_direction
16281 if test x"$ac_cv_func_alloca_works" != xyes; then
16282 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16283 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16284 { (exit 1); exit 1; }; }
16287 # fmod, logb, and frexp are found in -lm on most systems.
16288 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16290 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16291 $as_echo_n "checking for sqrt in -lm... " >&6; }
16292 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16293 $as_echo_n "(cached) " >&6
16295 ac_check_lib_save_LIBS=$LIBS
16297 cat >conftest.$ac_ext <<_ACEOF
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326 $as_echo "$ac_try_echo") >&5
16327 (eval "$ac_link") 2>conftest.er1
16329 grep -v '^
*+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext && {
16337 test "$cross_compiling" = yes ||
16338 $as_test_x conftest$ac_exeext
16340 ac_cv_lib_m_sqrt=yes
16342 $as_echo "$as_me: failed program was:" >&5
16343 sed 's
/^
/|
/' conftest.$ac_ext >&5
16345 ac_cv_lib_m_sqrt=no
16348 rm -rf conftest.dSYM
16349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16350 conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16354 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16355 if test $ac_cv_lib_m_sqrt = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define HAVE_LIBM 1
16365 # Check for mail-locking functions in a "mail" library. Probably this should
16366 # have the same check as for liblockfile below.
16368 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16369 $as_echo_n "checking for maillock in -lmail... " >&6; }
16370 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16371 $as_echo_n "(cached) " >&6
16373 ac_check_lib_save_LIBS=$LIBS
16374 LIBS="-lmail $LIBS"
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16392 return maillock ();
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16404 $as_echo "$ac_try_echo") >&5
16405 (eval "$ac_link") 2>conftest.er1
16407 grep -v '^
*+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext && {
16415 test "$cross_compiling" = yes ||
16416 $as_test_x conftest$ac_exeext
16418 ac_cv_lib_mail_maillock=yes
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's
/^
/|
/' conftest.$ac_ext >&5
16423 ac_cv_lib_mail_maillock=no
16426 rm -rf conftest.dSYM
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16432 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16433 if test $ac_cv_lib_mail_maillock = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_LIBMAIL 1
16438 LIBS="-lmail $LIBS"
16443 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16444 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16445 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16446 $as_echo_n "(cached) " >&6
16448 ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-llockfile $LIBS"
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16467 return maillock ();
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16482 grep -v '^
*+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16493 ac_cv_lib_lockfile_maillock=yes
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's
/^
/|
/' conftest.$ac_ext >&5
16498 ac_cv_lib_lockfile_maillock=no
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16504 LIBS=$ac_check_lib_save_LIBS
16506 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16507 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16508 if test $ac_cv_lib_lockfile_maillock = yes; then
16509 cat >>confdefs.h <<_ACEOF
16510 #define HAVE_LIBLOCKFILE 1
16513 LIBS="-llockfile $LIBS"
16517 # If we have the shared liblockfile, assume we must use it for mail
16518 # locking (e.g. Debian). If we couldn't link against liblockfile
16519 # (no liblockfile.a installed), ensure that we don't need to.
16520 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16521 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16522 set dummy liblockfile.so
; ac_word
=$2
16523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 $as_echo_n "checking for $ac_word... " >&6; }
16525 if test "${ac_cv_prog_liblockfile+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16528 if test -n "$liblockfile"; then
16529 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16532 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16533 for as_dir
in $as_dummy
16536 test -z "$as_dir" && as_dir
=.
16537 for ac_exec_ext
in '' $ac_executable_extensions; do
16538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16539 ac_cv_prog_liblockfile
="yes"
16540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16547 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16550 liblockfile
=$ac_cv_prog_liblockfile
16551 if test -n "$liblockfile"; then
16552 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16553 $as_echo "$liblockfile" >&6; }
16555 { $as_echo "$as_me:$LINENO: result: no" >&5
16556 $as_echo "no" >&6; }
16560 if test $ac_cv_prog_liblockfile = yes; then
16561 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16562 This probably means that movemail could lose mail.
16563 There may be a \`development' package to install containing liblockfile." >&5
16564 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16565 This probably means that movemail could lose mail.
16566 There may be a \`development' package to install containing liblockfile." >&2;}
16567 { (exit 1); exit 1; }; }
16572 for ac_func
in touchlock
16574 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16576 $as_echo_n "checking for $ac_func... " >&6; }
16577 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
16580 cat >conftest.
$ac_ext <<_ACEOF
16583 cat confdefs.h
>>conftest.
$ac_ext
16584 cat >>conftest.
$ac_ext <<_ACEOF
16585 /* end confdefs.h. */
16586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16588 #define $ac_func innocuous_$ac_func
16590 /* System header to define __stub macros and hopefully few prototypes,
16591 which can conflict with char $ac_func (); below.
16592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16593 <limits.h> exists even on freestanding compilers. */
16596 # include <limits.h>
16598 # include <assert.h>
16603 /* Override any GCC internal prototype to avoid an error.
16604 Use char because int might match the return type of a GCC
16605 builtin and then its argument prototype would still apply. */
16610 /* The GNU C library defines this for functions which it implements
16611 to always fail with ENOSYS. Some functions are actually named
16612 something starting with __ and the normal name is an alias. */
16613 #if defined __stub_$ac_func || defined __stub___$ac_func
16620 return $ac_func ();
16625 rm -f conftest.
$ac_objext conftest
$ac_exeext
16626 if { (ac_try
="$ac_link"
16627 case "(($ac_try" in
16628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16632 $as_echo "$ac_try_echo") >&5
16633 (eval "$ac_link") 2>conftest.er1
16635 grep -v '^ *+' conftest.er1 >conftest.err
16637 cat conftest.err >&5
16638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest$ac_exeext && {
16643 test "$cross_compiling" = yes ||
16644 $as_test_x conftest$ac_exeext
16646 eval "$as_ac_var=yes"
16648 $as_echo "$as_me: failed program was:" >&5
16649 sed 's/^/| /' conftest.$ac_ext >&5
16651 eval "$as_ac_var=no"
16654 rm -rf conftest.dSYM
16655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16656 conftest$ac_exeext conftest.$ac_ext
16658 ac_res=`eval 'as_val=${'$as_ac_var'}
16659 $as_echo "$as_val"'`
16660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16661 $as_echo "$ac_res" >&6; }
16662 if test `eval 'as_val=${'$as_ac_var'}
16663 $as_echo "$as_val"'` = yes; then
16664 cat >>confdefs.h <<_ACEOF
16665 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16672 for ac_header in maillock.h
16674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16677 $as_echo_n "checking for $ac_header... " >&6; }
16678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16679 $as_echo_n "(cached) " >&6
16681 ac_res=`eval 'as_val=${'$as_ac_Header'}
16682 $as_echo "$as_val"'`
16683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16686 # Is the header compilable?
16687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16688 $as_echo_n "checking $ac_header usability... " >&6; }
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 $ac_includes_default
16696 #include <$ac_header>
16698 rm -f conftest.$ac_objext
16699 if { (ac_try="$ac_compile"
16700 case "(($ac_try" in
16701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16702 *) ac_try_echo
=$ac_try;;
16704 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1
>conftest.err
16710 cat conftest.err
>&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.
$ac_objext; then
16716 ac_header_compiler
=yes
16718 $as_echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.
$ac_ext >&5
16721 ac_header_compiler
=no
16724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16726 $as_echo "$ac_header_compiler" >&6; }
16728 # Is the header present?
16729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16730 $as_echo_n "checking $ac_header presence... " >&6; }
16731 cat >conftest.
$ac_ext <<_ACEOF
16734 cat confdefs.h
>>conftest.
$ac_ext
16735 cat >>conftest.
$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 #include <$ac_header>
16739 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16740 case "(($ac_try" in
16741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16745 $as_echo "$ac_try_echo") >&5
16746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } >/dev/null && {
16753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16756 ac_header_preproc=yes
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_header_preproc=no
16764 rm -f conftest.err conftest.$ac_ext
16765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16766 $as_echo "$ac_header_preproc" >&6; }
16768 # So? What about this header?
16769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16775 ac_header_preproc=yes
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16794 $as_echo_n "checking for $ac_header... " >&6; }
16795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796 $as_echo_n "(cached) " >&6
16798 eval "$as_ac_Header=\$ac_header_preproc"
16800 ac_res=`eval 'as_val=${'$as_ac_Header'}
16801 $as_echo "$as_val"'`
16802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16803 $as_echo "$ac_res" >&6; }
16806 if test `eval 'as_val=${'$as_ac_Header'}
16807 $as_echo "$as_val"'` = yes; then
16808 cat >>confdefs.h <<_ACEOF
16809 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16888 for ac_func in gethostname getdomainname dup2 \
16889 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16890 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16891 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16892 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16893 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16894 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16895 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16896 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16897 cfmakeraw cfsetspeed
16899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16900 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16901 $as_echo_n "checking for $ac_func... " >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16903 $as_echo_n "(cached) " >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16921 # include <limits.h>
16923 # include <assert.h>
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16945 return $ac_func ();
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16954 *) ac_try_echo
=$ac_try;;
16956 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16957 $as_echo "$ac_try_echo") >&5
16958 (eval "$ac_link") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1
>conftest.err
16962 cat conftest.err
>&5
16963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest
$ac_exeext && {
16968 test "$cross_compiling" = yes ||
16969 $as_test_x conftest
$ac_exeext
16971 eval "$as_ac_var=yes"
16973 $as_echo "$as_me: failed program was:" >&5
16974 sed 's/^/| /' conftest.
$ac_ext >&5
16976 eval "$as_ac_var=no"
16979 rm -rf conftest.dSYM
16980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16981 conftest
$ac_exeext conftest.
$ac_ext
16983 ac_res
=`eval 'as_val=${'$as_ac_var'}
16984 $as_echo "$as_val"'`
16985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16986 $as_echo "$ac_res" >&6; }
16987 if test `eval 'as_val=${'$as_ac_var'}
16988 $as_echo "$as_val"'` = yes; then
16989 cat >>confdefs.h
<<_ACEOF
16990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16998 for ac_header
in sys
/un.h
17000 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17003 $as_echo_n "checking for $ac_header... " >&6; }
17004 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17005 $as_echo_n "(cached) " >&6
17007 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17008 $as_echo "$as_val"'`
17009 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17010 $as_echo "$ac_res" >&6; }
17012 # Is the header compilable?
17013 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014 $as_echo_n "checking $ac_header usability... " >&6; }
17015 cat >conftest.
$ac_ext <<_ACEOF
17018 cat confdefs.h
>>conftest.
$ac_ext
17019 cat >>conftest.
$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 $ac_includes_default
17022 #include <$ac_header>
17024 rm -f conftest.
$ac_objext
17025 if { (ac_try
="$ac_compile"
17026 case "(($ac_try" in
17027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17031 $as_echo "$ac_try_echo") >&5
17032 (eval "$ac_compile") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest.$ac_objext; then
17042 ac_header_compiler=yes
17044 $as_echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 ac_header_compiler=no
17050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17052 $as_echo "$ac_header_compiler" >&6; }
17054 # Is the header present?
17055 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17056 $as_echo_n "checking $ac_header presence... " >&6; }
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 #include <$ac_header>
17065 if { (ac_try="$ac_cpp conftest.$ac_ext"
17066 case "(($ac_try" in
17067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17068 *) ac_try_echo
=$ac_try;;
17070 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17071 $as_echo "$ac_try_echo") >&5
17072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17074 grep -v '^ *+' conftest.er1
>conftest.err
17076 cat conftest.err
>&5
17077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } >/dev
/null
&& {
17079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17080 test ! -s conftest.err
17082 ac_header_preproc
=yes
17084 $as_echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.
$ac_ext >&5
17087 ac_header_preproc
=no
17090 rm -f conftest.err conftest.
$ac_ext
17091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17092 $as_echo "$ac_header_preproc" >&6; }
17094 # So? What about this header?
17095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17100 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17101 ac_header_preproc
=yes
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17109 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17115 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17119 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17120 $as_echo_n "checking for $ac_header... " >&6; }
17121 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17122 $as_echo_n "(cached) " >&6
17124 eval "$as_ac_Header=\$ac_header_preproc"
17126 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17127 $as_echo "$as_val"'`
17128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17129 $as_echo "$ac_res" >&6; }
17132 if test `eval 'as_val=${'$as_ac_Header'}
17133 $as_echo "$as_val"'` = yes; then
17134 cat >>confdefs.h
<<_ACEOF
17135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17147 for ac_header
in $ac_header_list
17149 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17150 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17152 $as_echo_n "checking for $ac_header... " >&6; }
17153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17154 $as_echo_n "(cached) " >&6
17156 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17157 $as_echo "$as_val"'`
17158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17159 $as_echo "$ac_res" >&6; }
17161 # Is the header compilable?
17162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17163 $as_echo_n "checking $ac_header usability... " >&6; }
17164 cat >conftest.
$ac_ext <<_ACEOF
17167 cat confdefs.h
>>conftest.
$ac_ext
17168 cat >>conftest.
$ac_ext <<_ACEOF
17169 /* end confdefs.h. */
17170 $ac_includes_default
17171 #include <$ac_header>
17173 rm -f conftest.
$ac_objext
17174 if { (ac_try
="$ac_compile"
17175 case "(($ac_try" in
17176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180 $as_echo "$ac_try_echo") >&5
17181 (eval "$ac_compile") 2>conftest.er1
17183 grep -v '^ *+' conftest.er1 >conftest.err
17185 cat conftest.err >&5
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } && {
17188 test -z "$ac_c_werror_flag" ||
17189 test ! -s conftest.err
17190 } && test -s conftest.$ac_objext; then
17191 ac_header_compiler=yes
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ac_header_compiler=no
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17201 $as_echo "$ac_header_compiler" >&6; }
17203 # Is the header present?
17204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17205 $as_echo_n "checking $ac_header presence... " >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 #include <$ac_header>
17214 if { (ac_try="$ac_cpp conftest.$ac_ext"
17215 case "(($ac_try" in
17216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17217 *) ac_try_echo
=$ac_try;;
17219 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17223 grep -v '^ *+' conftest.er1
>conftest.err
17225 cat conftest.err
>&5
17226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } >/dev
/null
&& {
17228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17229 test ! -s conftest.err
17231 ac_header_preproc
=yes
17233 $as_echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.
$ac_ext >&5
17236 ac_header_preproc
=no
17239 rm -f conftest.err conftest.
$ac_ext
17240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17241 $as_echo "$ac_header_preproc" >&6; }
17243 # So? What about this header?
17244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17250 ac_header_preproc
=yes
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 $as_echo_n "checking for $ac_header... " >&6; }
17270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17271 $as_echo_n "(cached) " >&6
17273 eval "$as_ac_Header=\$ac_header_preproc"
17275 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17276 $as_echo "$as_val"'`
17277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17278 $as_echo "$ac_res" >&6; }
17281 if test `eval 'as_val=${'$as_ac_Header'}
17282 $as_echo "$as_val"'` = yes; then
17283 cat >>confdefs.h
<<_ACEOF
17284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17299 for ac_func
in $ac_func_list
17301 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17302 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17303 $as_echo_n "checking for $ac_func... " >&6; }
17304 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17305 $as_echo_n "(cached) " >&6
17307 cat >conftest.
$ac_ext <<_ACEOF
17310 cat confdefs.h
>>conftest.
$ac_ext
17311 cat >>conftest.
$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17315 #define $ac_func innocuous_$ac_func
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char $ac_func (); below.
17319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17320 <limits.h> exists even on freestanding compilers. */
17323 # include <limits.h>
17325 # include <assert.h>
17330 /* Override any GCC internal prototype to avoid an error.
17331 Use char because int might match the return type of a GCC
17332 builtin and then its argument prototype would still apply. */
17337 /* The GNU C library defines this for functions which it implements
17338 to always fail with ENOSYS. Some functions are actually named
17339 something starting with __ and the normal name is an alias. */
17340 #if defined __stub_$ac_func || defined __stub___$ac_func
17347 return $ac_func ();
17352 rm -f conftest.
$ac_objext conftest
$ac_exeext
17353 if { (ac_try
="$ac_link"
17354 case "(($ac_try" in
17355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17359 $as_echo "$ac_try_echo") >&5
17360 (eval "$ac_link") 2>conftest.er1
17362 grep -v '^ *+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext && {
17370 test "$cross_compiling" = yes ||
17371 $as_test_x conftest$ac_exeext
17373 eval "$as_ac_var=yes"
17375 $as_echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17378 eval "$as_ac_var=no"
17381 rm -rf conftest.dSYM
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17385 ac_res=`eval 'as_val=${'$as_ac_var'}
17386 $as_echo "$as_val"'`
17387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17388 $as_echo "$ac_res" >&6; }
17389 if test `eval 'as_val=${'$as_ac_var'}
17390 $as_echo "$as_val"'` = yes; then
17391 cat >>confdefs.h <<_ACEOF
17392 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17414 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17415 $as_echo_n "checking for working mktime... " >&6; }
17416 if test "${ac_cv_func_working_mktime+set}" = set; then
17417 $as_echo_n "(cached) " >&6
17419 if test "$cross_compiling" = yes; then
17420 ac_cv_func_working_mktime=no
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 /* Test program from Paul Eggert and Tony Leneis. */
17429 #ifdef TIME_WITH_SYS_TIME
17430 # include <sys/time.h>
17433 # ifdef HAVE_SYS_TIME_H
17434 # include <sys/time.h>
17440 #include <limits.h>
17441 #include <stdlib.h>
17443 #ifdef HAVE_UNISTD_H
17444 # include <unistd.h>
17448 # define alarm(X) /* empty */
17451 /* Work around redefinition to rpl_putenv by other config tests. */
17454 static time_t time_t_max;
17455 static time_t time_t_min;
17457 /* Values we'll use to set the TZ environment variable. */
17458 static char *tz_strings[] = {
17459 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17460 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17462 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17464 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17465 Based on a problem report from Andreas Jaeger. */
17467 spring_forward_gap ()
17469 /* glibc (up to about 1998-10-07) failed this test. */
17472 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17473 instead of "TZ=America/Vancouver" in order to detect the bug even
17474 on systems that don't support the Olson extension, or don't have the
17475 full zoneinfo tables installed. */
17476 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17485 return mktime (&tm) != (time_t) -1;
17493 return ! (lt = localtime (&now)) || mktime (lt) == now;
17500 return (mktime_test1 (now)
17501 && mktime_test1 ((time_t) (time_t_max - now))
17502 && mktime_test1 ((time_t) (time_t_min + now)));
17508 /* Based on code from Ariel Faigon. */
17518 return tm.tm_mon == 2 && tm.tm_mday == 31;
17527 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17528 now = mktime (&tm);
17529 if (now != (time_t) -1)
17531 struct tm *lt = localtime (&now);
17533 && lt->tm_year == tm.tm_year
17534 && lt->tm_mon == tm.tm_mon
17535 && lt->tm_mday == tm.tm_mday
17536 && lt->tm_hour == tm.tm_hour
17537 && lt->tm_min == tm.tm_min
17538 && lt->tm_sec == tm.tm_sec
17539 && lt->tm_yday == tm.tm_yday
17540 && lt->tm_wday == tm.tm_wday
17541 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17542 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17551 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17552 ignoring leap seconds. */
17553 unsigned long int answer = 2527315200UL;
17557 tm.tm_year = 2050 - 1900;
17560 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17563 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17564 instead of "TZ=America/Vancouver" in order to detect the bug even
17565 on systems that don't support the Olson extension, or don't have the
17566 full zoneinfo tables installed. */
17567 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17571 /* Check that the result is either a failure, or close enough
17572 to the correct answer that we can assume the discrepancy is
17573 due to leap seconds. */
17574 return (t == (time_t) -1
17575 || (0 < t && answer - 120 <= t && t <= answer + 120));
17584 /* This test makes some buggy mktime implementations loop.
17585 Give up after 60 seconds; a mktime slower than that
17586 isn't worth using anyway. */
17591 t = (time_t_max << 1) + 1;
17592 if (t <= time_t_max)
17596 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17598 delta = time_t_max / 997; /* a suitable prime number */
17599 for (i = 0; i < N_STRINGS; i++)
17602 putenv (tz_strings[i]);
17604 for (t = 0; t <= time_t_max - delta; t += delta)
17605 if (! mktime_test (t))
17607 if (! (mktime_test ((time_t) 1)
17608 && mktime_test ((time_t) (60 * 60))
17609 && mktime_test ((time_t) (60 * 60 * 24))))
17612 for (j = 1; ; j <<= 1)
17613 if (! bigtime_test (j))
17615 else if (INT_MAX / 2 < j)
17617 if (! bigtime_test (INT_MAX))
17620 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17623 rm -f conftest$ac_exeext
17624 if { (ac_try="$ac_link"
17625 case "(($ac_try" in
17626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17627 *) ac_try_echo
=$ac_try;;
17629 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17630 $as_echo "$ac_try_echo") >&5
17631 (eval "$ac_link") 2>&5
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17640 $as_echo "$ac_try_echo") >&5
17641 (eval "$ac_try") 2>&5
17643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 ac_cv_func_working_mktime=yes
17647 $as_echo "$as_me: program exited with status $ac_status" >&5
17648 $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17651 ( exit $ac_status )
17652 ac_cv_func_working_mktime=no
17654 rm -rf conftest.dSYM
17655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17660 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17661 $as_echo "$ac_cv_func_working_mktime" >&6; }
17662 if test $ac_cv_func_working_mktime = no; then
17663 case " $LIBOBJS " in
17664 *" mktime.$ac_objext "* ) ;;
17665 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17671 if test "$ac_cv_func_working_mktime" = no; then
17673 cat >>confdefs.h <<\_ACEOF
17674 #define BROKEN_MKTIME 1
17679 ac_have_func=no # yes means we've found a way to get the load average.
17681 # Make sure getloadavg.c is where it belongs, at configure-time.
17682 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17683 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17684 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17685 { (exit 1); exit 1; }; }
17689 # Check for getloadavg, but be sure not to touch the cache variable.
17690 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17691 $as_echo_n "checking for getloadavg... " >&6; }
17692 if test "${ac_cv_func_getloadavg+set}" = set; then
17693 $as_echo_n "(cached) " >&6
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17703 #define getloadavg innocuous_getloadavg
17705 /* System header to define __stub macros and hopefully few prototypes,
17706 which can conflict with char getloadavg (); below.
17707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17708 <limits.h> exists even on freestanding compilers. */
17711 # include <limits.h>
17713 # include <assert.h>
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17724 char getloadavg ();
17725 /* The GNU C library defines this for functions which it implements
17726 to always fail with ENOSYS. Some functions are actually named
17727 something starting with __ and the normal name is an alias. */
17728 #if defined __stub_getloadavg || defined __stub___getloadavg
17735 return getloadavg ();
17740 rm -f conftest.$ac_objext conftest$ac_exeext
17741 if { (ac_try="$ac_link"
17742 case "(($ac_try" in
17743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17744 *) ac_try_echo
=$ac_try;;
17746 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17747 $as_echo "$ac_try_echo") >&5
17748 (eval "$ac_link") 2>conftest.er1
17750 grep -v '^ *+' conftest.er1
>conftest.err
17752 cat conftest.err
>&5
17753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && {
17755 test -z "$ac_c_werror_flag" ||
17756 test ! -s conftest.err
17757 } && test -s conftest
$ac_exeext && {
17758 test "$cross_compiling" = yes ||
17759 $as_test_x conftest
$ac_exeext
17761 ac_cv_func_getloadavg
=yes
17763 $as_echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.
$ac_ext >&5
17766 ac_cv_func_getloadavg
=no
17769 rm -rf conftest.dSYM
17770 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17771 conftest
$ac_exeext conftest.
$ac_ext
17773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17774 $as_echo "$ac_cv_func_getloadavg" >&6; }
17775 if test $ac_cv_func_getloadavg = yes; then
17780 ) && ac_have_func
=yes
17782 # On HPUX9, an unprivileged user can get load averages through this function.
17784 for ac_func
in pstat_getdynamic
17786 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17788 $as_echo_n "checking for $ac_func... " >&6; }
17789 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17790 $as_echo_n "(cached) " >&6
17792 cat >conftest.
$ac_ext <<_ACEOF
17795 cat confdefs.h
>>conftest.
$ac_ext
17796 cat >>conftest.
$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17800 #define $ac_func innocuous_$ac_func
17802 /* System header to define __stub macros and hopefully few prototypes,
17803 which can conflict with char $ac_func (); below.
17804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 <limits.h> exists even on freestanding compilers. */
17808 # include <limits.h>
17810 # include <assert.h>
17815 /* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17822 /* The GNU C library defines this for functions which it implements
17823 to always fail with ENOSYS. Some functions are actually named
17824 something starting with __ and the normal name is an alias. */
17825 #if defined __stub_$ac_func || defined __stub___$ac_func
17832 return $ac_func ();
17837 rm -f conftest.
$ac_objext conftest
$ac_exeext
17838 if { (ac_try
="$ac_link"
17839 case "(($ac_try" in
17840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845 (eval "$ac_link") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } && {
17852 test -z "$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 } && test -s conftest$ac_exeext && {
17855 test "$cross_compiling" = yes ||
17856 $as_test_x conftest$ac_exeext
17858 eval "$as_ac_var=yes"
17860 $as_echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.$ac_ext >&5
17863 eval "$as_ac_var=no"
17866 rm -rf conftest.dSYM
17867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17868 conftest$ac_exeext conftest.$ac_ext
17870 ac_res=`eval 'as_val=${'$as_ac_var'}
17871 $as_echo "$as_val"'`
17872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17873 $as_echo "$ac_res" >&6; }
17874 if test `eval 'as_val=${'$as_ac_var'}
17875 $as_echo "$as_val"'` = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17884 # Solaris has libkstat which does not require root.
17886 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17887 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17888 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17889 $as_echo_n "(cached) " >&6
17891 ac_check_lib_save_LIBS=$LIBS
17892 LIBS="-lkstat $LIBS"
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17906 char kstat_open ();
17910 return kstat_open ();
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17919 *) ac_try_echo
=$ac_try;;
17921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_link") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1
>conftest.err
17927 cat conftest.err
>&5
17928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest
$ac_exeext && {
17933 test "$cross_compiling" = yes ||
17934 $as_test_x conftest
$ac_exeext
17936 ac_cv_lib_kstat_kstat_open
=yes
17938 $as_echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.
$ac_ext >&5
17941 ac_cv_lib_kstat_kstat_open
=no
17944 rm -rf conftest.dSYM
17945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17946 conftest
$ac_exeext conftest.
$ac_ext
17947 LIBS
=$ac_check_lib_save_LIBS
17949 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17950 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17951 if test $ac_cv_lib_kstat_kstat_open = yes; then
17952 cat >>confdefs.h
<<_ACEOF
17953 #define HAVE_LIBKSTAT 1
17956 LIBS
="-lkstat $LIBS"
17960 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17962 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17963 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17964 # to get the right answer into the cache.
17965 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17966 if test $ac_have_func = no
; then
17967 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17968 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17969 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17970 $as_echo_n "(cached) " >&6
17972 ac_check_lib_save_LIBS
=$LIBS
17974 cat >conftest.
$ac_ext <<_ACEOF
17977 cat confdefs.h
>>conftest.
$ac_ext
17978 cat >>conftest.
$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17991 return elf_begin ();
17996 rm -f conftest.
$ac_objext conftest
$ac_exeext
17997 if { (ac_try
="$ac_link"
17998 case "(($ac_try" in
17999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18003 $as_echo "$ac_try_echo") >&5
18004 (eval "$ac_link") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest$ac_exeext && {
18014 test "$cross_compiling" = yes ||
18015 $as_test_x conftest$ac_exeext
18017 ac_cv_lib_elf_elf_begin=yes
18019 $as_echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_lib_elf_elf_begin=no
18025 rm -rf conftest.dSYM
18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027 conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18031 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18032 if test $ac_cv_lib_elf_elf_begin = yes; then
18037 if test $ac_have_func = no; then
18038 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18039 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18040 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18041 $as_echo_n "(cached) " >&6
18043 ac_check_lib_save_LIBS=$LIBS
18045 cat >conftest.$ac_ext <<_ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18062 return kvm_open ();
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18071 *) ac_try_echo
=$ac_try;;
18073 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18074 $as_echo "$ac_try_echo") >&5
18075 (eval "$ac_link") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1
>conftest.err
18079 cat conftest.err
>&5
18080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest
$ac_exeext && {
18085 test "$cross_compiling" = yes ||
18086 $as_test_x conftest
$ac_exeext
18088 ac_cv_lib_kvm_kvm_open
=yes
18090 $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.
$ac_ext >&5
18093 ac_cv_lib_kvm_kvm_open
=no
18096 rm -rf conftest.dSYM
18097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18098 conftest
$ac_exeext conftest.
$ac_ext
18099 LIBS
=$ac_check_lib_save_LIBS
18101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18102 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18103 if test $ac_cv_lib_kvm_kvm_open = yes; then
18107 # Check for the 4.4BSD definition of getloadavg.
18108 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18109 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18110 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18111 $as_echo_n "(cached) " >&6
18113 ac_check_lib_save_LIBS
=$LIBS
18114 LIBS
="-lutil $LIBS"
18115 cat >conftest.
$ac_ext <<_ACEOF
18118 cat confdefs.h
>>conftest.
$ac_ext
18119 cat >>conftest.
$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18128 char getloadavg ();
18132 return getloadavg ();
18137 rm -f conftest.
$ac_objext conftest
$ac_exeext
18138 if { (ac_try
="$ac_link"
18139 case "(($ac_try" in
18140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18144 $as_echo "$ac_try_echo") >&5
18145 (eval "$ac_link") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext && {
18155 test "$cross_compiling" = yes ||
18156 $as_test_x conftest$ac_exeext
18158 ac_cv_lib_util_getloadavg=yes
18160 $as_echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_cv_lib_util_getloadavg=no
18166 rm -rf conftest.dSYM
18167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18172 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18173 if test $ac_cv_lib_util_getloadavg = yes; then
18174 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18179 if test $ac_have_func = no; then
18180 # There is a commonly available library for RS/6000 AIX.
18181 # Since it is not a standard part of AIX, it might be installed locally.
18182 ac_getloadavg_LIBS=$LIBS
18183 LIBS="-L/usr/local/lib $LIBS"
18184 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18185 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18186 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18187 $as_echo_n "(cached) " >&6
18189 ac_check_lib_save_LIBS=$LIBS
18190 LIBS="-lgetloadavg $LIBS"
18191 cat >conftest.$ac_ext <<_ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18204 char getloadavg ();
18208 return getloadavg ();
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18217 *) ac_try_echo
=$ac_try;;
18219 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18220 $as_echo "$ac_try_echo") >&5
18221 (eval "$ac_link") 2>conftest.er1
18223 grep -v '^ *+' conftest.er1
>conftest.err
18225 cat conftest.err
>&5
18226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } && {
18228 test -z "$ac_c_werror_flag" ||
18229 test ! -s conftest.err
18230 } && test -s conftest
$ac_exeext && {
18231 test "$cross_compiling" = yes ||
18232 $as_test_x conftest
$ac_exeext
18234 ac_cv_lib_getloadavg_getloadavg
=yes
18236 $as_echo "$as_me: failed program was:" >&5
18237 sed 's/^/| /' conftest.
$ac_ext >&5
18239 ac_cv_lib_getloadavg_getloadavg
=no
18242 rm -rf conftest.dSYM
18243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18244 conftest
$ac_exeext conftest.
$ac_ext
18245 LIBS
=$ac_check_lib_save_LIBS
18247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18248 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18249 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18250 LIBS
="-lgetloadavg $LIBS"
18252 LIBS
=$ac_getloadavg_LIBS
18257 # Make sure it is really in the library, if we think we found it,
18258 # otherwise set up the replacement function.
18260 for ac_func
in getloadavg
18262 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18264 $as_echo_n "checking for $ac_func... " >&6; }
18265 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18266 $as_echo_n "(cached) " >&6
18268 cat >conftest.
$ac_ext <<_ACEOF
18271 cat confdefs.h
>>conftest.
$ac_ext
18272 cat >>conftest.
$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18276 #define $ac_func innocuous_$ac_func
18278 /* System header to define __stub macros and hopefully few prototypes,
18279 which can conflict with char $ac_func (); below.
18280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18281 <limits.h> exists even on freestanding compilers. */
18284 # include <limits.h>
18286 # include <assert.h>
18291 /* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18298 /* The GNU C library defines this for functions which it implements
18299 to always fail with ENOSYS. Some functions are actually named
18300 something starting with __ and the normal name is an alias. */
18301 #if defined __stub_$ac_func || defined __stub___$ac_func
18308 return $ac_func ();
18313 rm -f conftest.
$ac_objext conftest
$ac_exeext
18314 if { (ac_try
="$ac_link"
18315 case "(($ac_try" in
18316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18320 $as_echo "$ac_try_echo") >&5
18321 (eval "$ac_link") 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest$ac_exeext && {
18331 test "$cross_compiling" = yes ||
18332 $as_test_x conftest$ac_exeext
18334 eval "$as_ac_var=yes"
18336 $as_echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 eval "$as_ac_var=no"
18342 rm -rf conftest.dSYM
18343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344 conftest$ac_exeext conftest.$ac_ext
18346 ac_res=`eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'`
18348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18349 $as_echo "$ac_res" >&6; }
18350 if test `eval 'as_val=${'$as_ac_var'}
18351 $as_echo "$as_val"'` = yes; then
18352 cat >>confdefs.h <<_ACEOF
18353 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18357 case " $LIBOBJS " in
18358 *" getloadavg.$ac_objext "* ) ;;
18359 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18364 cat >>confdefs.h <<\_ACEOF
18365 #define C_GETLOADAVG 1
18368 # Figure out what our getloadavg.c needs.
18370 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18371 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18372 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18373 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18374 $as_echo_n "(cached) " >&6
18376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18377 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18379 # Is the header compilable?
18380 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18381 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 $ac_includes_default
18389 #include <sys/dg_sys_info.h>
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18395 *) ac_try_echo
=$ac_try;;
18397 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_compile") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1
>conftest.err
18403 cat conftest.err
>&5
18404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest.
$ac_objext; then
18409 ac_header_compiler
=yes
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 ac_header_compiler
=no
18417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18419 $as_echo "$ac_header_compiler" >&6; }
18421 # Is the header present?
18422 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18423 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18424 cat >conftest.
$ac_ext <<_ACEOF
18427 cat confdefs.h
>>conftest.
$ac_ext
18428 cat >>conftest.
$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <sys/dg_sys_info.h>
18432 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18433 case "(($ac_try" in
18434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18438 $as_echo "$ac_try_echo") >&5
18439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } >/dev/null && {
18446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18449 ac_header_preproc=yes
18451 $as_echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18454 ac_header_preproc=no
18457 rm -f conftest.err conftest.$ac_ext
18458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18459 $as_echo "$ac_header_preproc" >&6; }
18461 # So? What about this header?
18462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18464 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18465 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18466 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18467 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18468 ac_header_preproc=yes
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18475 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18476 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18477 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18478 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18479 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18480 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18481 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18482 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18486 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18487 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18488 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18489 $as_echo_n "(cached) " >&6
18491 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18493 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18494 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18497 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18500 cat >>confdefs.h <<\_ACEOF
18505 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18506 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18507 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18508 $as_echo_n "(cached) " >&6
18510 ac_check_lib_save_LIBS=$LIBS
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18525 char dg_sys_info ();
18529 return dg_sys_info ();
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18538 *) ac_try_echo
=$ac_try;;
18540 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18541 $as_echo "$ac_try_echo") >&5
18542 (eval "$ac_link") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1
>conftest.err
18546 cat conftest.err
>&5
18547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest
$ac_exeext && {
18552 test "$cross_compiling" = yes ||
18553 $as_test_x conftest
$ac_exeext
18555 ac_cv_lib_dgc_dg_sys_info
=yes
18557 $as_echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 ac_cv_lib_dgc_dg_sys_info
=no
18563 rm -rf conftest.dSYM
18564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18565 conftest
$ac_exeext conftest.
$ac_ext
18566 LIBS
=$ac_check_lib_save_LIBS
18568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18569 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18570 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18571 cat >>confdefs.h
<<_ACEOF
18572 #define HAVE_LIBDGC 1
18583 if test "${ac_cv_header_locale_h+set}" = set; then
18584 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18585 $as_echo_n "checking for locale.h... " >&6; }
18586 if test "${ac_cv_header_locale_h+set}" = set; then
18587 $as_echo_n "(cached) " >&6
18589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18590 $as_echo "$ac_cv_header_locale_h" >&6; }
18592 # Is the header compilable?
18593 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18594 $as_echo_n "checking locale.h usability... " >&6; }
18595 cat >conftest.
$ac_ext <<_ACEOF
18598 cat confdefs.h
>>conftest.
$ac_ext
18599 cat >>conftest.
$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 $ac_includes_default
18602 #include <locale.h>
18604 rm -f conftest.
$ac_objext
18605 if { (ac_try
="$ac_compile"
18606 case "(($ac_try" in
18607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18611 $as_echo "$ac_try_echo") >&5
18612 (eval "$ac_compile") 2>conftest.er1
18614 grep -v '^ *+' conftest.er1 >conftest.err
18616 cat conftest.err >&5
18617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } && {
18619 test -z "$ac_c_werror_flag" ||
18620 test ! -s conftest.err
18621 } && test -s conftest.$ac_objext; then
18622 ac_header_compiler=yes
18624 $as_echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18627 ac_header_compiler=no
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18632 $as_echo "$ac_header_compiler" >&6; }
18634 # Is the header present?
18635 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18636 $as_echo_n "checking locale.h presence... " >&6; }
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 #include <locale.h>
18645 if { (ac_try="$ac_cpp conftest.$ac_ext"
18646 case "(($ac_try" in
18647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18648 *) ac_try_echo
=$ac_try;;
18650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18651 $as_echo "$ac_try_echo") >&5
18652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18654 grep -v '^ *+' conftest.er1
>conftest.err
18656 cat conftest.err
>&5
18657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } >/dev
/null
&& {
18659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18660 test ! -s conftest.err
18662 ac_header_preproc
=yes
18664 $as_echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.
$ac_ext >&5
18667 ac_header_preproc
=no
18670 rm -f conftest.err conftest.
$ac_ext
18671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18672 $as_echo "$ac_header_preproc" >&6; }
18674 # So? What about this header?
18675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18677 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18678 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18679 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18680 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18681 ac_header_preproc
=yes
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18685 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18687 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18688 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18689 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18690 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18691 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18692 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18693 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18694 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18695 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18699 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18700 $as_echo_n "checking for locale.h... " >&6; }
18701 if test "${ac_cv_header_locale_h+set}" = set; then
18702 $as_echo_n "(cached) " >&6
18704 ac_cv_header_locale_h
=$ac_header_preproc
18706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18707 $as_echo "$ac_cv_header_locale_h" >&6; }
18713 for ac_func
in setlocale
18715 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18717 $as_echo_n "checking for $ac_func... " >&6; }
18718 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18719 $as_echo_n "(cached) " >&6
18721 cat >conftest.
$ac_ext <<_ACEOF
18724 cat confdefs.h
>>conftest.
$ac_ext
18725 cat >>conftest.
$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18729 #define $ac_func innocuous_$ac_func
18731 /* System header to define __stub macros and hopefully few prototypes,
18732 which can conflict with char $ac_func (); below.
18733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734 <limits.h> exists even on freestanding compilers. */
18737 # include <limits.h>
18739 # include <assert.h>
18744 /* Override any GCC internal prototype to avoid an error.
18745 Use char because int might match the return type of a GCC
18746 builtin and then its argument prototype would still apply. */
18751 /* The GNU C library defines this for functions which it implements
18752 to always fail with ENOSYS. Some functions are actually named
18753 something starting with __ and the normal name is an alias. */
18754 #if defined __stub_$ac_func || defined __stub___$ac_func
18761 return $ac_func ();
18766 rm -f conftest.
$ac_objext conftest
$ac_exeext
18767 if { (ac_try
="$ac_link"
18768 case "(($ac_try" in
18769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18773 $as_echo "$ac_try_echo") >&5
18774 (eval "$ac_link") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } && {
18781 test -z "$ac_c_werror_flag" ||
18782 test ! -s conftest.err
18783 } && test -s conftest$ac_exeext && {
18784 test "$cross_compiling" = yes ||
18785 $as_test_x conftest$ac_exeext
18787 eval "$as_ac_var=yes"
18789 $as_echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 eval "$as_ac_var=no"
18795 rm -rf conftest.dSYM
18796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18797 conftest$ac_exeext conftest.$ac_ext
18799 ac_res=`eval 'as_val=${'$as_ac_var'}
18800 $as_echo "$as_val"'`
18801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18802 $as_echo "$ac_res" >&6; }
18803 if test `eval 'as_val=${'$as_ac_var'}
18804 $as_echo "$as_val"'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18813 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18814 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18815 # Irix 4.0.5F has the header but not the library.
18816 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18819 cat >>confdefs.h <<\_ACEOF
18825 if test $ac_have_func = no; then
18826 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18827 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18828 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18829 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18830 $as_echo_n "(cached) " >&6
18832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18833 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18835 # Is the header compilable?
18836 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18837 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 $ac_includes_default
18845 #include <inq_stats/cpustats.h>
18847 rm -f conftest.$ac_objext
18848 if { (ac_try="$ac_compile"
18849 case "(($ac_try" in
18850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18851 *) ac_try_echo
=$ac_try;;
18853 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18854 $as_echo "$ac_try_echo") >&5
18855 (eval "$ac_compile") 2>conftest.er1
18857 grep -v '^ *+' conftest.er1
>conftest.err
18859 cat conftest.err
>&5
18860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest.
$ac_objext; then
18865 ac_header_compiler
=yes
18867 $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.
$ac_ext >&5
18870 ac_header_compiler
=no
18873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875 $as_echo "$ac_header_compiler" >&6; }
18877 # Is the header present?
18878 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18879 $as_echo_n "checking inq_stats/cpustats.h presence... " >&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 #include <inq_stats/cpustats.h>
18888 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18889 case "(($ac_try" in
18890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18894 $as_echo "$ac_try_echo") >&5
18895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } >/dev/null && {
18902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18905 ac_header_preproc=yes
18907 $as_echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_header_preproc=no
18913 rm -f conftest.err conftest.$ac_ext
18914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915 $as_echo "$ac_header_preproc" >&6; }
18917 # So? What about this header?
18918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18924 ac_header_preproc=yes
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18932 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18934 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18936 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18938 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18942 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18943 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18944 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18945 $as_echo_n "(cached) " >&6
18947 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18950 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18953 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18961 cat >>confdefs.h <<\_ACEOF
18970 if test $ac_have_func = no; then
18971 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18972 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18973 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18975 $as_echo_n "(cached) " >&6
18977 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18978 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18980 # Is the header compilable?
18981 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18982 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18983 cat >conftest.$ac_ext <<_ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 $ac_includes_default
18990 #include <sys/cpustats.h>
18992 rm -f conftest.$ac_objext
18993 if { (ac_try="$ac_compile"
18994 case "(($ac_try" in
18995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18996 *) ac_try_echo
=$ac_try;;
18998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18999 $as_echo "$ac_try_echo") >&5
19000 (eval "$ac_compile") 2>conftest.er1
19002 grep -v '^ *+' conftest.er1
>conftest.err
19004 cat conftest.err
>&5
19005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && {
19007 test -z "$ac_c_werror_flag" ||
19008 test ! -s conftest.err
19009 } && test -s conftest.
$ac_objext; then
19010 ac_header_compiler
=yes
19012 $as_echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.
$ac_ext >&5
19015 ac_header_compiler
=no
19018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19020 $as_echo "$ac_header_compiler" >&6; }
19022 # Is the header present?
19023 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19024 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19025 cat >conftest.
$ac_ext <<_ACEOF
19028 cat confdefs.h
>>conftest.
$ac_ext
19029 cat >>conftest.
$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 #include <sys/cpustats.h>
19033 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
19047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19050 ac_header_preproc=yes
19052 $as_echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_header_preproc=no
19058 rm -f conftest.err conftest.$ac_ext
19059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19060 $as_echo "$ac_header_preproc" >&6; }
19062 # So? What about this header?
19063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19066 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19068 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19069 ac_header_preproc=yes
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19076 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19077 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19078 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19079 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19080 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19081 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19082 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19083 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19087 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19088 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19089 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19090 $as_echo_n "(cached) " >&6
19092 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19094 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19095 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19098 if test $ac_cv_header_sys_cpustats_h = yes; then
19099 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19108 if test $ac_have_func = no; then
19110 for ac_header in mach/mach.h
19112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19115 $as_echo_n "checking for $ac_header... " >&6; }
19116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19117 $as_echo_n "(cached) " >&6
19119 ac_res=`eval 'as_val=${'$as_ac_Header'}
19120 $as_echo "$as_val"'`
19121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19122 $as_echo "$ac_res" >&6; }
19124 # Is the header compilable?
19125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19126 $as_echo_n "checking $ac_header usability... " >&6; }
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 $ac_includes_default
19134 #include <$ac_header>
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19140 *) ac_try_echo
=$ac_try;;
19142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19143 $as_echo "$ac_try_echo") >&5
19144 (eval "$ac_compile") 2>conftest.er1
19146 grep -v '^ *+' conftest.er1
>conftest.err
19148 cat conftest.err
>&5
19149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } && {
19151 test -z "$ac_c_werror_flag" ||
19152 test ! -s conftest.err
19153 } && test -s conftest.
$ac_objext; then
19154 ac_header_compiler
=yes
19156 $as_echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.
$ac_ext >&5
19159 ac_header_compiler
=no
19162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19164 $as_echo "$ac_header_compiler" >&6; }
19166 # Is the header present?
19167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19168 $as_echo_n "checking $ac_header presence... " >&6; }
19169 cat >conftest.
$ac_ext <<_ACEOF
19172 cat confdefs.h
>>conftest.
$ac_ext
19173 cat >>conftest.
$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 #include <$ac_header>
19177 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19178 case "(($ac_try" in
19179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183 $as_echo "$ac_try_echo") >&5
19184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } >/dev/null && {
19191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19194 ac_header_preproc=yes
19196 $as_echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 ac_header_preproc=no
19202 rm -f conftest.err conftest.$ac_ext
19203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19204 $as_echo "$ac_header_preproc" >&6; }
19206 # So? What about this header?
19207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19213 ac_header_preproc=yes
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19232 $as_echo_n "checking for $ac_header... " >&6; }
19233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19234 $as_echo_n "(cached) " >&6
19236 eval "$as_ac_Header=\$ac_header_preproc"
19238 ac_res=`eval 'as_val=${'$as_ac_Header'}
19239 $as_echo "$as_val"'`
19240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19241 $as_echo "$ac_res" >&6; }
19244 if test `eval 'as_val=${'$as_ac_Header'}
19245 $as_echo "$as_val"'` = yes; then
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19257 for ac_header in nlist.h
19259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19262 $as_echo_n "checking for $ac_header... " >&6; }
19263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19264 $as_echo_n "(cached) " >&6
19266 ac_res=`eval 'as_val=${'$as_ac_Header'}
19267 $as_echo "$as_val"'`
19268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19269 $as_echo "$ac_res" >&6; }
19271 # Is the header compilable?
19272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19273 $as_echo_n "checking $ac_header usability... " >&6; }
19274 cat >conftest.$ac_ext <<_ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h. */
19280 $ac_includes_default
19281 #include <$ac_header>
19283 rm -f conftest.$ac_objext
19284 if { (ac_try="$ac_compile"
19285 case "(($ac_try" in
19286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19287 *) ac_try_echo
=$ac_try;;
19289 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_compile") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1
>conftest.err
19295 cat conftest.err
>&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest.
$ac_objext; then
19301 ac_header_compiler
=yes
19303 $as_echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.
$ac_ext >&5
19306 ac_header_compiler
=no
19309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19311 $as_echo "$ac_header_compiler" >&6; }
19313 # Is the header present?
19314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19315 $as_echo_n "checking $ac_header presence... " >&6; }
19316 cat >conftest.
$ac_ext <<_ACEOF
19319 cat confdefs.h
>>conftest.
$ac_ext
19320 cat >>conftest.
$ac_ext <<_ACEOF
19321 /* end confdefs.h. */
19322 #include <$ac_header>
19324 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19325 case "(($ac_try" in
19326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19330 $as_echo "$ac_try_echo") >&5
19331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } >/dev/null && {
19338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19339 test ! -s conftest.err
19341 ac_header_preproc=yes
19343 $as_echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 ac_header_preproc=no
19349 rm -f conftest.err conftest.$ac_ext
19350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19351 $as_echo "$ac_header_preproc" >&6; }
19353 # So? What about this header?
19354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19360 ac_header_preproc=yes
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19379 $as_echo_n "checking for $ac_header... " >&6; }
19380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19381 $as_echo_n "(cached) " >&6
19383 eval "$as_ac_Header=\$ac_header_preproc"
19385 ac_res=`eval 'as_val=${'$as_ac_Header'}
19386 $as_echo "$as_val"'`
19387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19388 $as_echo "$ac_res" >&6; }
19391 if test `eval 'as_val=${'$as_ac_Header'}
19392 $as_echo "$as_val"'` = yes; then
19393 cat >>confdefs.h <<_ACEOF
19394 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19396 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19397 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19398 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19399 $as_echo_n "(cached) " >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19412 static struct nlist ac_aggr;
19413 if (ac_aggr.n_un.n_name)
19419 rm -f conftest.$ac_objext
19420 if { (ac_try="$ac_compile"
19421 case "(($ac_try" in
19422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19423 *) ac_try_echo
=$ac_try;;
19425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19426 $as_echo "$ac_try_echo") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19429 grep -v '^ *+' conftest.er1
>conftest.err
19431 cat conftest.err
>&5
19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.
$ac_objext; then
19437 ac_cv_member_struct_nlist_n_un_n_name
=yes
19439 $as_echo "$as_me: failed program was:" >&5
19440 sed 's/^/| /' conftest.
$ac_ext >&5
19442 cat >conftest.
$ac_ext <<_ACEOF
19445 cat confdefs.h
>>conftest.
$ac_ext
19446 cat >>conftest.
$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19453 static struct nlist ac_aggr;
19454 if (sizeof ac_aggr.n_un.n_name)
19460 rm -f conftest.
$ac_objext
19461 if { (ac_try
="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_cv_member_struct_nlist_n_un_n_name=yes
19480 $as_echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_member_struct_nlist_n_un_n_name=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19492 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19493 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19500 cat >>confdefs.h <<\_ACEOF
19501 #define NLIST_NAME_UNION 1
19515 # Some definitions of getloadavg require that the program be installed setgid.
19516 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19517 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19518 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19519 $as_echo_n "(cached) " >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19528 #ifdef LDAV_PRIVILEGED
19529 Yowza Am I SETGID yet
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19534 ac_cv_func_getloadavg_setgid=yes
19536 ac_cv_func_getloadavg_setgid=no
19541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19542 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19543 if test $ac_cv_func_getloadavg_setgid = yes; then
19546 cat >>confdefs.h <<\_ACEOF
19547 #define GETLOADAVG_PRIVILEGED 1
19554 if test $ac_cv_func_getloadavg_setgid = yes; then
19555 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19556 $as_echo_n "checking group of /dev/kmem... " >&6; }
19557 if test "${ac_cv_group_kmem+set}" = set; then
19558 $as_echo_n "(cached) " >&6
19560 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19561 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19562 # If we got an error (system does not support symlinks), try without -L.
19563 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19564 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19565 |
sed -ne 's/[ ][ ]*/ /g;
19566 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19571 $as_echo "$ac_cv_group_kmem" >&6; }
19572 KMEM_GROUP=$ac_cv_group_kmem
19574 if test "x$ac_save_LIBS" = x; then
19575 GETLOADAVG_LIBS=$LIBS
19577 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19583 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19584 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19585 if test "${ac_cv_sys_largefile_source+set}" = set; then
19586 $as_echo_n "(cached) " >&6
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <sys/types.h> /* for off_t */
19600 int (*fp) (FILE *, off_t, int) = fseeko;
19601 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19610 *) ac_try_echo
=$ac_try;;
19612 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_link") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1
>conftest.err
19618 cat conftest.err
>&5
19619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest
$ac_exeext && {
19624 test "$cross_compiling" = yes ||
19625 $as_test_x conftest
$ac_exeext
19627 ac_cv_sys_largefile_source
=no
; break
19629 $as_echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.
$ac_ext >&5
19635 rm -rf conftest.dSYM
19636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19637 conftest
$ac_exeext conftest.
$ac_ext
19638 cat >conftest.
$ac_ext <<_ACEOF
19641 cat confdefs.h
>>conftest.
$ac_ext
19642 cat >>conftest.
$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19644 #define _LARGEFILE_SOURCE 1
19645 #include <sys/types.h> /* for off_t */
19650 int (*fp) (FILE *, off_t, int) = fseeko;
19651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19656 rm -f conftest.
$ac_objext conftest
$ac_exeext
19657 if { (ac_try
="$ac_link"
19658 case "(($ac_try" in
19659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663 $as_echo "$ac_try_echo") >&5
19664 (eval "$ac_link") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext && {
19674 test "$cross_compiling" = yes ||
19675 $as_test_x conftest$ac_exeext
19677 ac_cv_sys_largefile_source=1; break
19679 $as_echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19685 rm -rf conftest.dSYM
19686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19687 conftest$ac_exeext conftest.$ac_ext
19688 ac_cv_sys_largefile_source=unknown
19692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19693 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19694 case $ac_cv_sys_largefile_source in #(
19697 cat >>confdefs.h <<_ACEOF
19698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19705 # in glibc 2.1.3, but that breaks too many other things.
19706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19707 if test $ac_cv_sys_largefile_source != unknown; then
19709 cat >>confdefs.h <<\_ACEOF
19710 #define HAVE_FSEEKO 1
19716 # Configure getopt.
19717 # getopt.m4 serial 10
19719 # The getopt module assume you want GNU getopt, with getopt_long etc,
19720 # rather than vanilla POSIX getopt. This means your your code should
19721 # always include <getopt.h> for the getopt prototypes.
19733 # Prerequisites of lib/getopt*.
19740 for ac_header in getopt.h
19742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19745 $as_echo_n "checking for $ac_header... " >&6; }
19746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19747 $as_echo_n "(cached) " >&6
19749 ac_res=`eval 'as_val=${'$as_ac_Header'}
19750 $as_echo "$as_val"'`
19751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19752 $as_echo "$ac_res" >&6; }
19754 # Is the header compilable?
19755 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19756 $as_echo_n "checking $ac_header usability... " >&6; }
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 $ac_includes_default
19764 #include <$ac_header>
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19770 *) ac_try_echo
=$ac_try;;
19772 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19773 $as_echo "$ac_try_echo") >&5
19774 (eval "$ac_compile") 2>conftest.er1
19776 grep -v '^ *+' conftest.er1
>conftest.err
19778 cat conftest.err
>&5
19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); } && {
19781 test -z "$ac_c_werror_flag" ||
19782 test ! -s conftest.err
19783 } && test -s conftest.
$ac_objext; then
19784 ac_header_compiler
=yes
19786 $as_echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.
$ac_ext >&5
19789 ac_header_compiler
=no
19792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19793 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19794 $as_echo "$ac_header_compiler" >&6; }
19796 # Is the header present?
19797 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19798 $as_echo_n "checking $ac_header presence... " >&6; }
19799 cat >conftest.
$ac_ext <<_ACEOF
19802 cat confdefs.h
>>conftest.
$ac_ext
19803 cat >>conftest.
$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <$ac_header>
19807 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19808 case "(($ac_try" in
19809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19813 $as_echo "$ac_try_echo") >&5
19814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19816 grep -v '^ *+' conftest.er1 >conftest.err
19818 cat conftest.err >&5
19819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } >/dev/null && {
19821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19822 test ! -s conftest.err
19824 ac_header_preproc=yes
19826 $as_echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_header_preproc=no
19832 rm -f conftest.err conftest.$ac_ext
19833 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19834 $as_echo "$ac_header_preproc" >&6; }
19836 # So? What about this header?
19837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19843 ac_header_preproc=yes
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19853 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19855 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19857 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19862 $as_echo_n "checking for $ac_header... " >&6; }
19863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19864 $as_echo_n "(cached) " >&6
19866 eval "$as_ac_Header=\$ac_header_preproc"
19868 ac_res=`eval 'as_val=${'$as_ac_Header'}
19869 $as_echo "$as_val"'`
19870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19871 $as_echo "$ac_res" >&6; }
19874 if test `eval 'as_val=${'$as_ac_Header'}
19875 $as_echo "$as_val"'` = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19886 if test -z "$GETOPT_H"; then
19888 for ac_func in getopt_long_only
19890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19891 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19892 $as_echo_n "checking for $ac_func... " >&6; }
19893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19894 $as_echo_n "(cached) " >&6
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19904 #define $ac_func innocuous_$ac_func
19906 /* System header to define __stub macros and hopefully few prototypes,
19907 which can conflict with char $ac_func (); below.
19908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19909 <limits.h> exists even on freestanding compilers. */
19912 # include <limits.h>
19914 # include <assert.h>
19919 /* Override any GCC internal prototype to avoid an error.
19920 Use char because int might match the return type of a GCC
19921 builtin and then its argument prototype would still apply. */
19926 /* The GNU C library defines this for functions which it implements
19927 to always fail with ENOSYS. Some functions are actually named
19928 something starting with __ and the normal name is an alias. */
19929 #if defined __stub_$ac_func || defined __stub___$ac_func
19936 return $ac_func ();
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (ac_try="$ac_link"
19943 case "(($ac_try" in
19944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19945 *) ac_try_echo
=$ac_try;;
19947 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19948 $as_echo "$ac_try_echo") >&5
19949 (eval "$ac_link") 2>conftest.er1
19951 grep -v '^ *+' conftest.er1
>conftest.err
19953 cat conftest.err
>&5
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } && {
19956 test -z "$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19958 } && test -s conftest
$ac_exeext && {
19959 test "$cross_compiling" = yes ||
19960 $as_test_x conftest
$ac_exeext
19962 eval "$as_ac_var=yes"
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.
$ac_ext >&5
19967 eval "$as_ac_var=no"
19970 rm -rf conftest.dSYM
19971 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19972 conftest
$ac_exeext conftest.
$ac_ext
19974 ac_res
=`eval 'as_val=${'$as_ac_var'}
19975 $as_echo "$as_val"'`
19976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19977 $as_echo "$ac_res" >&6; }
19978 if test `eval 'as_val=${'$as_ac_var'}
19979 $as_echo "$as_val"'` = yes; then
19980 cat >>confdefs.h
<<_ACEOF
19981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19991 if test -z "$GETOPT_H"; then
19992 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19993 $as_echo_n "checking whether optreset is declared... " >&6; }
19994 if test "${ac_cv_have_decl_optreset+set}" = set; then
19995 $as_echo_n "(cached) " >&6
19997 cat >conftest.
$ac_ext <<_ACEOF
20000 cat confdefs.h
>>conftest.
$ac_ext
20001 cat >>conftest.
$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 #include <getopt.h>
20016 rm -f conftest.
$ac_objext
20017 if { (ac_try
="$ac_compile"
20018 case "(($ac_try" in
20019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023 $as_echo "$ac_try_echo") >&5
20024 (eval "$ac_compile") 2>conftest.er1
20026 grep -v '^ *+' conftest.er1 >conftest.err
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest.$ac_objext; then
20034 ac_cv_have_decl_optreset=yes
20036 $as_echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_cv_have_decl_optreset=no
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20045 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20046 if test $ac_cv_have_decl_optreset = yes; then
20052 if test -z "$GETOPT_H"; then
20053 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20054 $as_echo_n "checking for working GNU getopt function... " >&6; }
20055 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20056 $as_echo_n "(cached) " >&6
20058 if test "$cross_compiling" = yes; then
20059 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20060 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20061 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20062 $as_echo_n "(cached) " >&6
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 #include <getopt.h>
20075 #ifndef getopt_clip
20076 (void) getopt_clip;
20083 rm -f conftest.$ac_objext
20084 if { (ac_try="$ac_compile"
20085 case "(($ac_try" in
20086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20087 *) ac_try_echo
=$ac_try;;
20089 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20090 $as_echo "$ac_try_echo") >&5
20091 (eval "$ac_compile") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1
>conftest.err
20095 cat conftest.err
>&5
20096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest.
$ac_objext; then
20101 ac_cv_have_decl_getopt_clip
=yes
20103 $as_echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.
$ac_ext >&5
20106 ac_cv_have_decl_getopt_clip
=no
20109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20111 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20112 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20113 if test $ac_cv_have_decl_getopt_clip = yes; then
20114 gl_cv_func_gnu_getopt
=no
20116 gl_cv_func_gnu_getopt
=yes
20120 cat >conftest.
$ac_ext <<_ACEOF
20123 cat confdefs.h
>>conftest.
$ac_ext
20124 cat >>conftest.
$ac_ext <<_ACEOF
20125 /* end confdefs.h. */
20126 #include <getopt.h>
20132 myargv[0] = "conftest";
20135 return getopt (2, myargv, "+a") != '?';
20141 rm -f conftest
$ac_exeext
20142 if { (ac_try
="$ac_link"
20143 case "(($ac_try" in
20144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20148 $as_echo "$ac_try_echo") >&5
20149 (eval "$ac_link") 2>&5
20151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20153 { (case "(($ac_try" in
20154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20155 *) ac_try_echo
=$ac_try;;
20157 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20158 $as_echo "$ac_try_echo") >&5
20159 (eval "$ac_try") 2>&5
20161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 gl_cv_func_gnu_getopt
=yes
20165 $as_echo "$as_me: program exited with status $ac_status" >&5
20166 $as_echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.
$ac_ext >&5
20169 ( exit $ac_status )
20170 gl_cv_func_gnu_getopt
=no
20172 rm -rf conftest.dSYM
20173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20178 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20179 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20180 if test "$gl_cv_func_gnu_getopt" = "no"; then
20187 if test -n "$GETOPT_H"; then
20192 cat >>confdefs.h
<<\_ACEOF
20193 #define __GETOPT_PREFIX rpl_
20199 GETOPTOBJS
='getopt.o getopt1.o'
20206 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20207 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20208 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20209 $as_echo_n "(cached) " >&6
20211 # Use it with a single arg.
20212 cat >conftest.
$ac_ext <<_ACEOF
20215 cat confdefs.h
>>conftest.
$ac_ext
20216 cat >>conftest.
$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20227 rm -f conftest.
$ac_objext
20228 if { (ac_try
="$ac_compile"
20229 case "(($ac_try" in
20230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20234 $as_echo "$ac_try_echo") >&5
20235 (eval "$ac_compile") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1 >conftest.err
20239 cat conftest.err >&5
20240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest.$ac_objext; then
20245 ac_cv_func_getpgrp_void=no
20247 $as_echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20250 ac_cv_func_getpgrp_void=yes
20253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20257 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20258 if test $ac_cv_func_getpgrp_void = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define GETPGRP_VOID 1
20268 for ac_func in strftime
20270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 $as_echo_n "checking for $ac_func... " >&6; }
20273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached) " >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284 #define $ac_func innocuous_$ac_func
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20292 # include <limits.h>
20294 # include <assert.h>
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20306 /* The GNU C library defines this for functions which it implements
20307 to always fail with ENOSYS. Some functions are actually named
20308 something starting with __ and the normal name is an alias. */
20309 #if defined __stub_$ac_func || defined __stub___$ac_func
20316 return $ac_func ();
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20325 *) ac_try_echo
=$ac_try;;
20327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20328 $as_echo "$ac_try_echo") >&5
20329 (eval "$ac_link") 2>conftest.er1
20331 grep -v '^ *+' conftest.er1
>conftest.err
20333 cat conftest.err
>&5
20334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && {
20336 test -z "$ac_c_werror_flag" ||
20337 test ! -s conftest.err
20338 } && test -s conftest
$ac_exeext && {
20339 test "$cross_compiling" = yes ||
20340 $as_test_x conftest
$ac_exeext
20342 eval "$as_ac_var=yes"
20344 $as_echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.
$ac_ext >&5
20347 eval "$as_ac_var=no"
20350 rm -rf conftest.dSYM
20351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20352 conftest
$ac_exeext conftest.
$ac_ext
20354 ac_res
=`eval 'as_val=${'$as_ac_var'}
20355 $as_echo "$as_val"'`
20356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20357 $as_echo "$ac_res" >&6; }
20358 if test `eval 'as_val=${'$as_ac_var'}
20359 $as_echo "$as_val"'` = yes; then
20360 cat >>confdefs.h
<<_ACEOF
20361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20365 # strftime is in -lintl on SCO UNIX.
20366 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20367 $as_echo_n "checking for strftime in -lintl... " >&6; }
20368 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20369 $as_echo_n "(cached) " >&6
20371 ac_check_lib_save_LIBS
=$LIBS
20372 LIBS
="-lintl $LIBS"
20373 cat >conftest.
$ac_ext <<_ACEOF
20376 cat confdefs.h
>>conftest.
$ac_ext
20377 cat >>conftest.
$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20390 return strftime ();
20395 rm -f conftest.
$ac_objext conftest
$ac_exeext
20396 if { (ac_try
="$ac_link"
20397 case "(($ac_try" in
20398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20402 $as_echo "$ac_try_echo") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext && {
20413 test "$cross_compiling" = yes ||
20414 $as_test_x conftest$ac_exeext
20416 ac_cv_lib_intl_strftime=yes
20418 $as_echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20421 ac_cv_lib_intl_strftime=no
20424 rm -rf conftest.dSYM
20425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20426 conftest$ac_exeext conftest.$ac_ext
20427 LIBS=$ac_check_lib_save_LIBS
20429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20430 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20431 if test $ac_cv_lib_intl_strftime = yes; then
20432 cat >>confdefs.h <<\_ACEOF
20433 #define HAVE_STRFTIME 1
20436 LIBS="-lintl $LIBS"
20445 for ac_func in grantpt
20447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20448 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20449 $as_echo_n "checking for $ac_func... " >&6; }
20450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20451 $as_echo_n "(cached) " >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h. */
20459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20461 #define $ac_func innocuous_$ac_func
20463 /* System header to define __stub macros and hopefully few prototypes,
20464 which can conflict with char $ac_func (); below.
20465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20466 <limits.h> exists even on freestanding compilers. */
20469 # include <limits.h>
20471 # include <assert.h>
20476 /* Override any GCC internal prototype to avoid an error.
20477 Use char because int might match the return type of a GCC
20478 builtin and then its argument prototype would still apply. */
20483 /* The GNU C library defines this for functions which it implements
20484 to always fail with ENOSYS. Some functions are actually named
20485 something starting with __ and the normal name is an alias. */
20486 #if defined __stub_$ac_func || defined __stub___$ac_func
20493 return $ac_func ();
20498 rm -f conftest.$ac_objext conftest$ac_exeext
20499 if { (ac_try="$ac_link"
20500 case "(($ac_try" in
20501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20502 *) ac_try_echo
=$ac_try;;
20504 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506 (eval "$ac_link") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1
>conftest.err
20510 cat conftest.err
>&5
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest
$ac_exeext && {
20516 test "$cross_compiling" = yes ||
20517 $as_test_x conftest
$ac_exeext
20519 eval "$as_ac_var=yes"
20521 $as_echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.
$ac_ext >&5
20524 eval "$as_ac_var=no"
20527 rm -rf conftest.dSYM
20528 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20529 conftest
$ac_exeext conftest.
$ac_ext
20531 ac_res
=`eval 'as_val=${'$as_ac_var'}
20532 $as_echo "$as_val"'`
20533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20534 $as_echo "$ac_res" >&6; }
20535 if test `eval 'as_val=${'$as_ac_var'}
20536 $as_echo "$as_val"'` = yes; then
20537 cat >>confdefs.h
<<_ACEOF
20538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20545 # PTY-related GNU extensions.
20547 for ac_func
in getpt
20549 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20550 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20551 $as_echo_n "checking for $ac_func... " >&6; }
20552 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20553 $as_echo_n "(cached) " >&6
20555 cat >conftest.
$ac_ext <<_ACEOF
20558 cat confdefs.h
>>conftest.
$ac_ext
20559 cat >>conftest.
$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20563 #define $ac_func innocuous_$ac_func
20565 /* System header to define __stub macros and hopefully few prototypes,
20566 which can conflict with char $ac_func (); below.
20567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20568 <limits.h> exists even on freestanding compilers. */
20571 # include <limits.h>
20573 # include <assert.h>
20578 /* Override any GCC internal prototype to avoid an error.
20579 Use char because int might match the return type of a GCC
20580 builtin and then its argument prototype would still apply. */
20585 /* The GNU C library defines this for functions which it implements
20586 to always fail with ENOSYS. Some functions are actually named
20587 something starting with __ and the normal name is an alias. */
20588 #if defined __stub_$ac_func || defined __stub___$ac_func
20595 return $ac_func ();
20600 rm -f conftest.
$ac_objext conftest
$ac_exeext
20601 if { (ac_try
="$ac_link"
20602 case "(($ac_try" in
20603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20607 $as_echo "$ac_try_echo") >&5
20608 (eval "$ac_link") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest$ac_exeext && {
20618 test "$cross_compiling" = yes ||
20619 $as_test_x conftest$ac_exeext
20621 eval "$as_ac_var=yes"
20623 $as_echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20626 eval "$as_ac_var=no"
20629 rm -rf conftest.dSYM
20630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631 conftest$ac_exeext conftest.$ac_ext
20633 ac_res=`eval 'as_val=${'$as_ac_var'}
20634 $as_echo "$as_val"'`
20635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20636 $as_echo "$ac_res" >&6; }
20637 if test `eval 'as_val=${'$as_ac_var'}
20638 $as_echo "$as_val"'` = yes; then
20639 cat >>confdefs.h <<_ACEOF
20640 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20647 # Check this now, so that we will NOT find the above functions in ncurses.
20648 # That is because we have not set up to link ncurses in lib-src.
20649 # It's better to believe a function is not available
20650 # than to expect to find it in ncurses.
20652 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20653 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20654 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20655 $as_echo_n "(cached) " >&6
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lncurses $LIBS"
20659 cat >conftest.$ac_ext <<_ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 /* Override any GCC internal prototype to avoid an error.
20667 Use char because int might match the return type of a GCC
20668 builtin and then its argument prototype would still apply. */
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (ac_try="$ac_link"
20683 case "(($ac_try" in
20684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20685 *) ac_try_echo
=$ac_try;;
20687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20688 $as_echo "$ac_try_echo") >&5
20689 (eval "$ac_link") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1
>conftest.err
20693 cat conftest.err
>&5
20694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest
$ac_exeext && {
20699 test "$cross_compiling" = yes ||
20700 $as_test_x conftest
$ac_exeext
20702 ac_cv_lib_ncurses_tparm
=yes
20704 $as_echo "$as_me: failed program was:" >&5
20705 sed 's/^/| /' conftest.
$ac_ext >&5
20707 ac_cv_lib_ncurses_tparm
=no
20710 rm -rf conftest.dSYM
20711 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20712 conftest
$ac_exeext conftest.
$ac_ext
20713 LIBS
=$ac_check_lib_save_LIBS
20715 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20716 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20717 if test $ac_cv_lib_ncurses_tparm = yes; then
20718 cat >>confdefs.h
<<_ACEOF
20719 #define HAVE_LIBNCURSES 1
20722 LIBS
="-lncurses $LIBS"
20727 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20730 cat >conftest.
$ac_ext <<_ACEOF
20733 cat confdefs.h
>>conftest.
$ac_ext
20734 cat >>conftest.
$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <netinet/in.h>
20737 #include <arpa/nameser.h>
20738 #include <resolv.h>
20747 rm -f conftest.
$ac_objext conftest
$ac_exeext
20748 if { (ac_try
="$ac_link"
20749 case "(($ac_try" in
20750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20754 $as_echo "$ac_try_echo") >&5
20755 (eval "$ac_link") 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } && {
20762 test -z "$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20764 } && test -s conftest$ac_exeext && {
20765 test "$cross_compiling" = yes ||
20766 $as_test_x conftest$ac_exeext
20770 $as_echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20776 rm -rf conftest.dSYM
20777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20778 conftest$ac_exeext conftest.$ac_ext
20779 if test "$have_res_init" = no; then
20781 LIBS="$LIBS -lresolv"
20782 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20783 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 #include <netinet/in.h>
20791 #include <arpa/nameser.h>
20792 #include <resolv.h>
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20805 *) ac_try_echo
=$ac_try;;
20807 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_link") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1
>conftest.err
20813 cat conftest.err
>&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest
$ac_exeext && {
20819 test "$cross_compiling" = yes ||
20820 $as_test_x conftest
$ac_exeext
20824 $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.
$ac_ext >&5
20830 rm -rf conftest.dSYM
20831 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20832 conftest
$ac_exeext conftest.
$ac_ext
20833 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20834 $as_echo "$have_res_init" >&6; }
20835 if test "$have_res_init" = yes ; then
20841 if test "$have_res_init" = yes; then
20843 cat >>confdefs.h
<<\_ACEOF
20844 #define HAVE_RES_INIT 1
20849 # Do we need the Hesiod library to provide the support routines?
20850 if test "$with_hesiod" != no
; then
20851 # Don't set $LIBS here -- see comments above.
20852 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20853 $as_echo_n "checking for res_send... " >&6; }
20854 if test "${ac_cv_func_res_send+set}" = set; then
20855 $as_echo_n "(cached) " >&6
20857 cat >conftest.
$ac_ext <<_ACEOF
20860 cat confdefs.h
>>conftest.
$ac_ext
20861 cat >>conftest.
$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20865 #define res_send innocuous_res_send
20867 /* System header to define __stub macros and hopefully few prototypes,
20868 which can conflict with char res_send (); below.
20869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20870 <limits.h> exists even on freestanding compilers. */
20873 # include <limits.h>
20875 # include <assert.h>
20880 /* Override any GCC internal prototype to avoid an error.
20881 Use char because int might match the return type of a GCC
20882 builtin and then its argument prototype would still apply. */
20887 /* The GNU C library defines this for functions which it implements
20888 to always fail with ENOSYS. Some functions are actually named
20889 something starting with __ and the normal name is an alias. */
20890 #if defined __stub_res_send || defined __stub___res_send
20897 return res_send ();
20902 rm -f conftest.
$ac_objext conftest
$ac_exeext
20903 if { (ac_try
="$ac_link"
20904 case "(($ac_try" in
20905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20909 $as_echo "$ac_try_echo") >&5
20910 (eval "$ac_link") 2>conftest.er1
20912 grep -v '^ *+' conftest.er1 >conftest.err
20914 cat conftest.err >&5
20915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); } && {
20917 test -z "$ac_c_werror_flag" ||
20918 test ! -s conftest.err
20919 } && test -s conftest$ac_exeext && {
20920 test "$cross_compiling" = yes ||
20921 $as_test_x conftest$ac_exeext
20923 ac_cv_func_res_send=yes
20925 $as_echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20928 ac_cv_func_res_send=no
20931 rm -rf conftest.dSYM
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933 conftest$ac_exeext conftest.$ac_ext
20935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20936 $as_echo "$ac_cv_func_res_send" >&6; }
20937 if test $ac_cv_func_res_send = yes; then
20940 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20941 $as_echo_n "checking for __res_send... " >&6; }
20942 if test "${ac_cv_func___res_send+set}" = set; then
20943 $as_echo_n "(cached) " >&6
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20953 #define __res_send innocuous___res_send
20955 /* System header to define __stub macros and hopefully few prototypes,
20956 which can conflict with char __res_send (); below.
20957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20958 <limits.h> exists even on freestanding compilers. */
20961 # include <limits.h>
20963 # include <assert.h>
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20974 char __res_send ();
20975 /* The GNU C library defines this for functions which it implements
20976 to always fail with ENOSYS. Some functions are actually named
20977 something starting with __ and the normal name is an alias. */
20978 #if defined __stub___res_send || defined __stub_____res_send
20985 return __res_send ();
20990 rm -f conftest.$ac_objext conftest$ac_exeext
20991 if { (ac_try="$ac_link"
20992 case "(($ac_try" in
20993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20994 *) ac_try_echo
=$ac_try;;
20996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20997 $as_echo "$ac_try_echo") >&5
20998 (eval "$ac_link") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1
>conftest.err
21002 cat conftest.err
>&5
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest
$ac_exeext && {
21008 test "$cross_compiling" = yes ||
21009 $as_test_x conftest
$ac_exeext
21011 ac_cv_func___res_send
=yes
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.
$ac_ext >&5
21016 ac_cv_func___res_send
=no
21019 rm -rf conftest.dSYM
21020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21021 conftest
$ac_exeext conftest.
$ac_ext
21023 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21024 $as_echo "$ac_cv_func___res_send" >&6; }
21025 if test $ac_cv_func___res_send = yes; then
21028 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21029 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21030 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21031 $as_echo_n "(cached) " >&6
21033 ac_check_lib_save_LIBS
=$LIBS
21034 LIBS
="-lresolv $LIBS"
21035 cat >conftest.
$ac_ext <<_ACEOF
21038 cat confdefs.h
>>conftest.
$ac_ext
21039 cat >>conftest.
$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21052 return res_send ();
21057 rm -f conftest.
$ac_objext conftest
$ac_exeext
21058 if { (ac_try
="$ac_link"
21059 case "(($ac_try" in
21060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_link") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest$ac_exeext && {
21075 test "$cross_compiling" = yes ||
21076 $as_test_x conftest$ac_exeext
21078 ac_cv_lib_resolv_res_send=yes
21080 $as_echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_cv_lib_resolv_res_send=no
21086 rm -rf conftest.dSYM
21087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21088 conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21092 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21093 if test $ac_cv_lib_resolv_res_send = yes; then
21096 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21097 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21098 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21099 $as_echo_n "(cached) " >&6
21101 ac_check_lib_save_LIBS=$LIBS
21102 LIBS="-lresolv $LIBS"
21103 cat >conftest.$ac_ext <<_ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21110 /* Override any GCC internal prototype to avoid an error.
21111 Use char because int might match the return type of a GCC
21112 builtin and then its argument prototype would still apply. */
21116 char __res_send ();
21120 return __res_send ();
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21129 *) ac_try_echo
=$ac_try;;
21131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1
>conftest.err
21137 cat conftest.err
>&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest
$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest
$ac_exeext
21146 ac_cv_lib_resolv___res_send
=yes
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.
$ac_ext >&5
21151 ac_cv_lib_resolv___res_send
=no
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21156 conftest
$ac_exeext conftest.
$ac_ext
21157 LIBS
=$ac_check_lib_save_LIBS
21159 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21160 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21161 if test $ac_cv_lib_resolv___res_send = yes; then
21171 if test "$resolv" = yes ; then
21176 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21177 $as_echo_n "checking for hes_getmailhost... " >&6; }
21178 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21179 $as_echo_n "(cached) " >&6
21181 cat >conftest.
$ac_ext <<_ACEOF
21184 cat confdefs.h
>>conftest.
$ac_ext
21185 cat >>conftest.
$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define hes_getmailhost innocuous_hes_getmailhost
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char hes_getmailhost (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21197 # include <limits.h>
21199 # include <assert.h>
21202 #undef hes_getmailhost
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21210 char hes_getmailhost ();
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21221 return hes_getmailhost ();
21226 rm -f conftest.
$ac_objext conftest
$ac_exeext
21227 if { (ac_try
="$ac_link"
21228 case "(($ac_try" in
21229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21233 $as_echo "$ac_try_echo") >&5
21234 (eval "$ac_link") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest$ac_exeext && {
21244 test "$cross_compiling" = yes ||
21245 $as_test_x conftest$ac_exeext
21247 ac_cv_func_hes_getmailhost=yes
21249 $as_echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_func_hes_getmailhost=no
21255 rm -rf conftest.dSYM
21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21257 conftest$ac_exeext conftest.$ac_ext
21259 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21260 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21261 if test $ac_cv_func_hes_getmailhost = yes; then
21264 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21265 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21266 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21267 $as_echo_n "(cached) " >&6
21269 ac_check_lib_save_LIBS=$LIBS
21270 LIBS="-lhesiod $RESOLVLIB $LIBS"
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21278 /* Override any GCC internal prototype to avoid an error.
21279 Use char because int might match the return type of a GCC
21280 builtin and then its argument prototype would still apply. */
21284 char hes_getmailhost ();
21288 return hes_getmailhost ();
21293 rm -f conftest.$ac_objext conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21297 *) ac_try_echo
=$ac_try;;
21299 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21300 $as_echo "$ac_try_echo") >&5
21301 (eval "$ac_link") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1
>conftest.err
21305 cat conftest.err
>&5
21306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest
$ac_exeext && {
21311 test "$cross_compiling" = yes ||
21312 $as_test_x conftest
$ac_exeext
21314 ac_cv_lib_hesiod_hes_getmailhost
=yes
21316 $as_echo "$as_me: failed program was:" >&5
21317 sed 's/^/| /' conftest.
$ac_ext >&5
21319 ac_cv_lib_hesiod_hes_getmailhost
=no
21322 rm -rf conftest.dSYM
21323 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21324 conftest
$ac_exeext conftest.
$ac_ext
21325 LIBS
=$ac_check_lib_save_LIBS
21327 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21328 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21331 cat >>confdefs.h
<<\_ACEOF
21332 #define HAVE_LIBHESIOD 1
21343 # Do we need libresolv (due to res_init or Hesiod)?
21344 if test "$resolv" = yes ; then
21346 cat >>confdefs.h
<<\_ACEOF
21347 #define HAVE_LIBRESOLV 1
21352 # These tell us which Kerberos-related libraries to use.
21353 if test "${with_kerberos}" != no
; then
21355 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21356 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21357 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21358 $as_echo_n "(cached) " >&6
21360 ac_check_lib_save_LIBS
=$LIBS
21361 LIBS
="-lcom_err $LIBS"
21362 cat >conftest.
$ac_ext <<_ACEOF
21365 cat confdefs.h
>>conftest.
$ac_ext
21366 cat >>conftest.
$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21369 /* Override any GCC internal prototype to avoid an error.
21370 Use char because int might match the return type of a GCC
21371 builtin and then its argument prototype would still apply. */
21384 rm -f conftest.
$ac_objext conftest
$ac_exeext
21385 if { (ac_try
="$ac_link"
21386 case "(($ac_try" in
21387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21391 $as_echo "$ac_try_echo") >&5
21392 (eval "$ac_link") 2>conftest.er1
21394 grep -v '^ *+' conftest.er1 >conftest.err
21396 cat conftest.err >&5
21397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext && {
21402 test "$cross_compiling" = yes ||
21403 $as_test_x conftest$ac_exeext
21405 ac_cv_lib_com_err_com_err=yes
21407 $as_echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ac_cv_lib_com_err_com_err=no
21413 rm -rf conftest.dSYM
21414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21415 conftest$ac_exeext conftest.$ac_ext
21416 LIBS=$ac_check_lib_save_LIBS
21418 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21419 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21420 if test $ac_cv_lib_com_err_com_err = yes; then
21421 cat >>confdefs.h <<_ACEOF
21422 #define HAVE_LIBCOM_ERR 1
21425 LIBS="-lcom_err $LIBS"
21430 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21431 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21433 $as_echo_n "(cached) " >&6
21435 ac_check_lib_save_LIBS=$LIBS
21436 LIBS="-lk5crypto $LIBS"
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21444 /* Override any GCC internal prototype to avoid an error.
21445 Use char because int might match the return type of a GCC
21446 builtin and then its argument prototype would still apply. */
21450 char mit_des_cbc_encrypt ();
21454 return mit_des_cbc_encrypt ();
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (ac_try="$ac_link"
21461 case "(($ac_try" in
21462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21463 *) ac_try_echo
=$ac_try;;
21465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21466 $as_echo "$ac_try_echo") >&5
21467 (eval "$ac_link") 2>conftest.er1
21469 grep -v '^ *+' conftest.er1
>conftest.err
21471 cat conftest.err
>&5
21472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest
$ac_exeext && {
21477 test "$cross_compiling" = yes ||
21478 $as_test_x conftest
$ac_exeext
21480 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21482 $as_echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.
$ac_ext >&5
21485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21488 rm -rf conftest.dSYM
21489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21490 conftest
$ac_exeext conftest.
$ac_ext
21491 LIBS
=$ac_check_lib_save_LIBS
21493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21494 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21495 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21496 cat >>confdefs.h
<<_ACEOF
21497 #define HAVE_LIBK5CRYPTO 1
21500 LIBS
="-lk5crypto $LIBS"
21505 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21506 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21507 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21508 $as_echo_n "(cached) " >&6
21510 ac_check_lib_save_LIBS
=$LIBS
21511 LIBS
="-lcrypto $LIBS"
21512 cat >conftest.
$ac_ext <<_ACEOF
21515 cat confdefs.h
>>conftest.
$ac_ext
21516 cat >>conftest.
$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21519 /* Override any GCC internal prototype to avoid an error.
21520 Use char because int might match the return type of a GCC
21521 builtin and then its argument prototype would still apply. */
21525 char mit_des_cbc_encrypt ();
21529 return mit_des_cbc_encrypt ();
21534 rm -f conftest.
$ac_objext conftest
$ac_exeext
21535 if { (ac_try
="$ac_link"
21536 case "(($ac_try" in
21537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21538 *) ac_try_echo=$ac_try;;
21540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21541 $as_echo "$ac_try_echo") >&5
21542 (eval "$ac_link") 2>conftest.er1
21544 grep -v '^ *+' conftest.er1 >conftest.err
21546 cat conftest.err >&5
21547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest$ac_exeext && {
21552 test "$cross_compiling" = yes ||
21553 $as_test_x conftest$ac_exeext
21555 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21557 $as_echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21563 rm -rf conftest.dSYM
21564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21565 conftest$ac_exeext conftest.$ac_ext
21566 LIBS=$ac_check_lib_save_LIBS
21568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21569 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21570 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21571 cat >>confdefs.h <<_ACEOF
21572 #define HAVE_LIBCRYPTO 1
21575 LIBS="-lcrypto $LIBS"
21580 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21581 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21582 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21585 ac_check_lib_save_LIBS=$LIBS
21586 LIBS="-lkrb5 $LIBS"
21587 cat >conftest.$ac_ext <<_ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 /* Override any GCC internal prototype to avoid an error.
21595 Use char because int might match the return type of a GCC
21596 builtin and then its argument prototype would still apply. */
21600 char krb5_init_context ();
21604 return krb5_init_context ();
21609 rm -f conftest.$ac_objext conftest$ac_exeext
21610 if { (ac_try="$ac_link"
21611 case "(($ac_try" in
21612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21613 *) ac_try_echo
=$ac_try;;
21615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21616 $as_echo "$ac_try_echo") >&5
21617 (eval "$ac_link") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1
>conftest.err
21621 cat conftest.err
>&5
21622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } && {
21624 test -z "$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21626 } && test -s conftest
$ac_exeext && {
21627 test "$cross_compiling" = yes ||
21628 $as_test_x conftest
$ac_exeext
21630 ac_cv_lib_krb5_krb5_init_context
=yes
21632 $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.
$ac_ext >&5
21635 ac_cv_lib_krb5_krb5_init_context
=no
21638 rm -rf conftest.dSYM
21639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21640 conftest
$ac_exeext conftest.
$ac_ext
21641 LIBS
=$ac_check_lib_save_LIBS
21643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21644 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21645 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21646 cat >>confdefs.h
<<_ACEOF
21647 #define HAVE_LIBKRB5 1
21650 LIBS
="-lkrb5 $LIBS"
21654 if test "${with_kerberos5}" = no
; then
21656 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21657 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21658 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21659 $as_echo_n "(cached) " >&6
21661 ac_check_lib_save_LIBS
=$LIBS
21662 LIBS
="-ldes425 $LIBS"
21663 cat >conftest.
$ac_ext <<_ACEOF
21666 cat confdefs.h
>>conftest.
$ac_ext
21667 cat >>conftest.
$ac_ext <<_ACEOF
21668 /* end confdefs.h. */
21670 /* Override any GCC internal prototype to avoid an error.
21671 Use char because int might match the return type of a GCC
21672 builtin and then its argument prototype would still apply. */
21676 char des_cbc_encrypt ();
21680 return des_cbc_encrypt ();
21685 rm -f conftest.
$ac_objext conftest
$ac_exeext
21686 if { (ac_try
="$ac_link"
21687 case "(($ac_try" in
21688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_link") 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest$ac_exeext && {
21703 test "$cross_compiling" = yes ||
21704 $as_test_x conftest$ac_exeext
21706 ac_cv_lib_des425_des_cbc_encrypt=yes
21708 $as_echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_cv_lib_des425_des_cbc_encrypt=no
21714 rm -rf conftest.dSYM
21715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21716 conftest$ac_exeext conftest.$ac_ext
21717 LIBS=$ac_check_lib_save_LIBS
21719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21720 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21721 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_LIBDES425 1
21726 LIBS="-ldes425 $LIBS"
21730 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21731 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21732 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21733 $as_echo_n "(cached) " >&6
21735 ac_check_lib_save_LIBS=$LIBS
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21744 /* Override any GCC internal prototype to avoid an error.
21745 Use char because int might match the return type of a GCC
21746 builtin and then its argument prototype would still apply. */
21750 char des_cbc_encrypt ();
21754 return des_cbc_encrypt ();
21759 rm -f conftest.$ac_objext conftest$ac_exeext
21760 if { (ac_try="$ac_link"
21761 case "(($ac_try" in
21762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21763 *) ac_try_echo
=$ac_try;;
21765 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767 (eval "$ac_link") 2>conftest.er1
21769 grep -v '^ *+' conftest.er1
>conftest.err
21771 cat conftest.err
>&5
21772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } && {
21774 test -z "$ac_c_werror_flag" ||
21775 test ! -s conftest.err
21776 } && test -s conftest
$ac_exeext && {
21777 test "$cross_compiling" = yes ||
21778 $as_test_x conftest
$ac_exeext
21780 ac_cv_lib_des_des_cbc_encrypt
=yes
21782 $as_echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.
$ac_ext >&5
21785 ac_cv_lib_des_des_cbc_encrypt
=no
21788 rm -rf conftest.dSYM
21789 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21790 conftest
$ac_exeext conftest.
$ac_ext
21791 LIBS
=$ac_check_lib_save_LIBS
21793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21794 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21795 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21796 cat >>confdefs.h
<<_ACEOF
21797 #define HAVE_LIBDES 1
21807 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21808 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21809 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21810 $as_echo_n "(cached) " >&6
21812 ac_check_lib_save_LIBS
=$LIBS
21813 LIBS
="-lkrb4 $LIBS"
21814 cat >conftest.
$ac_ext <<_ACEOF
21817 cat confdefs.h
>>conftest.
$ac_ext
21818 cat >>conftest.
$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21821 /* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21827 char krb_get_cred ();
21831 return krb_get_cred ();
21836 rm -f conftest.
$ac_objext conftest
$ac_exeext
21837 if { (ac_try
="$ac_link"
21838 case "(($ac_try" in
21839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21843 $as_echo "$ac_try_echo") >&5
21844 (eval "$ac_link") 2>conftest.er1
21846 grep -v '^ *+' conftest.er1 >conftest.err
21848 cat conftest.err >&5
21849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); } && {
21851 test -z "$ac_c_werror_flag" ||
21852 test ! -s conftest.err
21853 } && test -s conftest$ac_exeext && {
21854 test "$cross_compiling" = yes ||
21855 $as_test_x conftest$ac_exeext
21857 ac_cv_lib_krb4_krb_get_cred=yes
21859 $as_echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_cv_lib_krb4_krb_get_cred=no
21865 rm -rf conftest.dSYM
21866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21867 conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21871 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21872 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21873 cat >>confdefs.h <<_ACEOF
21874 #define HAVE_LIBKRB4 1
21877 LIBS="-lkrb4 $LIBS"
21881 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21882 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21883 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21884 $as_echo_n "(cached) " >&6
21886 ac_check_lib_save_LIBS=$LIBS
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21895 /* Override any GCC internal prototype to avoid an error.
21896 Use char because int might match the return type of a GCC
21897 builtin and then its argument prototype would still apply. */
21901 char krb_get_cred ();
21905 return krb_get_cred ();
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (ac_try="$ac_link"
21912 case "(($ac_try" in
21913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21914 *) ac_try_echo
=$ac_try;;
21916 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21917 $as_echo "$ac_try_echo") >&5
21918 (eval "$ac_link") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1
>conftest.err
21922 cat conftest.err
>&5
21923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } && {
21925 test -z "$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21927 } && test -s conftest
$ac_exeext && {
21928 test "$cross_compiling" = yes ||
21929 $as_test_x conftest
$ac_exeext
21931 ac_cv_lib_krb_krb_get_cred
=yes
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.
$ac_ext >&5
21936 ac_cv_lib_krb_krb_get_cred
=no
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21941 conftest
$ac_exeext conftest.
$ac_ext
21942 LIBS
=$ac_check_lib_save_LIBS
21944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21945 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21946 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21947 cat >>confdefs.h
<<_ACEOF
21948 #define HAVE_LIBKRB 1
21959 if test "${with_kerberos5}" != no
; then
21961 for ac_header
in krb5.h
21963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 $as_echo_n "checking for $ac_header... " >&6; }
21967 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21968 $as_echo_n "(cached) " >&6
21970 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21971 $as_echo "$as_val"'`
21972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21973 $as_echo "$ac_res" >&6; }
21975 # Is the header compilable?
21976 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21977 $as_echo_n "checking $ac_header usability... " >&6; }
21978 cat >conftest.
$ac_ext <<_ACEOF
21981 cat confdefs.h
>>conftest.
$ac_ext
21982 cat >>conftest.
$ac_ext <<_ACEOF
21983 /* end confdefs.h. */
21984 $ac_includes_default
21985 #include <$ac_header>
21987 rm -f conftest.
$ac_objext
21988 if { (ac_try
="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21994 $as_echo "$ac_try_echo") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 ac_header_compiler=yes
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_header_compiler=no
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22015 $as_echo "$ac_header_compiler" >&6; }
22017 # Is the header present?
22018 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22019 $as_echo_n "checking $ac_header presence... " >&6; }
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <$ac_header>
22028 if { (ac_try="$ac_cpp conftest.$ac_ext"
22029 case "(($ac_try" in
22030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22031 *) ac_try_echo
=$ac_try;;
22033 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1
>conftest.err
22039 cat conftest.err
>&5
22040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); } >/dev
/null
&& {
22042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22045 ac_header_preproc
=yes
22047 $as_echo "$as_me: failed program was:" >&5
22048 sed 's/^/| /' conftest.
$ac_ext >&5
22050 ac_header_preproc
=no
22053 rm -f conftest.err conftest.
$ac_ext
22054 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22055 $as_echo "$ac_header_preproc" >&6; }
22057 # So? What about this header?
22058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22061 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22064 ac_header_preproc
=yes
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22078 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22083 $as_echo_n "checking for $ac_header... " >&6; }
22084 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22085 $as_echo_n "(cached) " >&6
22087 eval "$as_ac_Header=\$ac_header_preproc"
22089 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22090 $as_echo "$as_val"'`
22091 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22092 $as_echo "$ac_res" >&6; }
22095 if test `eval 'as_val=${'$as_ac_Header'}
22096 $as_echo "$as_val"'` = yes; then
22097 cat >>confdefs.h
<<_ACEOF
22098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22100 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22101 $as_echo_n "checking for krb5_error.text... " >&6; }
22102 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22103 $as_echo_n "(cached) " >&6
22105 cat >conftest.
$ac_ext <<_ACEOF
22108 cat confdefs.h
>>conftest.
$ac_ext
22109 cat >>conftest.
$ac_ext <<_ACEOF
22110 /* end confdefs.h. */
22116 static krb5_error ac_aggr;
22123 rm -f conftest.
$ac_objext
22124 if { (ac_try
="$ac_compile"
22125 case "(($ac_try" in
22126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22127 *) ac_try_echo=$ac_try;;
22129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22130 $as_echo "$ac_try_echo") >&5
22131 (eval "$ac_compile") 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest.$ac_objext; then
22141 ac_cv_member_krb5_error_text=yes
22143 $as_echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 cat >conftest.$ac_ext <<_ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22157 static krb5_error ac_aggr;
22158 if (sizeof ac_aggr.text)
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22168 *) ac_try_echo
=$ac_try;;
22170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22171 $as_echo "$ac_try_echo") >&5
22172 (eval "$ac_compile") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1
>conftest.err
22176 cat conftest.err
>&5
22177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } && {
22179 test -z "$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22181 } && test -s conftest.
$ac_objext; then
22182 ac_cv_member_krb5_error_text
=yes
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.
$ac_ext >&5
22187 ac_cv_member_krb5_error_text
=no
22190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22196 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22197 if test $ac_cv_member_krb5_error_text = yes; then
22199 cat >>confdefs.h
<<_ACEOF
22200 #define HAVE_KRB5_ERROR_TEXT 1
22205 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22206 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22207 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22208 $as_echo_n "(cached) " >&6
22210 cat >conftest.
$ac_ext <<_ACEOF
22213 cat confdefs.h
>>conftest.
$ac_ext
22214 cat >>conftest.
$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22221 static krb5_error ac_aggr;
22222 if (ac_aggr.e_text)
22228 rm -f conftest.
$ac_objext
22229 if { (ac_try
="$ac_compile"
22230 case "(($ac_try" in
22231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22232 *) ac_try_echo=$ac_try;;
22234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22235 $as_echo "$ac_try_echo") >&5
22236 (eval "$ac_compile") 2>conftest.er1
22238 grep -v '^ *+' conftest.er1 >conftest.err
22240 cat conftest.err >&5
22241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } && {
22243 test -z "$ac_c_werror_flag" ||
22244 test ! -s conftest.err
22245 } && test -s conftest.$ac_objext; then
22246 ac_cv_member_krb5_error_e_text=yes
22248 $as_echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22262 static krb5_error ac_aggr;
22263 if (sizeof ac_aggr.e_text)
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22273 *) ac_try_echo
=$ac_try;;
22275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1
>conftest.err
22281 cat conftest.err
>&5
22282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.
$ac_objext; then
22287 ac_cv_member_krb5_error_e_text
=yes
22289 $as_echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.
$ac_ext >&5
22292 ac_cv_member_krb5_error_e_text
=no
22295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22300 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22301 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22302 if test $ac_cv_member_krb5_error_e_text = yes; then
22304 cat >>confdefs.h
<<_ACEOF
22305 #define HAVE_KRB5_ERROR_E_TEXT 1
22317 for ac_header
in des.h
22319 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22320 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22322 $as_echo_n "checking for $ac_header... " >&6; }
22323 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22324 $as_echo_n "(cached) " >&6
22326 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22327 $as_echo "$as_val"'`
22328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22329 $as_echo "$ac_res" >&6; }
22331 # Is the header compilable?
22332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22333 $as_echo_n "checking $ac_header usability... " >&6; }
22334 cat >conftest.
$ac_ext <<_ACEOF
22337 cat confdefs.h
>>conftest.
$ac_ext
22338 cat >>conftest.
$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22341 #include <$ac_header>
22343 rm -f conftest.
$ac_objext
22344 if { (ac_try
="$ac_compile"
22345 case "(($ac_try" in
22346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22350 $as_echo "$ac_try_echo") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest.$ac_objext; then
22361 ac_header_compiler=yes
22363 $as_echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_header_compiler=no
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22371 $as_echo "$ac_header_compiler" >&6; }
22373 # Is the header present?
22374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22375 $as_echo_n "checking $ac_header presence... " >&6; }
22376 cat >conftest.$ac_ext <<_ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include <$ac_header>
22384 if { (ac_try="$ac_cpp conftest.$ac_ext"
22385 case "(($ac_try" in
22386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22387 *) ac_try_echo
=$ac_try;;
22389 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22390 $as_echo "$ac_try_echo") >&5
22391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22393 grep -v '^ *+' conftest.er1
>conftest.err
22395 cat conftest.err
>&5
22396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); } >/dev
/null
&& {
22398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22399 test ! -s conftest.err
22401 ac_header_preproc
=yes
22403 $as_echo "$as_me: failed program was:" >&5
22404 sed 's/^/| /' conftest.
$ac_ext >&5
22406 ac_header_preproc
=no
22409 rm -f conftest.err conftest.
$ac_ext
22410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22411 $as_echo "$ac_header_preproc" >&6; }
22413 # So? What about this header?
22414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22420 ac_header_preproc
=yes
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22439 $as_echo_n "checking for $ac_header... " >&6; }
22440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22441 $as_echo_n "(cached) " >&6
22443 eval "$as_ac_Header=\$ac_header_preproc"
22445 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22446 $as_echo "$as_val"'`
22447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22448 $as_echo "$ac_res" >&6; }
22451 if test `eval 'as_val=${'$as_ac_Header'}
22452 $as_echo "$as_val"'` = yes; then
22453 cat >>confdefs.h
<<_ACEOF
22454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22459 for ac_header
in kerberosIV
/des.h
22461 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22462 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22464 $as_echo_n "checking for $ac_header... " >&6; }
22465 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22466 $as_echo_n "(cached) " >&6
22468 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22469 $as_echo "$as_val"'`
22470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22471 $as_echo "$ac_res" >&6; }
22473 # Is the header compilable?
22474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22475 $as_echo_n "checking $ac_header usability... " >&6; }
22476 cat >conftest.
$ac_ext <<_ACEOF
22479 cat confdefs.h
>>conftest.
$ac_ext
22480 cat >>conftest.
$ac_ext <<_ACEOF
22481 /* end confdefs.h. */
22482 $ac_includes_default
22483 #include <$ac_header>
22485 rm -f conftest.
$ac_objext
22486 if { (ac_try
="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493 (eval "$ac_compile") 2>conftest.er1
22495 grep -v '^ *+' conftest.er1 >conftest.err
22497 cat conftest.err >&5
22498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } && {
22500 test -z "$ac_c_werror_flag" ||
22501 test ! -s conftest.err
22502 } && test -s conftest.$ac_objext; then
22503 ac_header_compiler=yes
22505 $as_echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22508 ac_header_compiler=no
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22513 $as_echo "$ac_header_compiler" >&6; }
22515 # Is the header present?
22516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22517 $as_echo_n "checking $ac_header presence... " >&6; }
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <$ac_header>
22526 if { (ac_try="$ac_cpp conftest.$ac_ext"
22527 case "(($ac_try" in
22528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22529 *) ac_try_echo
=$ac_try;;
22531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22532 $as_echo "$ac_try_echo") >&5
22533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22535 grep -v '^ *+' conftest.er1
>conftest.err
22537 cat conftest.err
>&5
22538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } >/dev
/null
&& {
22540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22541 test ! -s conftest.err
22543 ac_header_preproc
=yes
22545 $as_echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.
$ac_ext >&5
22548 ac_header_preproc
=no
22551 rm -f conftest.err conftest.
$ac_ext
22552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22553 $as_echo "$ac_header_preproc" >&6; }
22555 # So? What about this header?
22556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22562 ac_header_preproc
=yes
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22572 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22581 $as_echo_n "checking for $ac_header... " >&6; }
22582 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22583 $as_echo_n "(cached) " >&6
22585 eval "$as_ac_Header=\$ac_header_preproc"
22587 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22588 $as_echo "$as_val"'`
22589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22590 $as_echo "$ac_res" >&6; }
22593 if test `eval 'as_val=${'$as_ac_Header'}
22594 $as_echo "$as_val"'` = yes; then
22595 cat >>confdefs.h
<<_ACEOF
22596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22601 for ac_header
in kerberos
/des.h
22603 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22604 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22605 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22606 $as_echo_n "checking for $ac_header... " >&6; }
22607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22608 $as_echo_n "(cached) " >&6
22610 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22611 $as_echo "$as_val"'`
22612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22613 $as_echo "$ac_res" >&6; }
22615 # Is the header compilable?
22616 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22617 $as_echo_n "checking $ac_header usability... " >&6; }
22618 cat >conftest.
$ac_ext <<_ACEOF
22621 cat confdefs.h
>>conftest.
$ac_ext
22622 cat >>conftest.
$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 #include <$ac_header>
22627 rm -f conftest.
$ac_objext
22628 if { (ac_try
="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22634 $as_echo "$ac_try_echo") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22645 ac_header_compiler=yes
22647 $as_echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22650 ac_header_compiler=no
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22655 $as_echo "$ac_header_compiler" >&6; }
22657 # Is the header present?
22658 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22659 $as_echo_n "checking $ac_header presence... " >&6; }
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 #include <$ac_header>
22668 if { (ac_try="$ac_cpp conftest.$ac_ext"
22669 case "(($ac_try" in
22670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22671 *) ac_try_echo
=$ac_try;;
22673 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22674 $as_echo "$ac_try_echo") >&5
22675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1
>conftest.err
22679 cat conftest.err
>&5
22680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } >/dev
/null
&& {
22682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22685 ac_header_preproc
=yes
22687 $as_echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.
$ac_ext >&5
22690 ac_header_preproc
=no
22693 rm -f conftest.err conftest.
$ac_ext
22694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22695 $as_echo "$ac_header_preproc" >&6; }
22697 # So? What about this header?
22698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22701 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22704 ac_header_preproc
=yes
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22712 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22714 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22716 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22718 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22723 $as_echo_n "checking for $ac_header... " >&6; }
22724 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22725 $as_echo_n "(cached) " >&6
22727 eval "$as_ac_Header=\$ac_header_preproc"
22729 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22730 $as_echo "$as_val"'`
22731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22732 $as_echo "$ac_res" >&6; }
22735 if test `eval 'as_val=${'$as_ac_Header'}
22736 $as_echo "$as_val"'` = yes; then
22737 cat >>confdefs.h
<<_ACEOF
22738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22754 for ac_header
in krb.h
22756 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22759 $as_echo_n "checking for $ac_header... " >&6; }
22760 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22761 $as_echo_n "(cached) " >&6
22763 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22764 $as_echo "$as_val"'`
22765 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22766 $as_echo "$ac_res" >&6; }
22768 # Is the header compilable?
22769 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22770 $as_echo_n "checking $ac_header usability... " >&6; }
22771 cat >conftest.
$ac_ext <<_ACEOF
22774 cat confdefs.h
>>conftest.
$ac_ext
22775 cat >>conftest.
$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 #include <$ac_header>
22780 rm -f conftest.
$ac_objext
22781 if { (ac_try
="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22787 $as_echo "$ac_try_echo") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22800 $as_echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_compiler=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22808 $as_echo "$ac_header_compiler" >&6; }
22810 # Is the header present?
22811 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22812 $as_echo_n "checking $ac_header presence... " >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <$ac_header>
22821 if { (ac_try="$ac_cpp conftest.$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22824 *) ac_try_echo
=$ac_try;;
22826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1
>conftest.err
22832 cat conftest.err
>&5
22833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } >/dev
/null
&& {
22835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22838 ac_header_preproc
=yes
22840 $as_echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.
$ac_ext >&5
22843 ac_header_preproc
=no
22846 rm -f conftest.err conftest.
$ac_ext
22847 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22848 $as_echo "$ac_header_preproc" >&6; }
22850 # So? What about this header?
22851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22854 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22856 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22857 ac_header_preproc
=yes
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22865 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22867 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22869 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22871 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22875 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22876 $as_echo_n "checking for $ac_header... " >&6; }
22877 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22878 $as_echo_n "(cached) " >&6
22880 eval "$as_ac_Header=\$ac_header_preproc"
22882 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22883 $as_echo "$as_val"'`
22884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22885 $as_echo "$ac_res" >&6; }
22888 if test `eval 'as_val=${'$as_ac_Header'}
22889 $as_echo "$as_val"'` = yes; then
22890 cat >>confdefs.h
<<_ACEOF
22891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22896 for ac_header
in kerberosIV
/krb.h
22898 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22899 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22901 $as_echo_n "checking for $ac_header... " >&6; }
22902 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22903 $as_echo_n "(cached) " >&6
22905 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22906 $as_echo "$as_val"'`
22907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22908 $as_echo "$ac_res" >&6; }
22910 # Is the header compilable?
22911 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22912 $as_echo_n "checking $ac_header usability... " >&6; }
22913 cat >conftest.
$ac_ext <<_ACEOF
22916 cat confdefs.h
>>conftest.
$ac_ext
22917 cat >>conftest.
$ac_ext <<_ACEOF
22918 /* end confdefs.h. */
22919 $ac_includes_default
22920 #include <$ac_header>
22922 rm -f conftest.
$ac_objext
22923 if { (ac_try
="$ac_compile"
22924 case "(($ac_try" in
22925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22929 $as_echo "$ac_try_echo") >&5
22930 (eval "$ac_compile") 2>conftest.er1
22932 grep -v '^ *+' conftest.er1 >conftest.err
22934 cat conftest.err >&5
22935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } && {
22937 test -z "$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 } && test -s conftest.$ac_objext; then
22940 ac_header_compiler=yes
22942 $as_echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22945 ac_header_compiler=no
22948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22950 $as_echo "$ac_header_compiler" >&6; }
22952 # Is the header present?
22953 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22954 $as_echo_n "checking $ac_header presence... " >&6; }
22955 cat >conftest.$ac_ext <<_ACEOF
22958 cat confdefs.h >>conftest.$ac_ext
22959 cat >>conftest.$ac_ext <<_ACEOF
22960 /* end confdefs.h. */
22961 #include <$ac_header>
22963 if { (ac_try="$ac_cpp conftest.$ac_ext"
22964 case "(($ac_try" in
22965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22966 *) ac_try_echo
=$ac_try;;
22968 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22972 grep -v '^ *+' conftest.er1
>conftest.err
22974 cat conftest.err
>&5
22975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } >/dev
/null
&& {
22977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22980 ac_header_preproc
=yes
22982 $as_echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.
$ac_ext >&5
22985 ac_header_preproc
=no
22988 rm -f conftest.err conftest.
$ac_ext
22989 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990 $as_echo "$ac_header_preproc" >&6; }
22992 # So? What about this header?
22993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22996 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22998 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22999 ac_header_preproc
=yes
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23007 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23009 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23013 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23017 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23018 $as_echo_n "checking for $ac_header... " >&6; }
23019 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23020 $as_echo_n "(cached) " >&6
23022 eval "$as_ac_Header=\$ac_header_preproc"
23024 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23025 $as_echo "$as_val"'`
23026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23027 $as_echo "$ac_res" >&6; }
23030 if test `eval 'as_val=${'$as_ac_Header'}
23031 $as_echo "$as_val"'` = yes; then
23032 cat >>confdefs.h
<<_ACEOF
23033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23038 for ac_header
in kerberos
/krb.h
23040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23041 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23043 $as_echo_n "checking for $ac_header... " >&6; }
23044 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23045 $as_echo_n "(cached) " >&6
23047 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23048 $as_echo "$as_val"'`
23049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23050 $as_echo "$ac_res" >&6; }
23052 # Is the header compilable?
23053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23054 $as_echo_n "checking $ac_header usability... " >&6; }
23055 cat >conftest.
$ac_ext <<_ACEOF
23058 cat confdefs.h
>>conftest.
$ac_ext
23059 cat >>conftest.
$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <$ac_header>
23064 rm -f conftest.
$ac_objext
23065 if { (ac_try
="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23071 $as_echo "$ac_try_echo") >&5
23072 (eval "$ac_compile") 2>conftest.er1
23074 grep -v '^ *+' conftest.er1 >conftest.err
23076 cat conftest.err >&5
23077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078 (exit $ac_status); } && {
23079 test -z "$ac_c_werror_flag" ||
23080 test ! -s conftest.err
23081 } && test -s conftest.$ac_objext; then
23082 ac_header_compiler=yes
23084 $as_echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 ac_header_compiler=no
23090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23092 $as_echo "$ac_header_compiler" >&6; }
23094 # Is the header present?
23095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23096 $as_echo_n "checking $ac_header presence... " >&6; }
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 #include <$ac_header>
23105 if { (ac_try="$ac_cpp conftest.$ac_ext"
23106 case "(($ac_try" in
23107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23108 *) ac_try_echo
=$ac_try;;
23110 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1
>conftest.err
23116 cat conftest.err
>&5
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } >/dev
/null
&& {
23119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23122 ac_header_preproc
=yes
23124 $as_echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.
$ac_ext >&5
23127 ac_header_preproc
=no
23130 rm -f conftest.err conftest.
$ac_ext
23131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23132 $as_echo "$ac_header_preproc" >&6; }
23134 # So? What about this header?
23135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23141 ac_header_preproc
=yes
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23160 $as_echo_n "checking for $ac_header... " >&6; }
23161 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23162 $as_echo_n "(cached) " >&6
23164 eval "$as_ac_Header=\$ac_header_preproc"
23166 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23167 $as_echo "$as_val"'`
23168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23169 $as_echo "$ac_res" >&6; }
23172 if test `eval 'as_val=${'$as_ac_Header'}
23173 $as_echo "$as_val"'` = yes; then
23174 cat >>confdefs.h
<<_ACEOF
23175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23192 for ac_header
in com_err.h
23194 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23195 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23197 $as_echo_n "checking for $ac_header... " >&6; }
23198 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23199 $as_echo_n "(cached) " >&6
23201 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23202 $as_echo "$as_val"'`
23203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23204 $as_echo "$ac_res" >&6; }
23206 # Is the header compilable?
23207 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23208 $as_echo_n "checking $ac_header usability... " >&6; }
23209 cat >conftest.
$ac_ext <<_ACEOF
23212 cat confdefs.h
>>conftest.
$ac_ext
23213 cat >>conftest.
$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 $ac_includes_default
23216 #include <$ac_header>
23218 rm -f conftest.
$ac_objext
23219 if { (ac_try
="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_header_compiler=yes
23238 $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ac_header_compiler=no
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246 $as_echo "$ac_header_compiler" >&6; }
23248 # Is the header present?
23249 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23250 $as_echo_n "checking $ac_header presence... " >&6; }
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include <$ac_header>
23259 if { (ac_try="$ac_cpp conftest.$ac_ext"
23260 case "(($ac_try" in
23261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23262 *) ac_try_echo
=$ac_try;;
23264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23265 $as_echo "$ac_try_echo") >&5
23266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1
>conftest.err
23270 cat conftest.err
>&5
23271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev
/null
&& {
23273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23276 ac_header_preproc
=yes
23278 $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.
$ac_ext >&5
23281 ac_header_preproc
=no
23284 rm -f conftest.err conftest.
$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 $as_echo "$ac_header_preproc" >&6; }
23288 # So? What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23292 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23294 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc
=yes
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23303 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23305 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23307 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23309 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23314 $as_echo_n "checking for $ac_header... " >&6; }
23315 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23316 $as_echo_n "(cached) " >&6
23318 eval "$as_ac_Header=\$ac_header_preproc"
23320 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23321 $as_echo "$as_val"'`
23322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23323 $as_echo "$ac_res" >&6; }
23326 if test `eval 'as_val=${'$as_ac_Header'}
23327 $as_echo "$as_val"'` = yes; then
23328 cat >>confdefs.h
<<_ACEOF
23329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23338 # Solaris requires -lintl if you want strerror (which calls dgettext)
23339 # to return localized messages.
23341 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23342 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23343 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23344 $as_echo_n "(cached) " >&6
23346 ac_check_lib_save_LIBS
=$LIBS
23347 LIBS
="-lintl $LIBS"
23348 cat >conftest.
$ac_ext <<_ACEOF
23351 cat confdefs.h
>>conftest.
$ac_ext
23352 cat >>conftest.
$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23355 /* Override any GCC internal prototype to avoid an error.
23356 Use char because int might match the return type of a GCC
23357 builtin and then its argument prototype would still apply. */
23365 return dgettext ();
23370 rm -f conftest.
$ac_objext conftest
$ac_exeext
23371 if { (ac_try
="$ac_link"
23372 case "(($ac_try" in
23373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23377 $as_echo "$ac_try_echo") >&5
23378 (eval "$ac_link") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest$ac_exeext && {
23388 test "$cross_compiling" = yes ||
23389 $as_test_x conftest$ac_exeext
23391 ac_cv_lib_intl_dgettext=yes
23393 $as_echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ac_cv_lib_intl_dgettext=no
23399 rm -rf conftest.dSYM
23400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23401 conftest$ac_exeext conftest.$ac_ext
23402 LIBS=$ac_check_lib_save_LIBS
23404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23405 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23406 if test $ac_cv_lib_intl_dgettext = yes; then
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_LIBINTL 1
23411 LIBS="-lintl $LIBS"
23416 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23417 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23418 if test "${emacs_cv_localtime_cache+set}" = set; then
23419 $as_echo_n "(cached) " >&6
23421 if test x$ac_cv_func_tzset = xyes; then
23422 if test "$cross_compiling" = yes; then
23423 # If we have tzset, assume the worst when cross-compiling.
23424 emacs_cv_localtime_cache=yes
23426 cat >conftest.$ac_ext <<_ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23433 extern char **environ;
23437 for (to = from = environ; (*to = *from); from++)
23438 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23441 char TZ_GMT0[] = "TZ=GMT0";
23442 char TZ_PST8[] = "TZ=PST8";
23445 time_t now = time ((time_t *) 0);
23446 int hour_GMT0, hour_unset;
23447 if (putenv (TZ_GMT0) != 0)
23449 hour_GMT0 = localtime (&now)->tm_hour;
23451 hour_unset = localtime (&now)->tm_hour;
23452 if (putenv (TZ_PST8) != 0)
23454 if (localtime (&now)->tm_hour == hour_GMT0)
23457 if (localtime (&now)->tm_hour != hour_unset)
23462 rm -f conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23466 *) ac_try_echo
=$ac_try;;
23468 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23469 $as_echo "$ac_try_echo") >&5
23470 (eval "$ac_link") 2>&5
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23474 { (case "(($ac_try" in
23475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_try") 2>&5
23482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; }; then
23484 emacs_cv_localtime_cache=no
23486 $as_echo "$as_me: program exited with status $ac_status" >&5
23487 $as_echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23490 ( exit $ac_status )
23491 emacs_cv_localtime_cache=yes
23493 rm -rf conftest.dSYM
23494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23499 # If we lack tzset, report that localtime does not cache TZ,
23500 # since we can't invalidate the cache if we don't have tzset.
23501 emacs_cv_localtime_cache=no
23504 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23505 $as_echo "$emacs_cv_localtime_cache" >&6; }
23506 if test $emacs_cv_localtime_cache = yes; then
23508 cat >>confdefs.h <<\_ACEOF
23509 #define LOCALTIME_CACHE 1
23514 if test "x$HAVE_TIMEVAL" = xyes; then
23516 for ac_func in gettimeofday
23518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23519 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23520 $as_echo_n "checking for $ac_func... " >&6; }
23521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23522 $as_echo_n "(cached) " >&6
23524 cat >conftest.$ac_ext <<_ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h. */
23530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23532 #define $ac_func innocuous_$ac_func
23534 /* System header to define __stub macros and hopefully few prototypes,
23535 which can conflict with char $ac_func (); below.
23536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23537 <limits.h> exists even on freestanding compilers. */
23540 # include <limits.h>
23542 # include <assert.h>
23547 /* Override any GCC internal prototype to avoid an error.
23548 Use char because int might match the return type of a GCC
23549 builtin and then its argument prototype would still apply. */
23554 /* The GNU C library defines this for functions which it implements
23555 to always fail with ENOSYS. Some functions are actually named
23556 something starting with __ and the normal name is an alias. */
23557 #if defined __stub_$ac_func || defined __stub___$ac_func
23564 return $ac_func ();
23569 rm -f conftest.$ac_objext conftest$ac_exeext
23570 if { (ac_try="$ac_link"
23571 case "(($ac_try" in
23572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23573 *) ac_try_echo
=$ac_try;;
23575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23576 $as_echo "$ac_try_echo") >&5
23577 (eval "$ac_link") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1
>conftest.err
23581 cat conftest.err
>&5
23582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest
$ac_exeext && {
23587 test "$cross_compiling" = yes ||
23588 $as_test_x conftest
$ac_exeext
23590 eval "$as_ac_var=yes"
23592 $as_echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.
$ac_ext >&5
23595 eval "$as_ac_var=no"
23598 rm -rf conftest.dSYM
23599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23600 conftest
$ac_exeext conftest.
$ac_ext
23602 ac_res
=`eval 'as_val=${'$as_ac_var'}
23603 $as_echo "$as_val"'`
23604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23605 $as_echo "$ac_res" >&6; }
23606 if test `eval 'as_val=${'$as_ac_var'}
23607 $as_echo "$as_val"'` = yes; then
23608 cat >>confdefs.h
<<_ACEOF
23609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23615 if test $ac_cv_func_gettimeofday = yes; then
23616 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23617 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23618 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23619 $as_echo_n "(cached) " >&6
23621 cat >conftest.
$ac_ext <<_ACEOF
23624 cat confdefs.h
>>conftest.
$ac_ext
23625 cat >>conftest.
$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23628 #ifdef TIME_WITH_SYS_TIME
23629 #include <sys/time.h>
23632 #ifdef HAVE_SYS_TIME_H
23633 #include <sys/time.h>
23641 struct timeval time;
23642 gettimeofday (&time, 0);
23647 rm -f conftest.
$ac_objext
23648 if { (ac_try
="$ac_compile"
23649 case "(($ac_try" in
23650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655 (eval "$ac_compile") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest.$ac_objext; then
23665 emacs_cv_gettimeofday_two_arguments=yes
23667 $as_echo "$as_me: failed program was:" >&5
23668 sed 's/^/| /' conftest.$ac_ext >&5
23670 emacs_cv_gettimeofday_two_arguments=no
23673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23676 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23677 if test $emacs_cv_gettimeofday_two_arguments = no; then
23679 cat >>confdefs.h <<\_ACEOF
23680 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23688 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23689 $as_echo_n "checking for socket... " >&6; }
23690 if test "${ac_cv_func_socket+set}" = set; then
23691 $as_echo_n "(cached) " >&6
23693 cat >conftest.$ac_ext <<_ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h. */
23699 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23701 #define socket innocuous_socket
23703 /* System header to define __stub macros and hopefully few prototypes,
23704 which can conflict with char socket (); below.
23705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23706 <limits.h> exists even on freestanding compilers. */
23709 # include <limits.h>
23711 # include <assert.h>
23716 /* Override any GCC internal prototype to avoid an error.
23717 Use char because int might match the return type of a GCC
23718 builtin and then its argument prototype would still apply. */
23723 /* The GNU C library defines this for functions which it implements
23724 to always fail with ENOSYS. Some functions are actually named
23725 something starting with __ and the normal name is an alias. */
23726 #if defined __stub_socket || defined __stub___socket
23738 rm -f conftest.$ac_objext conftest$ac_exeext
23739 if { (ac_try="$ac_link"
23740 case "(($ac_try" in
23741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23742 *) ac_try_echo
=$ac_try;;
23744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746 (eval "$ac_link") 2>conftest.er1
23748 grep -v '^ *+' conftest.er1
>conftest.err
23750 cat conftest.err
>&5
23751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } && {
23753 test -z "$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 } && test -s conftest
$ac_exeext && {
23756 test "$cross_compiling" = yes ||
23757 $as_test_x conftest
$ac_exeext
23759 ac_cv_func_socket
=yes
23761 $as_echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.
$ac_ext >&5
23764 ac_cv_func_socket
=no
23767 rm -rf conftest.dSYM
23768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23769 conftest
$ac_exeext conftest.
$ac_ext
23771 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23772 $as_echo "$ac_cv_func_socket" >&6; }
23773 if test $ac_cv_func_socket = yes; then
23779 if test $ok_so_far = yes; then
23780 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23781 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23782 $as_echo_n "checking for netinet/in.h... " >&6; }
23783 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23784 $as_echo_n "(cached) " >&6
23786 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23787 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23789 # Is the header compilable?
23790 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23791 $as_echo_n "checking netinet/in.h usability... " >&6; }
23792 cat >conftest.
$ac_ext <<_ACEOF
23795 cat confdefs.h
>>conftest.
$ac_ext
23796 cat >>conftest.
$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23799 #include <netinet/in.h>
23801 rm -f conftest.
$ac_objext
23802 if { (ac_try
="$ac_compile"
23803 case "(($ac_try" in
23804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23808 $as_echo "$ac_try_echo") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1 >conftest.err
23813 cat conftest.err >&5
23814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_header_compiler=yes
23821 $as_echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_header_compiler=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23829 $as_echo "$ac_header_compiler" >&6; }
23831 # Is the header present?
23832 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23833 $as_echo_n "checking netinet/in.h presence... " >&6; }
23834 cat >conftest.$ac_ext <<_ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 #include <netinet/in.h>
23842 if { (ac_try="$ac_cpp conftest.$ac_ext"
23843 case "(($ac_try" in
23844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23845 *) ac_try_echo
=$ac_try;;
23847 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23848 $as_echo "$ac_try_echo") >&5
23849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23851 grep -v '^ *+' conftest.er1
>conftest.err
23853 cat conftest.err
>&5
23854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } >/dev
/null
&& {
23856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23857 test ! -s conftest.err
23859 ac_header_preproc
=yes
23861 $as_echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.
$ac_ext >&5
23864 ac_header_preproc
=no
23867 rm -f conftest.err conftest.
$ac_ext
23868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23869 $as_echo "$ac_header_preproc" >&6; }
23871 # So? What about this header?
23872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23874 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23875 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23876 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23877 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23878 ac_header_preproc
=yes
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23885 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23886 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23887 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23888 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23889 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23890 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23891 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23892 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23896 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23897 $as_echo_n "checking for netinet/in.h... " >&6; }
23898 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23899 $as_echo_n "(cached) " >&6
23901 ac_cv_header_netinet_in_h
=$ac_header_preproc
23903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23904 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23907 if test $ac_cv_header_netinet_in_h = yes; then
23915 if test $ok_so_far = yes; then
23916 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23917 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23918 $as_echo_n "checking for arpa/inet.h... " >&6; }
23919 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23920 $as_echo_n "(cached) " >&6
23922 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23923 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23925 # Is the header compilable?
23926 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23927 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23928 cat >conftest.
$ac_ext <<_ACEOF
23931 cat confdefs.h
>>conftest.
$ac_ext
23932 cat >>conftest.
$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 $ac_includes_default
23935 #include <arpa/inet.h>
23937 rm -f conftest.
$ac_objext
23938 if { (ac_try
="$ac_compile"
23939 case "(($ac_try" in
23940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23941 *) ac_try_echo=$ac_try;;
23943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23944 $as_echo "$ac_try_echo") >&5
23945 (eval "$ac_compile") 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && {
23952 test -z "$ac_c_werror_flag" ||
23953 test ! -s conftest.err
23954 } && test -s conftest.$ac_objext; then
23955 ac_header_compiler=yes
23957 $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ac_header_compiler=no
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23965 $as_echo "$ac_header_compiler" >&6; }
23967 # Is the header present?
23968 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23969 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 #include <arpa/inet.h>
23978 if { (ac_try="$ac_cpp conftest.$ac_ext"
23979 case "(($ac_try" in
23980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23981 *) ac_try_echo
=$ac_try;;
23983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23984 $as_echo "$ac_try_echo") >&5
23985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23987 grep -v '^ *+' conftest.er1
>conftest.err
23989 cat conftest.err
>&5
23990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991 (exit $ac_status); } >/dev
/null
&& {
23992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23995 ac_header_preproc
=yes
23997 $as_echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.
$ac_ext >&5
24000 ac_header_preproc
=no
24003 rm -f conftest.err conftest.
$ac_ext
24004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24005 $as_echo "$ac_header_preproc" >&6; }
24007 # So? What about this header?
24008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24010 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24011 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24013 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24014 ac_header_preproc
=yes
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24021 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24022 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24023 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24024 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24025 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24026 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24027 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24028 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24032 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24033 $as_echo_n "checking for arpa/inet.h... " >&6; }
24034 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24035 $as_echo_n "(cached) " >&6
24037 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24039 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24040 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24043 if test $ac_cv_header_arpa_inet_h = yes; then
24051 if test $ok_so_far = yes; then
24053 cat >>confdefs.h
<<\_ACEOF
24054 #define HAVE_INET_SOCKETS 1
24060 for ac_header
in sys
/ioctl.h
24062 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24063 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24065 $as_echo_n "checking for $ac_header... " >&6; }
24066 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24067 $as_echo_n "(cached) " >&6
24069 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24070 $as_echo "$as_val"'`
24071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24072 $as_echo "$ac_res" >&6; }
24074 # Is the header compilable?
24075 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24076 $as_echo_n "checking $ac_header usability... " >&6; }
24077 cat >conftest.
$ac_ext <<_ACEOF
24080 cat confdefs.h
>>conftest.
$ac_ext
24081 cat >>conftest.
$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 #include <$ac_header>
24086 rm -f conftest.
$ac_objext
24087 if { (ac_try
="$ac_compile"
24088 case "(($ac_try" in
24089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24093 $as_echo "$ac_try_echo") >&5
24094 (eval "$ac_compile") 2>conftest.er1
24096 grep -v '^ *+' conftest.er1 >conftest.err
24098 cat conftest.err >&5
24099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } && {
24101 test -z "$ac_c_werror_flag" ||
24102 test ! -s conftest.err
24103 } && test -s conftest.$ac_objext; then
24104 ac_header_compiler=yes
24106 $as_echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24109 ac_header_compiler=no
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24114 $as_echo "$ac_header_compiler" >&6; }
24116 # Is the header present?
24117 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24118 $as_echo_n "checking $ac_header presence... " >&6; }
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24125 #include <$ac_header>
24127 if { (ac_try="$ac_cpp conftest.$ac_ext"
24128 case "(($ac_try" in
24129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24130 *) ac_try_echo
=$ac_try;;
24132 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24133 $as_echo "$ac_try_echo") >&5
24134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24136 grep -v '^ *+' conftest.er1
>conftest.err
24138 cat conftest.err
>&5
24139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } >/dev
/null
&& {
24141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24142 test ! -s conftest.err
24144 ac_header_preproc
=yes
24146 $as_echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.
$ac_ext >&5
24149 ac_header_preproc
=no
24152 rm -f conftest.err conftest.
$ac_ext
24153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24154 $as_echo "$ac_header_preproc" >&6; }
24156 # So? What about this header?
24157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24160 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24163 ac_header_preproc
=yes
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24171 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24173 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24177 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24182 $as_echo_n "checking for $ac_header... " >&6; }
24183 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24184 $as_echo_n "(cached) " >&6
24186 eval "$as_ac_Header=\$ac_header_preproc"
24188 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24189 $as_echo "$as_val"'`
24190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24191 $as_echo "$ac_res" >&6; }
24194 if test `eval 'as_val=${'$as_ac_Header'}
24195 $as_echo "$as_val"'` = yes; then
24196 cat >>confdefs.h
<<_ACEOF
24197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24205 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24207 cat >>confdefs.h
<<\_ACEOF
24208 #define HAVE_AIX_SMT_EXP 1
24213 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24214 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24215 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24216 { $as_echo "$as_me:$LINENO: result: yes" >&5
24217 $as_echo "yes" >&6; }
24219 cat >>confdefs.h
<<\_ACEOF
24220 #define HAVE_DEV_PTMX 1
24224 { $as_echo "$as_me:$LINENO: result: no" >&5
24225 $as_echo "no" >&6; }
24228 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24229 $as_echo_n "checking for pid_t... " >&6; }
24230 if test "${ac_cv_type_pid_t+set}" = set; then
24231 $as_echo_n "(cached) " >&6
24233 ac_cv_type_pid_t
=no
24234 cat >conftest.
$ac_ext <<_ACEOF
24237 cat confdefs.h
>>conftest.
$ac_ext
24238 cat >>conftest.
$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24244 if (sizeof (pid_t))
24250 rm -f conftest.
$ac_objext
24251 if { (ac_try
="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24257 $as_echo "$ac_try_echo") >&5
24258 (eval "$ac_compile") 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } && {
24265 test -z "$ac_c_werror_flag" ||
24266 test ! -s conftest.err
24267 } && test -s conftest.$ac_objext; then
24268 cat >conftest.$ac_ext <<_ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h. */
24274 $ac_includes_default
24278 if (sizeof ((pid_t)))
24284 rm -f conftest.$ac_objext
24285 if { (ac_try="$ac_compile"
24286 case "(($ac_try" in
24287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24288 *) ac_try_echo
=$ac_try;;
24290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_compile") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1
>conftest.err
24296 cat conftest.err
>&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest.
$ac_objext; then
24304 $as_echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.
$ac_ext >&5
24307 ac_cv_type_pid_t
=yes
24310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24312 $as_echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.
$ac_ext >&5
24318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24320 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24321 $as_echo "$ac_cv_type_pid_t" >&6; }
24322 if test $ac_cv_type_pid_t = yes; then
24326 cat >>confdefs.h
<<_ACEOF
24333 for ac_header
in vfork.h
24335 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24336 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24338 $as_echo_n "checking for $ac_header... " >&6; }
24339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24340 $as_echo_n "(cached) " >&6
24342 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24343 $as_echo "$as_val"'`
24344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24345 $as_echo "$ac_res" >&6; }
24347 # Is the header compilable?
24348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24349 $as_echo_n "checking $ac_header usability... " >&6; }
24350 cat >conftest.
$ac_ext <<_ACEOF
24353 cat confdefs.h
>>conftest.
$ac_ext
24354 cat >>conftest.
$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24356 $ac_includes_default
24357 #include <$ac_header>
24359 rm -f conftest.
$ac_objext
24360 if { (ac_try
="$ac_compile"
24361 case "(($ac_try" in
24362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24366 $as_echo "$ac_try_echo") >&5
24367 (eval "$ac_compile") 2>conftest.er1
24369 grep -v '^ *+' conftest.er1 >conftest.err
24371 cat conftest.err >&5
24372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); } && {
24374 test -z "$ac_c_werror_flag" ||
24375 test ! -s conftest.err
24376 } && test -s conftest.$ac_objext; then
24377 ac_header_compiler=yes
24379 $as_echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24382 ac_header_compiler=no
24385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24387 $as_echo "$ac_header_compiler" >&6; }
24389 # Is the header present?
24390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24391 $as_echo_n "checking $ac_header presence... " >&6; }
24392 cat >conftest.$ac_ext <<_ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h. */
24398 #include <$ac_header>
24400 if { (ac_try="$ac_cpp conftest.$ac_ext"
24401 case "(($ac_try" in
24402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24403 *) ac_try_echo
=$ac_try;;
24405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24406 $as_echo "$ac_try_echo") >&5
24407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24409 grep -v '^ *+' conftest.er1
>conftest.err
24411 cat conftest.err
>&5
24412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); } >/dev
/null
&& {
24414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24415 test ! -s conftest.err
24417 ac_header_preproc
=yes
24419 $as_echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.
$ac_ext >&5
24422 ac_header_preproc
=no
24425 rm -f conftest.err conftest.
$ac_ext
24426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24427 $as_echo "$ac_header_preproc" >&6; }
24429 # So? What about this header?
24430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24436 ac_header_preproc
=yes
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24446 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24455 $as_echo_n "checking for $ac_header... " >&6; }
24456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24457 $as_echo_n "(cached) " >&6
24459 eval "$as_ac_Header=\$ac_header_preproc"
24461 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24462 $as_echo "$as_val"'`
24463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24464 $as_echo "$ac_res" >&6; }
24467 if test `eval 'as_val=${'$as_ac_Header'}
24468 $as_echo "$as_val"'` = yes; then
24469 cat >>confdefs.h
<<_ACEOF
24470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24479 for ac_func
in fork vfork
24481 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24482 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24483 $as_echo_n "checking for $ac_func... " >&6; }
24484 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24485 $as_echo_n "(cached) " >&6
24487 cat >conftest.
$ac_ext <<_ACEOF
24490 cat confdefs.h
>>conftest.
$ac_ext
24491 cat >>conftest.
$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24495 #define $ac_func innocuous_$ac_func
24497 /* System header to define __stub macros and hopefully few prototypes,
24498 which can conflict with char $ac_func (); below.
24499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24500 <limits.h> exists even on freestanding compilers. */
24503 # include <limits.h>
24505 # include <assert.h>
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24517 /* The GNU C library defines this for functions which it implements
24518 to always fail with ENOSYS. Some functions are actually named
24519 something starting with __ and the normal name is an alias. */
24520 #if defined __stub_$ac_func || defined __stub___$ac_func
24527 return $ac_func ();
24532 rm -f conftest.
$ac_objext conftest
$ac_exeext
24533 if { (ac_try
="$ac_link"
24534 case "(($ac_try" in
24535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24536 *) ac_try_echo=$ac_try;;
24538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24539 $as_echo "$ac_try_echo") >&5
24540 (eval "$ac_link") 2>conftest.er1
24542 grep -v '^ *+' conftest.er1 >conftest.err
24544 cat conftest.err >&5
24545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); } && {
24547 test -z "$ac_c_werror_flag" ||
24548 test ! -s conftest.err
24549 } && test -s conftest$ac_exeext && {
24550 test "$cross_compiling" = yes ||
24551 $as_test_x conftest$ac_exeext
24553 eval "$as_ac_var=yes"
24555 $as_echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24558 eval "$as_ac_var=no"
24561 rm -rf conftest.dSYM
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563 conftest$ac_exeext conftest.$ac_ext
24565 ac_res=`eval 'as_val=${'$as_ac_var'}
24566 $as_echo "$as_val"'`
24567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24568 $as_echo "$ac_res" >&6; }
24569 if test `eval 'as_val=${'$as_ac_var'}
24570 $as_echo "$as_val"'` = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24578 if test "x$ac_cv_func_fork" = xyes; then
24579 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24580 $as_echo_n "checking for working fork... " >&6; }
24581 if test "${ac_cv_func_fork_works+set}" = set; then
24582 $as_echo_n "(cached) " >&6
24584 if test "$cross_compiling" = yes; then
24585 ac_cv_func_fork_works=cross
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 $ac_includes_default
24598 /* By Ruediger Kuhlmann. */
24599 return fork () < 0;
24605 rm -f conftest$ac_exeext
24606 if { (ac_try="$ac_link"
24607 case "(($ac_try" in
24608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24609 *) ac_try_echo
=$ac_try;;
24611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_link") 2>&5
24615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24617 { (case "(($ac_try" in
24618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24619 *) ac_try_echo=$ac_try;;
24621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24622 $as_echo "$ac_try_echo") >&5
24623 (eval "$ac_try") 2>&5
24625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
24627 ac_cv_func_fork_works=yes
24629 $as_echo "$as_me: program exited with status $ac_status" >&5
24630 $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24633 ( exit $ac_status )
24634 ac_cv_func_fork_works=no
24636 rm -rf conftest.dSYM
24637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24643 $as_echo "$ac_cv_func_fork_works" >&6; }
24646 ac_cv_func_fork_works=$ac_cv_func_fork
24648 if test "x$ac_cv_func_fork_works" = xcross; then
24650 *-*-amigaos* | *-*-msdosdjgpp*)
24651 # Override, as these systems have only a dummy fork() stub
24652 ac_cv_func_fork_works=no
24655 ac_cv_func_fork_works=yes
24658 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24659 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24661 ac_cv_func_vfork_works=$ac_cv_func_vfork
24662 if test "x$ac_cv_func_vfork" = xyes; then
24663 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24664 $as_echo_n "checking for working vfork... " >&6; }
24665 if test "${ac_cv_func_vfork_works+set}" = set; then
24666 $as_echo_n "(cached) " >&6
24668 if test "$cross_compiling" = yes; then
24669 ac_cv_func_vfork_works=cross
24671 cat >conftest.$ac_ext <<_ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24677 /* Thanks to Paul Eggert for this test. */
24678 $ac_includes_default
24679 #include <sys/wait.h>
24680 #ifdef HAVE_VFORK_H
24681 # include <vfork.h>
24683 /* On some sparc systems, changes by the child to local and incoming
24684 argument registers are propagated back to the parent. The compiler
24685 is told about this with #include <vfork.h>, but some compilers
24686 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24687 static variable whose address is put into a register that is
24688 clobbered by the vfork. */
24691 sparc_address_test (int arg)
24693 sparc_address_test (arg) int arg;
24696 static pid_t child;
24714 pid_t parent = getpid ();
24717 sparc_address_test (0);
24722 /* Here is another test for sparc vfork register problems. This
24723 test uses lots of local variables, at least as many local
24724 variables as main has allocated so far including compiler
24725 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24726 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24727 reuse the register of parent for one of the local variables,
24728 since it will think that parent can't possibly be used any more
24729 in this routine. Assigning to the local variable will thus
24730 munge parent in the parent process. */
24732 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24733 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24734 /* Convince the compiler that p..p7 are live; otherwise, it might
24735 use the same hardware register for all 8 local variables. */
24736 if (p != p1 || p != p2 || p != p3 || p != p4
24737 || p != p5 || p != p6 || p != p7)
24740 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24741 from child file descriptors. If the child closes a descriptor
24742 before it execs or exits, this munges the parent's descriptor
24743 as well. Test for this by closing stdout in the child. */
24744 _exit(close(fileno(stdout)) != 0);
24749 while (wait(&status) != child)
24752 /* Was there some problem with vforking? */
24755 /* Did the child fail? (This shouldn't happen.) */
24758 /* Did the vfork/compiler bug occur? */
24759 || parent != getpid()
24761 /* Did the file descriptor bug occur? */
24762 || fstat(fileno(stdout), &st) != 0
24767 rm -f conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24771 *) ac_try_echo
=$ac_try;;
24773 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24774 $as_echo "$ac_try_echo") >&5
24775 (eval "$ac_link") 2>&5
24777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24779 { (case "(($ac_try" in
24780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24784 $as_echo "$ac_try_echo") >&5
24785 (eval "$ac_try") 2>&5
24787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; }; then
24789 ac_cv_func_vfork_works=yes
24791 $as_echo "$as_me: program exited with status $ac_status" >&5
24792 $as_echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ( exit $ac_status )
24796 ac_cv_func_vfork_works=no
24798 rm -rf conftest.dSYM
24799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24804 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24805 $as_echo "$ac_cv_func_vfork_works" >&6; }
24808 if test "x$ac_cv_func_fork_works" = xcross; then
24809 ac_cv_func_vfork_works=$ac_cv_func_vfork
24810 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24811 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24814 if test "x$ac_cv_func_vfork_works" = xyes; then
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_WORKING_VFORK 1
24822 cat >>confdefs.h <<\_ACEOF
24827 if test "x$ac_cv_func_fork_works" = xyes; then
24829 cat >>confdefs.h <<\_ACEOF
24830 #define HAVE_WORKING_FORK 1
24836 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24837 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24838 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24839 $as_echo_n "(cached) " >&6
24841 cat >conftest.$ac_ext <<_ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847 #include <langinfo.h>
24851 char* cs = nl_langinfo(CODESET);
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24860 *) ac_try_echo
=$ac_try;;
24862 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1
>conftest.err
24868 cat conftest.err
>&5
24869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest
$ac_exeext && {
24874 test "$cross_compiling" = yes ||
24875 $as_test_x conftest
$ac_exeext
24877 emacs_cv_langinfo_codeset
=yes
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.
$ac_ext >&5
24882 emacs_cv_langinfo_codeset
=no
24885 rm -rf conftest.dSYM
24886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24887 conftest
$ac_exeext conftest.
$ac_ext
24890 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24891 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24892 if test $emacs_cv_langinfo_codeset = yes; then
24894 cat >>confdefs.h
<<\_ACEOF
24895 #define HAVE_LANGINFO_CODESET 1
24900 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24901 $as_echo_n "checking for size_t... " >&6; }
24902 if test "${ac_cv_type_size_t+set}" = set; then
24903 $as_echo_n "(cached) " >&6
24905 ac_cv_type_size_t
=no
24906 cat >conftest.
$ac_ext <<_ACEOF
24909 cat confdefs.h
>>conftest.
$ac_ext
24910 cat >>conftest.
$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24916 if (sizeof (size_t))
24922 rm -f conftest.
$ac_objext
24923 if { (ac_try
="$ac_compile"
24924 case "(($ac_try" in
24925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 cat >conftest.$ac_ext <<_ACEOF
24943 cat confdefs.h >>conftest.$ac_ext
24944 cat >>conftest.$ac_ext <<_ACEOF
24945 /* end confdefs.h. */
24946 $ac_includes_default
24950 if (sizeof ((size_t)))
24956 rm -f conftest.$ac_objext
24957 if { (ac_try="$ac_compile"
24958 case "(($ac_try" in
24959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24960 *) ac_try_echo
=$ac_try;;
24962 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24963 $as_echo "$ac_try_echo") >&5
24964 (eval "$ac_compile") 2>conftest.er1
24966 grep -v '^ *+' conftest.er1
>conftest.err
24968 cat conftest.err
>&5
24969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970 (exit $ac_status); } && {
24971 test -z "$ac_c_werror_flag" ||
24972 test ! -s conftest.err
24973 } && test -s conftest.
$ac_objext; then
24976 $as_echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.
$ac_ext >&5
24979 ac_cv_type_size_t
=yes
24982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24984 $as_echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.
$ac_ext >&5
24990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24992 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24993 $as_echo "$ac_cv_type_size_t" >&6; }
24994 if test $ac_cv_type_size_t = yes; then
24996 cat >>confdefs.h
<<_ACEOF
24997 #define HAVE_SIZE_T 1
25004 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25005 $as_echo_n "checking for mbstate_t... " >&6; }
25006 if test "${ac_cv_type_mbstate_t+set}" = set; then
25007 $as_echo_n "(cached) " >&6
25009 cat >conftest.
$ac_ext <<_ACEOF
25012 cat confdefs.h
>>conftest.
$ac_ext
25013 cat >>conftest.
$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 $ac_includes_default
25016 # include <wchar.h>
25020 mbstate_t x; return sizeof x;
25025 rm -f conftest.
$ac_objext
25026 if { (ac_try
="$ac_compile"
25027 case "(($ac_try" in
25028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25029 *) ac_try_echo=$ac_try;;
25031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25032 $as_echo "$ac_try_echo") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25043 ac_cv_type_mbstate_t=yes
25045 $as_echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25048 ac_cv_type_mbstate_t=no
25051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25054 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25055 if test $ac_cv_type_mbstate_t = yes; then
25057 cat >>confdefs.h <<\_ACEOF
25058 #define HAVE_MBSTATE_T 1
25063 cat >>confdefs.h <<\_ACEOF
25064 #define mbstate_t int
25069 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25070 $as_echo_n "checking for C restrict keyword... " >&6; }
25071 if test "${emacs_cv_c_restrict+set}" = set; then
25072 $as_echo_n "(cached) " >&6
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 void fred (int *restrict x);
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25093 *) ac_try_echo
=$ac_try;;
25095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25096 $as_echo "$ac_try_echo") >&5
25097 (eval "$ac_compile") 2>conftest.er1
25099 grep -v '^ *+' conftest.er1
>conftest.err
25101 cat conftest.err
>&5
25102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && {
25104 test -z "$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 } && test -s conftest.
$ac_objext; then
25107 emacs_cv_c_restrict
=yes
25109 $as_echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.
$ac_ext >&5
25112 cat >conftest.
$ac_ext <<_ACEOF
25115 cat confdefs.h
>>conftest.
$ac_ext
25116 cat >>conftest.
$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25118 void fred (int *__restrict x);
25127 rm -f conftest.
$ac_objext
25128 if { (ac_try
="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 emacs_cv_c_restrict=__restrict
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 emacs_cv_c_restrict=no
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25159 $as_echo "$emacs_cv_c_restrict" >&6; }
25160 case "$emacs_cv_c_restrict" in
25161 yes) emacs_restrict=restrict;;
25162 no) emacs_restrict="";;
25163 *) emacs_restrict="$emacs_cv_c_restrict";;
25165 if test "$emacs_restrict" != __restrict; then
25167 cat >>confdefs.h <<_ACEOF
25168 #define __restrict $emacs_restrict
25173 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25174 $as_echo_n "checking for C restricted array declarations... " >&6; }
25175 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25176 $as_echo_n "(cached) " >&6
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 void fred (int x[__restrict]);
25193 rm -f conftest.$ac_objext
25194 if { (ac_try="$ac_compile"
25195 case "(($ac_try" in
25196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25197 *) ac_try_echo
=$ac_try;;
25199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25200 $as_echo "$ac_try_echo") >&5
25201 (eval "$ac_compile") 2>conftest.er1
25203 grep -v '^ *+' conftest.er1
>conftest.err
25205 cat conftest.err
>&5
25206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } && {
25208 test -z "$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25210 } && test -s conftest.
$ac_objext; then
25211 emacs_cv_c_restrict_arr
=yes
25213 $as_echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.
$ac_ext >&5
25216 emacs_cv_c_restrict_arr
=no
25219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25221 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25222 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25223 if test "$emacs_cv_c_restrict_arr" = yes; then
25225 cat >>confdefs.h
<<\_ACEOF
25226 #define __restrict_arr __restrict
25233 # Set up the CFLAGS for real compilation, so we can substitute it.
25234 CFLAGS
="$REAL_CFLAGS"
25235 CPPFLAGS
="$REAL_CPPFLAGS"
25237 #### Find out which version of Emacs this is.
25238 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25239 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25240 if test x
"${version}" = x
; then
25241 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25242 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25243 { (exit 1); exit 1; }; }
25245 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25246 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25247 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25250 ### Specify what sort of things we'll be editing into Makefile and config.h.
25251 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25295 cat >>confdefs.h <<_ACEOF
25296 #define EMACS_CONFIGURATION "${canonical}"
25300 cat >>confdefs.h <<_ACEOF
25301 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25305 cat >>confdefs.h <<_ACEOF
25306 #define config_machfile "${machfile}"
25310 cat >>confdefs.h <<_ACEOF
25311 #define config_opsysfile "${opsysfile}"
25315 cat >>confdefs.h <<_ACEOF
25316 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25320 cat >>confdefs.h <<_ACEOF
25321 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25325 cat >>confdefs.h <<_ACEOF
25326 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25330 cat >>confdefs.h <<_ACEOF
25331 #define UNEXEC_SRC ${UNEXEC_SRC}
25335 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25337 cat >>confdefs.h <<\_ACEOF
25338 #define HAVE_X_WINDOWS 1
25342 if test "${USE_X_TOOLKIT}" != "none
" ; then
25344 cat >>confdefs.h <<\_ACEOF
25345 #define USE_X_TOOLKIT 1
25348 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
25350 cat >>confdefs.h <<\_ACEOF
25351 #define USE_LUCID 1
25354 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
25356 cat >>confdefs.h <<\_ACEOF
25357 #define USE_MOTIF 1
25362 if test "${HAVE_X11}" = "yes" ; then
25364 cat >>confdefs.h <<\_ACEOF
25369 if test "${HAVE_MENUS}" = "yes" ; then
25371 cat >>confdefs.h <<\_ACEOF
25372 #define HAVE_MENUS 1
25376 if test "${GNU_MALLOC}" = "yes" ; then
25378 cat >>confdefs.h <<\_ACEOF
25379 #define GNU_MALLOC 1
25383 if test "${REL_ALLOC}" = "yes" ; then
25385 cat >>confdefs.h <<\_ACEOF
25386 #define REL_ALLOC 1
25396 #### Report on what we decided to do.
25397 #### Report GTK as a toolkit, even if it doesn't use Xt.
25398 #### It makes printing result more understandable as using GTK sets
25399 #### toolkit_scroll_bars to yes by default.
25400 if test "${HAVE_GTK}" = "yes"; then
25405 Configured
for \
`${canonical}'.
25407 Where should the build process find the source code? ${srcdir}
25408 What operating system and machine description files should Emacs use?
25409 \`${opsysfile}' and \`${machfile}'
25410 What compiler should emacs be built with?
${CC} ${CFLAGS}
25411 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
25412 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
25413 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
25414 What window system should Emacs use?
${window_system}
25415 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
25417 if test -n "${x_includes}"; then
25418 echo " Where
do we
find X Windows header files?
${x_includes}"
25420 echo " Where
do we
find X Windows header files? Standard
dirs"
25422 if test -n "${x_libraries}"; then
25423 echo " Where
do we
find X Windows libraries?
${x_libraries}"
25425 echo " Where
do we
find X Windows libraries? Standard
dirs"
25428 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
25429 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
25430 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
25431 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
25432 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
25433 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
25434 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
25435 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
25436 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
25438 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
25439 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
25440 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
25441 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
25443 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
25446 if test $USE_XASSERTS = yes; then
25447 echo " Compiling with asserts turned on.
"
25448 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25453 if test "$USE_X_TOOLKIT" = GTK; then
25454 case "$canonical" in
25456 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
25457 will probably get a crash on startup. If this happens
, please use another
25458 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
25463 if test "$HAVE_NS" = "yes"; then
25465 echo "You must run
\"make install\" in order to
test the built application.
25466 The installed application will go to nextstep
/Emacs.app and can be
25467 run or moved from there.
"
25468 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25469 echo "The application will be fully self-contained.
"
25471 echo "The lisp resources
for the application will be installed under
${prefix}.
25472 You may need to run
\"make install\" with sudo. The application will fail
25473 to run
if these resources are not installed.
"
25478 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
25479 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
25484 # Remove any trailing slashes in these variables.
25485 test "${prefix}" != NONE &&
25486 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25487 test "${exec_prefix}" != NONE &&
25488 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25490 # Now get this: Some word that is part of the ${srcdir} directory name
25491 # or the ${configuration} value might, just might, happen to be an
25492 # identifier like `sun4' or `i386' or something, and be predefined by
25493 # the C preprocessor to some helpful value like 1, or maybe the empty
25494 # string. Needless to say consequent macro substitutions are less
25495 # than conducive to the makefile finding the correct directory.
25496 cpp_undefs="`echo $srcdir $configuration $canonical |
25497 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25498 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25500 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25501 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25502 ## from Makefile.c can correctly provide the arg `-traditional' to the
25505 cat >conftest.$ac_ext <<_ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25513 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25514 $EGREP "yes..
yes" >/dev/null 2>&1; then
25515 CPP_NEED_TRADITIONAL=no
25517 CPP_NEED_TRADITIONAL=yes
25522 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
"
25524 ac_config_commands="$ac_config_commands default
"
25526 cat >confcache <<\_ACEOF
25527 # This file is a shell script that caches the results of configure
25528 # tests run on this system so they can be shared between configure
25529 # scripts and configure runs, see configure's option --config-cache.
25530 # It is not useful on other systems. If it contains results you don't
25531 # want to keep, you may remove or edit it.
25533 # config.status only pays attention to the cache file if you give it
25534 # the --recheck option to rerun configure.
25536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25538 # following values.
25542 # The following way of writing the cache mishandles newlines in values,
25543 # but we know of no workaround that is simple, portable, and efficient.
25544 # So, we kill variables containing newlines.
25545 # Ultrix sh set writes to stderr and can't be redirected directly,
25546 # and sets the high bit in the cache file unless we assign to the vars.
25548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25549 eval ac_val=\$$ac_var
25553 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
25554 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
25557 _ | IFS | as_nl) ;; #(
25558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25559 *) $as_unset $ac_var ;;
25565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25566 *${as_nl}ac_space=\ *)
25567 # `set' does not quote correctly, so add quotes (double-quote
25568 # substitution turns \\\\ into \\, and sed turns \\ into \).
25571 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25574 # `set' quotes correctly as required by POSIX, so do not add quotes.
25575 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
25584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25589 if test -w "$cache_file"; then
25590 test "x
$cache_file" != "x
/dev
/null
" &&
25591 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
25592 $as_echo "$as_me: updating cache
$cache_file" >&6;}
25593 cat confcache >$cache_file
25595 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
25596 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
25601 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
25602 # Let make expand exec_prefix.
25603 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
25605 DEFS=-DHAVE_CONFIG_H
25609 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
25610 # 1. Remove the extension, and $U if already installed.
25611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25614 # will be set to the directory where LIBOBJS objects are built.
25615 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
25616 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
25618 LIBOBJS=$ac_libobjs
25620 LTLIBOBJS=$ac_ltlibobjs
25624 : ${CONFIG_STATUS=./config.status}
25626 ac_clean_files_save=$ac_clean_files
25627 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25628 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
25629 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
25630 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25632 # Generated by $as_me.
25633 # Run this file to recreate the current configuration.
25634 # Compiler output produced by configure, useful for debugging
25635 # configure, is in config.log if it exists.
25638 ac_cs_recheck=false
25640 SHELL=\${CONFIG_SHELL-$SHELL}
25643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25644 ## --------------------- ##
25645 ## M4sh Initialization. ##
25646 ## --------------------- ##
25648 # Be more Bourne compatible
25649 DUALCASE=1; export DUALCASE # for MKS sh
25650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25654 # is contrary to our usage. Disable this feature.
25655 alias -g '${1+"$@"}'='"$@
"'
25656 setopt NO_GLOB_SUBST
25658 case `(set -o) 2>/dev/null` in
25659 *posix*) set -o posix ;;
25668 # Avoid depending upon Character Ranges.
25669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25672 as_cr_digits='0123456789'
25673 as_cr_alnum=$as_cr_Letters$as_cr_digits
25678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25679 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25682 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
25683 as_echo='printf %s\n'
25684 as_echo_n='printf %s'
25686 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
25687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25688 as_echo_n='/usr/ucb/echo -n'
25690 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
25691 as_echo_n_body='eval
25695 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
25696 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
25698 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
25700 export as_echo_n_body
25701 as_echo_n='sh -c $as_echo_n_body as_echo'
25703 export as_echo_body
25704 as_echo='sh -c $as_echo_body as_echo'
25707 # The user is always right.
25708 if test "${PATH_SEPARATOR+set}" != set; then
25710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25716 # Support unset when possible.
25717 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25725 # We need space, tab and new line, in precisely that order. Quoting is
25726 # there to prevent editors from complaining about space-tab.
25727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25728 # splitting by setting IFS to empty value.)
25731 # Find who we are. Look in the path if we contain no directory separator.
25733 *[\\/]* ) as_myself=$0 ;;
25734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735 for as_dir in $PATH
25738 test -z "$as_dir" && as_dir=.
25739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25745 # We did not find ourselves, most probably we were run as `sh COMMAND'
25746 # in which case we are not to be found in the path.
25747 if test "x
$as_myself" = x; then
25750 if test ! -f "$as_myself"; then
25751 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
25752 { (exit 1); exit 1; }
25755 # Work around bugs in pre-3.0 UWIN ksh.
25756 for as_var in ENV MAIL MAILPATH
25757 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25769 # Required to use basename.
25770 if expr a : '\(a\)' >/dev/null 2>&1 &&
25771 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25777 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
25778 as_basename=basename
25784 # Name of the executable.
25785 as_me=`$as_basename -- "$0" ||
25786 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25787 X"$0" : 'X\(//\)$' \| \
25788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25790 sed '/^.*\/\([^/][^/]*\)\/*$/{
25809 as_lineno_1=$LINENO
25810 as_lineno_2=$LINENO
25811 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
25812 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
25814 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25815 # uniformly replaced by the line number. The first 'sed' inserts a
25816 # line-number line after each line using $LINENO; the second 'sed'
25817 # does the real work. The second script uses 'N' to pair each
25818 # line-number line with the line containing $LINENO, and appends
25819 # trailing '-' during substitution so that $LINENO is not a special
25820 # case at line end.
25821 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25822 # scripts with optimization help from Paolo Bonzini. Blame Lee
25823 # E. McMahon (1931-1989) for sed's syntax. :-)
25835 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25838 ' >$as_me.lineno &&
25839 chmod +x "$as_me.lineno
" ||
25840 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
25841 { (exit 1); exit 1; }; }
25843 # Don't try to exec as it changes $[0], causing all sort of problems
25844 # (the dirname of $[0] is not the place where we might find the
25845 # original and so on. Autoconf is especially sensitive to this).
25846 . ".
/$as_me.lineno
"
25847 # Exit status is that of the last command.
25852 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
25858 ECHO_C= ECHO_N= ECHO_T=
25859 case `echo -n x` in
25861 case `echo 'x\c'` in
25862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25868 if expr a : '\(a\)' >/dev/null 2>&1 &&
25869 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25875 rm -f conf$$ conf$$.exe conf$$.file
25876 if test -d conf$$.dir; then
25877 rm -f conf$$.dir/conf$$.file
25880 mkdir conf$$.dir 2>/dev/null
25882 if (echo >conf$$.file) 2>/dev/null; then
25883 if ln -s conf$$.file conf$$ 2>/dev/null; then
25885 # ... but there are two gotchas:
25886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25888 # In both cases, we have to default to `cp -p'.
25889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25891 elif ln conf$$.file conf$$ 2>/dev/null; then
25899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25900 rmdir conf$$.dir 2>/dev/null
25902 if mkdir -p . 2>/dev/null; then
25905 test -d ./-p && rmdir ./-p
25909 if test -x / >/dev/null 2>&1; then
25910 as_test_x='test -x'
25912 if ls -dL / >/dev/null 2>&1; then
25919 if test -d "$1"; then
25925 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25926 ???[sx]*):;;*)false;;esac;fi
25930 as_executable_p=$as_test_x
25932 # Sed expression to map a string onto a valid CPP name.
25933 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25935 # Sed expression to map a string onto a valid variable name.
25936 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25941 # Save the log message, to keep $[0] and so on meaningful, and to
25942 # report actual input values of CONFIG_FILES etc. instead of their
25943 # values after options handling.
25945 This
file was extended by emacs
$as_me 23.1.50, which was
25946 generated by GNU Autoconf
2.62. Invocation
command line was
25948 CONFIG_FILES
= $CONFIG_FILES
25949 CONFIG_HEADERS
= $CONFIG_HEADERS
25950 CONFIG_LINKS
= $CONFIG_LINKS
25951 CONFIG_COMMANDS
= $CONFIG_COMMANDS
25954 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
25959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25960 # Files that config.status was made for.
25961 config_files="$ac_config_files"
25962 config_headers="$ac_config_headers"
25963 config_commands="$ac_config_commands"
25967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25969 \
`$as_me' instantiates files from templates according to the
25970 current configuration.
25972 Usage: $0 [OPTIONS] [FILE]...
25974 -h, --help print this help, then exit
25975 -V, --version print version number and configuration settings, then exit
25976 -q, --quiet do not print progress messages
25977 -d, --debug don't remove temporary files
25978 --recheck update $as_me by reconfiguring in the same conditions
25979 --file=FILE[:TEMPLATE]
25980 instantiate the configuration file FILE
25981 --header=FILE[:TEMPLATE]
25982 instantiate the configuration header FILE
25984 Configuration files:
25987 Configuration headers:
25990 Configuration commands:
25993 Report bugs to <bug-autoconf@gnu.org>."
25996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25998 emacs config.status 23.1.50
25999 configured by $0, generated by GNU Autoconf 2.62,
26000 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26002 Copyright (C) 2008 Free Software Foundation, Inc.
26003 This config.status script is free software; the Free Software Foundation
26004 gives unlimited permission to copy, distribute and modify it."
26009 test -n "\$AWK" || AWK=awk
26012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26013 # The default lists apply if the user does not specify any file.
26019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26031 # Handling of the options.
26032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26035 $as_echo "$ac_cs_version"; exit ;;
26036 --debug | --debu | --deb | --de | --d | -d )
26038 --file | --fil | --fi | --f )
26041 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26043 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26044 ac_need_defaults=false;;
26045 --header | --heade | --head | --hea )
26048 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26050 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26051 ac_need_defaults=false;;
26053 # Conflict between --help and --header
26054 { $as_echo "$as_me: error: ambiguous option: $1
26055 Try \`$0 --help' for more information." >&2
26056 { (exit 1); exit 1; }; };;
26057 --help | --hel | -h )
26058 $as_echo "$ac_cs_usage"; exit ;;
26059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26060 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26063 # This is an error.
26064 -*) { $as_echo "$as_me: error: unrecognized option: $1
26065 Try \`$0 --help' for more information.
" >&2
26066 { (exit 1); exit 1; }; } ;;
26068 *) ac_config_targets="$ac_config_targets $1"
26069 ac_need_defaults=false ;;
26075 ac_configure_extra_args=
26077 if $ac_cs_silent; then
26079 ac_configure_extra_args="$ac_configure_extra_args --silent"
26083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26084 if \$ac_cs_recheck; then
26085 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26087 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26088 CONFIG_SHELL='$SHELL'
26089 export CONFIG_SHELL
26094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26099 ## Running $as_me. ##
26105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26115 # Handling of arguments.
26116 for ac_config_target in $ac_config_targets
26118 case $ac_config_target in
26119 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26120 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26121 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26122 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26123 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26124 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26125 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26126 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26127 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26128 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26129 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26130 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26131 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26133 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26134 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26135 { (exit 1); exit 1; }; };;
26140 # If the user did not use the arguments to specify the items to instantiate,
26141 # then the envvar interface is used. Set only those that are not.
26142 # We use the long form for the default assignment because of an extremely
26143 # bizarre bug on SunOS 4.1.3.
26144 if $ac_need_defaults; then
26145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26150 # Have a temporary directory for convenience. Make it in the build tree
26151 # simply because there is no reason against having it here, and in addition,
26152 # creating and moving files from /tmp can sometimes cause problems.
26153 # Hook for its removal unless debugging.
26154 # Note that there is a small window in which the directory will not be cleaned:
26155 # after its creation but before its name has been assigned to `$tmp'.
26159 trap 'exit_status=$?
26160 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26162 trap '{ (exit 1); exit 1; }' 1 2 13 15
26164 # Create a (secure) tmp directory for tmp files.
26167 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26168 test -n "$tmp" && test -d "$tmp"
26171 tmp=./conf$$-$RANDOM
26172 (umask 077 && mkdir "$tmp")
26175 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26176 { (exit 1); exit 1; }
26179 # Set up the scripts for CONFIG_FILES section.
26180 # No need to generate them if there are no CONFIG_FILES.
26181 # This happens for instance with `./config.status config.h'.
26182 if test -n "$CONFIG_FILES"; then
26186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26187 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26190 ac_cs_awk_cr=$ac_cr
26193 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26198 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26199 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26201 } >conf$$subs.sh ||
26202 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26203 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26204 { (exit 1); exit 1; }; }
26205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26207 for ac_last_try in false false false false false :; do
26208 . ./conf$$subs.sh ||
26209 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26210 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26211 { (exit 1); exit 1; }; }
26213 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26215 elif $ac_last_try; then
26216 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26217 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26218 { (exit 1); exit 1; }; }
26220 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26223 rm -f conf$$subs.sh
26225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26226 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26230 s/^/S["/; s
/!.
*/"]=/
26240 s/\(.\{148\}\).*/\1/
26242 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26247 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26254 s/\(.\{148\}\).*/\1/
26256 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26260 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26265 ' <conf$$subs.awk | sed '
26270 ' >>$CONFIG_STATUS || ac_write_fail=1
26271 rm -f conf$$subs.awk
26272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26274 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26275 for (key in S) S_is_set[key] = 1
26281 nfields = split(line, field, "@
")
26283 len = length(field[1])
26284 for (i = 2; i < nfields; i++) {
26286 keylen = length(key)
26287 if (S_is_set[key]) {
26289 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26290 len += length(value) + length(field[++i])
26301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26302 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26303 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26306 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26307 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26308 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26309 { (exit 1); exit 1; }; }
26312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26314 # trailing colons and then remove the whole line if VPATH becomes empty
26315 # (actually we leave an empty line to preserve line numbers).
26316 if test "x
$srcdir" = x.; then
26317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26318 s/:*\$(srcdir):*/:/
26319 s/:*\${srcdir}:*/:/
26321 s/^\([^=]*=[ ]*\):*/\1/
26327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26328 fi # test -n "$CONFIG_FILES"
26330 # Set up the scripts for CONFIG_HEADERS section.
26331 # No need to generate them if there are no CONFIG_HEADERS.
26332 # This happens for instance with `./config.status Makefile'.
26333 if test -n "$CONFIG_HEADERS"; then
26334 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26338 # Transform confdefs.h into an awk script `defines.awk', embedded as
26339 # here-document in config.status, that substitutes the proper values into
26340 # config.h.in to produce config.h.
26342 # Create a delimiter string that does not exist in confdefs.h, to ease
26343 # handling of long lines.
26345 for ac_last_try in false false :; do
26346 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26347 if test -z "$ac_t"; then
26349 elif $ac_last_try; then
26350 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26351 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26352 { (exit 1); exit 1; }; }
26354 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26358 # For the awk script, D is an array of macro values keyed by name,
26359 # likewise P contains macro parameters if any. Preserve backslash
26360 # newline sequences.
26362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26364 s/.\{148\}/&'"$ac_delim"'/g
26367 s/^[ ]*#[ ]*define[ ][ ]*/ /
26374 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26376 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26381 D["\
1"]=" \
3\\\\\\n
"\\/p
26383 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26388 s/.\{148\}/&'"$ac_delim"'/g
26393 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26396 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26398 ' <confdefs.h | sed '
26399 s/'"$ac_delim"'/"\\\
26400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26403 for (key in D) D_is_set[key] = 1
26406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26408 split(line, arg, " ")
26409 if (arg[1] == "#") {
26413 defundef
= substr
(arg
[1], 2)
26416 split(mac1
, mac2
, "(") #)
26418 if (D_is_set
[macro
]) {
26419 # Preserve the white space surrounding the "#".
26420 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26421 print prefix
"define", macro P
[macro
] D
[macro
]
26424 # Replace #undef with comments. This is necessary, for example,
26425 # in the case of _POSIX_SOURCE, which is predefined and required
26426 # on some systems where configure will not decide to define it.
26427 if (defundef
== "undef") {
26428 print
"/*", line
, "*/"
26436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26437 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26438 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26439 { (exit 1); exit 1; }; }
26440 fi # test -n "$CONFIG_HEADERS"
26443 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26448 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26450 case $ac_mode$ac_tag in
26452 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26453 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26454 { (exit 1); exit 1; }; };;
26455 :[FH
]-) ac_tag
=-:-;;
26456 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26473 -) ac_f
="$tmp/stdin";;
26474 *) # Look for the file first in the build tree, then in the source tree
26475 # (if the path is not absolute). The absolute path cannot be DOS-style,
26476 # because $ac_f cannot contain `:'.
26480 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26482 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26483 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26484 { (exit 1); exit 1; }; };;
26486 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26487 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26490 # Let's still pretend it is `configure' which instantiates (i.e., don't
26491 # use $as_me), people would be surprised to read:
26492 # /* config.h. Generated by config.status. */
26493 configure_input
='Generated from '`
26494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26496 if test x
"$ac_file" != x-
; then
26497 configure_input
="$ac_file. $configure_input"
26498 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26499 $as_echo "$as_me: creating $ac_file" >&6;}
26501 # Neutralize special characters interpreted by sed in replacement strings.
26502 case $configure_input in #(
26503 *\
&* |
*\|
* |
*\\* )
26504 ac_sed_conf_input
=`$as_echo "$configure_input" |
26505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26506 *) ac_sed_conf_input
=$configure_input;;
26510 *:-:* |
*:-) cat >"$tmp/stdin" \
26511 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26512 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26513 { (exit 1); exit 1; }; } ;;
26518 ac_dir
=`$as_dirname -- "$ac_file" ||
26519 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26520 X"$ac_file" : 'X\(//\)[^/]' \| \
26521 X"$ac_file" : 'X\(//\)$' \| \
26522 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26523 $as_echo X"$ac_file" |
26524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26528 /^X\(\/\/\)[^/].*/{
26543 -*) as_dir
=.
/$as_dir;;
26545 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26549 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26550 *) as_qdir
=$as_dir;;
26552 as_dirs
="'$as_qdir' $as_dirs"
26553 as_dir
=`$as_dirname -- "$as_dir" ||
26554 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26555 X"$as_dir" : 'X\(//\)[^/]' \| \
26556 X"$as_dir" : 'X\(//\)$' \| \
26557 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26558 $as_echo X"$as_dir" |
26559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26563 /^X\(\/\/\)[^/].*/{
26576 test -d "$as_dir" && break
26578 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26579 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26580 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26581 { (exit 1); exit 1; }; }; }
26585 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26587 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26588 # A ".." for each directory in $ac_dir_suffix.
26589 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26590 case $ac_top_builddir_sub in
26591 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26592 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26595 ac_abs_top_builddir
=$ac_pwd
26596 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26597 # for backward compatibility:
26598 ac_top_builddir
=$ac_top_build_prefix
26601 .
) # We are building in place.
26603 ac_top_srcdir
=$ac_top_builddir_sub
26604 ac_abs_top_srcdir
=$ac_pwd ;;
26605 [\\/]* | ?
:[\\/]* ) # Absolute name.
26606 ac_srcdir
=$srcdir$ac_dir_suffix;
26607 ac_top_srcdir
=$srcdir
26608 ac_abs_top_srcdir
=$srcdir ;;
26609 *) # Relative name.
26610 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26611 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26612 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26614 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26624 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26625 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26630 # If the template does not know about datarootdir, expand it.
26631 # FIXME: This hack should be removed a few years after 2.60.
26632 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26646 *datarootdir
*) ac_datarootdir_seen
=yes;;
26647 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26648 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26652 ac_datarootdir_hack='
26653 s&@datadir@&$datadir&g
26654 s&@docdir@&$docdir&g
26655 s&@infodir@&$infodir&g
26656 s&@localedir@&$localedir&g
26657 s&@mandir@&$mandir&g
26658 s&\\\${datarootdir}&$datarootdir&g' ;;
26662 # Neutralize VPATH when `$srcdir' = `.'.
26663 # Shell code in configure.ac might set extrasub.
26664 # FIXME: do we really want to maintain this feature?
26665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26666 ac_sed_extra="$ac_vpsub
26669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26671 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26672 s|@configure_input@|
$ac_sed_conf_input|
;t t
26673 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26674 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26675 s
&@srcdir@
&$ac_srcdir&;t t
26676 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26677 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26678 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26679 s
&@builddir@
&$ac_builddir&;t t
26680 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26681 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26682 s
&@INSTALL@
&$ac_INSTALL&;t t
26683 $ac_datarootdir_hack
26685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26686 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26687 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26688 { (exit 1); exit 1; }; }
26690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26693 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26694 which seems to be undefined. Please make sure it is defined." >&5
26695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26696 which seems to be undefined. Please make sure it is defined." >&2;}
26700 -) cat "$tmp/out" && rm -f "$tmp/out";;
26701 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26703 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26704 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26705 { (exit 1); exit 1; }; }
26711 if test x"$ac_file" != x-; then
26713 $as_echo "/* $configure_input */" \
26714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26715 } >"$tmp/config.h" \
26716 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26717 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26718 { (exit 1); exit 1; }; }
26719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26720 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26724 mv "$tmp/config.h" "$ac_file" \
26725 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26727 { (exit 1); exit 1; }; }
26730 $as_echo "/* $configure_input */" \
26731 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26732 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26733 $as_echo "$as_me: error: could not create -" >&2;}
26734 { (exit 1); exit 1; }; }
26738 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26739 $as_echo "$as_me: executing $ac_file commands" >&6;}
26744 case $ac_file$ac_mode in
26747 ### Make the necessary directories, if they don't exist.
26748 for dir
in etc lisp
; do
26749 test -d ${dir} || mkdir
${dir}
26752 # Build src/Makefile from ${srcdir}/src/Makefile.c
26753 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26754 # This must be done after src/config.h is built, since we rely on that file.
26756 echo creating src
/epaths.h
26757 ${MAKE-make} epaths-force
26759 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26760 # `..' to `. .' unless invoked with -traditional
26762 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26763 CPPFLAGS
="$CPPFLAGS -traditional"
26766 echo creating lib-src
/Makefile
26768 rm -f junk.c junk1.c junk2.c
26769 sed -e '/start of cpp stuff/q' \
26770 < Makefile.c
> junk1.c
26771 sed -e '1,/start of cpp stuff/d'\
26772 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26773 < Makefile.c
> junk.c
26774 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26775 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26776 cat junk1.c junk2.c
> Makefile.new
26777 rm -f junk.c junk1.c junk2.c
26778 chmod 444 Makefile.new
26779 mv -f Makefile.new Makefile
26782 echo creating src
/Makefile
26784 rm -f junk.c junk1.c junk2.c
26785 sed -e '/start of cpp stuff/q' \
26786 < Makefile.c
> junk1.c
26787 sed -e '1,/start of cpp stuff/d'\
26788 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26789 < Makefile.c
> junk.c
26790 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26791 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26792 cat junk1.c junk2.c
> Makefile.new
26793 rm -f junk.c junk1.c junk2.c
26794 chmod 444 Makefile.new
26795 mv -f Makefile.new Makefile
26798 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26799 echo creating src
/.gdbinit
26800 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26809 { (exit 0); exit 0; }
26811 chmod +x
$CONFIG_STATUS
26812 ac_clean_files
=$ac_clean_files_save
26814 test $ac_write_fail = 0 ||
26815 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26816 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26817 { (exit 1); exit 1; }; }
26820 # configure is writing to config.log, and then calls config.status.
26821 # config.status does its own redirection, appending to config.log.
26822 # Unfortunately, on DOS this fails, as config.log is still kept open
26823 # by configure, so config.status won't be able to write to it; its
26824 # output is simply discarded. So we exec the FD to /dev/null,
26825 # effectively closing config.log, so it can be properly (re)opened and
26826 # appended to by config.status. When coming back to configure, we
26827 # need to make the FD available again.
26828 if test "$no_create" != yes; then
26830 ac_config_status_args
=
26831 test "$silent" = yes &&
26832 ac_config_status_args
="$ac_config_status_args --quiet"
26834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26837 # would make configure fail if this is the last instruction.
26838 $ac_cs_success ||
{ (exit 1); exit 1; }
26840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26841 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26842 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}