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
;;
2710 x86_64-
* ) machine
=amdx86-64
;;
2714 # Define CPP as follows to make autoconf work correctly.
2715 CPP
="${CC-cc} -E -no-cpp-precomp"
2716 # Use fink packages if available.
2717 if test -d /sw
/include
&& test -d /sw
/lib
; then
2718 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2719 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2720 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2724 ## HP 9000 series 700 and 800, running HP/UX
2725 hppa
*-hp-hpux10.2
* )
2726 machine
=hp800 opsys
=hpux10-20
2728 hppa
*-hp-hpux1[1-9]* )
2729 machine
=hp800 opsys
=hpux11
2730 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2733 hppa
*-*-linux-gnu* )
2734 machine
=hp800 opsys
=gnu-linux
2739 machine
=ibms390 opsys
=gnu-linux
2741 s390x-
*-linux-gnu* )
2742 machine
=ibms390x opsys
=gnu-linux
2744 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2745 machine
=ibmrs6000 opsys
=aix4-2
2747 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2748 machine
=ibmrs6000 opsys
=aix4-2
2750 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2751 machine
=ibmrs6000 opsys
=aix4-2
2753 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2754 machine
=ibmrs6000 opsys
=aix4-2
2757 ## Macintosh PowerPC
2758 powerpc
*-*-linux-gnu* )
2759 machine
=macppc opsys
=gnu-linux
2762 ## Silicon Graphics machines
2765 machine
=iris4d opsys
=irix6-5
2766 # Without defining _LANGUAGE_C, things get masked out in the headers
2767 # so that, for instance, grepping for `free' in stdlib.h fails and
2768 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2769 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2770 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2774 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2775 machine
=sparc opsys
=gnu-linux
2779 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2780 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2781 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2782 case "${canonical}" in
2783 i
[3456]86-*-* ) machine
=intel386
;;
2784 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2785 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2786 sparc
* ) machine
=sparc
;;
2789 case "${canonical}" in
2790 *-sunos5.3
* |
*-solaris2.3
* )
2792 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2794 *-sunos5.4
* |
*-solaris2.4
* )
2796 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2799 *-sunos5.5
* |
*-solaris2.5
* )
2801 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2804 *-sunos5.6
* |
*-solaris2.6
* )
2806 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2809 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2811 emacs_check_sunpro_c
=yes
2812 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2814 *-sunos5* |
*-solaris* )
2816 emacs_check_sunpro_c
=yes
2817 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2820 ## Watch out for a compiler that we know will not work.
2821 case "${canonical}" in
2822 *-solaris* |
*-sunos5* )
2823 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2824 ## /usr/ucb/cc doesn't work;
2825 ## we should find some other compiler that does work.
2835 machine
=ia64 opsys
=gnu-linux
2838 ## Intel 386 machines where we don't care about the manufacturer
2841 case "${canonical}" in
2842 *-cygwin ) opsys
=cygwin
;;
2843 *-darwin* ) opsys
=darwin
2844 CPP
="${CC-cc} -E -no-cpp-precomp"
2846 *-linux-gnu* ) opsys
=gnu-linux
;;
2847 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2848 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2849 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2850 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2854 ## m68k Linux-based GNU system
2856 machine
=m68k opsys
=gnu-linux
2859 ## Mips Linux-based GNU system
2860 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2861 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2862 machine
=mips opsys
=gnu-linux
2865 ## AMD x86-64 Linux-based GNU system
2866 x86_64-
*-linux-gnu* )
2867 machine
=amdx86-64 opsys
=gnu-linux
2870 ## Tensilica Xtensa Linux-based GNU system
2871 xtensa
*-*-linux-gnu* )
2872 machine
=xtensa opsys
=gnu-linux
2875 ## SuperH Linux-based GNU system
2876 sh
[34]*-*-linux-gnu* )
2877 machine
=sh3 opsys
=gnu-linux
2885 ### If the code above didn't choose an operating system, just choose
2886 ### an operating system based on the configuration name. You really
2887 ### only want to use this when you have no idea what the right
2888 ### operating system is; if you know what operating systems a machine
2889 ### runs, it's cleaner to make it explicit in the case statement
2891 if test x
"${opsys}" = x
; then
2892 case "${canonical}" in
2893 *-gnu* ) opsys
=gnu
;;
2894 *-sysv4.2uw
* ) opsys
=unixware
;;
2895 *-sysv5uw* ) opsys
=unixware
;;
2896 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2897 *-sysv4.1
* |
*-sysvr4.1
* )
2898 NON_GNU_CPP
=/usr
/lib
/cpp
2900 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2901 if [ x
$NON_GNU_CPP = x
]; then
2902 if [ -f /usr
/ccs
/lib
/cpp
]; then
2903 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2905 NON_GNU_CPP
=/lib
/cpp
2909 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2918 if test $unported = yes; then
2919 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2920 Check \`etc/MACHINES' for recognized configuration names." >&5
2921 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2922 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2923 { (exit 1); exit 1; }; }
2926 machfile
="m/${machine}.h"
2927 opsysfile
="s/${opsys}.h"
2930 #### Choose a compiler.
2931 test -n "$CC" && cc_specified
=yes
2933 # Save the value of CFLAGS that the user specified.
2934 SPECIFIED_CFLAGS
="$CFLAGS"
2937 ac_cpp
='$CPP $CPPFLAGS'
2938 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2943 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_CC+set}" = set; then
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC
="$CC" # Let the user override the test.
2952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir
=.
2957 for ac_exec_ext
in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:$LINENO: result: no" >&5
2975 $as_echo "no" >&6; }
2980 if test -z "$ac_cv_prog_CC"; then
2982 # Extract the first word of "gcc", so it can be a program name with args.
2983 set dummy gcc
; ac_word
=$2
2984 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_ac_ct_CC
="gcc"
3000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3014 { $as_echo "$as_me:$LINENO: result: no" >&5
3015 $as_echo "no" >&6; }
3018 if test "x$ac_ct_CC" = x
; then
3021 case $cross_compiling:$ac_tool_warned in
3023 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3024 whose name does not start with the host triplet. If you think this
3025 configuration is useful to you, please write to autoconf@gnu.org." >&5
3026 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3027 whose name does not start with the host triplet. If you think this
3028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3029 ac_tool_warned
=yes ;;
3037 if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC
="$CC" # Let the user override the test.
3049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir
=.
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3071 { $as_echo "$as_me:$LINENO: result: no" >&5
3072 $as_echo "no" >&6; }
3078 if test -z "$CC"; then
3079 # Extract the first word of "cc", so it can be a program name with args.
3080 set dummy cc
; ac_word
=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC
="$CC" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098 ac_prog_rejected
=yes
3102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 if test $ac_prog_rejected = yes; then
3110 # We found a bogon in the path, so make sure we never use it.
3111 set dummy
$ac_cv_prog_CC
3113 if test $# != 0; then
3114 # We chose a different compiler from the bogus one.
3115 # However, it has the same basename, so the bogon will be chosen
3116 # first if we set CC to just the basename; use the full file name.
3118 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3124 if test -n "$CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3134 if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog
in cl.exe
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC
="$CC" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$CC" && break
3178 if test -z "$CC"; then
3180 for ac_prog
in cl.exe
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy
$ac_prog; ac_word
=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir
=.
3197 for ac_exec_ext
in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_ac_ct_CC
="$ac_prog"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3219 test -n "$ac_ct_CC" && break
3222 if test "x$ac_ct_CC" = x
; then
3225 case $cross_compiling:$ac_tool_warned in
3227 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3228 whose name does not start with the host triplet. If you think this
3229 configuration is useful to you, please write to autoconf@gnu.org." >&5
3230 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3231 whose name does not start with the host triplet. If you think this
3232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3233 ac_tool_warned
=yes ;;
3242 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3243 See \`config.log' for more details." >&5
3244 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3245 See \`config.log' for more details." >&2;}
3246 { (exit 1); exit 1; }; }
3248 # Provide some information about the compiler.
3249 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3252 { (ac_try
="$ac_compiler --version >&5"
3254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3258 $as_echo "$ac_try_echo") >&5
3259 (eval "$ac_compiler --version >&5") 2>&5
3261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try="$ac_compiler -v >&5"
3265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3266 *) ac_try_echo
=$ac_try;;
3268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compiler -v >&5") 2>&5
3272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }
3274 { (ac_try
="$ac_compiler -V >&5"
3276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3280 $as_echo "$ac_try_echo") >&5
3281 (eval "$ac_compiler -V >&5") 2>&5
3283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3301 ac_clean_files_save=$ac_clean_files
3302 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3303 # Try to create an executable without -o first, disregard a.out.
3304 # It will help us diagnose broken compilers, and finding out an intuition
3306 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3310 # The possible output files:
3311 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314 for ac_file in $ac_files
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3323 if { (ac_try="$ac_link_default"
3325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3326 *) ac_try_echo
=$ac_try;;
3328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3329 $as_echo "$ac_try_echo") >&5
3330 (eval "$ac_link_default") 2>&5
3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; then
3334 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3335 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3336 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3337 # so that the user can short-circuit this test for compilers unknown to
3339 for ac_file
in $ac_files ''
3341 test -f "$ac_file" ||
continue
3343 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3346 # We found the default executable, but exeext='' is most
3350 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3352 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 # We set ac_cv_exeext here because the later test for it is not
3355 # safe: cross compilers may not add the suffix if given an `-o'
3356 # argument, so we may need to know it at that point already.
3357 # Even if this section looks crufty: it has the advantage of
3364 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3370 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3371 $as_echo "$ac_file" >&6; }
3372 if test -z "$ac_file"; then
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.
$ac_ext >&5
3376 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&5
3378 $as_echo "$as_me: error: C compiler cannot create executables
3379 See \`config.log' for more details." >&2;}
3380 { (exit 77); exit 77; }; }
3383 ac_exeext
=$ac_cv_exeext
3385 # Check that the compiler produces executables we can run. If not, either
3386 # the compiler is broken, or we cross compile.
3387 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3388 $as_echo_n "checking whether the C compiler works... " >&6; }
3389 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3390 # If not cross compiling, check that we can run a simple program.
3391 if test "$cross_compiling" != yes; then
3392 if { ac_try
='./$ac_file'
3393 { (case "(($ac_try" in
3394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399 (eval "$ac_try") 2>&5
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3405 if test "$cross_compiling" = maybe; then
3408 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details.
" >&5
3411 $as_echo "$as_me: error
: cannot run C compiled programs.
3412 If you meant to cross compile
, use \
`--host'.
3413 See \`config.log
' for more details." >&2;}
3414 { (exit 1); exit 1; }; }
3418 { $as_echo "$as_me:$LINENO: result: yes" >&5
3419 $as_echo "yes" >&6; }
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { (ac_try="$ac_link"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_link") 2>&5
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; then
3443 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3444 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3447 for ac_file
in conftest.exe conftest conftest.
*; do
3448 test -f "$ac_file" ||
continue
3450 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3451 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details." >&2;}
3461 { (exit 1); exit 1; }; }
3464 rm -f conftest
$ac_cv_exeext
3465 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3466 $as_echo "$ac_cv_exeext" >&6; }
3468 rm -f conftest.
$ac_ext
3469 EXEEXT
=$ac_cv_exeext
3471 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3472 $as_echo_n "checking for suffix of object files... " >&6; }
3473 if test "${ac_cv_objext+set}" = set; then
3474 $as_echo_n "(cached) " >&6
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3491 rm -f conftest.o conftest.obj
3492 if { (ac_try
="$ac_compile"
3494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_compile") 2>&5
3501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; then
3503 for ac_file in conftest.o conftest.obj conftest.*; do
3504 test -f "$ac_file" || continue;
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3516 See \`config.log
' for more details." >&5
3517 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details.
" >&2;}
3519 { (exit 1); exit 1; }; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3530 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3531 $as_echo_n "(cached
) " >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3571 $as_echo "$as_me: failed program was
:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3583 if test $ac_compiler_gnu = yes; then
3588 ac_test_CFLAGS=${CFLAGS+set}
3589 ac_save_CFLAGS=$CFLAGS
3590 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3591 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3592 if test "${ac_cv_prog_cc_g+set}" = set; then
3593 $as_echo_n "(cached
) " >&6
3595 ac_save_c_werror_flag=$ac_c_werror_flag
3596 ac_c_werror_flag=yes
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3634 $as_echo "$as_me: failed program was
:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661 (eval "$ac_compile") 2>conftest.er1
3663 grep -v '^ *+' conftest.er1 >conftest.err
3665 cat conftest.err >&5
3666 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3667 (exit $ac_status); } && {
3668 test -z "$ac_c_werror_flag" ||
3669 test ! -s conftest.err
3670 } && test -s conftest.$ac_objext; then
3673 $as_echo "$as_me: failed program was
:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_c_werror_flag=$ac_save_c_werror_flag
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3693 rm -f conftest.$ac_objext
3694 if { (ac_try="$ac_compile"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3713 $as_echo "$as_me: failed program was
:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_c_werror_flag=$ac_save_c_werror_flag
3728 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3729 $as_echo "$ac_cv_prog_cc_g" >&6; }
3730 if test "$ac_test_CFLAGS" = set; then
3731 CFLAGS=$ac_save_CFLAGS
3732 elif test $ac_cv_prog_cc_g = yes; then
3733 if test "$GCC" = yes; then
3739 if test "$GCC" = yes; then
3745 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3746 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3747 if test "${ac_cv_prog_cc_c89+set}" = set; then
3748 $as_echo_n "(cached
) " >&6
3750 ac_cv_prog_cc_c89=no
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3760 #include <sys/types.h>
3761 #include <sys/stat.h>
3762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3763 struct buf { int x; };
3764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3765 static char *e (p, i)
3771 static char *f (char * (*g) (char **, int), char **p, ...)
3776 s = g (p, va_arg (v,int));
3781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3782 function prototypes and stuff, but not '\xHH' hex character constants.
3783 These don't provoke an error unfortunately, instead are silently treated
3784 as 'x'. The following induces an error, until -std is added to get
3785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3786 array size at least. It's necessary to write '\x00'==0 to get something
3787 that's true only with -std. */
3788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3791 inside strings and character constants. */
3793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3795 int test (int i, double x);
3796 struct s1 {int (*f) (int a);};
3797 struct s2 {int (*f) (double a);};
3798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3812 CC="$ac_save_CC $ac_arg"
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_compile") 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3827 (exit $ac_status); } && {
3828 test -z "$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 } && test -s conftest.$ac_objext; then
3831 ac_cv_prog_cc_c89=$ac_arg
3833 $as_echo "$as_me: failed program was
:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3839 rm -f core conftest.err conftest.$ac_objext
3840 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3842 rm -f conftest.$ac_ext
3847 case "x
$ac_cv_prog_cc_c89" in
3849 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3850 $as_echo "none needed
" >&6; } ;;
3852 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3853 $as_echo "unsupported
" >&6; } ;;
3855 CC="$CC $ac_cv_prog_cc_c89"
3856 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3857 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 ac_cpp='$CPP $CPPFLAGS'
3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 # On Suns, sometimes $CPP names a directory.
3869 if test -n "$CPP" && test -d "$CPP"; then
3873 ## If not using gcc, and on Solaris, and no CPP specified, see if
3874 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3875 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3876 test x"$CPP" = x; then
3877 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3878 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3880 if test "${emacs_cv_sunpro_c+set}" = set; then
3881 $as_echo_n "(cached
) " >&6
3883 cat >conftest.$ac_ext <<_ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3901 rm -f conftest.$ac_objext conftest$ac_exeext
3902 if { (ac_try="$ac_link"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_link") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest$ac_exeext && {
3919 test "$cross_compiling" = yes ||
3920 $as_test_x conftest$ac_exeext
3922 emacs_cv_sunpro_c=yes
3924 $as_echo "$as_me: failed program was
:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 emacs_cv_sunpro_c=no
3930 rm -rf conftest.dSYM
3931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3932 conftest$ac_exeext conftest.$ac_ext
3935 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3936 $as_echo "$emacs_cv_sunpro_c" >&6; }
3938 if test x"$emacs_cv_sunpro_c" = xyes; then
3939 NON_GNU_CPP="$CC -E -Xs"
3943 #### Some systems specify a CPP to use unless we are using GCC.
3944 #### Now that we know whether we are using GCC, we can decide whether
3945 #### to use that one.
3946 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3951 #### Some systems specify a CC 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_CC" != x && test x$GCC != xyes &&
3955 test x$cc_specified != xyes
3960 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3962 CC="$CC $GCC_TEST_OPTIONS"
3965 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3967 CC="$CC $NON_GCC_TEST_OPTIONS"
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3976 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3977 # On Suns, sometimes $CPP names a directory.
3978 if test -n "$CPP" && test -d "$CPP"; then
3981 if test -z "$CPP"; then
3982 if test "${ac_cv_prog_CPP+set}" = set; then
3983 $as_echo_n "(cached
) " >&6
3985 # Double quotes because CPP needs to be expanded
3986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3989 for ac_c_preproc_warn_flag in '' yes
3991 # Use a header file that comes with gcc, so configuring glibc
3992 # with a fresh cross-compiler works.
3993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3994 # <limits.h> exists even on freestanding compilers.
3995 # On the NeXT, cc -E runs the code through the compiler's parser,
3996 # not just through cpp. "Syntax error
" is here to catch this case.
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4004 # include <limits.h>
4006 # include <assert.h>
4010 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4016 $as_echo "$ac_try_echo") >&5
4017 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4023 (exit $ac_status); } >/dev/null && {
4024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4029 $as_echo "$as_me: failed program was
:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 # Broken: fails on valid input.
4036 rm -f conftest.err conftest.$ac_ext
4038 # OK, works on sane cases. Now check whether nonexistent headers
4039 # can be detected and how.
4040 cat >conftest.$ac_ext <<_ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4046 #include <ac_nonexistent.h>
4048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4057 grep -v '^ *+' conftest.er1 >conftest.err
4059 cat conftest.err >&5
4060 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4065 # Broken: success on invalid input.
4068 $as_echo "$as_me: failed program was
:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 # Passes both tests.
4076 rm -f conftest.err conftest.$ac_ext
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then
4093 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4094 $as_echo "$CPP" >&6; }
4096 for ac_c_preproc_warn_flag in '' yes
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error
" is here to catch this case.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4111 # include <limits.h>
4113 # include <assert.h>
4117 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4123 $as_echo "$ac_try_echo") >&5
4124 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4126 grep -v '^ *+' conftest.er1 >conftest.err
4128 cat conftest.err >&5
4129 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4130 (exit $ac_status); } >/dev/null && {
4131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4132 test ! -s conftest.err
4136 $as_echo "$as_me: failed program was
:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 # Broken: fails on valid input.
4143 rm -f conftest.err conftest.$ac_ext
4145 # OK, works on sane cases. Now check whether nonexistent headers
4146 # can be detected and how.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <ac_nonexistent.h>
4155 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4161 $as_echo "$ac_try_echo") >&5
4162 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4168 (exit $ac_status); } >/dev/null && {
4169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4170 test ! -s conftest.err
4172 # Broken: success on invalid input.
4175 $as_echo "$as_me: failed program was
:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 # Passes both tests.
4183 rm -f conftest.err conftest.$ac_ext
4186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4187 rm -f conftest.err conftest.$ac_ext
4188 if $ac_preproc_ok; then
4191 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4192 See \
`config.log' for more details." >&5
4193 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4194 See \`config.log
' for more details." >&2;}
4195 { (exit 1); exit 1; }; }
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4201 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if test "${ac_cv_path_GREP+set}" = set; then
4208 $as_echo_n "(cached) " >&6
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and
test for each of PROGNAME-LIST
4213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4214 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4217 test -z "$as_dir" && as_dir
=.
4218 for ac_prog
in grep ggrep
; do
4219 for ac_exec_ext
in '' $ac_executable_extensions; do
4220 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4226 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4237 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4238 ac_count
=`expr $ac_count + 1`
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP
="$ac_path_GREP"
4242 ac_path_GREP_max
=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4250 $ac_path_GREP_found && break 3
4255 if test -z "$ac_cv_path_GREP"; then
4256 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4257 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4258 { (exit 1); exit 1; }; }
4261 ac_cv_path_GREP
=$GREP
4265 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4266 $as_echo "$ac_cv_path_GREP" >&6; }
4267 GREP
="$ac_cv_path_GREP"
4270 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4271 $as_echo_n "checking for egrep... " >&6; }
4272 if test "${ac_cv_path_EGREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4275 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4276 then ac_cv_path_EGREP
="$GREP -E"
4278 if test -z "$EGREP"; then
4279 ac_path_EGREP_found
=false
4280 # Loop through the user's path and test for each of PROGNAME-LIST
4281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4282 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4285 test -z "$as_dir" && as_dir
=.
4286 for ac_prog
in egrep; do
4287 for ac_exec_ext
in '' $ac_executable_extensions; do
4288 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4289 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4290 # Check for GNU ac_path_EGREP and select it if it is found.
4291 # Check for GNU $ac_path_EGREP
4292 case `"$ac_path_EGREP" --version 2>&1` in
4294 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4297 $as_echo_n 0123456789 >"conftest.in"
4300 cat "conftest.in" "conftest.in" >"conftest.tmp"
4301 mv "conftest.tmp" "conftest.in"
4302 cp "conftest.in" "conftest.nl"
4303 $as_echo 'EGREP' >> "conftest.nl"
4304 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4305 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4306 ac_count
=`expr $ac_count + 1`
4307 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4308 # Best one so far, save it but keep looking for a better one
4309 ac_cv_path_EGREP
="$ac_path_EGREP"
4310 ac_path_EGREP_max
=$ac_count
4312 # 10*(2^10) chars as input seems more than enough
4313 test $ac_count -gt 10 && break
4315 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4318 $ac_path_EGREP_found && break 3
4323 if test -z "$ac_cv_path_EGREP"; then
4324 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4325 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4326 { (exit 1); exit 1; }; }
4329 ac_cv_path_EGREP
=$EGREP
4334 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4335 $as_echo "$ac_cv_path_EGREP" >&6; }
4336 EGREP
="$ac_cv_path_EGREP"
4339 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4340 $as_echo_n "checking for ANSI C header files... " >&6; }
4341 if test "${ac_cv_header_stdc+set}" = set; then
4342 $as_echo_n "(cached) " >&6
4344 cat >conftest.
$ac_ext <<_ACEOF
4347 cat confdefs.h
>>conftest.
$ac_ext
4348 cat >>conftest.
$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4363 rm -f conftest.
$ac_objext
4364 if { (ac_try
="$ac_compile"
4366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_cv_header_stdc=yes
4383 $as_echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4406 ac_cv_header_stdc=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4427 ac_cv_header_stdc=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4469 rm -f conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4473 *) ac_try_echo
=$ac_try;;
4475 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4476 $as_echo "$ac_try_echo") >&5
4477 (eval "$ac_link") 2>&5
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4481 { (case "(($ac_try" in
4482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4486 $as_echo "$ac_try_echo") >&5
4487 (eval "$ac_try") 2>&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4493 $as_echo "$as_me: program exited with status $ac_status" >&5
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_cv_header_stdc=no
4500 rm -rf conftest.dSYM
4501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4507 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4508 $as_echo "$ac_cv_header_stdc" >&6; }
4509 if test $ac_cv_header_stdc = yes; then
4511 cat >>confdefs.h <<\_ACEOF
4512 #define STDC_HEADERS 1
4517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4528 inttypes.h stdint.h unistd.h
4530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4532 $as_echo_n "checking for $ac_header... " >&6; }
4533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4534 $as_echo_n "(cached) " >&6
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 $ac_includes_default
4544 #include <$ac_header>
4546 rm -f conftest.$ac_objext
4547 if { (ac_try="$ac_compile"
4549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4550 *) ac_try_echo
=$ac_try;;
4552 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4553 $as_echo "$ac_try_echo") >&5
4554 (eval "$ac_compile") 2>conftest.er1
4556 grep -v '^ *+' conftest.er1
>conftest.err
4558 cat conftest.err
>&5
4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); } && {
4561 test -z "$ac_c_werror_flag" ||
4562 test ! -s conftest.err
4563 } && test -s conftest.
$ac_objext; then
4564 eval "$as_ac_Header=yes"
4566 $as_echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.
$ac_ext >&5
4569 eval "$as_ac_Header=no"
4572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4574 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4575 $as_echo "$as_val"'`
4576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4577 $as_echo "$ac_res" >&6; }
4578 if test `eval 'as_val=${'$as_ac_Header'}
4579 $as_echo "$as_val"'` = yes; then
4580 cat >>confdefs.h
<<_ACEOF
4581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 if test "${ac_cv_header_minix_config_h+set}" = set; then
4591 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4592 $as_echo_n "checking for minix/config.h... " >&6; }
4593 if test "${ac_cv_header_minix_config_h+set}" = set; then
4594 $as_echo_n "(cached) " >&6
4596 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4597 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4599 # Is the header compilable?
4600 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4601 $as_echo_n "checking minix/config.h usability... " >&6; }
4602 cat >conftest.
$ac_ext <<_ACEOF
4605 cat confdefs.h
>>conftest.
$ac_ext
4606 cat >>conftest.
$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 $ac_includes_default
4609 #include <minix/config.h>
4611 rm -f conftest.
$ac_objext
4612 if { (ac_try
="$ac_compile"
4614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_compile") 2>conftest.er1
4621 grep -v '^ *+' conftest.er1 >conftest.err
4623 cat conftest.err >&5
4624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } && {
4626 test -z "$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 } && test -s conftest.$ac_objext; then
4629 ac_header_compiler=yes
4631 $as_echo "$as_me: failed program was:" >&5
4632 sed 's/^/| /' conftest.$ac_ext >&5
4634 ac_header_compiler=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4639 $as_echo "$ac_header_compiler" >&6; }
4641 # Is the header present?
4642 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4643 $as_echo_n "checking minix/config.h presence... " >&6; }
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <minix/config.h>
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4655 *) ac_try_echo
=$ac_try;;
4657 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev
/null
&& {
4666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4669 ac_header_preproc
=yes
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.
$ac_ext >&5
4674 ac_header_preproc
=no
4677 rm -f conftest.err conftest.
$ac_ext
4678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4679 $as_echo "$ac_header_preproc" >&6; }
4681 # So? What about this header?
4682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4684 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4685 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4686 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4687 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4688 ac_header_preproc
=yes
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4695 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4696 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4697 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4698 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4699 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4700 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4701 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4702 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4706 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4707 $as_echo_n "checking for minix/config.h... " >&6; }
4708 if test "${ac_cv_header_minix_config_h+set}" = set; then
4709 $as_echo_n "(cached) " >&6
4711 ac_cv_header_minix_config_h
=$ac_header_preproc
4713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4714 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4717 if test $ac_cv_header_minix_config_h = yes; then
4724 if test "$MINIX" = yes; then
4726 cat >>confdefs.h
<<\_ACEOF
4727 #define _POSIX_SOURCE 1
4731 cat >>confdefs.h
<<\_ACEOF
4732 #define _POSIX_1_SOURCE 2
4736 cat >>confdefs.h
<<\_ACEOF
4744 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4745 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4746 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4747 $as_echo_n "(cached) " >&6
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4756 # define __EXTENSIONS__ 1
4757 $ac_includes_default
4766 rm -f conftest.
$ac_objext
4767 if { (ac_try
="$ac_compile"
4769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4770 *) ac_try_echo=$ac_try;;
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774 (eval "$ac_compile") 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && {
4781 test -z "$ac_c_werror_flag" ||
4782 test ! -s conftest.err
4783 } && test -s conftest.$ac_objext; then
4784 ac_cv_safe_to_define___extensions__=yes
4786 $as_echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 ac_cv_safe_to_define___extensions__=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4795 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4796 test $ac_cv_safe_to_define___extensions__ = yes &&
4797 cat >>confdefs.h <<\_ACEOF
4798 #define __EXTENSIONS__ 1
4801 cat >>confdefs.h <<\_ACEOF
4802 #define _ALL_SOURCE 1
4805 cat >>confdefs.h <<\_ACEOF
4806 #define _GNU_SOURCE 1
4809 cat >>confdefs.h <<\_ACEOF
4810 #define _POSIX_PTHREAD_SEMANTICS 1
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _TANDEM_SOURCE 1
4819 ### Use -Wno-pointer-sign if the compiler supports it
4820 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4821 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4822 SAVE_CFLAGS="$CFLAGS"
4823 CFLAGS="$CFLAGS -Wno-pointer-sign"
4824 cat >conftest.$ac_ext <<_ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4839 rm -f conftest.$ac_objext
4840 if { (ac_try="$ac_compile"
4842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4843 *) ac_try_echo
=$ac_try;;
4845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847 (eval "$ac_compile") 2>conftest.er1
4849 grep -v '^ *+' conftest.er1
>conftest.err
4851 cat conftest.err
>&5
4852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } && {
4854 test -z "$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4856 } && test -s conftest.
$ac_objext; then
4859 $as_echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4866 if test $has_option = yes; then
4867 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4869 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4870 $as_echo "$has_option" >&6; }
4871 CFLAGS
="$SAVE_CFLAGS"
4875 #### Some other nice autoconf tests.
4877 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4878 $as_echo_n "checking whether ln -s works... " >&6; }
4880 if test "$LN_S" = "ln -s"; then
4881 { $as_echo "$as_me:$LINENO: result: yes" >&5
4882 $as_echo "yes" >&6; }
4884 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4885 $as_echo "no, using $LN_S" >&6; }
4889 ac_cpp
='$CPP $CPPFLAGS'
4890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4893 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4894 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4895 # On Suns, sometimes $CPP names a directory.
4896 if test -n "$CPP" && test -d "$CPP"; then
4899 if test -z "$CPP"; then
4900 if test "${ac_cv_prog_CPP+set}" = set; then
4901 $as_echo_n "(cached) " >&6
4903 # Double quotes because CPP needs to be expanded
4904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 for ac_c_preproc_warn_flag
in '' yes
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.
$ac_ext <<_ACEOF
4918 cat confdefs.h
>>conftest.
$ac_ext
4919 cat >>conftest.
$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4922 # include <limits.h>
4924 # include <assert.h>
4928 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4972 $as_echo "$ac_try_echo") >&5
4973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4975 grep -v '^ *+' conftest.er1
>conftest.err
4977 cat conftest.err
>&5
4978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } >/dev
/null
&& {
4980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4983 # Broken: success on invalid input.
4986 $as_echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.
$ac_ext >&5
4989 # Passes both tests.
4994 rm -f conftest.err conftest.
$ac_ext
4997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4998 rm -f conftest.err conftest.
$ac_ext
4999 if $ac_preproc_ok; then
5011 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5012 $as_echo "$CPP" >&6; }
5014 for ac_c_preproc_warn_flag
in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat >conftest.
$ac_ext <<_ACEOF
5025 cat confdefs.h
>>conftest.
$ac_ext
5026 cat >>conftest.
$ac_ext <<_ACEOF
5027 /* end confdefs.h. */
5029 # include <limits.h>
5031 # include <assert.h>
5035 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041 $as_echo "$ac_try_echo") >&5
5042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null && {
5049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5054 $as_echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5061 rm -f conftest.err conftest.$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5073 if { (ac_try="$ac_cpp conftest.$ac_ext"
5075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5076 *) ac_try_echo
=$ac_try;;
5078 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5079 $as_echo "$ac_try_echo") >&5
5080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5082 grep -v '^ *+' conftest.er1
>conftest.err
5084 cat conftest.err
>&5
5085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } >/dev
/null
&& {
5087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5090 # Broken: success on invalid input.
5093 $as_echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.
$ac_ext >&5
5096 # Passes both tests.
5101 rm -f conftest.err conftest.
$ac_ext
5104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105 rm -f conftest.err conftest.
$ac_ext
5106 if $ac_preproc_ok; then
5109 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details." >&5
5111 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5112 See \`config.log' for more details." >&2;}
5113 { (exit 1); exit 1; }; }
5117 ac_cpp
='$CPP $CPPFLAGS'
5118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5122 # Find a good install program. We prefer a C program (faster),
5123 # so one script is as good as another. But avoid the broken or
5124 # incompatible versions:
5125 # SysV /etc/install, /usr/sbin/install
5126 # SunOS /usr/etc/install
5127 # IRIX /sbin/install
5129 # AmigaOS /C/install, which installs bootblocks on floppy discs
5130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5133 # OS/2's system install, which has a completely different semantic
5134 # ./install, which can be erroneously created by make from ./install.sh.
5135 # Reject install programs that cannot install multiple files.
5136 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5137 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5138 if test -z "$INSTALL"; then
5139 if test "${ac_cv_path_install+set}" = set; then
5140 $as_echo_n "(cached) " >&6
5142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir
=.
5147 # Account for people who put trailing slashes in PATH elements.
5149 .
/ | .
// |
/cC
/* | \
5150 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5151 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5154 # OSF1 and SCO ODT 3.0 have their own names for install.
5155 # Don't use installbsd from OSF since it installs stuff as root
5157 for ac_prog
in ginstall scoinst
install; do
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5160 if test $ac_prog = install &&
5161 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5162 # AIX install. It has an incompatible calling convention.
5164 elif test $ac_prog = install &&
5165 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5166 # program-specific install script used by HP pwplus--don't use.
5169 rm -rf conftest.one conftest.two conftest.dir
5170 echo one
> conftest.one
5171 echo two
> conftest.two
5173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5174 test -s conftest.one
&& test -s conftest.two
&&
5175 test -s conftest.dir
/conftest.one
&&
5176 test -s conftest.dir
/conftest.two
5178 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5191 rm -rf conftest.one conftest.two conftest.dir
5194 if test "${ac_cv_path_install+set}" = set; then
5195 INSTALL
=$ac_cv_path_install
5197 # As a last resort, use the slow shell script. Don't cache a
5198 # value for INSTALL within a source directory, because that will
5199 # break other packages using the cache if that directory is
5200 # removed, or if the value is a relative name.
5201 INSTALL
=$ac_install_sh
5204 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5205 $as_echo "$INSTALL" >&6; }
5207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5208 # It thinks the first close brace ends the variable substitution.
5209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5213 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5215 if test "x$RANLIB" = x
; then
5216 if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5218 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_RANLIB+set}" = set; then
5222 $as_echo_n "(cached) " >&6
5224 if test -n "$RANLIB"; then
5225 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 RANLIB
=$ac_cv_prog_RANLIB
5245 if test -n "$RANLIB"; then
5246 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5247 $as_echo "$RANLIB" >&6; }
5249 { $as_echo "$as_me:$LINENO: result: no" >&5
5250 $as_echo "no" >&6; }
5255 if test -z "$ac_cv_prog_RANLIB"; then
5256 ac_ct_RANLIB
=$RANLIB
5257 # Extract the first word of "ranlib", so it can be a program name with args.
5258 set dummy ranlib
; ac_word
=$2
5259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5262 $as_echo_n "(cached) " >&6
5264 if test -n "$ac_ct_RANLIB"; then
5265 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir
=.
5272 for ac_exec_ext
in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5285 if test -n "$ac_ct_RANLIB"; then
5286 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5287 $as_echo "$ac_ct_RANLIB" >&6; }
5289 { $as_echo "$as_me:$LINENO: result: no" >&5
5290 $as_echo "no" >&6; }
5293 if test "x$ac_ct_RANLIB" = x
; then
5296 case $cross_compiling:$ac_tool_warned in
5298 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5299 whose name does not start with the host triplet. If you think this
5300 configuration is useful to you, please write to autoconf@gnu.org." >&5
5301 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5302 whose name does not start with the host triplet. If you think this
5303 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5304 ac_tool_warned
=yes ;;
5306 RANLIB
=$ac_ct_RANLIB
5309 RANLIB
="$ac_cv_prog_RANLIB"
5313 # Extract the first word of "install-info", so it can be a program name with args.
5314 set dummy install-info
; ac_word
=$2
5315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5318 $as_echo_n "(cached) " >&6
5320 case $INSTALL_INFO in
5322 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir
=.
5330 for ac_exec_ext
in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5344 if test -n "$INSTALL_INFO"; then
5345 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5346 $as_echo "$INSTALL_INFO" >&6; }
5348 { $as_echo "$as_me:$LINENO: result: no" >&5
5349 $as_echo "no" >&6; }
5353 # Extract the first word of "install-info", so it can be a program name with args.
5354 set dummy install-info
; ac_word
=$2
5355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5358 $as_echo_n "(cached) " >&6
5360 case $INSTALL_INFO in
5362 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5366 for as_dir
in /usr
/sbin
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5384 if test -n "$INSTALL_INFO"; then
5385 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5386 $as_echo "$INSTALL_INFO" >&6; }
5388 { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info
; ac_word
=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5400 case $INSTALL_INFO in
5402 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5424 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5425 if test -n "$INSTALL_INFO"; then
5426 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5427 $as_echo "$INSTALL_INFO" >&6; }
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5434 # Extract the first word of "gzip", so it can be a program name with args.
5435 set dummy
gzip; ac_word
=$2
5436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5439 $as_echo_n "(cached) " >&6
5443 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir
=.
5451 for ac_exec_ext
in '' $ac_executable_extensions; do
5452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5465 if test -n "$GZIP_PROG"; then
5466 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5467 $as_echo "$GZIP_PROG" >&6; }
5469 { $as_echo "$as_me:$LINENO: result: no" >&5
5470 $as_echo "no" >&6; }
5476 ## Need makeinfo >= 4.6 (?) to build the manuals.
5477 # Extract the first word of "makeinfo", so it can be a program name with args.
5478 set dummy makeinfo
; ac_word
=$2
5479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5482 $as_echo_n "(cached) " >&6
5486 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5493 test -z "$as_dir" && as_dir
=.
5494 for ac_exec_ext
in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5508 MAKEINFO
=$ac_cv_path_MAKEINFO
5509 if test -n "$MAKEINFO"; then
5510 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5511 $as_echo "$MAKEINFO" >&6; }
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514 $as_echo "no" >&6; }
5518 if test "$MAKEINFO" != "no" && \
5519 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
5523 ## Makeinfo is unusual. For a released Emacs, the manuals are
5524 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5525 ## therefore in the category of "special tools" not normally required, which
5526 ## configure does not have to check for (eg autoconf itself).
5527 ## In a CVS checkout on the other hand, the manuals are not included.
5528 ## So makeinfo is a requirement to build from CVS, and configure
5529 ## should test for it as it does for any other build requirement.
5530 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5531 ## with pre-built manuals, from a CVS checkout.
5532 if test "$MAKEINFO" = "no"; then
5533 if test "x${with_makeinfo}" = "xno"; then
5535 elif ! test -e $srcdir/info
/emacs
; then
5536 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5537 source tree does not seem to have pre-built manuals in the \`info' directory.
5538 Either install a suitable version of makeinfo, or re-run configure
5539 with the \`--without-makeinfo' option to build without the manuals. " >&5
5540 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5541 source tree does not seem to have pre-built manuals in the \`info' directory.
5542 Either install a suitable version of makeinfo, or re-run configure
5543 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5544 { (exit 1); exit 1; }; }
5549 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5551 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5554 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5556 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5560 late_LDFLAGS
=$LDFLAGS
5561 if test "$GCC" = yes; then
5562 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5564 LDFLAGS
="$LDFLAGS -znocombreloc"
5567 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5568 $as_echo_n "checking for -znocombreloc... " >&6; }
5569 cat >conftest.
$ac_ext <<_ACEOF
5572 rm -f conftest.
$ac_objext conftest
$ac_exeext
5573 if { (ac_try
="$ac_link"
5575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579 $as_echo "$ac_try_echo") >&5
5580 (eval "$ac_link") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1 >conftest.err
5584 cat conftest.err >&5
5585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest$ac_exeext && {
5590 test "$cross_compiling" = yes ||
5591 $as_test_x conftest$ac_exeext
5593 { $as_echo "$as_me:$LINENO: result: yes" >&5
5594 $as_echo "yes" >&6; }
5596 $as_echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 LDFLAGS=$late_LDFLAGS
5600 { $as_echo "$as_me:$LINENO: result: no" >&5
5601 $as_echo "no" >&6; }
5604 rm -rf conftest.dSYM
5605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5606 conftest$ac_exeext conftest.$ac_ext
5608 #### Extract some information from the operating system and machine files.
5610 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5611 - which libraries the lib-src programs will want, and
5612 - whether the GNU malloc routines are usable..." >&5
5613 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5614 - which libraries the lib-src programs will want, and
5615 - whether the GNU malloc routines are usable..." >&6;}
5617 ### First figure out CFLAGS (which we use for running the compiler here)
5618 ### and REAL_CFLAGS (which we use for real compilation).
5619 ### The two are the same except on a few systems, where they are made
5620 ### different to work around various lossages. For example,
5621 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5622 ### as implying static linking.
5624 ### If the CFLAGS env var is specified, we use that value
5625 ### instead of the default.
5627 ### It's not important that this name contain the PID; you can't run
5628 ### two configures in the same directory and have anything work
5630 tempcname="conftest.c"
5633 #include "'${srcdir}'/src/'${opsysfile}'"
5634 #include "'${srcdir}'/src/'${machfile}'"
5635 #ifndef LIBS_MACHINE
5636 #define LIBS_MACHINE
5641 #ifndef C_SWITCH_SYSTEM
5642 #define C_SWITCH_SYSTEM
5644 #ifndef C_SWITCH_MACHINE
5645 #define C_SWITCH_MACHINE
5647 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5648 configure___ c_switch_system=C_SWITCH_SYSTEM
5649 configure___ c_switch_machine=C_SWITCH_MACHINE
5652 #define LIB_X11_LIB -lX11
5655 #ifndef LIBX11_SYSTEM
5656 #define LIBX11_SYSTEM
5658 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5661 configure___ unexec=UNEXEC
5663 configure___ unexec=unexec.o
5666 #ifdef SYSTEM_MALLOC
5667 configure___ system_malloc=yes
5669 configure___ system_malloc=no
5672 #ifdef USE_MMAP_FOR_BUFFERS
5673 configure___ use_mmap_for_buffers=yes
5675 configure___ use_mmap_for_buffers=no
5678 #ifndef C_DEBUG_SWITCH
5679 #define C_DEBUG_SWITCH -g
5682 #ifndef C_OPTIMIZE_SWITCH
5684 #define C_OPTIMIZE_SWITCH -O2
5686 #define C_OPTIMIZE_SWITCH -O
5690 #ifndef C_WARNINGS_SWITCH
5691 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5694 #ifndef LD_SWITCH_MACHINE
5695 #define LD_SWITCH_MACHINE
5698 #ifndef LD_SWITCH_SYSTEM
5699 #define LD_SWITCH_SYSTEM
5702 #ifndef LD_SWITCH_X_SITE_AUX
5703 #define LD_SWITCH_X_SITE_AUX
5706 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5707 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5709 #ifdef THIS_IS_CONFIGURE
5711 /* Get the CFLAGS for tests in configure. */
5713 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5715 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5718 #else /* not THIS_IS_CONFIGURE */
5720 /* Get the CFLAGS for real compilation. */
5722 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5724 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5727 #endif /* not THIS_IS_CONFIGURE */
5730 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5732 # The value of CPP is a quoted variable reference, so we need to do this
5733 # to get its actual value...
5734 CPP=`eval "echo $CPP"`
5735 eval `${CPP} -Isrc ${tempcname} \
5736 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5737 if test "x$SPECIFIED_CFLAGS" = x; then
5738 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5739 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5741 REAL_CFLAGS="$CFLAGS"
5745 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5747 ### Make sure subsequent tests use flags consistent with the build flags.
5749 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5750 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5752 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5757 # Check whether --enable-largefile was given.
5758 if test "${enable_largefile+set}" = set; then
5759 enableval=$enable_largefile;
5762 if test "$enable_largefile" != no; then
5764 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5765 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5766 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5769 ac_cv_sys_largefile_CC=no
5770 if test "$GCC" != yes; then
5773 # IRIX 6.2 and later do not support large files by default,
5774 # so use the C compiler's -n32 option if that helps.
5775 cat >conftest.$ac_ext <<_ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 #include <sys/types.h>
5782 /* Check that off_t can represent 2**63 - 1 correctly.
5783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5784 since some C++ compilers masquerading as C compilers
5785 incorrectly reject 9223372036854775807. */
5786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5788 && LARGE_OFF_T % 2147483647 == 1)
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5802 *) ac_try_echo
=$ac_try;;
5804 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5808 grep -v '^ *+' conftest.er1
>conftest.err
5810 cat conftest.err
>&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.
$ac_objext; then
5818 $as_echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.
$ac_ext >&5
5824 rm -f core conftest.err conftest.
$ac_objext
5826 rm -f conftest.
$ac_objext
5827 if { (ac_try
="$ac_compile"
5829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833 $as_echo "$ac_try_echo") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_sys_largefile_CC=' -n32'; break
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f core conftest.err conftest.$ac_objext
5856 rm -f conftest.$ac_ext
5859 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5860 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5861 if test "$ac_cv_sys_largefile_CC" != no; then
5862 CC=$CC$ac_cv_sys_largefile_CC
5865 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5866 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5867 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5868 $as_echo_n "(cached) " >&6
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5898 *) ac_try_echo
=$ac_try;;
5900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1
>conftest.err
5906 cat conftest.err
>&5
5907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.
$ac_objext; then
5912 ac_cv_sys_file_offset_bits
=no
; break
5914 $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.
$ac_ext >&5
5920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5921 cat >conftest.
$ac_ext <<_ACEOF
5924 cat confdefs.h
>>conftest.
$ac_ext
5925 cat >>conftest.
$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #define _FILE_OFFSET_BITS 64
5928 #include <sys/types.h>
5929 /* Check that off_t can represent 2**63 - 1 correctly.
5930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5931 since some C++ compilers masquerading as C compilers
5932 incorrectly reject 9223372036854775807. */
5933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5935 && LARGE_OFF_T % 2147483647 == 1)
5945 rm -f conftest.
$ac_objext
5946 if { (ac_try
="$ac_compile"
5948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5952 $as_echo "$ac_try_echo") >&5
5953 (eval "$ac_compile") 2>conftest.er1
5955 grep -v '^ *+' conftest.er1 >conftest.err
5957 cat conftest.err >&5
5958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && {
5960 test -z "$ac_c_werror_flag" ||
5961 test ! -s conftest.err
5962 } && test -s conftest.$ac_objext; then
5963 ac_cv_sys_file_offset_bits=64; break
5965 $as_echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 ac_cv_sys_file_offset_bits=unknown
5976 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5977 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5978 case $ac_cv_sys_file_offset_bits in #(
5981 cat >>confdefs.h <<_ACEOF
5982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5987 if test $ac_cv_sys_file_offset_bits = unknown; then
5988 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5989 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5990 if test "${ac_cv_sys_large_files+set}" = set; then
5991 $as_echo_n "(cached) " >&6
5994 cat >conftest.$ac_ext <<_ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <sys/types.h>
6001 /* Check that off_t can represent 2**63 - 1 correctly.
6002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6003 since some C++ compilers masquerading as C compilers
6004 incorrectly reject 9223372036854775807. */
6005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6007 && LARGE_OFF_T % 2147483647 == 1)
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6021 *) ac_try_echo
=$ac_try;;
6023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1
>conftest.err
6029 cat conftest.err
>&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.
$ac_objext; then
6035 ac_cv_sys_large_files
=no
; break
6037 $as_echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6044 cat >conftest.
$ac_ext <<_ACEOF
6047 cat confdefs.h
>>conftest.
$ac_ext
6048 cat >>conftest.
$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6050 #define _LARGE_FILES 1
6051 #include <sys/types.h>
6052 /* Check that off_t can represent 2**63 - 1 correctly.
6053 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6054 since some C++ compilers masquerading as C compilers
6055 incorrectly reject 9223372036854775807. */
6056 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6057 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6058 && LARGE_OFF_T % 2147483647 == 1)
6068 rm -f conftest.
$ac_objext
6069 if { (ac_try
="$ac_compile"
6071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6075 $as_echo "$ac_try_echo") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.$ac_objext; then
6086 ac_cv_sys_large_files=1; break
6088 $as_echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 ac_cv_sys_large_files=unknown
6099 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6100 $as_echo "$ac_cv_sys_large_files" >&6; }
6101 case $ac_cv_sys_large_files in #(
6104 cat >>confdefs.h <<_ACEOF
6105 #define _LARGE_FILES $ac_cv_sys_large_files
6115 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6116 ### be located in either /usr/lib64 or /usr/lib.
6117 ### In some rare cases, /usr/lib64 exists but does not contain the
6118 ### relevant files (bug#1287). Hence test for crtn.o.
6119 case "${canonical}" in
6120 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6121 if test -e /usr/lib64/crtn.o; then
6123 cat >>confdefs.h <<\_ACEOF
6124 #define HAVE_LIB64_DIR 1
6133 if test "${with_sound}" != "no"; then
6134 # Sound support for GNU/Linux and the free BSDs.
6138 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6143 $as_echo_n "checking for $ac_header... " >&6; }
6144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6145 $as_echo_n "(cached) " >&6
6147 ac_res=`eval 'as_val=${'$as_ac_Header'}
6148 $as_echo "$as_val"'`
6149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6150 $as_echo "$ac_res" >&6; }
6152 # Is the header compilable?
6153 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6154 $as_echo_n "checking $ac_header usability... " >&6; }
6155 cat >conftest.$ac_ext <<_ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 $ac_includes_default
6162 #include <$ac_header>
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6168 *) ac_try_echo
=$ac_try;;
6170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6174 grep -v '^ *+' conftest.er1
>conftest.err
6176 cat conftest.err
>&5
6177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } && {
6179 test -z "$ac_c_werror_flag" ||
6180 test ! -s conftest.err
6181 } && test -s conftest.
$ac_objext; then
6182 ac_header_compiler
=yes
6184 $as_echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.
$ac_ext >&5
6187 ac_header_compiler
=no
6190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6192 $as_echo "$ac_header_compiler" >&6; }
6194 # Is the header present?
6195 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6196 $as_echo_n "checking $ac_header presence... " >&6; }
6197 cat >conftest.
$ac_ext <<_ACEOF
6200 cat confdefs.h
>>conftest.
$ac_ext
6201 cat >>conftest.
$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <$ac_header>
6205 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null && {
6219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6222 ac_header_preproc=yes
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6227 ac_header_preproc=no
6230 rm -f conftest.err conftest.$ac_ext
6231 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6232 $as_echo "$ac_header_preproc" >&6; }
6234 # So? What about this header?
6235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6238 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6241 ac_header_preproc=yes
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6249 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6251 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6255 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6259 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6260 $as_echo_n "checking for $ac_header... " >&6; }
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 $as_echo_n "(cached) " >&6
6264 eval "$as_ac_Header=\$ac_header_preproc"
6266 ac_res=`eval 'as_val=${'$as_ac_Header'}
6267 $as_echo "$as_val"'`
6268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6269 $as_echo "$ac_res" >&6; }
6272 if test `eval 'as_val=${'$as_ac_Header'}
6273 $as_echo "$as_val"'` = yes; then
6274 cat >>confdefs.h <<_ACEOF
6275 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6282 # Emulation library used on NetBSD.
6283 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6284 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6285 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6286 $as_echo_n "(cached) " >&6
6288 ac_check_lib_save_LIBS=$LIBS
6289 LIBS="-lossaudio $LIBS"
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6297 /* Override any GCC internal prototype to avoid an error.
6298 Use char because int might match the return type of a GCC
6299 builtin and then its argument prototype would still apply. */
6307 return _oss_ioctl ();
6312 rm -f conftest.$ac_objext conftest$ac_exeext
6313 if { (ac_try="$ac_link"
6315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6316 *) ac_try_echo
=$ac_try;;
6318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6319 $as_echo "$ac_try_echo") >&5
6320 (eval "$ac_link") 2>conftest.er1
6322 grep -v '^ *+' conftest.er1
>conftest.err
6324 cat conftest.err
>&5
6325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest
$ac_exeext && {
6330 test "$cross_compiling" = yes ||
6331 $as_test_x conftest
$ac_exeext
6333 ac_cv_lib_ossaudio__oss_ioctl
=yes
6335 $as_echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.
$ac_ext >&5
6338 ac_cv_lib_ossaudio__oss_ioctl
=no
6341 rm -rf conftest.dSYM
6342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6343 conftest
$ac_exeext conftest.
$ac_ext
6344 LIBS
=$ac_check_lib_save_LIBS
6346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6347 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6348 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6357 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6361 # Extract the first word of "pkg-config", so it can be a program name with args.
6362 set dummy pkg-config
; ac_word
=$2
6363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6370 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir
=.
6378 for ac_exec_ext
in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6392 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6393 if test -n "$PKG_CONFIG"; then
6394 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6395 $as_echo "$PKG_CONFIG" >&6; }
6397 { $as_echo "$as_me:$LINENO: result: no" >&5
6398 $as_echo "no" >&6; }
6403 if test "$PKG_CONFIG" = "no" ; then
6406 PKG_CONFIG_MIN_VERSION
=0.9.0
6407 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6408 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6409 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6411 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6412 { $as_echo "$as_me:$LINENO: result: yes" >&5
6413 $as_echo "yes" >&6; }
6416 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6417 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6418 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6419 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6420 $as_echo "$ALSA_CFLAGS" >&6; }
6422 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6423 $as_echo_n "checking ALSA_LIBS... " >&6; }
6424 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6425 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6426 $as_echo "$ALSA_LIBS" >&6; }
6428 { $as_echo "$as_me:$LINENO: result: no" >&5
6429 $as_echo "no" >&6; }
6432 ## If we have a custom action on failure, don't print errors, but
6433 ## do set a variable so people can do so.
6434 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6441 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6442 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6446 if test $succeeded = yes; then
6452 if test $HAVE_ALSA = yes; then
6453 SAVE_CFLAGS
="$CFLAGS"
6454 SAVE_LDFLAGS
="$LDFLAGS"
6455 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6456 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6463 #include <asoundlib.h>
6467 snd_lib_error_set_handler (0);
6472 rm -f conftest.
$ac_objext
6473 if { (ac_try
="$ac_compile"
6475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480 (eval "$ac_compile") 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest.$ac_objext; then
6490 emacs_alsa_normal=yes
6492 $as_echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 emacs_alsa_normal=no
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test "$emacs_alsa_normal" != yes; then
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6506 #include <alsa/asoundlib.h>
6510 snd_lib_error_set_handler (0);
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6519 *) ac_try_echo
=$ac_try;;
6521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.
$ac_objext; then
6533 emacs_alsa_subdir
=yes
6535 $as_echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.
$ac_ext >&5
6538 emacs_alsa_subdir
=no
6541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6542 if test "$emacs_alsa_subdir" != yes; then
6543 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6544 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6545 { (exit 1); exit 1; }; }
6547 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6550 CFLAGS
="$SAVE_CFLAGS"
6551 LDFLAGS
="$SAVE_LDFLAGS"
6552 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6553 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6555 cat >>confdefs.h
<<\_ACEOF
6588 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6589 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6590 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6591 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6596 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 $as_echo_n "checking for $ac_header... " >&6; }
6598 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6599 $as_echo_n "(cached) " >&6
6601 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6602 $as_echo "$as_val"'`
6603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6604 $as_echo "$ac_res" >&6; }
6606 # Is the header compilable?
6607 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 $as_echo_n "checking $ac_header usability... " >&6; }
6609 cat >conftest.
$ac_ext <<_ACEOF
6612 cat confdefs.h
>>conftest.
$ac_ext
6613 cat >>conftest.
$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6618 rm -f conftest.
$ac_objext
6619 if { (ac_try
="$ac_compile"
6621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6636 ac_header_compiler=yes
6638 $as_echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6641 ac_header_compiler=no
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6646 $as_echo "$ac_header_compiler" >&6; }
6648 # Is the header present?
6649 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6650 $as_echo_n "checking $ac_header presence... " >&6; }
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <$ac_header>
6659 if { (ac_try="$ac_cpp conftest.$ac_ext"
6661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6662 *) ac_try_echo
=$ac_try;;
6664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6665 $as_echo "$ac_try_echo") >&5
6666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6668 grep -v '^ *+' conftest.er1
>conftest.err
6670 cat conftest.err
>&5
6671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } >/dev
/null
&& {
6673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6674 test ! -s conftest.err
6676 ac_header_preproc
=yes
6678 $as_echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.
$ac_ext >&5
6681 ac_header_preproc
=no
6684 rm -f conftest.err conftest.
$ac_ext
6685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6686 $as_echo "$ac_header_preproc" >&6; }
6688 # So? What about this header?
6689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6692 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6694 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6695 ac_header_preproc
=yes
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6703 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6705 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6709 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 $as_echo_n "checking for $ac_header... " >&6; }
6715 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6716 $as_echo_n "(cached) " >&6
6718 eval "$as_ac_Header=\$ac_header_preproc"
6720 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6721 $as_echo "$as_val"'`
6722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6723 $as_echo "$ac_res" >&6; }
6726 if test `eval 'as_val=${'$as_ac_Header'}
6727 $as_echo "$as_val"'` = yes; then
6728 cat >>confdefs.h
<<_ACEOF
6729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6738 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6739 cat >conftest.
$ac_ext <<_ACEOF
6742 cat confdefs.h
>>conftest.
$ac_ext
6743 cat >>conftest.
$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <sys/personality.h>
6749 personality (PER_LINUX32)
6754 rm -f conftest.
$ac_objext
6755 if { (ac_try
="$ac_compile"
6757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6761 $as_echo "$ac_try_echo") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 emacs_cv_personality_linux32=yes
6774 $as_echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 emacs_cv_personality_linux32=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6782 $as_echo "$emacs_cv_personality_linux32" >&6; }
6784 if test $emacs_cv_personality_linux32 = yes; then
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_PERSONALITY_LINUX32 1
6793 for ac_header in term.h
6795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6797 $as_echo_n "checking for $ac_header... " >&6; }
6798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6799 $as_echo_n "(cached) " >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <$ac_header>
6809 if { (ac_try="$ac_cpp conftest.$ac_ext"
6811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6812 *) ac_try_echo
=$ac_try;;
6814 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6815 $as_echo "$ac_try_echo") >&5
6816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1
>conftest.err
6820 cat conftest.err
>&5
6821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } >/dev
/null
&& {
6823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6826 eval "$as_ac_Header=yes"
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.
$ac_ext >&5
6831 eval "$as_ac_Header=no"
6834 rm -f conftest.err conftest.
$ac_ext
6836 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6837 $as_echo "$as_val"'`
6838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6840 if test `eval 'as_val=${'$as_ac_Header'}
6841 $as_echo "$as_val"'` = yes; then
6842 cat >>confdefs.h
<<_ACEOF
6843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6850 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6851 $as_echo_n "checking for ANSI C header files... " >&6; }
6852 if test "${ac_cv_header_stdc+set}" = set; then
6853 $as_echo_n "(cached) " >&6
6855 cat >conftest.
$ac_ext <<_ACEOF
6858 cat confdefs.h
>>conftest.
$ac_ext
6859 cat >>conftest.
$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6874 rm -f conftest.
$ac_objext
6875 if { (ac_try
="$ac_compile"
6877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881 $as_echo "$ac_try_echo") >&5
6882 (eval "$ac_compile") 2>conftest.er1
6884 grep -v '^ *+' conftest.er1 >conftest.err
6886 cat conftest.err >&5
6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest.$ac_objext; then
6892 ac_cv_header_stdc=yes
6894 $as_echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 ac_cv_header_stdc=no
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 if test $ac_cv_header_stdc = yes; then
6903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6904 cat >conftest.$ac_ext <<_ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6914 $EGREP "memchr" >/dev/null 2>&1; then
6917 ac_cv_header_stdc=no
6923 if test $ac_cv_header_stdc = yes; then
6924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935 $EGREP "free" >/dev/null 2>&1; then
6938 ac_cv_header_stdc=no
6944 if test $ac_cv_header_stdc = yes; then
6945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6946 if test "$cross_compiling" = yes; then
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6957 #if ((' ' & 0x0FF) == 0x020)
6958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6961 # define ISLOWER(c) \
6962 (('a' <= (c) && (c) <= 'i') \
6963 || ('j' <= (c) && (c) <= 'r') \
6964 || ('s' <= (c) && (c) <= 'z'))
6965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6973 for (i = 0; i < 256; i++)
6974 if (XOR (islower (i), ISLOWER (i))
6975 || toupper (i) != TOUPPER (i))
6980 rm -f conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6984 *) ac_try_echo
=$ac_try;;
6986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6987 $as_echo "$ac_try_echo") >&5
6988 (eval "$ac_link") 2>&5
6990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6992 { (case "(($ac_try" in
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_try") 2>&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7004 $as_echo "$as_me: program exited with status $ac_status" >&5
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_header_stdc=no
7011 rm -rf conftest.dSYM
7012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7019 $as_echo "$ac_cv_header_stdc" >&6; }
7020 if test $ac_cv_header_stdc = yes; then
7022 cat >>confdefs.h <<\_ACEOF
7023 #define STDC_HEADERS 1
7028 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7029 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7030 if test "${ac_cv_header_time+set}" = set; then
7031 $as_echo_n "(cached) " >&6
7033 cat >conftest.$ac_ext <<_ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <sys/types.h>
7040 #include <sys/time.h>
7046 if ((struct tm *) 0)
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7056 *) ac_try_echo
=$ac_try;;
7058 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_compile") 2>conftest.er1
7062 grep -v '^ *+' conftest.er1
>conftest.err
7064 cat conftest.err
>&5
7065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 } && test -s conftest.
$ac_objext; then
7070 ac_cv_header_time
=yes
7072 $as_echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.
$ac_ext >&5
7075 ac_cv_header_time
=no
7078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7080 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7081 $as_echo "$ac_cv_header_time" >&6; }
7082 if test $ac_cv_header_time = yes; then
7084 cat >>confdefs.h
<<\_ACEOF
7085 #define TIME_WITH_SYS_TIME 1
7090 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7091 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7092 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7093 $as_echo_n "(cached) " >&6
7095 cat >conftest.
$ac_ext <<_ACEOF
7098 cat confdefs.h
>>conftest.
$ac_ext
7099 cat >>conftest.
$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7113 rm -f conftest.
$ac_objext
7114 if { (ac_try
="$ac_compile"
7116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_have_decl_sys_siglist=yes
7133 $as_echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_cv_have_decl_sys_siglist=no
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7142 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7143 if test $ac_cv_have_decl_sys_siglist = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define HAVE_DECL_SYS_SIGLIST 1
7151 cat >>confdefs.h <<_ACEOF
7152 #define HAVE_DECL_SYS_SIGLIST 0
7159 if test $ac_cv_have_decl_sys_siglist != yes; then
7160 # For Tru64, at least:
7161 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7162 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7163 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7176 #ifndef __sys_siglist
7177 (void) __sys_siglist;
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7188 *) ac_try_echo
=$ac_try;;
7190 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7191 $as_echo "$ac_try_echo") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7194 grep -v '^ *+' conftest.er1
>conftest.err
7196 cat conftest.err
>&5
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_c_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.
$ac_objext; then
7202 ac_cv_have_decl___sys_siglist
=yes
7204 $as_echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.
$ac_ext >&5
7207 ac_cv_have_decl___sys_siglist
=no
7210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7213 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7214 if test $ac_cv_have_decl___sys_siglist = yes; then
7216 cat >>confdefs.h
<<_ACEOF
7217 #define HAVE_DECL___SYS_SIGLIST 1
7222 cat >>confdefs.h
<<_ACEOF
7223 #define HAVE_DECL___SYS_SIGLIST 0
7230 if test $ac_cv_have_decl___sys_siglist = yes; then
7232 cat >>confdefs.h
<<\_ACEOF
7233 #define sys_siglist __sys_siglist
7238 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7239 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7240 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7241 $as_echo_n "(cached) " >&6
7243 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #include <sys/types.h>
7250 #include <sys/wait.h>
7252 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7255 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7263 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7268 rm -f conftest.
$ac_objext
7269 if { (ac_try
="$ac_compile"
7271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7275 $as_echo "$ac_try_echo") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } && {
7283 test -z "$ac_c_werror_flag" ||
7284 test ! -s conftest.err
7285 } && test -s conftest.$ac_objext; then
7286 ac_cv_header_sys_wait_h=yes
7288 $as_echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7291 ac_cv_header_sys_wait_h=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7297 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7298 if test $ac_cv_header_sys_wait_h = yes; then
7300 cat >>confdefs.h <<\_ACEOF
7301 #define HAVE_SYS_WAIT_H 1
7307 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7308 $as_echo_n "checking for struct utimbuf... " >&6; }
7309 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7310 $as_echo_n "(cached) " >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 #ifdef TIME_WITH_SYS_TIME
7319 #include <sys/time.h>
7322 #ifdef HAVE_SYS_TIME_H
7323 #include <sys/time.h>
7334 static struct utimbuf x; x.actime = x.modtime;
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7343 *) ac_try_echo
=$ac_try;;
7345 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7346 $as_echo "$ac_try_echo") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1
>conftest.err
7351 cat conftest.err
>&5
7352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.
$ac_objext; then
7357 emacs_cv_struct_utimbuf
=yes
7359 $as_echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.
$ac_ext >&5
7362 emacs_cv_struct_utimbuf
=no
7365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7367 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7368 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7369 if test $emacs_cv_struct_utimbuf = yes; then
7371 cat >>confdefs.h
<<\_ACEOF
7372 #define HAVE_STRUCT_UTIMBUF 1
7377 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7378 $as_echo_n "checking return type of signal handlers... " >&6; }
7379 if test "${ac_cv_type_signal+set}" = set; then
7380 $as_echo_n "(cached) " >&6
7382 cat >conftest.
$ac_ext <<_ACEOF
7385 cat confdefs.h
>>conftest.
$ac_ext
7386 cat >>conftest.
$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 #include <sys/types.h>
7394 return *(signal (0, 0)) (0) == 1;
7399 rm -f conftest.
$ac_objext
7400 if { (ac_try
="$ac_compile"
7402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_cv_type_signal=int
7419 $as_echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_cv_type_signal=void
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7428 $as_echo "$ac_cv_type_signal" >&6; }
7430 cat >>confdefs.h <<_ACEOF
7431 #define RETSIGTYPE $ac_cv_type_signal
7436 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7437 $as_echo_n "checking for speed_t... " >&6; }
7438 if test "${emacs_cv_speed_t+set}" = set; then
7439 $as_echo_n "(cached) " >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 #include <termios.h>
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7460 *) ac_try_echo
=$ac_try;;
7462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1
>conftest.err
7468 cat conftest.err
>&5
7469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.
$ac_objext; then
7474 emacs_cv_speed_t
=yes
7476 $as_echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.
$ac_ext >&5
7482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7484 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7485 $as_echo "$emacs_cv_speed_t" >&6; }
7486 if test $emacs_cv_speed_t = yes; then
7488 cat >>confdefs.h
<<\_ACEOF
7489 #define HAVE_SPEED_T 1
7494 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7495 $as_echo_n "checking for struct timeval... " >&6; }
7496 if test "${emacs_cv_struct_timeval+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7499 cat >conftest.
$ac_ext <<_ACEOF
7502 cat confdefs.h
>>conftest.
$ac_ext
7503 cat >>conftest.
$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #ifdef TIME_WITH_SYS_TIME
7506 #include <sys/time.h>
7509 #ifdef HAVE_SYS_TIME_H
7510 #include <sys/time.h>
7518 static struct timeval x; x.tv_sec = x.tv_usec;
7523 rm -f conftest.
$ac_objext
7524 if { (ac_try
="$ac_compile"
7526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530 $as_echo "$ac_try_echo") >&5
7531 (eval "$ac_compile") 2>conftest.er1
7533 grep -v '^ *+' conftest.er1 >conftest.err
7535 cat conftest.err >&5
7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && {
7538 test -z "$ac_c_werror_flag" ||
7539 test ! -s conftest.err
7540 } && test -s conftest.$ac_objext; then
7541 emacs_cv_struct_timeval=yes
7543 $as_echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7546 emacs_cv_struct_timeval=no
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7552 $as_echo "$emacs_cv_struct_timeval" >&6; }
7553 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7554 if test $emacs_cv_struct_timeval = yes; then
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_TIMEVAL 1
7562 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7563 $as_echo_n "checking for struct exception... " >&6; }
7564 if test "${emacs_cv_struct_exception+set}" = set; then
7565 $as_echo_n "(cached) " >&6
7567 cat >conftest.$ac_ext <<_ACEOF
7570 cat confdefs.h >>conftest.$ac_ext
7571 cat >>conftest.$ac_ext <<_ACEOF
7572 /* end confdefs.h. */
7577 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7582 rm -f conftest.$ac_objext
7583 if { (ac_try="$ac_compile"
7585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7586 *) ac_try_echo
=$ac_try;;
7588 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1
>conftest.err
7594 cat conftest.err
>&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.
$ac_objext; then
7600 emacs_cv_struct_exception
=yes
7602 $as_echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.
$ac_ext >&5
7605 emacs_cv_struct_exception
=no
7608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7611 $as_echo "$emacs_cv_struct_exception" >&6; }
7612 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7613 if test $emacs_cv_struct_exception != yes; then
7615 cat >>confdefs.h
<<\_ACEOF
7616 #define NO_MATHERR 1
7622 for ac_header
in sys
/socket.h
7624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 $as_echo_n "checking for $ac_header... " >&6; }
7628 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7629 $as_echo_n "(cached) " >&6
7631 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7632 $as_echo "$as_val"'`
7633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7634 $as_echo "$ac_res" >&6; }
7636 # Is the header compilable?
7637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7638 $as_echo_n "checking $ac_header usability... " >&6; }
7639 cat >conftest.
$ac_ext <<_ACEOF
7642 cat confdefs.h
>>conftest.
$ac_ext
7643 cat >>conftest.
$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 #include <$ac_header>
7648 rm -f conftest.
$ac_objext
7649 if { (ac_try
="$ac_compile"
7651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_header_compiler=yes
7668 $as_echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_header_compiler=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7676 $as_echo "$ac_header_compiler" >&6; }
7678 # Is the header present?
7679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7680 $as_echo_n "checking $ac_header presence... " >&6; }
7681 cat >conftest.$ac_ext <<_ACEOF
7684 cat confdefs.h >>conftest.$ac_ext
7685 cat >>conftest.$ac_ext <<_ACEOF
7686 /* end confdefs.h. */
7687 #include <$ac_header>
7689 if { (ac_try="$ac_cpp conftest.$ac_ext"
7691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7692 *) ac_try_echo
=$ac_try;;
7694 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1
>conftest.err
7700 cat conftest.err
>&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } >/dev
/null
&& {
7703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7706 ac_header_preproc
=yes
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.
$ac_ext >&5
7711 ac_header_preproc
=no
7714 rm -f conftest.err conftest.
$ac_ext
7715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7716 $as_echo "$ac_header_preproc" >&6; }
7718 # So? What about this header?
7719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7725 ac_header_preproc
=yes
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7735 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7744 $as_echo_n "checking for $ac_header... " >&6; }
7745 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7746 $as_echo_n "(cached) " >&6
7748 eval "$as_ac_Header=\$ac_header_preproc"
7750 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7751 $as_echo "$as_val"'`
7752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7756 if test `eval 'as_val=${'$as_ac_Header'}
7757 $as_echo "$as_val"'` = yes; then
7758 cat >>confdefs.h
<<_ACEOF
7759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7767 for ac_header
in net
/if.h
7769 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771 $as_echo_n "checking for $ac_header... " >&6; }
7772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7775 cat >conftest.
$ac_ext <<_ACEOF
7778 cat confdefs.h
>>conftest.
$ac_ext
7779 cat >>conftest.
$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 $ac_includes_default
7782 #if HAVE_SYS_SOCKET_H
7783 #include <sys/socket.h>
7786 #include <$ac_header>
7788 rm -f conftest.
$ac_objext
7789 if { (ac_try
="$ac_compile"
7791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7795 $as_echo "$ac_try_echo") >&5
7796 (eval "$ac_compile") 2>conftest.er1
7798 grep -v '^ *+' conftest.er1 >conftest.err
7800 cat conftest.err >&5
7801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); } && {
7803 test -z "$ac_c_werror_flag" ||
7804 test ! -s conftest.err
7805 } && test -s conftest.$ac_objext; then
7806 eval "$as_ac_Header=yes"
7808 $as_echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 eval "$as_ac_Header=no"
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ac_res=`eval 'as_val=${'$as_ac_Header'}
7817 $as_echo "$as_val"'`
7818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7819 $as_echo "$ac_res" >&6; }
7820 if test `eval 'as_val=${'$as_ac_Header'}
7821 $as_echo "$as_val"'` = yes; then
7822 cat >>confdefs.h <<_ACEOF
7823 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7831 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7832 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7833 if test "${ac_cv_struct_tm+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <sys/types.h>
7849 int *p = &tm.tm_sec;
7855 rm -f conftest.$ac_objext
7856 if { (ac_try="$ac_compile"
7858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7859 *) ac_try_echo
=$ac_try;;
7861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7862 $as_echo "$ac_try_echo") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1
>conftest.err
7867 cat conftest.err
>&5
7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.
$ac_objext; then
7873 ac_cv_struct_tm
=time.h
7875 $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.
$ac_ext >&5
7878 ac_cv_struct_tm
=sys
/time.h
7881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7883 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7884 $as_echo "$ac_cv_struct_tm" >&6; }
7885 if test $ac_cv_struct_tm = sys
/time.h
; then
7887 cat >>confdefs.h
<<\_ACEOF
7888 #define TM_IN_SYS_TIME 1
7893 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7894 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7896 $as_echo_n "(cached) " >&6
7898 cat >conftest.
$ac_ext <<_ACEOF
7901 cat confdefs.h
>>conftest.
$ac_ext
7902 cat >>conftest.
$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 #include <$ac_cv_struct_tm>
7911 static struct tm ac_aggr;
7912 if (ac_aggr.tm_zone)
7918 rm -f conftest.
$ac_objext
7919 if { (ac_try
="$ac_compile"
7921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925 $as_echo "$ac_try_echo") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_member_struct_tm_tm_zone=yes
7938 $as_echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7954 static struct tm ac_aggr;
7955 if (sizeof ac_aggr.tm_zone)
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7965 *) ac_try_echo
=$ac_try;;
7967 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1
>conftest.err
7973 cat conftest.err
>&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.
$ac_objext; then
7979 ac_cv_member_struct_tm_tm_zone
=yes
7981 $as_echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7984 ac_cv_member_struct_tm_tm_zone
=no
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7993 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7994 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7996 cat >>confdefs.h
<<_ACEOF
7997 #define HAVE_STRUCT_TM_TM_ZONE 1
8003 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8005 cat >>confdefs.h
<<\_ACEOF
8006 #define HAVE_TM_ZONE 1
8010 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8011 $as_echo_n "checking whether tzname is declared... " >&6; }
8012 if test "${ac_cv_have_decl_tzname+set}" = set; then
8013 $as_echo_n "(cached) " >&6
8015 cat >conftest.
$ac_ext <<_ACEOF
8018 cat confdefs.h
>>conftest.
$ac_ext
8019 cat >>conftest.
$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8034 rm -f conftest.
$ac_objext
8035 if { (ac_try
="$ac_compile"
8037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8041 $as_echo "$ac_try_echo") >&5
8042 (eval "$ac_compile") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest.$ac_objext; then
8052 ac_cv_have_decl_tzname=yes
8054 $as_echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_have_decl_tzname=no
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8063 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8064 if test $ac_cv_have_decl_tzname = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define HAVE_DECL_TZNAME 1
8072 cat >>confdefs.h <<_ACEOF
8073 #define HAVE_DECL_TZNAME 0
8080 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8081 $as_echo_n "checking for tzname... " >&6; }
8082 if test "${ac_cv_var_tzname+set}" = set; then
8083 $as_echo_n "(cached) " >&6
8085 cat >conftest.$ac_ext <<_ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8092 #if !HAVE_DECL_TZNAME
8093 extern char *tzname[];
8099 return tzname[0][0];
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (ac_try="$ac_link"
8107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8108 *) ac_try_echo
=$ac_try;;
8110 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8111 $as_echo "$ac_try_echo") >&5
8112 (eval "$ac_link") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1
>conftest.err
8116 cat conftest.err
>&5
8117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest
$ac_exeext && {
8122 test "$cross_compiling" = yes ||
8123 $as_test_x conftest
$ac_exeext
8125 ac_cv_var_tzname
=yes
8127 $as_echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.
$ac_ext >&5
8133 rm -rf conftest.dSYM
8134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8135 conftest
$ac_exeext conftest.
$ac_ext
8137 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8138 $as_echo "$ac_cv_var_tzname" >&6; }
8139 if test $ac_cv_var_tzname = yes; then
8141 cat >>confdefs.h
<<\_ACEOF
8142 #define HAVE_TZNAME 1
8148 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8149 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8150 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8151 $as_echo_n "(cached) " >&6
8153 cat >conftest.
$ac_ext <<_ACEOF
8156 cat confdefs.h
>>conftest.
$ac_ext
8157 cat >>conftest.
$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8164 static struct tm ac_aggr;
8165 if (ac_aggr.tm_gmtoff)
8171 rm -f conftest.
$ac_objext
8172 if { (ac_try
="$ac_compile"
8174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8178 $as_echo "$ac_try_echo") >&5
8179 (eval "$ac_compile") 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && {
8186 test -z "$ac_c_werror_flag" ||
8187 test ! -s conftest.err
8188 } && test -s conftest.$ac_objext; then
8189 ac_cv_member_struct_tm_tm_gmtoff=yes
8191 $as_echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8205 static struct tm ac_aggr;
8206 if (sizeof ac_aggr.tm_gmtoff)
8212 rm -f conftest.$ac_objext
8213 if { (ac_try="$ac_compile"
8215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8216 *) ac_try_echo
=$ac_try;;
8218 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8219 $as_echo "$ac_try_echo") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8222 grep -v '^ *+' conftest.er1
>conftest.err
8224 cat conftest.err
>&5
8225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.
$ac_objext; then
8230 ac_cv_member_struct_tm_tm_gmtoff
=yes
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.
$ac_ext >&5
8235 ac_cv_member_struct_tm_tm_gmtoff
=no
8238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8243 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8244 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8245 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8247 cat >>confdefs.h
<<\_ACEOF
8248 #define HAVE_TM_GMTOFF 1
8253 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8254 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8255 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8256 $as_echo_n "(cached) " >&6
8258 cat >conftest.
$ac_ext <<_ACEOF
8261 cat confdefs.h
>>conftest.
$ac_ext
8262 cat >>conftest.
$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 $ac_includes_default
8265 #if HAVE_SYS_SOCKET_H
8266 #include <sys/socket.h>
8275 static struct ifreq ac_aggr;
8276 if (ac_aggr.ifr_flags)
8282 rm -f conftest.
$ac_objext
8283 if { (ac_try
="$ac_compile"
8285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_flags=yes
8302 $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8322 static struct ifreq ac_aggr;
8323 if (sizeof ac_aggr.ifr_flags)
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8333 *) ac_try_echo
=$ac_try;;
8335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8336 $as_echo "$ac_try_echo") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1
>conftest.err
8341 cat conftest.err
>&5
8342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.
$ac_objext; then
8347 ac_cv_member_struct_ifreq_ifr_flags
=yes
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.
$ac_ext >&5
8352 ac_cv_member_struct_ifreq_ifr_flags
=no
8355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8361 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8362 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8364 cat >>confdefs.h
<<_ACEOF
8365 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8370 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8371 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8372 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8373 $as_echo_n "(cached) " >&6
8375 cat >conftest.
$ac_ext <<_ACEOF
8378 cat confdefs.h
>>conftest.
$ac_ext
8379 cat >>conftest.
$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 $ac_includes_default
8382 #if HAVE_SYS_SOCKET_H
8383 #include <sys/socket.h>
8392 static struct ifreq ac_aggr;
8393 if (ac_aggr.ifr_hwaddr)
8399 rm -f conftest.
$ac_objext
8400 if { (ac_try
="$ac_compile"
8402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.$ac_objext; then
8417 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8419 $as_echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 $ac_includes_default
8429 #if HAVE_SYS_SOCKET_H
8430 #include <sys/socket.h>
8439 static struct ifreq ac_aggr;
8440 if (sizeof ac_aggr.ifr_hwaddr)
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8450 *) ac_try_echo
=$ac_try;;
8452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1
>conftest.err
8458 cat conftest.err
>&5
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.
$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8466 $as_echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.
$ac_ext >&5
8469 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8478 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8479 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8481 cat >>confdefs.h
<<_ACEOF
8482 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8487 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8488 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8489 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8490 $as_echo_n "(cached) " >&6
8492 cat >conftest.
$ac_ext <<_ACEOF
8495 cat confdefs.h
>>conftest.
$ac_ext
8496 cat >>conftest.
$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8509 static struct ifreq ac_aggr;
8510 if (ac_aggr.ifr_netmask)
8516 rm -f conftest.
$ac_objext
8517 if { (ac_try
="$ac_compile"
8519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523 $as_echo "$ac_try_echo") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_netmask=yes
8536 $as_echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8556 static struct ifreq ac_aggr;
8557 if (sizeof ac_aggr.ifr_netmask)
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8567 *) ac_try_echo
=$ac_try;;
8569 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1
>conftest.err
8575 cat conftest.err
>&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.
$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8583 $as_echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8586 ac_cv_member_struct_ifreq_ifr_netmask
=no
8589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8595 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8596 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8598 cat >>confdefs.h
<<_ACEOF
8599 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8604 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8605 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8606 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8607 $as_echo_n "(cached) " >&6
8609 cat >conftest.
$ac_ext <<_ACEOF
8612 cat confdefs.h
>>conftest.
$ac_ext
8613 cat >>conftest.
$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8615 $ac_includes_default
8616 #if HAVE_SYS_SOCKET_H
8617 #include <sys/socket.h>
8626 static struct ifreq ac_aggr;
8627 if (ac_aggr.ifr_broadaddr)
8633 rm -f conftest.
$ac_objext
8634 if { (ac_try
="$ac_compile"
8636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8653 $as_echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 #if HAVE_SYS_SOCKET_H
8664 #include <sys/socket.h>
8673 static struct ifreq ac_aggr;
8674 if (sizeof ac_aggr.ifr_broadaddr)
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8684 *) ac_try_echo
=$ac_try;;
8686 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8690 grep -v '^ *+' conftest.er1
>conftest.err
8692 cat conftest.err
>&5
8693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.
$ac_objext; then
8698 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8700 $as_echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.
$ac_ext >&5
8703 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8711 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8712 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8713 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8715 cat >>confdefs.h
<<_ACEOF
8716 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8721 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8722 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8723 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8724 $as_echo_n "(cached) " >&6
8726 cat >conftest.
$ac_ext <<_ACEOF
8729 cat confdefs.h
>>conftest.
$ac_ext
8730 cat >>conftest.
$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 $ac_includes_default
8733 #if HAVE_SYS_SOCKET_H
8734 #include <sys/socket.h>
8743 static struct ifreq ac_aggr;
8744 if (ac_aggr.ifr_addr)
8750 rm -f conftest.
$ac_objext
8751 if { (ac_try
="$ac_compile"
8753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757 $as_echo "$ac_try_echo") >&5
8758 (eval "$ac_compile") 2>conftest.er1
8760 grep -v '^ *+' conftest.er1 >conftest.err
8762 cat conftest.err >&5
8763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest.$ac_objext; then
8768 ac_cv_member_struct_ifreq_ifr_addr=yes
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 $ac_includes_default
8780 #if HAVE_SYS_SOCKET_H
8781 #include <sys/socket.h>
8790 static struct ifreq ac_aggr;
8791 if (sizeof ac_aggr.ifr_addr)
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8801 *) ac_try_echo
=$ac_try;;
8803 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1
>conftest.err
8809 cat conftest.err
>&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.
$ac_objext; then
8815 ac_cv_member_struct_ifreq_ifr_addr
=yes
8817 $as_echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.
$ac_ext >&5
8820 ac_cv_member_struct_ifreq_ifr_addr
=no
8823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8828 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8829 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8830 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8832 cat >>confdefs.h
<<_ACEOF
8833 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8841 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8842 $as_echo_n "checking for function prototypes... " >&6; }
8843 if test "$ac_cv_prog_cc_c89" != no
; then
8844 { $as_echo "$as_me:$LINENO: result: yes" >&5
8845 $as_echo "yes" >&6; }
8847 cat >>confdefs.h
<<\_ACEOF
8848 #define PROTOTYPES 1
8852 cat >>confdefs.h
<<\_ACEOF
8853 #define __PROTOTYPES 1
8857 { $as_echo "$as_me:$LINENO: result: no" >&5
8858 $as_echo "no" >&6; }
8861 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8862 $as_echo_n "checking for working volatile... " >&6; }
8863 if test "${ac_cv_c_volatile+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8866 cat >conftest.
$ac_ext <<_ACEOF
8869 cat confdefs.h
>>conftest.
$ac_ext
8870 cat >>conftest.
$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8878 int * volatile y = (int *) 0;
8884 rm -f conftest.
$ac_objext
8885 if { (ac_try
="$ac_compile"
8887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8891 $as_echo "$ac_try_echo") >&5
8892 (eval "$ac_compile") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && {
8899 test -z "$ac_c_werror_flag" ||
8900 test ! -s conftest.err
8901 } && test -s conftest.$ac_objext; then
8902 ac_cv_c_volatile=yes
8904 $as_echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8913 $as_echo "$ac_cv_c_volatile" >&6; }
8914 if test $ac_cv_c_volatile = no; then
8916 cat >>confdefs.h <<\_ACEOF
8917 #define volatile /**/
8922 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8924 if test "${ac_cv_c_const+set}" = set; then
8925 $as_echo_n "(cached) " >&6
8927 cat >conftest.$ac_ext <<_ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8937 /* FIXME: Include the comments suggested by Paul. */
8939 /* Ultrix mips cc rejects this. */
8940 typedef int charset[2];
8942 /* SunOS 4.1.1 cc rejects this. */
8943 char const *const *pcpcc;
8945 /* NEC SVR4.0.2 mips cc rejects this. */
8946 struct point {int x, y;};
8947 static struct point const zero = {0,0};
8948 /* AIX XL C 1.02.0.0 rejects this.
8949 It does not let you subtract one const X* pointer from another in
8950 an arm of an if-expression whose if-part is not a constant
8952 const char *g = "string";
8953 pcpcc = &g + (g ? g-g : 0);
8954 /* HPUX 7.0 cc rejects these. */
8956 ppc = (char**) pcpcc;
8957 pcpcc = (char const *const *) ppc;
8958 { /* SCO 3.2v4 cc rejects this. */
8960 char const *s = 0 ? (char *) 0 : (char const *) 0;
8965 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8967 const int *foo = &x[0];
8970 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8971 typedef const int *iptr;
8975 { /* AIX XL C 1.02.0.0 rejects this saying
8976 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8977 struct s { int j; const int *ap[3]; };
8978 struct s *b; b->j = 5;
8980 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8984 return !cs[0] && !zero.x;
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8995 *) ac_try_echo
=$ac_try;;
8997 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999 (eval "$ac_compile") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1
>conftest.err
9003 cat conftest.err
>&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest.
$ac_objext; then
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.
$ac_ext >&5
9017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9020 $as_echo "$ac_cv_c_const" >&6; }
9021 if test $ac_cv_c_const = no
; then
9023 cat >>confdefs.h
<<\_ACEOF
9029 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9030 $as_echo_n "checking for void * support... " >&6; }
9031 if test "${emacs_cv_void_star+set}" = set; then
9032 $as_echo_n "(cached) " >&6
9034 cat >conftest.
$ac_ext <<_ACEOF
9037 cat confdefs.h
>>conftest.
$ac_ext
9038 cat >>conftest.
$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9049 rm -f conftest.
$ac_objext
9050 if { (ac_try
="$ac_compile"
9052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
9067 emacs_cv_void_star=yes
9069 $as_echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 emacs_cv_void_star=no
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9078 $as_echo "$emacs_cv_void_star" >&6; }
9079 if test $emacs_cv_void_star = yes; then
9080 cat >>confdefs.h <<\_ACEOF
9081 #define POINTER_TYPE void
9085 cat >>confdefs.h <<\_ACEOF
9086 #define POINTER_TYPE char
9095 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9096 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9098 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9099 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9100 $as_echo_n "(cached) " >&6
9102 cat >conftest.make <<\_ACEOF
9105 @echo '@@@%%%=$(MAKE)=@@@%%%'
9107 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9108 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9110 eval ac_cv_prog_make_${ac_make}_set=yes;;
9112 eval ac_cv_prog_make_${ac_make}_set=no;;
9116 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9117 { $as_echo "$as_me:$LINENO: result: yes" >&5
9118 $as_echo "yes" >&6; }
9121 { $as_echo "$as_me:$LINENO: result: no" >&5
9122 $as_echo "no" >&6; }
9123 SET_MAKE="MAKE=${MAKE-make}"
9127 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9128 $as_echo_n "checking for long file names... " >&6; }
9129 if test "${ac_cv_sys_long_file_names+set}" = set; then
9130 $as_echo_n "(cached) " >&6
9132 ac_cv_sys_long_file_names=yes
9133 # Test for long file names in all the places we know might matter:
9134 # . the current directory, where building will happen
9135 # $prefix/lib where we will be installing things
9136 # $exec_prefix/lib likewise
9137 # $TMPDIR if set, where it might want to write temporary files
9138 # /tmp where it might want to write temporary files
9141 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9142 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9143 # in the usual case where exec_prefix is '${prefix}'.
9145 . | /* | ?:[\\/]*) ;; #(
9148 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9149 ac_xdir=$ac_dir/cf$$
9150 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9151 ac_tf1=$ac_xdir/conftest9012345
9152 ac_tf2=$ac_xdir/conftest9012346
9153 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9154 ac_cv_sys_long_file_names=no
9155 rm -f -r "$ac_xdir" 2>/dev/null
9156 test $ac_cv_sys_long_file_names = no && break
9159 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9160 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9161 if test $ac_cv_sys_long_file_names = yes; then
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_LONG_FILE_NAMES 1
9170 #### Choose a window system.
9172 { $as_echo "$as_me:$LINENO: checking for X" >&5
9173 $as_echo_n "checking for X... " >&6; }
9176 # Check whether --with-x was given.
9177 if test "${with_x+set}" = set; then
9181 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9182 if test "x$with_x" = xno; then
9183 # The user explicitly disabled X.
9186 case $x_includes,$x_libraries in #(
9187 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9188 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9189 { (exit 1); exit 1; }; };; #(
9190 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9193 # One or both of the vars are not set, and there is no cached value.
9194 ac_x_includes=no ac_x_libraries=no
9195 rm -f -r conftest.dir
9196 if mkdir conftest.dir; then
9198 cat >Imakefile <<'_ACEOF'
9200 @echo incroot='${INCROOT}'
9202 @echo usrlibdir='${USRLIBDIR}'
9204 @echo libdir='${LIBDIR}'
9206 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9208 for ac_var in incroot usrlibdir libdir; do
9209 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9211 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9212 for ac_extension in a so sl dylib la dll; do
9213 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9214 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9215 ac_im_usrlibdir=$ac_im_libdir; break
9218 # Screen out bogus values from the imake configuration. They are
9219 # bogus both because they are the default anyway, and because
9220 # using them would break gcc on systems where it needs fixed includes.
9221 case $ac_im_incroot in
9222 /usr/include) ac_x_includes= ;;
9223 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9225 case $ac_im_usrlibdir in
9227 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9231 rm -f -r conftest.dir
9234 # Standard set of common directories for X headers.
9235 # Check X11 before X11Rn because it is often a symlink to the current release.
9247 /usr/local/X11/include
9248 /usr/local/X11R6/include
9249 /usr/local/X11R5/include
9250 /usr/local/X11R4/include
9252 /usr/local/include/X11
9253 /usr/local/include/X11R6
9254 /usr/local/include/X11R5
9255 /usr/local/include/X11R4
9259 /usr/XFree86/include/X11
9263 /usr/unsupported/include
9265 /usr/local/x11r5/include
9266 /usr/lpp/Xamples/include
9268 /usr/openwin/include
9269 /usr/openwin/share/include'
9271 if test "$ac_x_includes" = no; then
9272 # Guess where to find include files, by looking for Xlib.h.
9273 # First, try using that file with no special directory specified.
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <X11/Xlib.h>
9282 if { (ac_try="$ac_cpp conftest.$ac_ext"
9284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9285 *) ac_try_echo
=$ac_try;;
9287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9291 grep -v '^ *+' conftest.er1
>conftest.err
9293 cat conftest.err
>&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev
/null
&& {
9296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9299 # We can compile using X headers with no special include directory.
9302 $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.
$ac_ext >&5
9305 for ac_dir
in $ac_x_header_dirs; do
9306 if test -r "$ac_dir/X11/Xlib.h"; then
9307 ac_x_includes
=$ac_dir
9313 rm -f conftest.err conftest.
$ac_ext
9314 fi # $ac_x_includes = no
9316 if test "$ac_x_libraries" = no
; then
9317 # Check for the libraries.
9318 # See if we find them without any special options.
9319 # Don't add to $LIBS permanently.
9322 cat >conftest.
$ac_ext <<_ACEOF
9325 cat confdefs.h
>>conftest.
$ac_ext
9326 cat >>conftest.
$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 #include <X11/Xlib.h>
9337 rm -f conftest.
$ac_objext conftest
$ac_exeext
9338 if { (ac_try
="$ac_link"
9340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9344 $as_echo "$ac_try_echo") >&5
9345 (eval "$ac_link") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext && {
9355 test "$cross_compiling" = yes ||
9356 $as_test_x conftest$ac_exeext
9359 # We can link X programs with no special library path.
9362 $as_echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9366 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9368 # Don't even attempt the hair of trying to link an X program!
9369 for ac_extension in a so sl dylib la dll; do
9370 if test -r "$ac_dir/libX11.$ac_extension"; then
9371 ac_x_libraries=$ac_dir
9378 rm -rf conftest.dSYM
9379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9380 conftest$ac_exeext conftest.$ac_ext
9381 fi # $ac_x_libraries = no
9383 case $ac_x_includes,$ac_x_libraries in #(
9385 # Didn't find X, or a directory has "'" in its name.
9386 ac_cv_have_x="have_x=no";; #(
9388 # Record where we found X for the cache.
9389 ac_cv_have_x="have_x=yes\
9390 ac_x_includes='$ac_x_includes'\
9391 ac_x_libraries='$ac_x_libraries'"
9397 eval "$ac_cv_have_x"
9400 if test "$have_x" != yes; then
9401 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9402 $as_echo "$have_x" >&6; }
9405 # If each of the values was on the command line, it overrides each guess.
9406 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9407 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9408 # Update the cache value to reflect the command line values.
9409 ac_cv_have_x="have_x=yes\
9410 ac_x_includes='$x_includes'\
9411 ac_x_libraries='$x_libraries'"
9412 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9413 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9416 if test "$no_x" = yes; then
9422 ## Workaround for bug in autoconf <= 2.62.
9423 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9424 ## No need to do anything special for these standard directories.
9425 ## This is an experiment, take it out if it causes problems.
9426 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9428 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9432 if test "${x_libraries}" != NONE; then
9433 if test -n "${x_libraries}"; then
9434 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9435 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9437 x_default_search_path=""
9438 x_search_path=${x_libraries}
9439 if test -z "${x_search_path}"; then
9440 x_search_path=/usr/lib
9442 for x_library in `echo ${x_search_path}: | \
9443 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9445 ${x_library}/X11/%L/%T/%N%C%S:\
9446 ${x_library}/X11/%l/%T/%N%C%S:\
9447 ${x_library}/X11/%T/%N%C%S:\
9448 ${x_library}/X11/%L/%T/%N%S:\
9449 ${x_library}/X11/%l/%T/%N%S:\
9450 ${x_library}/X11/%T/%N%S"
9451 if test x"${x_default_search_path}" = x; then
9452 x_default_search_path=${x_search_path}
9454 x_default_search_path="${x_search_path}:${x_default_search_path}"
9458 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9459 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9462 if test x"${x_includes}" = x; then
9463 bitmapdir=/usr/include/X11/bitmaps
9465 # accumulate include directories that have X11 bitmap subdirectories
9467 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9468 if test -d "${bmd}/X11/bitmaps"; then
9469 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9471 if test -d "${bmd}/bitmaps"; then
9472 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9475 if test ${bmd_acc} != "dummyval"; then
9476 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9483 tmp_CPPFLAGS="$CPPFLAGS"
9484 tmp_CFLAGS="$CFLAGS"
9485 CPPFLAGS="$CPPFLAGS -x objective-c"
9486 CFLAGS="$CFLAGS -x objective-c"
9487 if test "${with_ns}" != no; then
9488 if test "${opsys}" = darwin; then
9490 ns_appdir=`pwd`/nextstep/Emacs.app
9491 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9492 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9493 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9494 elif test -f $GNUSTEP_CONFIG_FILE; then
9496 ns_appdir=`pwd`/nextstep/Emacs.app
9497 ns_appbindir=`pwd`/nextstep/Emacs.app
9498 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9499 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9500 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9501 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9502 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9503 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9504 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9505 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9506 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9508 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9509 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9510 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9511 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9512 $as_echo_n "(cached) " >&6
9514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9515 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9517 # Is the header compilable?
9518 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9519 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 #include <AppKit/AppKit.h>
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.
$ac_objext; then
9547 ac_header_compiler
=yes
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 ac_header_compiler
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9557 $as_echo "$ac_header_compiler" >&6; }
9559 # Is the header present?
9560 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9561 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <AppKit/AppKit.h>
9570 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9576 $as_echo "$ac_try_echo") >&5
9577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } >/dev/null && {
9584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9587 ac_header_preproc=yes
9589 $as_echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_header_preproc=no
9595 rm -f conftest.err conftest.$ac_ext
9596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9597 $as_echo "$ac_header_preproc" >&6; }
9599 # So? What about this header?
9600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9602 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9603 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9604 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9605 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9606 ac_header_preproc=yes
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9613 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9614 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9615 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9616 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9617 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9618 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9619 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9620 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9624 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9625 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9626 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9627 $as_echo_n "(cached) " >&6
9629 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9632 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9635 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9638 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9639 files are missing or cannot be compiled." >&5
9640 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9641 files are missing or cannot be compiled.
" >&2;}
9642 { (exit 1); exit 1; }; }
9646 NS_HAVE_NSINTEGER=yes
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 #include <Foundation/NSObjCRuntime.h>
9662 rm -f conftest.$ac_objext
9663 if { (ac_try="$ac_compile"
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9668 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9669 $as_echo "$ac_try_echo") >&5
9670 (eval "$ac_compile") 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest.$ac_objext; then
9680 ns_have_nsinteger=yes
9682 $as_echo "$as_me: failed program was
:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9685 ns_have_nsinteger=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 if test $ns_have_nsinteger = no; then
9690 NS_HAVE_NSINTEGER=no
9693 if test "${HAVE_NS}" = yes; then
9694 window_system=nextstep
9696 # set up packaging dirs
9697 exec_prefix=${ns_appbindir}
9698 libexecdir=${ns_appbindir}/libexec
9699 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9700 prefix=${ns_appresdir}
9703 CFLAGS="$tmp_CFLAGS"
9704 CPPFLAGS="$tmp_CPPFLAGS"
9706 case "${window_system}" in
9710 case "${with_x_toolkit}" in
9711 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9712 motif ) USE_X_TOOLKIT=MOTIF ;;
9714 USE_X_TOOLKIT=none ;;
9715 no ) USE_X_TOOLKIT=none ;;
9716 * ) USE_X_TOOLKIT=maybe ;;
9726 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9727 # Extract the first word of "X
", so it can be a program name with args.
9728 set dummy X; ac_word=$2
9729 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9730 $as_echo_n "checking
for $ac_word...
" >&6; }
9731 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9732 $as_echo_n "(cached
) " >&6
9734 if test -n "$HAVE_XSERVER"; then
9735 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 test -z "$as_dir" && as_dir=.
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9744 ac_cv_prog_HAVE_XSERVER="true
"
9745 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9752 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9755 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9756 if test -n "$HAVE_XSERVER"; then
9757 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9758 $as_echo "$HAVE_XSERVER" >&6; }
9760 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9761 $as_echo "no
" >&6; }
9765 if test "$HAVE_XSERVER" = true ||
9766 test -n "$DISPLAY" ||
9767 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9768 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9769 were found. You should
install the relevant development files
for X
9770 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9771 sure you have development files
for image handling
, i.e.
9772 tiff
, gif
, jpeg
, png and xpm.
9773 If you are sure you want Emacs compiled without X window support
, pass
9776 $as_echo "$as_me: 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
9783 to configure.
" >&2;}
9784 { (exit 1); exit 1; }; }
9788 ### If we're using X11, we should use the X menu package.
9791 yes ) HAVE_MENUS=yes ;;
9794 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9795 # Assume not, until told otherwise.
9798 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9799 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9800 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9801 $as_echo_n "(cached
) " >&6
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define malloc_get_state innocuous_malloc_get_state
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char malloc_get_state (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9819 # include <limits.h>
9821 # include <assert.h>
9824 #undef malloc_get_state
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9832 char malloc_get_state ();
9833 /* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9843 return malloc_get_state ();
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_link") 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext && {
9866 test "$cross_compiling" = yes ||
9867 $as_test_x conftest$ac_exeext
9869 ac_cv_func_malloc_get_state=yes
9871 $as_echo "$as_me: failed program was
:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_cv_func_malloc_get_state=no
9877 rm -rf conftest.dSYM
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9881 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9882 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9883 if test $ac_cv_func_malloc_get_state = yes; then
9889 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9890 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9891 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9892 $as_echo_n "(cached
) " >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902 #define malloc_set_state innocuous_malloc_set_state
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char malloc_set_state (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9910 # include <limits.h>
9912 # include <assert.h>
9915 #undef malloc_set_state
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9923 char malloc_set_state ();
9924 /* The GNU C library defines this for functions which it implements
9925 to always fail with ENOSYS. Some functions are actually named
9926 something starting with __ and the normal name is an alias. */
9927 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9934 return malloc_set_state ();
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9945 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9946 $as_echo "$ac_try_echo") >&5
9947 (eval "$ac_link") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext && {
9957 test "$cross_compiling" = yes ||
9958 $as_test_x conftest$ac_exeext
9960 ac_cv_func_malloc_set_state=yes
9962 $as_echo "$as_me: failed program was
:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_cv_func_malloc_set_state=no
9968 rm -rf conftest.dSYM
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9972 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9973 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9974 if test $ac_cv_func_malloc_set_state = yes; then
9980 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9981 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9982 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9983 $as_echo_n "(cached
) " >&6
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 extern void (* __after_morecore_hook)();
9995 __after_morecore_hook = 0
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_link") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1 >conftest.err
10012 cat conftest.err >&5
10013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest$ac_exeext
10021 emacs_cv_var___after_morecore_hook=yes
10023 $as_echo "$as_me: failed program was
:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 emacs_cv_var___after_morecore_hook=no
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext conftest.$ac_ext
10033 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10034 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10035 if test $emacs_cv_var___after_morecore_hook = no; then
10038 if test "${system_malloc}" = "yes"; then
10040 GNU_MALLOC_reason="
10041 (The GNU allocators don
't work with this system configuration.)"
10043 if test "$doug_lea_malloc" = "yes" ; then
10044 if test "$GNU_MALLOC" = yes ; then
10045 GNU_MALLOC_reason="
10046 (Using Doug Lea's new malloc from the GNU C Library.
)"
10049 cat >>confdefs.h <<\_ACEOF
10050 #define DOUG_LEA_MALLOC 1
10055 if test x"${REL_ALLOC}" = x; then
10056 REL_ALLOC=${GNU_MALLOC}
10062 for ac_header in stdlib.h unistd.h
10064 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10066 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10067 $as_echo_n "checking
for $ac_header...
" >&6; }
10068 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10069 $as_echo_n "(cached
) " >&6
10071 ac_res=`eval 'as_val=${'$as_ac_Header'}
10072 $as_echo "$as_val"'`
10073 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10074 $as_echo "$ac_res" >&6; }
10076 # Is the header compilable?
10077 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10078 $as_echo_n "checking
$ac_header usability...
" >&6; }
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 $ac_includes_default
10086 #include <$ac_header>
10088 rm -f conftest.$ac_objext
10089 if { (ac_try="$ac_compile"
10090 case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10095 $as_echo "$ac_try_echo") >&5
10096 (eval "$ac_compile") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1 >conftest.err
10100 cat conftest.err >&5
10101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10102 (exit $ac_status); } && {
10103 test -z "$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10105 } && test -s conftest.$ac_objext; then
10106 ac_header_compiler=yes
10108 $as_echo "$as_me: failed program was
:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10111 ac_header_compiler=no
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10116 $as_echo "$ac_header_compiler" >&6; }
10118 # Is the header present?
10119 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10120 $as_echo_n "checking
$ac_header presence...
" >&6; }
10121 cat >conftest.$ac_ext <<_ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127 #include <$ac_header>
10129 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10130 case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10135 $as_echo "$ac_try_echo") >&5
10136 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10142 (exit $ac_status); } >/dev/null && {
10143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10146 ac_header_preproc=yes
10148 $as_echo "$as_me: failed program was
:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_preproc=no
10154 rm -f conftest.err conftest.$ac_ext
10155 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10156 $as_echo "$ac_header_preproc" >&6; }
10158 # So? What about this header?
10159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10161 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10162 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10163 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10165 ac_header_preproc=yes
10168 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10169 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10171 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10172 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10173 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10174 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10175 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10178 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10179 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10183 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10184 $as_echo_n "checking
for $ac_header...
" >&6; }
10185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10186 $as_echo_n "(cached
) " >&6
10188 eval "$as_ac_Header=\
$ac_header_preproc"
10190 ac_res=`eval 'as_val=${'$as_ac_Header'}
10191 $as_echo "$as_val"'`
10192 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10193 $as_echo "$ac_res" >&6; }
10196 if test `eval 'as_val=${'$as_ac_Header'}
10197 $as_echo "$as_val"'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10207 for ac_func in getpagesize
10209 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10210 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10211 $as_echo_n "checking
for $ac_func...
" >&6; }
10212 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10213 $as_echo_n "(cached
) " >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10223 #define $ac_func innocuous_$ac_func
10225 /* System header to define __stub macros and hopefully few prototypes,
10226 which can conflict with char $ac_func (); below.
10227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228 <limits.h> exists even on freestanding compilers. */
10231 # include <limits.h>
10233 # include <assert.h>
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10245 /* The GNU C library defines this for functions which it implements
10246 to always fail with ENOSYS. Some functions are actually named
10247 something starting with __ and the normal name is an alias. */
10248 #if defined __stub_$ac_func || defined __stub___$ac_func
10255 return $ac_func ();
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10267 $as_echo "$ac_try_echo") >&5
10268 (eval "$ac_link") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest$ac_exeext && {
10278 test "$cross_compiling" = yes ||
10279 $as_test_x conftest$ac_exeext
10281 eval "$as_ac_var=yes"
10283 $as_echo "$as_me: failed program was
:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 eval "$as_ac_var=no
"
10289 rm -rf conftest.dSYM
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291 conftest$ac_exeext conftest.$ac_ext
10293 ac_res=`eval 'as_val=${'$as_ac_var'}
10294 $as_echo "$as_val"'`
10295 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10296 $as_echo "$ac_res" >&6; }
10297 if test `eval 'as_val=${'$as_ac_var'}
10298 $as_echo "$as_val"'` = yes; then
10299 cat >>confdefs.h <<_ACEOF
10300 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10306 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10307 $as_echo_n "checking
for working mmap...
" >&6; }
10308 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10309 $as_echo_n "(cached
) " >&6
10311 if test "$cross_compiling" = yes; then
10312 ac_cv_func_mmap_fixed_mapped=no
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 /* malloc might have been renamed as rpl_malloc. */
10324 /* Thanks to Mike Haertel and Jim Avera for this test.
10325 Here is a matrix of mmap possibilities:
10326 mmap private not fixed
10327 mmap private fixed at somewhere currently unmapped
10328 mmap private fixed at somewhere already mapped
10329 mmap shared not fixed
10330 mmap shared fixed at somewhere currently unmapped
10331 mmap shared fixed at somewhere already mapped
10332 For private mappings, we should verify that changes cannot be read()
10333 back from the file, nor mmap's back from the file at a different
10334 address. (There have been systems where private was not correctly
10335 implemented like the infamous i386 svr4.0, and systems where the
10336 VM page cache was not coherent with the file system buffer cache
10337 like early versions of FreeBSD and possibly contemporary NetBSD.)
10338 For shared mappings, we should conversely verify that changes get
10339 propagated back to all the places they're supposed to be.
10341 Grep wants private fixed already mapped.
10342 The main things grep needs to know about mmap are:
10343 * does it exist and is it safe to write into the mmap'd area
10344 * how to use it (BSD variants) */
10347 #include <sys/mman.h>
10349 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10353 /* This mess was copied from the GNU getpagesize.h. */
10354 #ifndef HAVE_GETPAGESIZE
10355 /* Assume that all systems that can run configure have sys/param.h. */
10356 # ifndef HAVE_SYS_PARAM_H
10357 # define HAVE_SYS_PARAM_H 1
10360 # ifdef _SC_PAGESIZE
10361 # define getpagesize() sysconf(_SC_PAGESIZE)
10362 # else /* no _SC_PAGESIZE */
10363 # ifdef HAVE_SYS_PARAM_H
10364 # include <sys/param.h>
10365 # ifdef EXEC_PAGESIZE
10366 # define getpagesize() EXEC_PAGESIZE
10367 # else /* no EXEC_PAGESIZE */
10369 # define getpagesize() NBPG * CLSIZE
10372 # endif /* no CLSIZE */
10373 # else /* no NBPG */
10375 # define getpagesize() NBPC
10376 # else /* no NBPC */
10378 # define getpagesize() PAGESIZE
10379 # endif /* PAGESIZE */
10380 # endif /* no NBPC */
10381 # endif /* no NBPG */
10382 # endif /* no EXEC_PAGESIZE */
10383 # else /* no HAVE_SYS_PARAM_H */
10384 # define getpagesize() 8192 /* punt totally */
10385 # endif /* no HAVE_SYS_PARAM_H */
10386 # endif /* no _SC_PAGESIZE */
10388 #endif /* no HAVE_GETPAGESIZE */
10393 char *data, *data2, *data3;
10397 pagesize = getpagesize ();
10399 /* First, make a file with some known garbage in it. */
10400 data = (char *) malloc (pagesize);
10403 for (i = 0; i < pagesize; ++i)
10404 *(data + i) = rand ();
10406 fd = creat ("conftest.mmap
", 0600);
10409 if (write (fd, data, pagesize) != pagesize)
10413 /* Next, try to mmap the file at a fixed address which already has
10414 something else allocated at it. If we can, also make sure that
10415 we see the same garbage. */
10416 fd = open ("conftest.mmap
", O_RDWR);
10419 data2 = (char *) malloc (2 * pagesize);
10422 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10423 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10424 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10426 for (i = 0; i < pagesize; ++i)
10427 if (*(data + i) != *(data2 + i))
10430 /* Finally, make sure that changes to the mapped area do not
10431 percolate back to the file as seen by read(). (This is a bug on
10432 some variants of i386 svr4.0.) */
10433 for (i = 0; i < pagesize; ++i)
10434 *(data2 + i) = *(data2 + i) + 1;
10435 data3 = (char *) malloc (pagesize);
10438 if (read (fd, data3, pagesize) != pagesize)
10440 for (i = 0; i < pagesize; ++i)
10441 if (*(data + i) != *(data3 + i))
10447 rm -f conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455 (eval "$ac_link") 2>&5
10457 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10464 $as_echo "$ac_try_echo") >&5
10465 (eval "$ac_try") 2>&5
10467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_cv_func_mmap_fixed_mapped=yes
10471 $as_echo "$as_me: program exited with status
$ac_status" >&5
10472 $as_echo "$as_me: failed program was
:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 ( exit $ac_status )
10476 ac_cv_func_mmap_fixed_mapped=no
10478 rm -rf conftest.dSYM
10479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10484 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10485 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10486 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_MMAP 1
10493 rm -f conftest.mmap
10495 if test $use_mmap_for_buffers = yes; then
10499 LIBS="$libsrc_libs $LIBS"
10502 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10503 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10504 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10505 $as_echo_n "(cached
) " >&6
10507 ac_check_lib_save_LIBS=$LIBS
10508 LIBS="-ldnet $LIBS"
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10516 /* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10526 return dnet_ntoa ();
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10538 $as_echo "$ac_try_echo") >&5
10539 (eval "$ac_link") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext && {
10549 test "$cross_compiling" = yes ||
10550 $as_test_x conftest$ac_exeext
10552 ac_cv_lib_dnet_dnet_ntoa=yes
10554 $as_echo "$as_me: failed program was
:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_lib_dnet_dnet_ntoa=no
10560 rm -rf conftest.dSYM
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10566 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10567 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10568 cat >>confdefs.h <<_ACEOF
10569 #define HAVE_LIBDNET 1
10572 LIBS="-ldnet $LIBS"
10577 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10578 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10579 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10580 $as_echo_n "(cached
) " >&6
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lXbsd $LIBS"
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10607 $as_echo "$ac_try_echo") >&5
10608 (eval "$ac_link") 2>conftest.er1
10610 grep -v '^ *+' conftest.er1 >conftest.err
10612 cat conftest.err >&5
10613 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext && {
10618 test "$cross_compiling" = yes ||
10619 $as_test_x conftest$ac_exeext
10621 ac_cv_lib_Xbsd_main=yes
10623 $as_echo "$as_me: failed program was
:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10626 ac_cv_lib_Xbsd_main=no
10629 rm -rf conftest.dSYM
10630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10635 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10636 if test $ac_cv_lib_Xbsd_main = yes; then
10637 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10642 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10643 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10644 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10645 $as_echo_n "(cached
) " >&6
10647 ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-lpthreads $LIBS"
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10666 return cma_open ();
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10678 $as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10681 grep -v '^ *+' conftest.er1 >conftest.err
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10692 ac_cv_lib_pthreads_cma_open=yes
10694 $as_echo "$as_me: failed program was
:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_pthreads_cma_open=no
10700 rm -rf conftest.dSYM
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10706 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10707 if test $ac_cv_lib_pthreads_cma_open = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define HAVE_LIBPTHREADS 1
10712 LIBS="-lpthreads $LIBS"
10720 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10721 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10722 if test "${gdb_cv_bigtoc+set}" = set; then
10723 $as_echo_n "(cached
) " >&6
10727 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10728 *) gdb_cv_bigtoc=-bbigtoc ;;
10731 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10754 $as_echo "$ac_try_echo") >&5
10755 (eval "$ac_link") 2>conftest.er1
10757 grep -v '^ *+' conftest.er1 >conftest.err
10759 cat conftest.err >&5
10760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10761 (exit $ac_status); } && {
10762 test -z "$ac_c_werror_flag" ||
10763 test ! -s conftest.err
10764 } && test -s conftest$ac_exeext && {
10765 test "$cross_compiling" = yes ||
10766 $as_test_x conftest$ac_exeext
10770 $as_echo "$as_me: failed program was
:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10776 rm -rf conftest.dSYM
10777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10778 conftest$ac_exeext conftest.$ac_ext
10781 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10782 $as_echo "$gdb_cv_bigtoc" >&6; }
10786 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10787 # used for the tests that follow. We set them back to REAL_CFLAGS and
10788 # REAL_CPPFLAGS later on.
10790 REAL_CPPFLAGS="$CPPFLAGS"
10792 if test "${HAVE_X11}" = "yes"; then
10793 DEFS="$C_SWITCH_X_SITE $DEFS"
10794 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10796 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10797 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10799 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10800 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10801 # but it's more convenient here to set LD_RUN_PATH
10802 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10803 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10804 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10808 if test "${opsys}" = "gnu-linux
"; then
10809 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10810 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10821 XOpenDisplay ("foo
");
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10833 $as_echo "$ac_try_echo") >&5
10834 (eval "$ac_link") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1 >conftest.err
10838 cat conftest.err >&5
10839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext && {
10844 test "$cross_compiling" = yes ||
10845 $as_test_x conftest$ac_exeext
10847 xlinux_first_failure=no
10849 $as_echo "$as_me: failed program was
:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10852 xlinux_first_failure=yes
10855 rm -rf conftest.dSYM
10856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10857 conftest$ac_exeext conftest.$ac_ext
10858 if test "${xlinux_first_failure}" = "yes"; then
10859 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10860 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10861 OLD_CPPFLAGS="$CPPFLAGS"
10863 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10864 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10865 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10866 LIBS="$LIBS -b i486-linuxaout
"
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10877 XOpenDisplay ("foo
");
10882 rm -f conftest.$ac_objext conftest$ac_exeext
10883 if { (ac_try="$ac_link"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10889 $as_echo "$ac_try_echo") >&5
10890 (eval "$ac_link") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest$ac_exeext && {
10900 test "$cross_compiling" = yes ||
10901 $as_test_x conftest$ac_exeext
10903 xlinux_second_failure=no
10905 $as_echo "$as_me: failed program was
:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 xlinux_second_failure=yes
10911 rm -rf conftest.dSYM
10912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10913 conftest$ac_exeext conftest.$ac_ext
10914 if test "${xlinux_second_failure}" = "yes"; then
10915 # If we get the same failure with -b, there is no use adding -b.
10916 # So take it out. This plays safe.
10917 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10918 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10919 CPPFLAGS="$OLD_CPPFLAGS"
10921 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10922 $as_echo "no
" >&6; }
10924 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10925 $as_echo "yes" >&6; }
10928 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10929 $as_echo "no
" >&6; }
10933 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10934 # header files included from there.
10935 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10936 $as_echo_n "checking
for Xkb...
" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h. */
10943 #include <X11/Xlib.h>
10944 #include <X11/XKBlib.h>
10948 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10960 $as_echo "$ac_try_echo") >&5
10961 (eval "$ac_link") 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest$ac_exeext && {
10971 test "$cross_compiling" = yes ||
10972 $as_test_x conftest$ac_exeext
10976 $as_echo "$as_me: failed program was
:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10982 rm -rf conftest.dSYM
10983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10984 conftest$ac_exeext conftest.$ac_ext
10985 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10986 $as_echo "$emacs_xkb" >&6; }
10987 if test $emacs_xkb = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_XKBGETKEYBOARD 1
10999 for ac_func in XrmSetDatabase XScreenResourceString \
11000 XScreenNumberOfScreen XSetWMProtocols
11002 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11003 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11004 $as_echo_n "checking
for $ac_func...
" >&6; }
11005 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11006 $as_echo_n "(cached
) " >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11016 #define $ac_func innocuous_$ac_func
11018 /* System header to define __stub macros and hopefully few prototypes,
11019 which can conflict with char $ac_func (); below.
11020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11021 <limits.h> exists even on freestanding compilers. */
11024 # include <limits.h>
11026 # include <assert.h>
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11038 /* The GNU C library defines this for functions which it implements
11039 to always fail with ENOSYS. Some functions are actually named
11040 something starting with __ and the normal name is an alias. */
11041 #if defined __stub_$ac_func || defined __stub___$ac_func
11048 return $ac_func ();
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (ac_try="$ac_link"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11059 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11060 $as_echo "$ac_try_echo") >&5
11061 (eval "$ac_link") 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest$ac_exeext && {
11071 test "$cross_compiling" = yes ||
11072 $as_test_x conftest$ac_exeext
11074 eval "$as_ac_var=yes"
11076 $as_echo "$as_me: failed program was
:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 eval "$as_ac_var=no
"
11082 rm -rf conftest.dSYM
11083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11084 conftest$ac_exeext conftest.$ac_ext
11086 ac_res=`eval 'as_val=${'$as_ac_var'}
11087 $as_echo "$as_val"'`
11088 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11089 $as_echo "$ac_res" >&6; }
11090 if test `eval 'as_val=${'$as_ac_var'}
11091 $as_echo "$as_val"'` = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11101 if test "${window_system}" = "x11
"; then
11102 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11103 $as_echo_n "checking X11 version
6...
" >&6; }
11104 if test "${emacs_cv_x11_version_6+set}" = set; then
11105 $as_echo_n "(cached
) " >&6
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <X11/Xlib.h>
11117 #if XlibSpecificationRelease < 6
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (ac_try="$ac_link"
11127 case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11132 $as_echo "$ac_try_echo") >&5
11133 (eval "$ac_link") 2>conftest.er1
11135 grep -v '^ *+' conftest.er1 >conftest.err
11137 cat conftest.err >&5
11138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest$ac_exeext && {
11143 test "$cross_compiling" = yes ||
11144 $as_test_x conftest$ac_exeext
11146 emacs_cv_x11_version_6=yes
11148 $as_echo "$as_me: failed program was
:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 emacs_cv_x11_version_6=no
11154 rm -rf conftest.dSYM
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11159 if test $emacs_cv_x11_version_6 = yes; then
11160 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11161 $as_echo "6 or newer
" >&6; }
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_X11R6 1
11168 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11169 $as_echo "before
6" >&6; }
11174 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11176 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11177 if test "${with_rsvg}" != "no
"; then
11178 RSVG_REQUIRED=2.11.0
11179 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11184 # Extract the first word of "pkg-config
", so it can be a program name with args.
11185 set dummy pkg-config; ac_word=$2
11186 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11187 $as_echo_n "checking
for $ac_word...
" >&6; }
11188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11189 $as_echo_n "(cached
) " >&6
11191 case $PKG_CONFIG in
11193 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11204 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11215 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11216 if test -n "$PKG_CONFIG"; then
11217 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11218 $as_echo "$PKG_CONFIG" >&6; }
11220 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11221 $as_echo "no
" >&6; }
11226 if test "$PKG_CONFIG" = "no
" ; then
11229 PKG_CONFIG_MIN_VERSION=0.9.0
11230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11231 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11232 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11234 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11235 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11236 $as_echo "yes" >&6; }
11239 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11240 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11241 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11242 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11243 $as_echo "$RSVG_CFLAGS" >&6; }
11245 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11246 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11247 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11248 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11249 $as_echo "$RSVG_LIBS" >&6; }
11251 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11252 $as_echo "no
" >&6; }
11255 ## If we have a custom action on failure, don't print errors, but
11256 ## do set a variable so people can do so.
11257 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11264 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11265 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11269 if test $succeeded = yes; then
11278 if test ".
${RSVG_CFLAGS}" != ".
"; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define HAVE_RSVG 1
11285 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11286 LIBS="$RSVG_LIBS $LIBS"
11293 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11296 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11301 # Extract the first word of "pkg-config
", so it can be a program name with args.
11302 set dummy pkg-config; ac_word=$2
11303 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11304 $as_echo_n "checking
for $ac_word...
" >&6; }
11305 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11306 $as_echo_n "(cached
) " >&6
11308 case $PKG_CONFIG in
11310 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11321 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11328 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11332 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11333 if test -n "$PKG_CONFIG"; then
11334 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11335 $as_echo "$PKG_CONFIG" >&6; }
11337 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11338 $as_echo "no
" >&6; }
11343 if test "$PKG_CONFIG" = "no
" ; then
11346 PKG_CONFIG_MIN_VERSION=0.9.0
11347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11348 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11349 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11351 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11352 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11353 $as_echo "yes" >&6; }
11356 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11357 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11358 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11359 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11360 $as_echo "$GTK_CFLAGS" >&6; }
11362 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11363 $as_echo_n "checking GTK_LIBS...
" >&6; }
11364 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11365 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11366 $as_echo "$GTK_LIBS" >&6; }
11368 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11369 $as_echo "no
" >&6; }
11372 ## If we have a custom action on failure, don't print errors, but
11373 ## do set a variable so people can do so.
11374 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11381 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11382 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11386 if test $succeeded = yes; then
11392 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11393 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11394 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11395 { (exit 1); exit 1; }; }
11400 if test x"$pkg_check_gtk" = xyes; then
11404 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11405 CFLAGS="$CFLAGS $GTK_CFLAGS"
11406 LIBS="$GTK_LIBS $LIBS"
11409 for ac_func in gtk_main
11411 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11412 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11413 $as_echo_n "checking
for $ac_func...
" >&6; }
11414 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11415 $as_echo_n "(cached
) " >&6
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11425 #define $ac_func innocuous_$ac_func
11427 /* System header to define __stub macros and hopefully few prototypes,
11428 which can conflict with char $ac_func (); below.
11429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11430 <limits.h> exists even on freestanding compilers. */
11433 # include <limits.h>
11435 # include <assert.h>
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11447 /* The GNU C library defines this for functions which it implements
11448 to always fail with ENOSYS. Some functions are actually named
11449 something starting with __ and the normal name is an alias. */
11450 #if defined __stub_$ac_func || defined __stub___$ac_func
11457 return $ac_func ();
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (ac_try="$ac_link"
11464 case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11469 $as_echo "$ac_try_echo") >&5
11470 (eval "$ac_link") 2>conftest.er1
11472 grep -v '^ *+' conftest.er1 >conftest.err
11474 cat conftest.err >&5
11475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext && {
11480 test "$cross_compiling" = yes ||
11481 $as_test_x conftest$ac_exeext
11483 eval "$as_ac_var=yes"
11485 $as_echo "$as_me: failed program was
:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 eval "$as_ac_var=no
"
11491 rm -rf conftest.dSYM
11492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11493 conftest$ac_exeext conftest.$ac_ext
11495 ac_res=`eval 'as_val=${'$as_ac_var'}
11496 $as_echo "$as_val"'`
11497 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11498 $as_echo "$ac_res" >&6; }
11499 if test `eval 'as_val=${'$as_ac_var'}
11500 $as_echo "$as_val"'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11508 if test "${GTK_COMPILES}" != "yes"; then
11509 if test "$USE_X_TOOLKIT" != "maybe
"; then
11510 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11511 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11512 { (exit 1); exit 1; }; };
11517 cat >>confdefs.h <<\_ACEOF
11522 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11525 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11526 closing open displays. This is no problem
if you just use
11527 one display
, but
if you use
more than one and close one of them
11528 Emacs may crash.
" >&5
11529 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11530 closing open displays. This is no problem
if you just use
11531 one display
, but
if you use
more than one and close one of them
11532 Emacs may crash.
" >&2;}
11540 if test "${HAVE_GTK}" = "yes"; then
11542 if test "$with_toolkit_scroll_bars" != no; then
11543 with_toolkit_scroll_bars=yes
11546 HAVE_GTK_MULTIDISPLAY=no
11548 for ac_func in gdk_display_open
11550 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11551 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11552 $as_echo_n "checking
for $ac_func...
" >&6; }
11553 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11554 $as_echo_n "(cached
) " >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11564 #define $ac_func innocuous_$ac_func
11566 /* System header to define __stub macros and hopefully few prototypes,
11567 which can conflict with char $ac_func (); below.
11568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11569 <limits.h> exists even on freestanding compilers. */
11572 # include <limits.h>
11574 # include <assert.h>
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11586 /* The GNU C library defines this for functions which it implements
11587 to always fail with ENOSYS. Some functions are actually named
11588 something starting with __ and the normal name is an alias. */
11589 #if defined __stub_$ac_func || defined __stub___$ac_func
11596 return $ac_func ();
11601 rm -f conftest.$ac_objext conftest$ac_exeext
11602 if { (ac_try="$ac_link"
11603 case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11608 $as_echo "$ac_try_echo") >&5
11609 (eval "$ac_link") 2>conftest.er1
11611 grep -v '^ *+' conftest.er1 >conftest.err
11613 cat conftest.err >&5
11614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11615 (exit $ac_status); } && {
11616 test -z "$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 } && test -s conftest$ac_exeext && {
11619 test "$cross_compiling" = yes ||
11620 $as_test_x conftest$ac_exeext
11622 eval "$as_ac_var=yes"
11624 $as_echo "$as_me: failed program was
:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 eval "$as_ac_var=no
"
11630 rm -rf conftest.dSYM
11631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11632 conftest$ac_exeext conftest.$ac_ext
11634 ac_res=`eval 'as_val=${'$as_ac_var'}
11635 $as_echo "$as_val"'`
11636 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11637 $as_echo "$ac_res" >&6; }
11638 if test `eval 'as_val=${'$as_ac_var'}
11639 $as_echo "$as_val"'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11643 HAVE_GTK_MULTIDISPLAY=yes
11647 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11649 cat >>confdefs.h <<\_ACEOF
11650 #define HAVE_GTK_MULTIDISPLAY 1
11655 HAVE_GTK_FILE_SELECTION=no
11656 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11657 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11658 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11659 $as_echo_n "(cached
) " >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 #include <gtk/gtk.h>
11673 #ifndef GTK_TYPE_FILE_SELECTION
11674 (void) GTK_TYPE_FILE_SELECTION;
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11701 $as_echo "$as_me: failed program was
:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11710 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11711 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11712 HAVE_GTK_FILE_SELECTION=yes
11714 HAVE_GTK_FILE_SELECTION=no
11717 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11719 for ac_func in gtk_file_selection_new
11721 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11722 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11723 $as_echo_n "checking
for $ac_func...
" >&6; }
11724 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11725 $as_echo_n "(cached
) " >&6
11727 cat >conftest.$ac_ext <<_ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h. */
11733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11735 #define $ac_func innocuous_$ac_func
11737 /* System header to define __stub macros and hopefully few prototypes,
11738 which can conflict with char $ac_func (); below.
11739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11740 <limits.h> exists even on freestanding compilers. */
11743 # include <limits.h>
11745 # include <assert.h>
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11757 /* The GNU C library defines this for functions which it implements
11758 to always fail with ENOSYS. Some functions are actually named
11759 something starting with __ and the normal name is an alias. */
11760 #if defined __stub_$ac_func || defined __stub___$ac_func
11767 return $ac_func ();
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (ac_try="$ac_link"
11774 case "(($ac_try" in
11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780 (eval "$ac_link") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest$ac_exeext && {
11790 test "$cross_compiling" = yes ||
11791 $as_test_x conftest$ac_exeext
11793 eval "$as_ac_var=yes"
11795 $as_echo "$as_me: failed program was
:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11798 eval "$as_ac_var=no
"
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11805 ac_res=`eval 'as_val=${'$as_ac_var'}
11806 $as_echo "$as_val"'`
11807 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11808 $as_echo "$ac_res" >&6; }
11809 if test `eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11814 HAVE_GTK_FILE_SELECTION=yes
11816 HAVE_GTK_FILE_SELECTION=no
11822 HAVE_GTK_FILE_CHOOSER=no
11823 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11824 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11825 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11826 $as_echo_n "(cached
) " >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 #include <gtk/gtk.h>
11840 #ifndef GTK_TYPE_FILE_CHOOSER
11841 (void) GTK_TYPE_FILE_CHOOSER;
11848 rm -f conftest.$ac_objext
11849 if { (ac_try="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11855 $as_echo "$ac_try_echo") >&5
11856 (eval "$ac_compile") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest.$ac_objext; then
11866 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11868 $as_echo "$as_me: failed program was
:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11877 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11878 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11879 HAVE_GTK_FILE_CHOOSER=yes
11881 HAVE_GTK_FILE_CHOOSER=no
11884 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11886 for ac_func in gtk_file_chooser_dialog_new
11888 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11889 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11890 $as_echo_n "checking
for $ac_func...
" >&6; }
11891 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11892 $as_echo_n "(cached
) " >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11902 #define $ac_func innocuous_$ac_func
11904 /* System header to define __stub macros and hopefully few prototypes,
11905 which can conflict with char $ac_func (); below.
11906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11907 <limits.h> exists even on freestanding compilers. */
11910 # include <limits.h>
11912 # include <assert.h>
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11924 /* The GNU C library defines this for functions which it implements
11925 to always fail with ENOSYS. Some functions are actually named
11926 something starting with __ and the normal name is an alias. */
11927 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 return $ac_func ();
11939 rm -f conftest.$ac_objext conftest$ac_exeext
11940 if { (ac_try="$ac_link"
11941 case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11945 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11946 $as_echo "$ac_try_echo") >&5
11947 (eval "$ac_link") 2>conftest.er1
11949 grep -v '^ *+' conftest.er1 >conftest.err
11951 cat conftest.err >&5
11952 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest$ac_exeext && {
11957 test "$cross_compiling" = yes ||
11958 $as_test_x conftest$ac_exeext
11960 eval "$as_ac_var=yes"
11962 $as_echo "$as_me: failed program was
:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 eval "$as_ac_var=no
"
11968 rm -rf conftest.dSYM
11969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval 'as_val=${'$as_ac_var'}
11973 $as_echo "$as_val"'`
11974 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11975 $as_echo "$ac_res" >&6; }
11976 if test `eval 'as_val=${'$as_ac_var'}
11977 $as_echo "$as_val"'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11981 HAVE_GTK_FILE_CHOOSER=yes
11983 HAVE_GTK_FILE_CHOOSER=no
11989 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11990 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11992 cat >>confdefs.h <<\_ACEOF
11993 #define HAVE_GTK_FILE_BOTH 1
11998 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999 HAVE_GTK_AND_PTHREAD=no
12001 for ac_header in pthread.h
12003 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12005 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12006 $as_echo_n "checking
for $ac_header...
" >&6; }
12007 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12008 $as_echo_n "(cached
) " >&6
12010 ac_res=`eval 'as_val=${'$as_ac_Header'}
12011 $as_echo "$as_val"'`
12012 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12013 $as_echo "$ac_res" >&6; }
12015 # Is the header compilable?
12016 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12017 $as_echo_n "checking
$ac_header usability...
" >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_compile") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest.$ac_objext; then
12045 ac_header_compiler=yes
12047 $as_echo "$as_me: failed program was
:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_header_compiler=no
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12055 $as_echo "$ac_header_compiler" >&6; }
12057 # Is the header present?
12058 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12059 $as_echo_n "checking
$ac_header presence...
" >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 #include <$ac_header>
12068 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12081 (exit $ac_status); } >/dev/null && {
12082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12085 ac_header_preproc=yes
12087 $as_echo "$as_me: failed program was
:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_header_preproc=no
12093 rm -f conftest.err conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12095 $as_echo "$ac_header_preproc" >&6; }
12097 # So? What about this header?
12098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12101 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12104 ac_header_preproc=yes
12107 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12108 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12110 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12112 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12114 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12118 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12122 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12123 $as_echo_n "checking
for $ac_header...
" >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12125 $as_echo_n "(cached
) " >&6
12127 eval "$as_ac_Header=\
$ac_header_preproc"
12129 ac_res=`eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'`
12131 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12132 $as_echo "$ac_res" >&6; }
12135 if test `eval 'as_val=${'$as_ac_Header'}
12136 $as_echo "$as_val"'` = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12145 if test "$ac_cv_header_pthread_h"; then
12146 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12147 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12148 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12149 $as_echo_n "(cached
) " >&6
12151 ac_check_lib_save_LIBS=$LIBS
12152 LIBS="-lpthread $LIBS"
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12166 char pthread_self ();
12170 return pthread_self ();
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12182 $as_echo "$ac_try_echo") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext && {
12193 test "$cross_compiling" = yes ||
12194 $as_test_x conftest$ac_exeext
12196 ac_cv_lib_pthread_pthread_self=yes
12198 $as_echo "$as_me: failed program was
:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_pthread_pthread_self=no
12204 rm -rf conftest.dSYM
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12210 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12211 if test $ac_cv_lib_pthread_pthread_self = yes; then
12212 HAVE_GTK_AND_PTHREAD=yes
12216 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12217 case "${canonical}" in
12219 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_GTK_AND_PTHREAD 1
12231 if test "${with_dbus}" = "yes"; then
12235 # Extract the first word of "pkg-config
", so it can be a program name with args.
12236 set dummy pkg-config; ac_word=$2
12237 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12238 $as_echo_n "checking
for $ac_word...
" >&6; }
12239 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12240 $as_echo_n "(cached
) " >&6
12242 case $PKG_CONFIG in
12244 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12255 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12267 if test -n "$PKG_CONFIG"; then
12268 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12269 $as_echo "$PKG_CONFIG" >&6; }
12271 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12272 $as_echo "no
" >&6; }
12277 if test "$PKG_CONFIG" = "no
" ; then
12280 PKG_CONFIG_MIN_VERSION=0.9.0
12281 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12282 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12283 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12285 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12286 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12287 $as_echo "yes" >&6; }
12290 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12291 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12292 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12293 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12294 $as_echo "$DBUS_CFLAGS" >&6; }
12296 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12297 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12298 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12299 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12300 $as_echo "$DBUS_LIBS" >&6; }
12302 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12303 $as_echo "no
" >&6; }
12306 ## If we have a custom action on failure, don't print errors, but
12307 ## do set a variable so people can do so.
12308 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12315 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12316 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12320 if test $succeeded = yes; then
12326 if test "$HAVE_DBUS" = yes; then
12327 LIBS="$LIBS $DBUS_LIBS"
12329 cat >>confdefs.h <<\_ACEOF
12330 #define HAVE_DBUS 1
12334 for ac_func in dbus_watch_get_unix_fd
12336 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12337 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12338 $as_echo_n "checking
for $ac_func...
" >&6; }
12339 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached
) " >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12350 #define $ac_func innocuous_$ac_func
12352 /* System header to define __stub macros and hopefully few prototypes,
12353 which can conflict with char $ac_func (); below.
12354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12355 <limits.h> exists even on freestanding compilers. */
12358 # include <limits.h>
12360 # include <assert.h>
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12372 /* The GNU C library defines this for functions which it implements
12373 to always fail with ENOSYS. Some functions are actually named
12374 something starting with __ and the normal name is an alias. */
12375 #if defined __stub_$ac_func || defined __stub___$ac_func
12382 return $ac_func ();
12387 rm -f conftest.$ac_objext conftest$ac_exeext
12388 if { (ac_try="$ac_link"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395 (eval "$ac_link") 2>conftest.er1
12397 grep -v '^ *+' conftest.er1 >conftest.err
12399 cat conftest.err >&5
12400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12401 (exit $ac_status); } && {
12402 test -z "$ac_c_werror_flag" ||
12403 test ! -s conftest.err
12404 } && test -s conftest$ac_exeext && {
12405 test "$cross_compiling" = yes ||
12406 $as_test_x conftest$ac_exeext
12408 eval "$as_ac_var=yes"
12410 $as_echo "$as_me: failed program was
:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12413 eval "$as_ac_var=no
"
12416 rm -rf conftest.dSYM
12417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12418 conftest$ac_exeext conftest.$ac_ext
12420 ac_res=`eval 'as_val=${'$as_ac_var'}
12421 $as_echo "$as_val"'`
12422 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12423 $as_echo "$ac_res" >&6; }
12424 if test `eval 'as_val=${'$as_ac_var'}
12425 $as_echo "$as_val"'` = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12437 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12438 if test "$with_xaw3d" != no; then
12439 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12440 $as_echo_n "checking
for xaw3d...
" >&6; }
12441 if test "${emacs_cv_xaw3d+set}" = set; then
12442 $as_echo_n "(cached
) " >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12451 #include <X11/Intrinsic.h>
12452 #include <X11/Xaw3d/Simple.h>
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (ac_try="$ac_link"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469 (eval "$ac_link") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext && {
12479 test "$cross_compiling" = yes ||
12480 $as_test_x conftest$ac_exeext
12484 $as_echo "$as_me: failed program was
:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -rf conftest.dSYM
12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext conftest.$ac_ext
12498 if test $emacs_cv_xaw3d = yes; then
12499 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12500 $as_echo "yes; using Lucid toolkit
" >&6; }
12501 USE_X_TOOLKIT=LUCID
12504 cat >>confdefs.h <<\_ACEOF
12505 #define HAVE_XAW3D 1
12509 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12510 $as_echo "no
" >&6; }
12511 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12512 $as_echo_n "checking
for libXaw...
" >&6; }
12513 if test "${emacs_cv_xaw+set}" = set; then
12514 $as_echo_n "(cached
) " >&6
12516 cat >conftest.$ac_ext <<_ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12523 #include <X11/Intrinsic.h>
12524 #include <X11/Xaw/Simple.h>
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest$ac_exeext
12556 $as_echo "$as_me: failed program was
:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12562 rm -rf conftest.dSYM
12563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12564 conftest$ac_exeext conftest.$ac_ext
12567 if test $emacs_cv_xaw = yes; then
12568 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12569 $as_echo "yes; using Lucid toolkit
" >&6; }
12570 USE_X_TOOLKIT=LUCID
12571 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12572 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12573 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12574 { (exit 1); exit 1; }; }
12576 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12577 $as_echo "no
; do not use toolkit by default
" >&6; }
12583 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12585 if test "${USE_X_TOOLKIT}" != "none
"; then
12586 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12587 $as_echo_n "checking X11 toolkit version...
" >&6; }
12588 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12589 $as_echo_n "(cached
) " >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 #include <X11/Intrinsic.h>
12601 #if XtSpecificationRelease < 6
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12616 $as_echo "$ac_try_echo") >&5
12617 (eval "$ac_link") 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest$ac_exeext && {
12627 test "$cross_compiling" = yes ||
12628 $as_test_x conftest$ac_exeext
12630 emacs_cv_x11_toolkit_version_6=yes
12632 $as_echo "$as_me: failed program was
:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 emacs_cv_x11_toolkit_version_6=no
12638 rm -rf conftest.dSYM
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12643 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12644 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12645 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12646 $as_echo "6 or newer
" >&6; }
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_X11XTR6 1
12653 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12654 $as_echo "before
6" >&6; }
12658 if test x$HAVE_X11XTR6 = xyes; then
12659 LIBS="-lXt -lSM -lICE $LIBS"
12664 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12665 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12666 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12667 $as_echo_n "(cached
) " >&6
12669 ac_check_lib_save_LIBS=$LIBS
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12678 /* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12684 char XmuConvertStandardSelection ();
12688 return XmuConvertStandardSelection ();
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (ac_try="$ac_link"
12695 case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12700 $as_echo "$ac_try_echo") >&5
12701 (eval "$ac_link") 2>conftest.er1
12703 grep -v '^ *+' conftest.er1 >conftest.err
12705 cat conftest.err >&5
12706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12707 (exit $ac_status); } && {
12708 test -z "$ac_c_werror_flag" ||
12709 test ! -s conftest.err
12710 } && test -s conftest$ac_exeext && {
12711 test "$cross_compiling" = yes ||
12712 $as_test_x conftest$ac_exeext
12714 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12716 $as_echo "$as_me: failed program was
:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12722 rm -rf conftest.dSYM
12723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12728 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12729 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_LIBXMU 1
12738 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12741 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12742 if test "${HAVE_X11}" = "yes"; then
12743 if test "${USE_X_TOOLKIT}" != "none
"; then
12745 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12746 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12747 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12748 $as_echo_n "(cached
) " >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lXext $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char XShapeQueryExtension ();
12769 return XShapeQueryExtension ();
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12781 $as_echo "$ac_try_echo") >&5
12782 (eval "$ac_link") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12788 (exit $ac_status); } && {
12789 test -z "$ac_c_werror_flag" ||
12790 test ! -s conftest.err
12791 } && test -s conftest$ac_exeext && {
12792 test "$cross_compiling" = yes ||
12793 $as_test_x conftest$ac_exeext
12795 ac_cv_lib_Xext_XShapeQueryExtension=yes
12797 $as_echo "$as_me: failed program was
:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_cv_lib_Xext_XShapeQueryExtension=no
12803 rm -rf conftest.dSYM
12804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12808 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12809 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12810 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_LIBXEXT 1
12815 LIBS="-lXext $LIBS"
12822 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12823 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12824 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12825 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12826 $as_echo_n "(cached
) " >&6
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12838 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12841 Motif version prior to 2.1.
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 emacs_cv_motif_version_2_1=yes
12867 $as_echo "$as_me: failed program was
:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 emacs_cv_motif_version_2_1=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12876 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12877 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12878 if test $emacs_cv_motif_version_2_1 = yes; then
12881 cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_MOTIF_2_1 1
12885 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12886 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12887 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12888 $as_echo_n "(cached
) " >&6
12890 ac_check_lib_save_LIBS=$LIBS
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12905 char XpCreateContext ();
12909 return XpCreateContext ();
12914 rm -f conftest.$ac_objext conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12921 $as_echo "$ac_try_echo") >&5
12922 (eval "$ac_link") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest$ac_exeext && {
12932 test "$cross_compiling" = yes ||
12933 $as_test_x conftest$ac_exeext
12935 ac_cv_lib_Xp_XpCreateContext=yes
12937 $as_echo "$as_me: failed program was
:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_lib_Xp_XpCreateContext=no
12943 rm -rf conftest.dSYM
12944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945 conftest$ac_exeext conftest.$ac_ext
12946 LIBS=$ac_check_lib_save_LIBS
12948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12949 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12950 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12954 if test ${HAVE_LIBXP} = yes; then
12956 cat >>confdefs.h <<\_ACEOF
12957 #define HAVE_LIBXP 1
12962 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12963 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12964 if test "${emacs_cv_lesstif+set}" = set; then
12965 $as_echo_n "(cached
) " >&6
12967 # We put this in CFLAGS temporarily to precede other -I options
12968 # that might be in CFLAGS temporarily.
12969 # We put this in CPPFLAGS where it precedes the other -I options.
12970 OLD_CPPFLAGS=$CPPFLAGS
12972 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12973 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12974 cat >conftest.$ac_ext <<_ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13003 (exit $ac_status); } && {
13004 test -z "$ac_c_werror_flag" ||
13005 test ! -s conftest.err
13006 } && test -s conftest.$ac_objext; then
13007 emacs_cv_lesstif=yes
13009 $as_echo "$as_me: failed program was
:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 emacs_cv_lesstif=no
13015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13018 $as_echo "$emacs_cv_lesstif" >&6; }
13019 if test $emacs_cv_lesstif = yes; then
13020 # Make sure this -I option remains in CPPFLAGS after it is set
13021 # back to REAL_CPPFLAGS.
13022 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13023 # have those other -I options anyway. Ultimately, having this
13024 # directory ultimately in CPPFLAGS will be enough.
13025 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13026 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13029 CPPFLAGS=$OLD_CPPFLAGS
13036 USE_TOOLKIT_SCROLL_BARS=no
13037 if test "${with_toolkit_scroll_bars}" != "no
"; then
13038 if test "${USE_X_TOOLKIT}" != "none
"; then
13039 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define USE_TOOLKIT_SCROLL_BARS 1
13045 USE_TOOLKIT_SCROLL_BARS=yes
13046 elif test "${HAVE_XAW3D}" = "yes"; then
13047 cat >>confdefs.h <<\_ACEOF
13048 #define USE_TOOLKIT_SCROLL_BARS 1
13051 USE_TOOLKIT_SCROLL_BARS=yes
13053 elif test "${HAVE_GTK}" = "yes"; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define USE_TOOLKIT_SCROLL_BARS 1
13058 USE_TOOLKIT_SCROLL_BARS=yes
13059 elif test "${HAVE_NS}" = "yes"; then
13060 cat >>confdefs.h <<\_ACEOF
13061 #define USE_TOOLKIT_SCROLL_BARS 1
13064 USE_TOOLKIT_SCROLL_BARS=yes
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13075 #include <X11/Xlib.h>
13076 #include <X11/Xresource.h>
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13092 $as_echo "$ac_try_echo") >&5
13093 (eval "$ac_compile") 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13099 (exit $ac_status); } && {
13100 test -z "$ac_c_werror_flag" ||
13101 test ! -s conftest.err
13102 } && test -s conftest.$ac_objext; then
13105 cat >>confdefs.h <<\_ACEOF
13110 $as_echo "$as_me: failed program was
:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13119 if test "${with_xim}" != "no
"; then
13121 cat >>confdefs.h <<\_ACEOF
13128 if test "${HAVE_XIM}" != "no
"; then
13129 late_CFLAGS=$CFLAGS
13130 if test "$GCC" = yes; then
13131 CFLAGS="$CFLAGS --pedantic-errors"
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #include <X11/Xlib.h>
13141 #include <X11/Xresource.h>
13150 XPointer *client_data;
13152 /* If we're not using GCC, it's probably not XFree86, and this is
13153 probably right, but we can't use something like --pedantic-errors. */
13154 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13155 char*, XIMProc, XPointer*);
13157 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13163 rm -f conftest.$ac_objext
13164 if { (ac_try="$ac_compile"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13170 $as_echo "$ac_try_echo") >&5
13171 (eval "$ac_compile") 2>conftest.er1
13173 grep -v '^ *+' conftest.er1 >conftest.err
13175 cat conftest.err >&5
13176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13177 (exit $ac_status); } && {
13178 test -z "$ac_c_werror_flag" ||
13179 test ! -s conftest.err
13180 } && test -s conftest.$ac_objext; then
13181 emacs_cv_arg6_star=yes
13183 $as_echo "$as_me: failed program was
:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 if test "$emacs_cv_arg6_star" = yes; then
13192 cat >>confdefs.h <<\_ACEOF
13193 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13197 cat >>confdefs.h <<\_ACEOF
13198 #define XRegisterIMInstantiateCallback_arg6 XPointer
13202 CFLAGS=$late_CFLAGS
13205 ### Start of font-backend (under any platform) section.
13206 # (nothing here yet -- this is a placeholder)
13207 ### End of font-backend (under any platform) section.
13209 ### Start of font-backend (under X11) section.
13210 if test "${HAVE_X11}" = "yes"; then
13214 # Extract the first word of "pkg-config
", so it can be a program name with args.
13215 set dummy pkg-config; ac_word=$2
13216 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13217 $as_echo_n "checking
for $ac_word...
" >&6; }
13218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13219 $as_echo_n "(cached
) " >&6
13221 case $PKG_CONFIG in
13223 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13241 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13245 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13246 if test -n "$PKG_CONFIG"; then
13247 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13248 $as_echo "$PKG_CONFIG" >&6; }
13250 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13251 $as_echo "no
" >&6; }
13256 if test "$PKG_CONFIG" = "no
" ; then
13259 PKG_CONFIG_MIN_VERSION=0.9.0
13260 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13261 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13262 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13264 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13265 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13266 $as_echo "yes" >&6; }
13269 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13270 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13271 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13272 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13273 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13275 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13276 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13277 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13278 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13279 $as_echo "$FONTCONFIG_LIBS" >&6; }
13281 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13282 $as_echo "no
" >&6; }
13283 FONTCONFIG_CFLAGS=""
13285 ## If we have a custom action on failure, don't print errors, but
13286 ## do set a variable so people can do so.
13287 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13294 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13295 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13299 if test $succeeded = yes; then
13306 ## Use -lXft if available, unless `--with-xft=no'.
13308 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13311 if test "x
${with_xft}" != "xno
"; then
13316 # Extract the first word of "pkg-config
", so it can be a program name with args.
13317 set dummy pkg-config; ac_word=$2
13318 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13319 $as_echo_n "checking
for $ac_word...
" >&6; }
13320 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13321 $as_echo_n "(cached
) " >&6
13323 case $PKG_CONFIG in
13325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13336 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13348 if test -n "$PKG_CONFIG"; then
13349 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13350 $as_echo "$PKG_CONFIG" >&6; }
13352 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13353 $as_echo "no
" >&6; }
13358 if test "$PKG_CONFIG" = "no
" ; then
13361 PKG_CONFIG_MIN_VERSION=0.9.0
13362 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13363 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13364 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13366 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13367 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13368 $as_echo "yes" >&6; }
13371 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13372 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13373 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13374 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13375 $as_echo "$XFT_CFLAGS" >&6; }
13377 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13378 $as_echo_n "checking XFT_LIBS...
" >&6; }
13379 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13380 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13381 $as_echo "$XFT_LIBS" >&6; }
13383 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13384 $as_echo "no
" >&6; }
13387 ## If we have a custom action on failure, don't print errors, but
13388 ## do set a variable so people can do so.
13389 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13396 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13397 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13401 if test $succeeded = yes; then
13407 if test "$HAVE_XFT" != no; then
13408 OLD_CPPFLAGS="$CPPFLAGS"
13409 OLD_CFLAGS="$CFLAGS"
13411 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13412 CFLAGS="$CFLAGS $XFT_CFLAGS"
13413 LIBS="$XFT_LIBS $LIBS"
13414 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13415 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13416 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13417 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13418 $as_echo_n "(cached
) " >&6
13420 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13421 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13423 # Is the header compilable?
13424 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13425 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 #include <X11/Xft/Xft.h>
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13441 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13442 $as_echo "$ac_try_echo") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_header_compiler=yes
13455 $as_echo "$as_me: failed program was
:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13463 $as_echo "$ac_header_compiler" >&6; }
13465 # Is the header present?
13466 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13467 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <X11/Xft/Xft.h>
13476 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13482 $as_echo "$ac_try_echo") >&5
13483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13489 (exit $ac_status); } >/dev/null && {
13490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13493 ac_header_preproc=yes
13495 $as_echo "$as_me: failed program was
:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13498 ac_header_preproc=no
13501 rm -f conftest.err conftest.$ac_ext
13502 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13503 $as_echo "$ac_header_preproc" >&6; }
13505 # So? What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13508 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13509 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13510 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13511 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13512 ac_header_preproc=yes
13515 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13516 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13517 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13518 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13519 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13520 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13521 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13522 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13523 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13524 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13525 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13526 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13530 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13531 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13532 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13533 $as_echo_n "(cached
) " >&6
13535 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13537 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13538 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13541 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13542 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13543 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13544 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13545 $as_echo_n "(cached
) " >&6
13547 ac_check_lib_save_LIBS=$LIBS
13548 LIBS="-lXft $XFT_LIBS $LIBS"
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13556 /* Override any GCC internal prototype to avoid an error.
13557 Use char because int might match the return type of a GCC
13558 builtin and then its argument prototype would still apply. */
13562 char XftFontOpen ();
13566 return XftFontOpen ();
13571 rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (ac_try="$ac_link"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_link") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest$ac_exeext && {
13589 test "$cross_compiling" = yes ||
13590 $as_test_x conftest$ac_exeext
13592 ac_cv_lib_Xft_XftFontOpen=yes
13594 $as_echo "$as_me: failed program was
:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_lib_Xft_XftFontOpen=no
13600 rm -rf conftest.dSYM
13601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13602 conftest$ac_exeext conftest.$ac_ext
13603 LIBS=$ac_check_lib_save_LIBS
13605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13606 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13607 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13615 if test "${HAVE_XFT}" = "yes"; then
13617 cat >>confdefs.h <<\_ACEOF
13622 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13624 CPPFLAGS="$OLD_CPPFLAGS"
13625 CFLAGS="$OLD_CFLAGS"
13627 fi # "${HAVE_XFT}" = "yes"
13628 fi # "$HAVE_XFT" != no
13629 fi # "x
${with_xft}" != "xno
"
13631 if test "$HAVE_XFT" != "yes"; then
13637 ## We used to allow building with FreeType and without Xft.
13638 ## However, the ftx font backend driver is not in good shape.
13639 if test "${HAVE_XFT}" = "yes"; then
13646 if test "${HAVE_FREETYPE}" = "yes"; then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_FREETYPE 1
13652 if test "${with_libotf}" != "no
"; then
13656 # Extract the first word of "pkg-config
", so it can be a program name with args.
13657 set dummy pkg-config; ac_word=$2
13658 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13659 $as_echo_n "checking
for $ac_word...
" >&6; }
13660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13661 $as_echo_n "(cached
) " >&6
13663 case $PKG_CONFIG in
13665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13676 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13688 if test -n "$PKG_CONFIG"; then
13689 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13690 $as_echo "$PKG_CONFIG" >&6; }
13692 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13693 $as_echo "no
" >&6; }
13698 if test "$PKG_CONFIG" = "no
" ; then
13701 PKG_CONFIG_MIN_VERSION=0.9.0
13702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13703 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13704 $as_echo_n "checking
for libotf...
" >&6; }
13706 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13707 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13708 $as_echo "yes" >&6; }
13711 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13712 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13713 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13714 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13715 $as_echo "$LIBOTF_CFLAGS" >&6; }
13717 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13718 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13719 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13720 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13721 $as_echo "$LIBOTF_LIBS" >&6; }
13723 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13724 $as_echo "no
" >&6; }
13727 ## If we have a custom action on failure, don't print errors, but
13728 ## do set a variable so people can do so.
13729 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13736 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13737 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13741 if test $succeeded = yes; then
13747 if test "$HAVE_LIBOTF" = "yes"; then
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_LIBOTF 1
13753 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13754 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13755 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13756 $as_echo_n "(cached
) " >&6
13758 ac_check_lib_save_LIBS=$LIBS
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13773 char OTF_get_variation_glyphs ();
13777 return OTF_get_variation_glyphs ();
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (ac_try="$ac_link"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790 (eval "$ac_link") 2>conftest.er1
13792 grep -v '^ *+' conftest.er1 >conftest.err
13794 cat conftest.err >&5
13795 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest$ac_exeext && {
13800 test "$cross_compiling" = yes ||
13801 $as_test_x conftest$ac_exeext
13803 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13805 $as_echo "$as_me: failed program was
:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13811 rm -rf conftest.dSYM
13812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13813 conftest$ac_exeext conftest.$ac_ext
13814 LIBS=$ac_check_lib_save_LIBS
13816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13817 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13818 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13819 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13821 HAVE_OTF_GET_VARIATION_GLYPHS=no
13824 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13836 if test "${HAVE_LIBOTF}" = yes; then
13837 if test "${with_m17n_flt}" != "no
"; then
13841 # Extract the first word of "pkg-config
", so it can be a program name with args.
13842 set dummy pkg-config; ac_word=$2
13843 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13844 $as_echo_n "checking
for $ac_word...
" >&6; }
13845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13846 $as_echo_n "(cached
) " >&6
13848 case $PKG_CONFIG in
13850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13861 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13873 if test -n "$PKG_CONFIG"; then
13874 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13875 $as_echo "$PKG_CONFIG" >&6; }
13877 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13878 $as_echo "no
" >&6; }
13883 if test "$PKG_CONFIG" = "no
" ; then
13886 PKG_CONFIG_MIN_VERSION=0.9.0
13887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13888 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13889 $as_echo_n "checking
for m17n-flt...
" >&6; }
13891 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13892 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13893 $as_echo "yes" >&6; }
13896 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13897 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13898 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13899 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13900 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13902 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13903 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13904 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13905 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13906 $as_echo "$M17N_FLT_LIBS" >&6; }
13908 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13909 $as_echo "no
" >&6; }
13912 ## If we have a custom action on failure, don't print errors, but
13913 ## do set a variable so people can do so.
13914 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13921 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13922 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13926 if test $succeeded = yes; then
13932 if test "$HAVE_M17N_FLT" = "yes"; then
13934 cat >>confdefs.h <<\_ACEOF
13935 #define HAVE_M17N_FLT 1
13947 ### End of font-backend (under X11) section.
13958 ### Use -lXpm if available, unless `--with-xpm=no'.
13960 if test "${HAVE_X11}" = "yes"; then
13961 if test "${with_xpm}" != "no
"; then
13962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13963 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13964 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13965 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13966 $as_echo_n "(cached
) " >&6
13968 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13969 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13971 # Is the header compilable?
13972 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13973 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 $ac_includes_default
13981 #include <X11/xpm.h>
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13990 $as_echo "$ac_try_echo") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13993 grep -v '^ *+' conftest.er1 >conftest.err
13995 cat conftest.err >&5
13996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13997 (exit $ac_status); } && {
13998 test -z "$ac_c_werror_flag" ||
13999 test ! -s conftest.err
14000 } && test -s conftest.$ac_objext; then
14001 ac_header_compiler=yes
14003 $as_echo "$as_me: failed program was
:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_header_compiler=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14011 $as_echo "$ac_header_compiler" >&6; }
14013 # Is the header present?
14014 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14015 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 #include <X11/xpm.h>
14024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14033 grep -v '^ *+' conftest.er1 >conftest.err
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14037 (exit $ac_status); } >/dev/null && {
14038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14041 ac_header_preproc=yes
14043 $as_echo "$as_me: failed program was
:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_preproc=no
14049 rm -f conftest.err conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14051 $as_echo "$ac_header_preproc" >&6; }
14053 # So? What about this header?
14054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14056 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14057 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14058 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14059 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14060 ac_header_preproc=yes
14063 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14064 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14065 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14066 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14067 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14068 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14069 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14070 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14071 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14072 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14073 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14074 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14078 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14079 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14080 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14081 $as_echo_n "(cached
) " >&6
14083 ac_cv_header_X11_xpm_h=$ac_header_preproc
14085 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14086 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14089 if test $ac_cv_header_X11_xpm_h = yes; then
14090 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14091 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14092 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14093 $as_echo_n "(cached
) " >&6
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lXpm -lX11 $LIBS"
14097 cat >conftest.$ac_ext <<_ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14110 char XpmReadFileToPixmap ();
14114 return XpmReadFileToPixmap ();
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (ac_try="$ac_link"
14121 case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14126 $as_echo "$ac_try_echo") >&5
14127 (eval "$ac_link") 2>conftest.er1
14129 grep -v '^ *+' conftest.er1 >conftest.err
14131 cat conftest.err >&5
14132 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest$ac_exeext && {
14137 test "$cross_compiling" = yes ||
14138 $as_test_x conftest$ac_exeext
14140 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14142 $as_echo "$as_me: failed program was
:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14145 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14148 rm -rf conftest.dSYM
14149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14150 conftest$ac_exeext conftest.$ac_ext
14151 LIBS=$ac_check_lib_save_LIBS
14153 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14154 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14155 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14162 if test "${HAVE_XPM}" = "yes"; then
14163 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14164 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include "X11
/xpm.h
"
14172 #ifndef XpmReturnAllocPixels
14173 no_return_alloc_pixels
14177 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14178 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14186 if test "${HAVE_XPM}" = "yes"; then
14187 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14188 $as_echo "yes" >&6; }
14190 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14191 $as_echo "no
" >&6; }
14196 if test "${HAVE_XPM}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14205 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14207 if test "${HAVE_X11}" = "yes"; then
14208 if test "${with_jpeg}" != "no
"; then
14209 if test "${ac_cv_header_jerror_h+set}" = set; then
14210 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14211 $as_echo_n "checking
for jerror.h...
" >&6; }
14212 if test "${ac_cv_header_jerror_h+set}" = set; then
14213 $as_echo_n "(cached
) " >&6
14215 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14216 $as_echo "$ac_cv_header_jerror_h" >&6; }
14218 # Is the header compilable?
14219 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14220 $as_echo_n "checking jerror.h usability...
" >&6; }
14221 cat >conftest.$ac_ext <<_ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14228 #include <jerror.h>
14230 rm -f conftest.$ac_objext
14231 if { (ac_try="$ac_compile"
14232 case "(($ac_try" in
14233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14234 *) ac_try_echo=$ac_try;;
14236 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14237 $as_echo "$ac_try_echo") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_header_compiler=yes
14250 $as_echo "$as_me: failed program was
:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_header_compiler=no
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14258 $as_echo "$ac_header_compiler" >&6; }
14260 # Is the header present?
14261 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14262 $as_echo_n "checking jerror.h presence...
" >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <jerror.h>
14271 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14277 $as_echo "$ac_try_echo") >&5
14278 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14280 grep -v '^ *+' conftest.er1 >conftest.err
14282 cat conftest.err >&5
14283 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14284 (exit $ac_status); } >/dev/null && {
14285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14286 test ! -s conftest.err
14288 ac_header_preproc=yes
14290 $as_echo "$as_me: failed program was
:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 ac_header_preproc=no
14296 rm -f conftest.err conftest.$ac_ext
14297 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14298 $as_echo "$ac_header_preproc" >&6; }
14300 # So? What about this header?
14301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14303 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14304 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14305 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14306 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14307 ac_header_preproc=yes
14310 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14311 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14312 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14313 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14314 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14315 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14316 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14317 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14318 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14319 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14320 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14321 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14325 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14326 $as_echo_n "checking
for jerror.h...
" >&6; }
14327 if test "${ac_cv_header_jerror_h+set}" = set; then
14328 $as_echo_n "(cached
) " >&6
14330 ac_cv_header_jerror_h=$ac_header_preproc
14332 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14333 $as_echo "$ac_cv_header_jerror_h" >&6; }
14336 if test $ac_cv_header_jerror_h = yes; then
14337 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14338 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14339 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14340 $as_echo_n "(cached
) " >&6
14342 ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-ljpeg $LIBS"
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14357 char jpeg_destroy_compress ();
14361 return jpeg_destroy_compress ();
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14373 $as_echo "$ac_try_echo") >&5
14374 (eval "$ac_link") 2>conftest.er1
14376 grep -v '^ *+' conftest.er1 >conftest.err
14378 cat conftest.err >&5
14379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest$ac_exeext && {
14384 test "$cross_compiling" = yes ||
14385 $as_test_x conftest$ac_exeext
14387 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14389 $as_echo "$as_me: failed program was
:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14392 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14395 rm -rf conftest.dSYM
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14400 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14401 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14402 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14412 if test "${HAVE_JPEG}" = "yes"; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_JPEG 1
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 #include <jpeglib.h>
14424 version=JPEG_LIB_VERSION
14427 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14428 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14429 cat >>confdefs.h <<\_ACEOF
14430 #define HAVE_JPEG 1
14434 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14435 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14443 ### Use -lpng if available, unless `--with-png=no'.
14445 if test "${HAVE_X11}" = "yes"; then
14446 if test "${with_png}" != "no
"; then
14447 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14448 # in /usr/include/libpng.
14451 for ac_header in png.h libpng/png.h
14453 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14454 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14455 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14456 $as_echo_n "checking
for $ac_header...
" >&6; }
14457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14458 $as_echo_n "(cached
) " >&6
14460 ac_res=`eval 'as_val=${'$as_ac_Header'}
14461 $as_echo "$as_val"'`
14462 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14463 $as_echo "$ac_res" >&6; }
14465 # Is the header compilable?
14466 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14467 $as_echo_n "checking
$ac_header usability...
" >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14475 #include <$ac_header>
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14484 $as_echo "$ac_try_echo") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14487 grep -v '^ *+' conftest.er1 >conftest.err
14489 cat conftest.err >&5
14490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
14495 ac_header_compiler=yes
14497 $as_echo "$as_me: failed program was
:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_header_compiler=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14505 $as_echo "$ac_header_compiler" >&6; }
14507 # Is the header present?
14508 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14509 $as_echo_n "checking
$ac_header presence...
" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <$ac_header>
14518 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14523 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14524 $as_echo "$ac_try_echo") >&5
14525 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14531 (exit $ac_status); } >/dev/null && {
14532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14533 test ! -s conftest.err
14535 ac_header_preproc=yes
14537 $as_echo "$as_me: failed program was
:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14540 ac_header_preproc=no
14543 rm -f conftest.err conftest.$ac_ext
14544 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14545 $as_echo "$ac_header_preproc" >&6; }
14547 # So? What about this header?
14548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14550 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14551 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14552 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14554 ac_header_preproc=yes
14557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14558 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14560 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14561 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14562 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14563 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14564 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14565 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14567 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14568 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14572 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14573 $as_echo_n "checking
for $ac_header...
" >&6; }
14574 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14575 $as_echo_n "(cached
) " >&6
14577 eval "$as_ac_Header=\
$ac_header_preproc"
14579 ac_res=`eval 'as_val=${'$as_ac_Header'}
14580 $as_echo "$as_val"'`
14581 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14582 $as_echo "$ac_res" >&6; }
14585 if test `eval 'as_val=${'$as_ac_Header'}
14586 $as_echo "$as_val"'` = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14595 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14596 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14597 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14598 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14599 $as_echo_n "(cached
) " >&6
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-lpng -lz -lm $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14616 char png_get_channels ();
14620 return png_get_channels ();
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (ac_try="$ac_link"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_link") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext && {
14643 test "$cross_compiling" = yes ||
14644 $as_test_x conftest$ac_exeext
14646 ac_cv_lib_png_png_get_channels=yes
14648 $as_echo "$as_me: failed program was
:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_cv_lib_png_png_get_channels=no
14654 rm -rf conftest.dSYM
14655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14656 conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14659 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14660 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14661 if test $ac_cv_lib_png_png_get_channels = yes; then
14668 if test "${HAVE_PNG}" = "yes"; then
14670 cat >>confdefs.h <<\_ACEOF
14677 ### Use -ltiff if available, unless `--with-tiff=no'.
14679 if test "${HAVE_X11}" = "yes"; then
14680 if test "${with_tiff}" != "no
"; then
14681 if test "${ac_cv_header_tiffio_h+set}" = set; then
14682 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14683 $as_echo_n "checking
for tiffio.h...
" >&6; }
14684 if test "${ac_cv_header_tiffio_h+set}" = set; then
14685 $as_echo_n "(cached
) " >&6
14687 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14688 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14690 # Is the header compilable?
14691 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14692 $as_echo_n "checking tiffio.h usability...
" >&6; }
14693 cat >conftest.$ac_ext <<_ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h. */
14699 $ac_includes_default
14700 #include <tiffio.h>
14702 rm -f conftest.$ac_objext
14703 if { (ac_try="$ac_compile"
14704 case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14709 $as_echo "$ac_try_echo") >&5
14710 (eval "$ac_compile") 2>conftest.er1
14712 grep -v '^ *+' conftest.er1 >conftest.err
14714 cat conftest.err >&5
14715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14716 (exit $ac_status); } && {
14717 test -z "$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 } && test -s conftest.$ac_objext; then
14720 ac_header_compiler=yes
14722 $as_echo "$as_me: failed program was
:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 ac_header_compiler=no
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14730 $as_echo "$ac_header_compiler" >&6; }
14732 # Is the header present?
14733 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14734 $as_echo_n "checking tiffio.h presence...
" >&6; }
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <tiffio.h>
14743 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14744 case "(($ac_try" in
14745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746 *) ac_try_echo=$ac_try;;
14748 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14749 $as_echo "$ac_try_echo") >&5
14750 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1 >conftest.err
14754 cat conftest.err >&5
14755 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14756 (exit $ac_status); } >/dev/null && {
14757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14760 ac_header_preproc=yes
14762 $as_echo "$as_me: failed program was
:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_header_preproc=no
14768 rm -f conftest.err conftest.$ac_ext
14769 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14770 $as_echo "$ac_header_preproc" >&6; }
14772 # So? What about this header?
14773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14775 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14776 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14778 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14779 ac_header_preproc=yes
14782 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14783 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14784 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14785 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14786 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14787 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14788 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14789 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14791 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14792 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14793 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14797 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14798 $as_echo_n "checking
for tiffio.h...
" >&6; }
14799 if test "${ac_cv_header_tiffio_h+set}" = set; then
14800 $as_echo_n "(cached
) " >&6
14802 ac_cv_header_tiffio_h=$ac_header_preproc
14804 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14805 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14808 if test $ac_cv_header_tiffio_h = yes; then
14810 # At least one tiff package requires the jpeg library.
14811 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14812 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14813 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14814 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14815 $as_echo_n "(cached
) " >&6
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-ltiff $tifflibs $LIBS"
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14832 char TIFFGetVersion ();
14836 return TIFFGetVersion ();
14841 rm -f conftest.$ac_objext conftest$ac_exeext
14842 if { (ac_try="$ac_link"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14847 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14848 $as_echo "$ac_try_echo") >&5
14849 (eval "$ac_link") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest$ac_exeext && {
14859 test "$cross_compiling" = yes ||
14860 $as_test_x conftest$ac_exeext
14862 ac_cv_lib_tiff_TIFFGetVersion=yes
14864 $as_echo "$as_me: failed program was
:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 ac_cv_lib_tiff_TIFFGetVersion=no
14870 rm -rf conftest.dSYM
14871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14872 conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14876 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14877 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14886 if test "${HAVE_TIFF}" = "yes"; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_TIFF 1
14895 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14897 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14898 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14899 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14900 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14901 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14902 $as_echo_n "(cached
) " >&6
14904 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14905 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14907 # Is the header compilable?
14908 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14909 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14910 cat >conftest.$ac_ext <<_ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 #include <gif_lib.h>
14919 rm -f conftest.$ac_objext
14920 if { (ac_try="$ac_compile"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14926 $as_echo "$ac_try_echo") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 ac_header_compiler=yes
14939 $as_echo "$as_me: failed program was
:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_compiler=no
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14947 $as_echo "$ac_header_compiler" >&6; }
14949 # Is the header present?
14950 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14951 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 #include <gif_lib.h>
14960 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14961 case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14966 $as_echo "$ac_try_echo") >&5
14967 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14969 grep -v '^ *+' conftest.er1 >conftest.err
14971 cat conftest.err >&5
14972 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14973 (exit $ac_status); } >/dev/null && {
14974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14975 test ! -s conftest.err
14977 ac_header_preproc=yes
14979 $as_echo "$as_me: failed program was
:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_header_preproc=no
14985 rm -f conftest.err conftest.$ac_ext
14986 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14987 $as_echo "$ac_header_preproc" >&6; }
14989 # So? What about this header?
14990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14992 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14993 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14994 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14995 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14996 ac_header_preproc=yes
14999 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15000 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15001 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15002 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15003 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15004 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15005 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15006 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15007 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15008 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15009 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15010 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15014 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15015 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15016 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15017 $as_echo_n "(cached
) " >&6
15019 ac_cv_header_gif_lib_h=$ac_header_preproc
15021 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15022 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15025 if test $ac_cv_header_gif_lib_h = yes; then
15026 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15027 # Earlier versions can crash Emacs.
15028 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15029 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15030 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15031 $as_echo_n "(cached
) " >&6
15033 ac_check_lib_save_LIBS=$LIBS
15035 cat >conftest.$ac_ext <<_ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15042 /* Override any GCC internal prototype to avoid an error.
15043 Use char because int might match the return type of a GCC
15044 builtin and then its argument prototype would still apply. */
15048 char EGifPutExtensionLast ();
15052 return EGifPutExtensionLast ();
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15064 $as_echo "$ac_try_echo") >&5
15065 (eval "$ac_link") 2>conftest.er1
15067 grep -v '^ *+' conftest.er1 >conftest.err
15069 cat conftest.err >&5
15070 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest$ac_exeext && {
15075 test "$cross_compiling" = yes ||
15076 $as_test_x conftest$ac_exeext
15078 ac_cv_lib_gif_EGifPutExtensionLast=yes
15080 $as_echo "$as_me: failed program was
:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_lib_gif_EGifPutExtensionLast=no
15086 rm -rf conftest.dSYM
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15091 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15092 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15093 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15103 if test "$HAVE_GIF" = yes; then
15104 ac_gif_lib_name="-lgif"
15107 # If gif_lib.h but no libgif, try libungif.
15108 if test x"$try_libungif" = xyes; then
15109 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15110 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15111 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15112 $as_echo_n "(cached
) " >&6
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lungif $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15129 char EGifPutExtensionLast ();
15133 return EGifPutExtensionLast ();
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15145 $as_echo "$ac_try_echo") >&5
15146 (eval "$ac_link") 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext && {
15156 test "$cross_compiling" = yes ||
15157 $as_test_x conftest$ac_exeext
15159 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15161 $as_echo "$as_me: failed program was
:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 ac_cv_lib_ungif_EGifPutExtensionLast=no
15167 rm -rf conftest.dSYM
15168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15169 conftest$ac_exeext conftest.$ac_ext
15170 LIBS=$ac_check_lib_save_LIBS
15172 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15173 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15174 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15179 if test "$HAVE_GIF" = yes; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define LIBGIF -lungif
15185 ac_gif_lib_name="-lungif"
15189 if test "${HAVE_GIF}" = "yes"; then
15191 cat >>confdefs.h <<\_ACEOF
15198 if test "${HAVE_X11}" = "yes"; then
15201 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15202 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15203 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15204 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15205 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15206 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15207 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15208 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15209 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15210 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15212 if test "X
${MISSING}" != X; then
15213 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15215 Maybe some development libraries
/packages are missing?
15216 If you don
't want to link with them give
15218 as options to configure" >&5
15219 $as_echo "$as_me: error: The following required libraries were not found:
15221 Maybe some development libraries/packages are missing?
15222 If you don't want to link with them give
15224 as options to configure
" >&2;}
15225 { (exit 1); exit 1; }; }
15229 ### Use -lgpm if available, unless `--with-gpm=no'.
15231 if test "${with_gpm}" != "no
"; then
15232 if test "${ac_cv_header_gpm_h+set}" = set; then
15233 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15234 $as_echo_n "checking
for gpm.h...
" >&6; }
15235 if test "${ac_cv_header_gpm_h+set}" = set; then
15236 $as_echo_n "(cached
) " >&6
15238 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15239 $as_echo "$ac_cv_header_gpm_h" >&6; }
15241 # Is the header compilable?
15242 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15243 $as_echo_n "checking gpm.h usability...
" >&6; }
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 $ac_includes_default
15253 rm -f conftest.$ac_objext
15254 if { (ac_try="$ac_compile"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15260 $as_echo "$ac_try_echo") >&5
15261 (eval "$ac_compile") 2>conftest.er1
15263 grep -v '^ *+' conftest.er1 >conftest.err
15265 cat conftest.err >&5
15266 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15267 (exit $ac_status); } && {
15268 test -z "$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15270 } && test -s conftest.$ac_objext; then
15271 ac_header_compiler=yes
15273 $as_echo "$as_me: failed program was
:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_header_compiler=no
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15281 $as_echo "$ac_header_compiler" >&6; }
15283 # Is the header present?
15284 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15285 $as_echo_n "checking gpm.h presence...
" >&6; }
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15294 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15295 case "(($ac_try" in
15296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15299 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15300 $as_echo "$ac_try_echo") >&5
15301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15307 (exit $ac_status); } >/dev/null && {
15308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15309 test ! -s conftest.err
15311 ac_header_preproc=yes
15313 $as_echo "$as_me: failed program was
:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ac_header_preproc=no
15319 rm -f conftest.err conftest.$ac_ext
15320 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15321 $as_echo "$ac_header_preproc" >&6; }
15323 # So? What about this header?
15324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15326 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15327 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15329 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15330 ac_header_preproc=yes
15333 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15334 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15336 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15338 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15340 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15342 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15344 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15348 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15349 $as_echo_n "checking
for gpm.h...
" >&6; }
15350 if test "${ac_cv_header_gpm_h+set}" = set; then
15351 $as_echo_n "(cached
) " >&6
15353 ac_cv_header_gpm_h=$ac_header_preproc
15355 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15356 $as_echo "$ac_cv_header_gpm_h" >&6; }
15359 if test $ac_cv_header_gpm_h = yes; then
15360 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15361 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15362 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15363 $as_echo_n "(cached
) " >&6
15365 ac_check_lib_save_LIBS=$LIBS
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15384 return Gpm_Open ();
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_link") 2>conftest.er1
15399 grep -v '^ *+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest$ac_exeext && {
15407 test "$cross_compiling" = yes ||
15408 $as_test_x conftest$ac_exeext
15410 ac_cv_lib_gpm_Gpm_Open=yes
15412 $as_echo "$as_me: failed program was
:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_cv_lib_gpm_Gpm_Open=no
15418 rm -rf conftest.dSYM
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15424 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15425 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15434 if test "${HAVE_GPM}" = "yes"; then
15436 cat >>confdefs.h <<\_ACEOF
15442 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15443 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15444 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15445 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15446 $as_echo_n "(cached
) " >&6
15448 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15449 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15451 # Is the header compilable?
15452 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15453 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 $ac_includes_default
15461 #include <malloc/malloc.h>
15463 rm -f conftest.$ac_objext
15464 if { (ac_try="$ac_compile"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15470 $as_echo "$ac_try_echo") >&5
15471 (eval "$ac_compile") 2>conftest.er1
15473 grep -v '^ *+' conftest.er1 >conftest.err
15475 cat conftest.err >&5
15476 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15477 (exit $ac_status); } && {
15478 test -z "$ac_c_werror_flag" ||
15479 test ! -s conftest.err
15480 } && test -s conftest.$ac_objext; then
15481 ac_header_compiler=yes
15483 $as_echo "$as_me: failed program was
:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_header_compiler=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15491 $as_echo "$ac_header_compiler" >&6; }
15493 # Is the header present?
15494 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15495 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15496 cat >conftest.$ac_ext <<_ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h. */
15502 #include <malloc/malloc.h>
15504 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15517 (exit $ac_status); } >/dev/null && {
15518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15521 ac_header_preproc=yes
15523 $as_echo "$as_me: failed program was
:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_preproc=no
15529 rm -f conftest.err conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15531 $as_echo "$ac_header_preproc" >&6; }
15533 # So? What about this header?
15534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15536 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15537 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15539 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15540 ac_header_preproc=yes
15543 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15544 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15545 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15546 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15547 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15548 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15549 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15550 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15551 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15552 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15553 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15554 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15558 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15559 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15560 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15561 $as_echo_n "(cached
) " >&6
15563 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15565 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15566 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15569 if test $ac_cv_header_malloc_malloc_h = yes; then
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE_MALLOC_MALLOC_H 1
15579 ### Use NeXTstep API to implement GUI.
15580 if test "${HAVE_NS}" = "yes"; then
15582 cat >>confdefs.h <<\_ACEOF
15586 if test "${NS_IMPL_COCOA}" = "yes"; then
15588 cat >>confdefs.h <<\_ACEOF
15589 #define NS_IMPL_COCOA 1
15594 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15596 cat >>confdefs.h <<\_ACEOF
15597 #define NS_IMPL_GNUSTEP 1
15600 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15602 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15604 cat >>confdefs.h <<\_ACEOF
15605 #define NS_HAVE_NSINTEGER 1
15609 # We also have mouse menus.
15615 ### Use session management (-lSM -lICE) if available
15617 if test "${HAVE_X11}" = "yes"; then
15618 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15619 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15620 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15621 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15622 $as_echo_n "(cached
) " >&6
15624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15625 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15627 # Is the header compilable?
15628 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15629 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 #include <X11/SM/SMlib.h>
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647 (eval "$ac_compile") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15653 (exit $ac_status); } && {
15654 test -z "$ac_c_werror_flag" ||
15655 test ! -s conftest.err
15656 } && test -s conftest.$ac_objext; then
15657 ac_header_compiler=yes
15659 $as_echo "$as_me: failed program was
:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ac_header_compiler=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15667 $as_echo "$ac_header_compiler" >&6; }
15669 # Is the header present?
15670 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15671 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <X11/SM/SMlib.h>
15680 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15681 case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15685 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15686 $as_echo "$ac_try_echo") >&5
15687 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15693 (exit $ac_status); } >/dev/null && {
15694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15697 ac_header_preproc=yes
15699 $as_echo "$as_me: failed program was
:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_preproc=no
15705 rm -f conftest.err conftest.$ac_ext
15706 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15707 $as_echo "$ac_header_preproc" >&6; }
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15712 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15713 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15714 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15715 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15716 ac_header_preproc=yes
15719 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15720 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15721 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15722 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15723 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15724 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15725 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15726 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15727 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15728 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15729 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15730 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15734 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15735 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15736 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15737 $as_echo_n "(cached
) " >&6
15739 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15741 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15742 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15745 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15746 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15747 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15748 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15749 $as_echo_n "(cached
) " >&6
15751 ac_check_lib_save_LIBS=$LIBS
15752 LIBS="-lSM -lICE $LIBS"
15753 cat >conftest.$ac_ext <<_ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15766 char SmcOpenConnection ();
15770 return SmcOpenConnection ();
15775 rm -f conftest.$ac_objext conftest$ac_exeext
15776 if { (ac_try="$ac_link"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15782 $as_echo "$ac_try_echo") >&5
15783 (eval "$ac_link") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15789 (exit $ac_status); } && {
15790 test -z "$ac_c_werror_flag" ||
15791 test ! -s conftest.err
15792 } && test -s conftest$ac_exeext && {
15793 test "$cross_compiling" = yes ||
15794 $as_test_x conftest$ac_exeext
15796 ac_cv_lib_SM_SmcOpenConnection=yes
15798 $as_echo "$as_me: failed program was
:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_cv_lib_SM_SmcOpenConnection=no
15804 rm -rf conftest.dSYM
15805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15806 conftest$ac_exeext conftest.$ac_ext
15807 LIBS=$ac_check_lib_save_LIBS
15809 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15810 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15811 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15819 if test "${HAVE_X_SM}" = "yes"; then
15821 cat >>confdefs.h <<\_ACEOF
15822 #define HAVE_X_SM 1
15827 *) LIBS="-lSM -lICE $LIBS" ;;
15832 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15833 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15834 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15835 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15836 $as_echo_n "(cached
) " >&6
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15874 emacs_cv_netdb_declares_h_errno=yes
15876 $as_echo "$as_me: failed program was
:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 emacs_cv_netdb_declares_h_errno=no
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15886 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15887 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15888 if test $emacs_cv_netdb_declares_h_errno = yes; then
15890 cat >>confdefs.h <<\_ACEOF
15891 #define HAVE_H_ERRNO 1
15896 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15897 # for constant arguments. Useless!
15898 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15899 $as_echo_n "checking
for working alloca.h...
" >&6; }
15900 if test "${ac_cv_working_alloca_h+set}" = set; then
15901 $as_echo_n "(cached
) " >&6
15903 cat >conftest.$ac_ext <<_ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <alloca.h>
15913 char *p = (char *) alloca (2 * sizeof (int));
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927 (eval "$ac_link") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest$ac_exeext && {
15937 test "$cross_compiling" = yes ||
15938 $as_test_x conftest$ac_exeext
15940 ac_cv_working_alloca_h=yes
15942 $as_echo "$as_me: failed program was
:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15945 ac_cv_working_alloca_h=no
15948 rm -rf conftest.dSYM
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950 conftest$ac_exeext conftest.$ac_ext
15952 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15953 $as_echo "$ac_cv_working_alloca_h" >&6; }
15954 if test $ac_cv_working_alloca_h = yes; then
15956 cat >>confdefs.h <<\_ACEOF
15957 #define HAVE_ALLOCA_H 1
15962 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15963 $as_echo_n "checking
for alloca...
" >&6; }
15964 if test "${ac_cv_func_alloca_works+set}" = set; then
15965 $as_echo_n "(cached
) " >&6
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15974 # define alloca __builtin_alloca
15977 # include <malloc.h>
15978 # define alloca _alloca
15980 # ifdef HAVE_ALLOCA_H
15981 # include <alloca.h>
15986 # ifndef alloca /* predefined by HP cc +Olibcalls */
15997 char *p = (char *) alloca (1);
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16010 $as_echo "$ac_try_echo") >&5
16011 (eval "$ac_link") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1 >conftest.err
16015 cat conftest.err >&5
16016 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext && {
16021 test "$cross_compiling" = yes ||
16022 $as_test_x conftest$ac_exeext
16024 ac_cv_func_alloca_works=yes
16026 $as_echo "$as_me: failed program was
:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_func_alloca_works=no
16032 rm -rf conftest.dSYM
16033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16034 conftest$ac_exeext conftest.$ac_ext
16036 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16037 $as_echo "$ac_cv_func_alloca_works" >&6; }
16039 if test $ac_cv_func_alloca_works = yes; then
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_ALLOCA 1
16046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16047 # that cause trouble. Some versions do not even contain alloca or
16048 # contain a buggy version. If you still want to use their alloca,
16049 # use ar to extract alloca.o from them instead of compiling alloca.c.
16051 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16053 cat >>confdefs.h <<\_ACEOF
16058 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16059 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16060 if test "${ac_cv_os_cray+set}" = set; then
16061 $as_echo_n "(cached) " >&6
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #if defined CRAY && ! defined CRAY2
16076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16077 $EGREP "webecray" >/dev/null 2>&1; then
16085 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16086 $as_echo "$ac_cv_os_cray" >&6; }
16087 if test $ac_cv_os_cray = yes; then
16088 for ac_func in _getb67 GETB67 getb67; do
16089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16090 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16091 $as_echo_n "checking for $ac_func... " >&6; }
16092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16093 $as_echo_n "(cached) " >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16103 #define $ac_func innocuous_$ac_func
16105 /* System header to define __stub macros and hopefully few prototypes,
16106 which can conflict with char $ac_func (); below.
16107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16108 <limits.h> exists even on freestanding compilers. */
16111 # include <limits.h>
16113 # include <assert.h>
16118 /* Override any GCC internal prototype to avoid an error.
16119 Use char because int might match the return type of a GCC
16120 builtin and then its argument prototype would still apply. */
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined __stub_$ac_func || defined __stub___$ac_func
16135 return $ac_func ();
16140 rm -f conftest.$ac_objext conftest$ac_exeext
16141 if { (ac_try="$ac_link"
16142 case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_link") 2>conftest.er1
16150 grep -v '^
*+' conftest.er1 >conftest.err
16152 cat conftest.err >&5
16153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } && {
16155 test -z "$ac_c_werror_flag" ||
16156 test ! -s conftest.err
16157 } && test -s conftest$ac_exeext && {
16158 test "$cross_compiling" = yes ||
16159 $as_test_x conftest$ac_exeext
16161 eval "$as_ac_var=yes"
16163 $as_echo "$as_me: failed program was:" >&5
16164 sed 's
/^
/|
/' conftest.$ac_ext >&5
16166 eval "$as_ac_var=no"
16169 rm -rf conftest.dSYM
16170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16171 conftest$ac_exeext conftest.$ac_ext
16173 ac_res=`eval 'as_val
=${'$as_ac_var'}
16174 $as_echo "$as_val"'`
16175 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16176 $as_echo "$ac_res" >&6; }
16177 if test `eval 'as_val
=${'$as_ac_var'}
16178 $as_echo "$as_val"'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define CRAY_STACKSEG_END $ac_func
16190 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16191 $as_echo_n "checking stack direction for C alloca... " >&6; }
16192 if test "${ac_cv_c_stack_direction+set}" = set; then
16193 $as_echo_n "(cached) " >&6
16195 if test "$cross_compiling" = yes; then
16196 ac_cv_c_stack_direction=0
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16204 $ac_includes_default
16206 find_stack_direction ()
16208 static char *addr = 0;
16213 return find_stack_direction ();
16216 return (&dummy > addr) ? 1 : -1;
16222 return find_stack_direction () < 0;
16225 rm -f conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233 (eval "$ac_link") 2>&5
16235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16242 $as_echo "$ac_try_echo") >&5
16243 (eval "$ac_try") 2>&5
16245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_cv_c_stack_direction=1
16249 $as_echo "$as_me: program exited with status $ac_status" >&5
16250 $as_echo "$as_me: failed program was:" >&5
16251 sed 's
/^
/|
/' conftest.$ac_ext >&5
16253 ( exit $ac_status )
16254 ac_cv_c_stack_direction=-1
16256 rm -rf conftest.dSYM
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16263 $as_echo "$ac_cv_c_stack_direction" >&6; }
16265 cat >>confdefs.h <<_ACEOF
16266 #define STACK_DIRECTION $ac_cv_c_stack_direction
16273 if test x"$ac_cv_func_alloca_works" != xyes; then
16274 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16275 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16276 { (exit 1); exit 1; }; }
16279 # fmod, logb, and frexp are found in -lm on most systems.
16280 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16282 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16283 $as_echo_n "checking for sqrt in -lm... " >&6; }
16284 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16285 $as_echo_n "(cached) " >&6
16287 ac_check_lib_save_LIBS=$LIBS
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16318 $as_echo "$ac_try_echo") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^
*+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext && {
16329 test "$cross_compiling" = yes ||
16330 $as_test_x conftest$ac_exeext
16332 ac_cv_lib_m_sqrt=yes
16334 $as_echo "$as_me: failed program was:" >&5
16335 sed 's
/^
/|
/' conftest.$ac_ext >&5
16337 ac_cv_lib_m_sqrt=no
16340 rm -rf conftest.dSYM
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16343 LIBS=$ac_check_lib_save_LIBS
16345 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16346 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16347 if test $ac_cv_lib_m_sqrt = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define HAVE_LIBM 1
16357 # Check for mail-locking functions in a "mail" library. Probably this should
16358 # have the same check as for liblockfile below.
16360 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16361 $as_echo_n "checking for maillock in -lmail... " >&6; }
16362 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16363 $as_echo_n "(cached) " >&6
16365 ac_check_lib_save_LIBS=$LIBS
16366 LIBS="-lmail $LIBS"
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16384 return maillock ();
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16396 $as_echo "$ac_try_echo") >&5
16397 (eval "$ac_link") 2>conftest.er1
16399 grep -v '^
*+' conftest.er1 >conftest.err
16401 cat conftest.err >&5
16402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } && {
16404 test -z "$ac_c_werror_flag" ||
16405 test ! -s conftest.err
16406 } && test -s conftest$ac_exeext && {
16407 test "$cross_compiling" = yes ||
16408 $as_test_x conftest$ac_exeext
16410 ac_cv_lib_mail_maillock=yes
16412 $as_echo "$as_me: failed program was:" >&5
16413 sed 's
/^
/|
/' conftest.$ac_ext >&5
16415 ac_cv_lib_mail_maillock=no
16418 rm -rf conftest.dSYM
16419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16420 conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16424 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16425 if test $ac_cv_lib_mail_maillock = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_LIBMAIL 1
16430 LIBS="-lmail $LIBS"
16435 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16436 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16437 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16438 $as_echo_n "(cached) " >&6
16440 ac_check_lib_save_LIBS=$LIBS
16441 LIBS="-llockfile $LIBS"
16442 cat >conftest.$ac_ext <<_ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16449 /* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
16459 return maillock ();
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_link") 2>conftest.er1
16474 grep -v '^
*+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext && {
16482 test "$cross_compiling" = yes ||
16483 $as_test_x conftest$ac_exeext
16485 ac_cv_lib_lockfile_maillock=yes
16487 $as_echo "$as_me: failed program was:" >&5
16488 sed 's
/^
/|
/' conftest.$ac_ext >&5
16490 ac_cv_lib_lockfile_maillock=no
16493 rm -rf conftest.dSYM
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16499 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16500 if test $ac_cv_lib_lockfile_maillock = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define HAVE_LIBLOCKFILE 1
16505 LIBS="-llockfile $LIBS"
16509 # If we have the shared liblockfile, assume we must use it for mail
16510 # locking (e.g. Debian). If we couldn't link against liblockfile
16511 # (no liblockfile.a installed), ensure that we don't need to.
16512 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16513 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16514 set dummy liblockfile.so
; ac_word
=$2
16515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16516 $as_echo_n "checking for $ac_word... " >&6; }
16517 if test "${ac_cv_prog_liblockfile+set}" = set; then
16518 $as_echo_n "(cached) " >&6
16520 if test -n "$liblockfile"; then
16521 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16524 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16525 for as_dir
in $as_dummy
16528 test -z "$as_dir" && as_dir
=.
16529 for ac_exec_ext
in '' $ac_executable_extensions; do
16530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16531 ac_cv_prog_liblockfile
="yes"
16532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16542 liblockfile
=$ac_cv_prog_liblockfile
16543 if test -n "$liblockfile"; then
16544 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16545 $as_echo "$liblockfile" >&6; }
16547 { $as_echo "$as_me:$LINENO: result: no" >&5
16548 $as_echo "no" >&6; }
16552 if test $ac_cv_prog_liblockfile = yes; then
16553 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16554 This probably means that movemail could lose mail.
16555 There may be a \`development' package to install containing liblockfile." >&5
16556 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16557 This probably means that movemail could lose mail.
16558 There may be a \`development' package to install containing liblockfile." >&2;}
16559 { (exit 1); exit 1; }; }
16564 for ac_func
in touchlock
16566 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16568 $as_echo_n "checking for $ac_func... " >&6; }
16569 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16570 $as_echo_n "(cached) " >&6
16572 cat >conftest.
$ac_ext <<_ACEOF
16575 cat confdefs.h
>>conftest.
$ac_ext
16576 cat >>conftest.
$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16580 #define $ac_func innocuous_$ac_func
16582 /* System header to define __stub macros and hopefully few prototypes,
16583 which can conflict with char $ac_func (); below.
16584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16585 <limits.h> exists even on freestanding compilers. */
16588 # include <limits.h>
16590 # include <assert.h>
16595 /* Override any GCC internal prototype to avoid an error.
16596 Use char because int might match the return type of a GCC
16597 builtin and then its argument prototype would still apply. */
16602 /* The GNU C library defines this for functions which it implements
16603 to always fail with ENOSYS. Some functions are actually named
16604 something starting with __ and the normal name is an alias. */
16605 #if defined __stub_$ac_func || defined __stub___$ac_func
16612 return $ac_func ();
16617 rm -f conftest.
$ac_objext conftest
$ac_exeext
16618 if { (ac_try
="$ac_link"
16619 case "(($ac_try" in
16620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16624 $as_echo "$ac_try_echo") >&5
16625 (eval "$ac_link") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest$ac_exeext && {
16635 test "$cross_compiling" = yes ||
16636 $as_test_x conftest$ac_exeext
16638 eval "$as_ac_var=yes"
16640 $as_echo "$as_me: failed program was:" >&5
16641 sed 's/^/| /' conftest.$ac_ext >&5
16643 eval "$as_ac_var=no"
16646 rm -rf conftest.dSYM
16647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16648 conftest$ac_exeext conftest.$ac_ext
16650 ac_res=`eval 'as_val=${'$as_ac_var'}
16651 $as_echo "$as_val"'`
16652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16653 $as_echo "$ac_res" >&6; }
16654 if test `eval 'as_val=${'$as_ac_var'}
16655 $as_echo "$as_val"'` = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16664 for ac_header in maillock.h
16666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 $as_echo_n "checking for $ac_header... " >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671 $as_echo_n "(cached) " >&6
16673 ac_res=`eval 'as_val=${'$as_ac_Header'}
16674 $as_echo "$as_val"'`
16675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16676 $as_echo "$ac_res" >&6; }
16678 # Is the header compilable?
16679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16680 $as_echo_n "checking $ac_header usability... " >&6; }
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 $ac_includes_default
16688 #include <$ac_header>
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16694 *) ac_try_echo
=$ac_try;;
16696 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16697 $as_echo "$ac_try_echo") >&5
16698 (eval "$ac_compile") 2>conftest.er1
16700 grep -v '^ *+' conftest.er1
>conftest.err
16702 cat conftest.err
>&5
16703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest.
$ac_objext; then
16708 ac_header_compiler
=yes
16710 $as_echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.
$ac_ext >&5
16713 ac_header_compiler
=no
16716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16718 $as_echo "$ac_header_compiler" >&6; }
16720 # Is the header present?
16721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16722 $as_echo_n "checking $ac_header presence... " >&6; }
16723 cat >conftest.
$ac_ext <<_ACEOF
16726 cat confdefs.h
>>conftest.
$ac_ext
16727 cat >>conftest.
$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16729 #include <$ac_header>
16731 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16732 case "(($ac_try" in
16733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16737 $as_echo "$ac_try_echo") >&5
16738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16740 grep -v '^ *+' conftest.er1 >conftest.err
16742 cat conftest.err >&5
16743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } >/dev/null && {
16745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16748 ac_header_preproc=yes
16750 $as_echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_header_preproc=no
16756 rm -f conftest.err conftest.$ac_ext
16757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16758 $as_echo "$ac_header_preproc" >&6; }
16760 # So? What about this header?
16761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16767 ac_header_preproc=yes
16770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16786 $as_echo_n "checking for $ac_header... " >&6; }
16787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16788 $as_echo_n "(cached) " >&6
16790 eval "$as_ac_Header=\$ac_header_preproc"
16792 ac_res=`eval 'as_val=${'$as_ac_Header'}
16793 $as_echo "$as_val"'`
16794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16795 $as_echo "$ac_res" >&6; }
16798 if test `eval 'as_val=${'$as_ac_Header'}
16799 $as_echo "$as_val"'` = yes; then
16800 cat >>confdefs.h <<_ACEOF
16801 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16880 for ac_func in gethostname getdomainname dup2 \
16881 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16882 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16883 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16884 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16885 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16886 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16887 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16888 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16889 cfmakeraw cfsetspeed
16891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16893 $as_echo_n "checking for $ac_func... " >&6; }
16894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16895 $as_echo_n "(cached) " >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16905 #define $ac_func innocuous_$ac_func
16907 /* System header to define __stub macros and hopefully few prototypes,
16908 which can conflict with char $ac_func (); below.
16909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 <limits.h> exists even on freestanding compilers. */
16913 # include <limits.h>
16915 # include <assert.h>
16920 /* Override any GCC internal prototype to avoid an error.
16921 Use char because int might match the return type of a GCC
16922 builtin and then its argument prototype would still apply. */
16927 /* The GNU C library defines this for functions which it implements
16928 to always fail with ENOSYS. Some functions are actually named
16929 something starting with __ and the normal name is an alias. */
16930 #if defined __stub_$ac_func || defined __stub___$ac_func
16937 return $ac_func ();
16942 rm -f conftest.$ac_objext conftest$ac_exeext
16943 if { (ac_try="$ac_link"
16944 case "(($ac_try" in
16945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16946 *) ac_try_echo
=$ac_try;;
16948 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16949 $as_echo "$ac_try_echo") >&5
16950 (eval "$ac_link") 2>conftest.er1
16952 grep -v '^ *+' conftest.er1
>conftest.err
16954 cat conftest.err
>&5
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest
$ac_exeext && {
16960 test "$cross_compiling" = yes ||
16961 $as_test_x conftest
$ac_exeext
16963 eval "$as_ac_var=yes"
16965 $as_echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.
$ac_ext >&5
16968 eval "$as_ac_var=no"
16971 rm -rf conftest.dSYM
16972 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16973 conftest
$ac_exeext conftest.
$ac_ext
16975 ac_res
=`eval 'as_val=${'$as_ac_var'}
16976 $as_echo "$as_val"'`
16977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16978 $as_echo "$ac_res" >&6; }
16979 if test `eval 'as_val=${'$as_ac_var'}
16980 $as_echo "$as_val"'` = yes; then
16981 cat >>confdefs.h
<<_ACEOF
16982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 for ac_header
in sys
/un.h
16992 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16993 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16995 $as_echo_n "checking for $ac_header... " >&6; }
16996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16997 $as_echo_n "(cached) " >&6
16999 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17000 $as_echo "$as_val"'`
17001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17002 $as_echo "$ac_res" >&6; }
17004 # Is the header compilable?
17005 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17006 $as_echo_n "checking $ac_header usability... " >&6; }
17007 cat >conftest.
$ac_ext <<_ACEOF
17010 cat confdefs.h
>>conftest.
$ac_ext
17011 cat >>conftest.
$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 $ac_includes_default
17014 #include <$ac_header>
17016 rm -f conftest.
$ac_objext
17017 if { (ac_try
="$ac_compile"
17018 case "(($ac_try" in
17019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17020 *) ac_try_echo=$ac_try;;
17022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17023 $as_echo "$ac_try_echo") >&5
17024 (eval "$ac_compile") 2>conftest.er1
17026 grep -v '^ *+' conftest.er1 >conftest.err
17028 cat conftest.err >&5
17029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } && {
17031 test -z "$ac_c_werror_flag" ||
17032 test ! -s conftest.err
17033 } && test -s conftest.$ac_objext; then
17034 ac_header_compiler=yes
17036 $as_echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ac_header_compiler=no
17042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17043 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17044 $as_echo "$ac_header_compiler" >&6; }
17046 # Is the header present?
17047 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17048 $as_echo_n "checking $ac_header presence... " >&6; }
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 #include <$ac_header>
17057 if { (ac_try="$ac_cpp conftest.$ac_ext"
17058 case "(($ac_try" in
17059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17060 *) ac_try_echo
=$ac_try;;
17062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17063 $as_echo "$ac_try_echo") >&5
17064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17066 grep -v '^ *+' conftest.er1
>conftest.err
17068 cat conftest.err
>&5
17069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } >/dev
/null
&& {
17071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17072 test ! -s conftest.err
17074 ac_header_preproc
=yes
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.
$ac_ext >&5
17079 ac_header_preproc
=no
17082 rm -f conftest.err conftest.
$ac_ext
17083 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17084 $as_echo "$ac_header_preproc" >&6; }
17086 # So? What about this header?
17087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17090 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17093 ac_header_preproc
=yes
17096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17097 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17099 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17101 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17103 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17112 $as_echo_n "checking for $ac_header... " >&6; }
17113 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17114 $as_echo_n "(cached) " >&6
17116 eval "$as_ac_Header=\$ac_header_preproc"
17118 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17119 $as_echo "$as_val"'`
17120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17121 $as_echo "$ac_res" >&6; }
17124 if test `eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'` = yes; then
17126 cat >>confdefs.h
<<_ACEOF
17127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17139 for ac_header
in $ac_header_list
17141 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 $as_echo_n "checking for $ac_header... " >&6; }
17145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17146 $as_echo_n "(cached) " >&6
17148 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17149 $as_echo "$as_val"'`
17150 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17151 $as_echo "$ac_res" >&6; }
17153 # Is the header compilable?
17154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17155 $as_echo_n "checking $ac_header usability... " >&6; }
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 $ac_includes_default
17163 #include <$ac_header>
17165 rm -f conftest.
$ac_objext
17166 if { (ac_try
="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17172 $as_echo "$ac_try_echo") >&5
17173 (eval "$ac_compile") 2>conftest.er1
17175 grep -v '^ *+' conftest.er1 >conftest.err
17177 cat conftest.err >&5
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } && {
17180 test -z "$ac_c_werror_flag" ||
17181 test ! -s conftest.err
17182 } && test -s conftest.$ac_objext; then
17183 ac_header_compiler=yes
17185 $as_echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17188 ac_header_compiler=no
17191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17193 $as_echo "$ac_header_compiler" >&6; }
17195 # Is the header present?
17196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17197 $as_echo_n "checking $ac_header presence... " >&6; }
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 #include <$ac_header>
17206 if { (ac_try="$ac_cpp conftest.$ac_ext"
17207 case "(($ac_try" in
17208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17209 *) ac_try_echo
=$ac_try;;
17211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17212 $as_echo "$ac_try_echo") >&5
17213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1
>conftest.err
17217 cat conftest.err
>&5
17218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev
/null
&& {
17220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17221 test ! -s conftest.err
17223 ac_header_preproc
=yes
17225 $as_echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 ac_header_preproc
=no
17231 rm -f conftest.err conftest.
$ac_ext
17232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17233 $as_echo "$ac_header_preproc" >&6; }
17235 # So? What about this header?
17236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17242 ac_header_preproc
=yes
17245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17248 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17261 $as_echo_n "checking for $ac_header... " >&6; }
17262 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17263 $as_echo_n "(cached) " >&6
17265 eval "$as_ac_Header=\$ac_header_preproc"
17267 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17268 $as_echo "$as_val"'`
17269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17270 $as_echo "$ac_res" >&6; }
17273 if test `eval 'as_val=${'$as_ac_Header'}
17274 $as_echo "$as_val"'` = yes; then
17275 cat >>confdefs.h
<<_ACEOF
17276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17291 for ac_func
in $ac_func_list
17293 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17295 $as_echo_n "checking for $ac_func... " >&6; }
17296 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297 $as_echo_n "(cached) " >&6
17299 cat >conftest.
$ac_ext <<_ACEOF
17302 cat confdefs.h
>>conftest.
$ac_ext
17303 cat >>conftest.
$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define $ac_func innocuous_$ac_func
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17315 # include <limits.h>
17317 # include <assert.h>
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17339 return $ac_func ();
17344 rm -f conftest.
$ac_objext conftest
$ac_exeext
17345 if { (ac_try
="$ac_link"
17346 case "(($ac_try" in
17347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17351 $as_echo "$ac_try_echo") >&5
17352 (eval "$ac_link") 2>conftest.er1
17354 grep -v '^ *+' conftest.er1 >conftest.err
17356 cat conftest.err >&5
17357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext && {
17362 test "$cross_compiling" = yes ||
17363 $as_test_x conftest$ac_exeext
17365 eval "$as_ac_var=yes"
17367 $as_echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17370 eval "$as_ac_var=no"
17373 rm -rf conftest.dSYM
17374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375 conftest$ac_exeext conftest.$ac_ext
17377 ac_res=`eval 'as_val=${'$as_ac_var'}
17378 $as_echo "$as_val"'`
17379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17380 $as_echo "$ac_res" >&6; }
17381 if test `eval 'as_val=${'$as_ac_var'}
17382 $as_echo "$as_val"'` = yes; then
17383 cat >>confdefs.h <<_ACEOF
17384 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17406 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17407 $as_echo_n "checking for working mktime... " >&6; }
17408 if test "${ac_cv_func_working_mktime+set}" = set; then
17409 $as_echo_n "(cached) " >&6
17411 if test "$cross_compiling" = yes; then
17412 ac_cv_func_working_mktime=no
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17420 /* Test program from Paul Eggert and Tony Leneis. */
17421 #ifdef TIME_WITH_SYS_TIME
17422 # include <sys/time.h>
17425 # ifdef HAVE_SYS_TIME_H
17426 # include <sys/time.h>
17432 #include <limits.h>
17433 #include <stdlib.h>
17435 #ifdef HAVE_UNISTD_H
17436 # include <unistd.h>
17440 # define alarm(X) /* empty */
17443 /* Work around redefinition to rpl_putenv by other config tests. */
17446 static time_t time_t_max;
17447 static time_t time_t_min;
17449 /* Values we'll use to set the TZ environment variable. */
17450 static char *tz_strings[] = {
17451 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17452 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17454 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17456 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17457 Based on a problem report from Andreas Jaeger. */
17459 spring_forward_gap ()
17461 /* glibc (up to about 1998-10-07) failed this test. */
17464 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17465 instead of "TZ=America/Vancouver" in order to detect the bug even
17466 on systems that don't support the Olson extension, or don't have the
17467 full zoneinfo tables installed. */
17468 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17477 return mktime (&tm) != (time_t) -1;
17485 return ! (lt = localtime (&now)) || mktime (lt) == now;
17492 return (mktime_test1 (now)
17493 && mktime_test1 ((time_t) (time_t_max - now))
17494 && mktime_test1 ((time_t) (time_t_min + now)));
17500 /* Based on code from Ariel Faigon. */
17510 return tm.tm_mon == 2 && tm.tm_mday == 31;
17519 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17520 now = mktime (&tm);
17521 if (now != (time_t) -1)
17523 struct tm *lt = localtime (&now);
17525 && lt->tm_year == tm.tm_year
17526 && lt->tm_mon == tm.tm_mon
17527 && lt->tm_mday == tm.tm_mday
17528 && lt->tm_hour == tm.tm_hour
17529 && lt->tm_min == tm.tm_min
17530 && lt->tm_sec == tm.tm_sec
17531 && lt->tm_yday == tm.tm_yday
17532 && lt->tm_wday == tm.tm_wday
17533 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17534 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17543 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17544 ignoring leap seconds. */
17545 unsigned long int answer = 2527315200UL;
17549 tm.tm_year = 2050 - 1900;
17552 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17555 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17556 instead of "TZ=America/Vancouver" in order to detect the bug even
17557 on systems that don't support the Olson extension, or don't have the
17558 full zoneinfo tables installed. */
17559 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17563 /* Check that the result is either a failure, or close enough
17564 to the correct answer that we can assume the discrepancy is
17565 due to leap seconds. */
17566 return (t == (time_t) -1
17567 || (0 < t && answer - 120 <= t && t <= answer + 120));
17576 /* This test makes some buggy mktime implementations loop.
17577 Give up after 60 seconds; a mktime slower than that
17578 isn't worth using anyway. */
17583 t = (time_t_max << 1) + 1;
17584 if (t <= time_t_max)
17588 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17590 delta = time_t_max / 997; /* a suitable prime number */
17591 for (i = 0; i < N_STRINGS; i++)
17594 putenv (tz_strings[i]);
17596 for (t = 0; t <= time_t_max - delta; t += delta)
17597 if (! mktime_test (t))
17599 if (! (mktime_test ((time_t) 1)
17600 && mktime_test ((time_t) (60 * 60))
17601 && mktime_test ((time_t) (60 * 60 * 24))))
17604 for (j = 1; ; j <<= 1)
17605 if (! bigtime_test (j))
17607 else if (INT_MAX / 2 < j)
17609 if (! bigtime_test (INT_MAX))
17612 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17615 rm -f conftest$ac_exeext
17616 if { (ac_try="$ac_link"
17617 case "(($ac_try" in
17618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17619 *) ac_try_echo
=$ac_try;;
17621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17622 $as_echo "$ac_try_echo") >&5
17623 (eval "$ac_link") 2>&5
17625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17627 { (case "(($ac_try" in
17628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17629 *) ac_try_echo=$ac_try;;
17631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17632 $as_echo "$ac_try_echo") >&5
17633 (eval "$ac_try") 2>&5
17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_func_working_mktime=yes
17639 $as_echo "$as_me: program exited with status $ac_status" >&5
17640 $as_echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ( exit $ac_status )
17644 ac_cv_func_working_mktime=no
17646 rm -rf conftest.dSYM
17647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17652 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17653 $as_echo "$ac_cv_func_working_mktime" >&6; }
17654 if test $ac_cv_func_working_mktime = no; then
17655 case " $LIBOBJS " in
17656 *" mktime.$ac_objext "* ) ;;
17657 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17663 if test "$ac_cv_func_working_mktime" = no; then
17665 cat >>confdefs.h <<\_ACEOF
17666 #define BROKEN_MKTIME 1
17671 ac_have_func=no # yes means we've found a way to get the load average.
17673 # Make sure getloadavg.c is where it belongs, at configure-time.
17674 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17675 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17676 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17677 { (exit 1); exit 1; }; }
17681 # Check for getloadavg, but be sure not to touch the cache variable.
17682 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17683 $as_echo_n "checking for getloadavg... " >&6; }
17684 if test "${ac_cv_func_getloadavg+set}" = set; then
17685 $as_echo_n "(cached) " >&6
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17695 #define getloadavg innocuous_getloadavg
17697 /* System header to define __stub macros and hopefully few prototypes,
17698 which can conflict with char getloadavg (); below.
17699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700 <limits.h> exists even on freestanding compilers. */
17703 # include <limits.h>
17705 # include <assert.h>
17710 /* Override any GCC internal prototype to avoid an error.
17711 Use char because int might match the return type of a GCC
17712 builtin and then its argument prototype would still apply. */
17716 char getloadavg ();
17717 /* The GNU C library defines this for functions which it implements
17718 to always fail with ENOSYS. Some functions are actually named
17719 something starting with __ and the normal name is an alias. */
17720 #if defined __stub_getloadavg || defined __stub___getloadavg
17727 return getloadavg ();
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17736 *) ac_try_echo
=$ac_try;;
17738 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17739 $as_echo "$ac_try_echo") >&5
17740 (eval "$ac_link") 2>conftest.er1
17742 grep -v '^ *+' conftest.er1
>conftest.err
17744 cat conftest.err
>&5
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && {
17747 test -z "$ac_c_werror_flag" ||
17748 test ! -s conftest.err
17749 } && test -s conftest
$ac_exeext && {
17750 test "$cross_compiling" = yes ||
17751 $as_test_x conftest
$ac_exeext
17753 ac_cv_func_getloadavg
=yes
17755 $as_echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.
$ac_ext >&5
17758 ac_cv_func_getloadavg
=no
17761 rm -rf conftest.dSYM
17762 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17763 conftest
$ac_exeext conftest.
$ac_ext
17765 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17766 $as_echo "$ac_cv_func_getloadavg" >&6; }
17767 if test $ac_cv_func_getloadavg = yes; then
17772 ) && ac_have_func
=yes
17774 # On HPUX9, an unprivileged user can get load averages through this function.
17776 for ac_func
in pstat_getdynamic
17778 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17780 $as_echo_n "checking for $ac_func... " >&6; }
17781 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17782 $as_echo_n "(cached) " >&6
17784 cat >conftest.
$ac_ext <<_ACEOF
17787 cat confdefs.h
>>conftest.
$ac_ext
17788 cat >>conftest.
$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17792 #define $ac_func innocuous_$ac_func
17794 /* System header to define __stub macros and hopefully few prototypes,
17795 which can conflict with char $ac_func (); below.
17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797 <limits.h> exists even on freestanding compilers. */
17800 # include <limits.h>
17802 # include <assert.h>
17807 /* Override any GCC internal prototype to avoid an error.
17808 Use char because int might match the return type of a GCC
17809 builtin and then its argument prototype would still apply. */
17814 /* The GNU C library defines this for functions which it implements
17815 to always fail with ENOSYS. Some functions are actually named
17816 something starting with __ and the normal name is an alias. */
17817 #if defined __stub_$ac_func || defined __stub___$ac_func
17824 return $ac_func ();
17829 rm -f conftest.
$ac_objext conftest
$ac_exeext
17830 if { (ac_try
="$ac_link"
17831 case "(($ac_try" in
17832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17836 $as_echo "$ac_try_echo") >&5
17837 (eval "$ac_link") 2>conftest.er1
17839 grep -v '^ *+' conftest.er1 >conftest.err
17841 cat conftest.err >&5
17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } && {
17844 test -z "$ac_c_werror_flag" ||
17845 test ! -s conftest.err
17846 } && test -s conftest$ac_exeext && {
17847 test "$cross_compiling" = yes ||
17848 $as_test_x conftest$ac_exeext
17850 eval "$as_ac_var=yes"
17852 $as_echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 eval "$as_ac_var=no"
17858 rm -rf conftest.dSYM
17859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17860 conftest$ac_exeext conftest.$ac_ext
17862 ac_res=`eval 'as_val=${'$as_ac_var'}
17863 $as_echo "$as_val"'`
17864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17865 $as_echo "$ac_res" >&6; }
17866 if test `eval 'as_val=${'$as_ac_var'}
17867 $as_echo "$as_val"'` = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17876 # Solaris has libkstat which does not require root.
17878 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17879 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17880 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17881 $as_echo_n "(cached) " >&6
17883 ac_check_lib_save_LIBS=$LIBS
17884 LIBS="-lkstat $LIBS"
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17892 /* Override any GCC internal prototype to avoid an error.
17893 Use char because int might match the return type of a GCC
17894 builtin and then its argument prototype would still apply. */
17898 char kstat_open ();
17902 return kstat_open ();
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17911 *) ac_try_echo
=$ac_try;;
17913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17914 $as_echo "$ac_try_echo") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1
>conftest.err
17919 cat conftest.err
>&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest
$ac_exeext && {
17925 test "$cross_compiling" = yes ||
17926 $as_test_x conftest
$ac_exeext
17928 ac_cv_lib_kstat_kstat_open
=yes
17930 $as_echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.
$ac_ext >&5
17933 ac_cv_lib_kstat_kstat_open
=no
17936 rm -rf conftest.dSYM
17937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17938 conftest
$ac_exeext conftest.
$ac_ext
17939 LIBS
=$ac_check_lib_save_LIBS
17941 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17942 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17943 if test $ac_cv_lib_kstat_kstat_open = yes; then
17944 cat >>confdefs.h
<<_ACEOF
17945 #define HAVE_LIBKSTAT 1
17948 LIBS
="-lkstat $LIBS"
17952 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17954 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17955 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17956 # to get the right answer into the cache.
17957 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17958 if test $ac_have_func = no
; then
17959 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17960 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17961 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17962 $as_echo_n "(cached) " >&6
17964 ac_check_lib_save_LIBS
=$LIBS
17966 cat >conftest.
$ac_ext <<_ACEOF
17969 cat confdefs.h
>>conftest.
$ac_ext
17970 cat >>conftest.
$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17983 return elf_begin ();
17988 rm -f conftest.
$ac_objext conftest
$ac_exeext
17989 if { (ac_try
="$ac_link"
17990 case "(($ac_try" in
17991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17995 $as_echo "$ac_try_echo") >&5
17996 (eval "$ac_link") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest$ac_exeext && {
18006 test "$cross_compiling" = yes ||
18007 $as_test_x conftest$ac_exeext
18009 ac_cv_lib_elf_elf_begin=yes
18011 $as_echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_cv_lib_elf_elf_begin=no
18017 rm -rf conftest.dSYM
18018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18019 conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18023 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18024 if test $ac_cv_lib_elf_elf_begin = yes; then
18029 if test $ac_have_func = no; then
18030 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18031 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18032 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18033 $as_echo_n "(cached) " >&6
18035 ac_check_lib_save_LIBS=$LIBS
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 /* Override any GCC internal prototype to avoid an error.
18045 Use char because int might match the return type of a GCC
18046 builtin and then its argument prototype would still apply. */
18054 return kvm_open ();
18059 rm -f conftest.$ac_objext conftest$ac_exeext
18060 if { (ac_try="$ac_link"
18061 case "(($ac_try" in
18062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18063 *) ac_try_echo
=$ac_try;;
18065 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18066 $as_echo "$ac_try_echo") >&5
18067 (eval "$ac_link") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1
>conftest.err
18071 cat conftest.err
>&5
18072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } && {
18074 test -z "$ac_c_werror_flag" ||
18075 test ! -s conftest.err
18076 } && test -s conftest
$ac_exeext && {
18077 test "$cross_compiling" = yes ||
18078 $as_test_x conftest
$ac_exeext
18080 ac_cv_lib_kvm_kvm_open
=yes
18082 $as_echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.
$ac_ext >&5
18085 ac_cv_lib_kvm_kvm_open
=no
18088 rm -rf conftest.dSYM
18089 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18090 conftest
$ac_exeext conftest.
$ac_ext
18091 LIBS
=$ac_check_lib_save_LIBS
18093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18094 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18095 if test $ac_cv_lib_kvm_kvm_open = yes; then
18099 # Check for the 4.4BSD definition of getloadavg.
18100 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18101 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18102 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18103 $as_echo_n "(cached) " >&6
18105 ac_check_lib_save_LIBS
=$LIBS
18106 LIBS
="-lutil $LIBS"
18107 cat >conftest.
$ac_ext <<_ACEOF
18110 cat confdefs.h
>>conftest.
$ac_ext
18111 cat >>conftest.
$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18120 char getloadavg ();
18124 return getloadavg ();
18129 rm -f conftest.
$ac_objext conftest
$ac_exeext
18130 if { (ac_try
="$ac_link"
18131 case "(($ac_try" in
18132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18133 *) ac_try_echo=$ac_try;;
18135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18136 $as_echo "$ac_try_echo") >&5
18137 (eval "$ac_link") 2>conftest.er1
18139 grep -v '^ *+' conftest.er1 >conftest.err
18141 cat conftest.err >&5
18142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } && {
18144 test -z "$ac_c_werror_flag" ||
18145 test ! -s conftest.err
18146 } && test -s conftest$ac_exeext && {
18147 test "$cross_compiling" = yes ||
18148 $as_test_x conftest$ac_exeext
18150 ac_cv_lib_util_getloadavg=yes
18152 $as_echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18155 ac_cv_lib_util_getloadavg=no
18158 rm -rf conftest.dSYM
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18164 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18165 if test $ac_cv_lib_util_getloadavg = yes; then
18166 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18171 if test $ac_have_func = no; then
18172 # There is a commonly available library for RS/6000 AIX.
18173 # Since it is not a standard part of AIX, it might be installed locally.
18174 ac_getloadavg_LIBS=$LIBS
18175 LIBS="-L/usr/local/lib $LIBS"
18176 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18177 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18178 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18179 $as_echo_n "(cached) " >&6
18181 ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-lgetloadavg $LIBS"
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18196 char getloadavg ();
18200 return getloadavg ();
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18209 *) ac_try_echo
=$ac_try;;
18211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_link") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1
>conftest.err
18217 cat conftest.err
>&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest
$ac_exeext && {
18223 test "$cross_compiling" = yes ||
18224 $as_test_x conftest
$ac_exeext
18226 ac_cv_lib_getloadavg_getloadavg
=yes
18228 $as_echo "$as_me: failed program was:" >&5
18229 sed 's/^/| /' conftest.
$ac_ext >&5
18231 ac_cv_lib_getloadavg_getloadavg
=no
18234 rm -rf conftest.dSYM
18235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18236 conftest
$ac_exeext conftest.
$ac_ext
18237 LIBS
=$ac_check_lib_save_LIBS
18239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18240 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18241 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18242 LIBS
="-lgetloadavg $LIBS"
18244 LIBS
=$ac_getloadavg_LIBS
18249 # Make sure it is really in the library, if we think we found it,
18250 # otherwise set up the replacement function.
18252 for ac_func
in getloadavg
18254 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 $as_echo_n "checking for $ac_func... " >&6; }
18257 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258 $as_echo_n "(cached) " >&6
18260 cat >conftest.
$ac_ext <<_ACEOF
18263 cat confdefs.h
>>conftest.
$ac_ext
18264 cat >>conftest.
$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define $ac_func innocuous_$ac_func
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18276 # include <limits.h>
18278 # include <assert.h>
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 return $ac_func ();
18305 rm -f conftest.
$ac_objext conftest
$ac_exeext
18306 if { (ac_try
="$ac_link"
18307 case "(($ac_try" in
18308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18312 $as_echo "$ac_try_echo") >&5
18313 (eval "$ac_link") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } && {
18320 test -z "$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18322 } && test -s conftest$ac_exeext && {
18323 test "$cross_compiling" = yes ||
18324 $as_test_x conftest$ac_exeext
18326 eval "$as_ac_var=yes"
18328 $as_echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18331 eval "$as_ac_var=no"
18334 rm -rf conftest.dSYM
18335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18336 conftest$ac_exeext conftest.$ac_ext
18338 ac_res=`eval 'as_val=${'$as_ac_var'}
18339 $as_echo "$as_val"'`
18340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18341 $as_echo "$ac_res" >&6; }
18342 if test `eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'` = yes; then
18344 cat >>confdefs.h <<_ACEOF
18345 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18349 case " $LIBOBJS " in
18350 *" getloadavg.$ac_objext "* ) ;;
18351 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18356 cat >>confdefs.h <<\_ACEOF
18357 #define C_GETLOADAVG 1
18360 # Figure out what our getloadavg.c needs.
18362 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18363 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18364 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18365 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18366 $as_echo_n "(cached) " >&6
18368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18369 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18371 # Is the header compilable?
18372 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18373 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 $ac_includes_default
18381 #include <sys/dg_sys_info.h>
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18387 *) ac_try_echo
=$ac_try;;
18389 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18390 $as_echo "$ac_try_echo") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1
>conftest.err
18395 cat conftest.err
>&5
18396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.
$ac_objext; then
18401 ac_header_compiler
=yes
18403 $as_echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.
$ac_ext >&5
18406 ac_header_compiler
=no
18409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18410 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18411 $as_echo "$ac_header_compiler" >&6; }
18413 # Is the header present?
18414 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18415 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18416 cat >conftest.
$ac_ext <<_ACEOF
18419 cat confdefs.h
>>conftest.
$ac_ext
18420 cat >>conftest.
$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 #include <sys/dg_sys_info.h>
18424 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18425 case "(($ac_try" in
18426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18427 *) ac_try_echo=$ac_try;;
18429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18430 $as_echo "$ac_try_echo") >&5
18431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev/null && {
18438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18441 ac_header_preproc=yes
18443 $as_echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18446 ac_header_preproc=no
18449 rm -f conftest.err conftest.$ac_ext
18450 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18451 $as_echo "$ac_header_preproc" >&6; }
18453 # So? What about this header?
18454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18456 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18457 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18458 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18459 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18460 ac_header_preproc=yes
18463 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18464 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18465 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18466 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18467 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18468 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18469 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18470 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18471 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18472 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18473 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18474 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18478 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18479 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18480 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18481 $as_echo_n "(cached) " >&6
18483 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18486 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18489 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18492 cat >>confdefs.h <<\_ACEOF
18497 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18498 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18499 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18500 $as_echo_n "(cached) " >&6
18502 ac_check_lib_save_LIBS=$LIBS
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18511 /* Override any GCC internal prototype to avoid an error.
18512 Use char because int might match the return type of a GCC
18513 builtin and then its argument prototype would still apply. */
18517 char dg_sys_info ();
18521 return dg_sys_info ();
18526 rm -f conftest.$ac_objext conftest$ac_exeext
18527 if { (ac_try="$ac_link"
18528 case "(($ac_try" in
18529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18530 *) ac_try_echo
=$ac_try;;
18532 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18533 $as_echo "$ac_try_echo") >&5
18534 (eval "$ac_link") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1
>conftest.err
18538 cat conftest.err
>&5
18539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest
$ac_exeext && {
18544 test "$cross_compiling" = yes ||
18545 $as_test_x conftest
$ac_exeext
18547 ac_cv_lib_dgc_dg_sys_info
=yes
18549 $as_echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.
$ac_ext >&5
18552 ac_cv_lib_dgc_dg_sys_info
=no
18555 rm -rf conftest.dSYM
18556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18557 conftest
$ac_exeext conftest.
$ac_ext
18558 LIBS
=$ac_check_lib_save_LIBS
18560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18561 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18562 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18563 cat >>confdefs.h
<<_ACEOF
18564 #define HAVE_LIBDGC 1
18575 if test "${ac_cv_header_locale_h+set}" = set; then
18576 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18577 $as_echo_n "checking for locale.h... " >&6; }
18578 if test "${ac_cv_header_locale_h+set}" = set; then
18579 $as_echo_n "(cached) " >&6
18581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18582 $as_echo "$ac_cv_header_locale_h" >&6; }
18584 # Is the header compilable?
18585 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18586 $as_echo_n "checking locale.h usability... " >&6; }
18587 cat >conftest.
$ac_ext <<_ACEOF
18590 cat confdefs.h
>>conftest.
$ac_ext
18591 cat >>conftest.
$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 $ac_includes_default
18594 #include <locale.h>
18596 rm -f conftest.
$ac_objext
18597 if { (ac_try
="$ac_compile"
18598 case "(($ac_try" in
18599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604 (eval "$ac_compile") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest.$ac_objext; then
18614 ac_header_compiler=yes
18616 $as_echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_header_compiler=no
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18624 $as_echo "$ac_header_compiler" >&6; }
18626 # Is the header present?
18627 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18628 $as_echo_n "checking locale.h presence... " >&6; }
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18635 #include <locale.h>
18637 if { (ac_try="$ac_cpp conftest.$ac_ext"
18638 case "(($ac_try" in
18639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18640 *) ac_try_echo
=$ac_try;;
18642 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18643 $as_echo "$ac_try_echo") >&5
18644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18646 grep -v '^ *+' conftest.er1
>conftest.err
18648 cat conftest.err
>&5
18649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } >/dev
/null
&& {
18651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18654 ac_header_preproc
=yes
18656 $as_echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.
$ac_ext >&5
18659 ac_header_preproc
=no
18662 rm -f conftest.err conftest.
$ac_ext
18663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 $as_echo "$ac_header_preproc" >&6; }
18666 # So? What about this header?
18667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18669 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18670 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18672 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18673 ac_header_preproc
=yes
18676 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18677 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18678 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18679 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18680 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18681 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18682 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18683 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18684 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18685 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18686 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18687 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18691 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18692 $as_echo_n "checking for locale.h... " >&6; }
18693 if test "${ac_cv_header_locale_h+set}" = set; then
18694 $as_echo_n "(cached) " >&6
18696 ac_cv_header_locale_h
=$ac_header_preproc
18698 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18699 $as_echo "$ac_cv_header_locale_h" >&6; }
18705 for ac_func
in setlocale
18707 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18709 $as_echo_n "checking for $ac_func... " >&6; }
18710 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18711 $as_echo_n "(cached) " >&6
18713 cat >conftest.
$ac_ext <<_ACEOF
18716 cat confdefs.h
>>conftest.
$ac_ext
18717 cat >>conftest.
$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18721 #define $ac_func innocuous_$ac_func
18723 /* System header to define __stub macros and hopefully few prototypes,
18724 which can conflict with char $ac_func (); below.
18725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18726 <limits.h> exists even on freestanding compilers. */
18729 # include <limits.h>
18731 # include <assert.h>
18736 /* Override any GCC internal prototype to avoid an error.
18737 Use char because int might match the return type of a GCC
18738 builtin and then its argument prototype would still apply. */
18743 /* The GNU C library defines this for functions which it implements
18744 to always fail with ENOSYS. Some functions are actually named
18745 something starting with __ and the normal name is an alias. */
18746 #if defined __stub_$ac_func || defined __stub___$ac_func
18753 return $ac_func ();
18758 rm -f conftest.
$ac_objext conftest
$ac_exeext
18759 if { (ac_try
="$ac_link"
18760 case "(($ac_try" in
18761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765 $as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18779 eval "$as_ac_var=yes"
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 eval "$as_ac_var=no"
18787 rm -rf conftest.dSYM
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18791 ac_res=`eval 'as_val=${'$as_ac_var'}
18792 $as_echo "$as_val"'`
18793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18794 $as_echo "$ac_res" >&6; }
18795 if test `eval 'as_val=${'$as_ac_var'}
18796 $as_echo "$as_val"'` = yes; then
18797 cat >>confdefs.h <<_ACEOF
18798 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18805 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18806 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18807 # Irix 4.0.5F has the header but not the library.
18808 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18811 cat >>confdefs.h <<\_ACEOF
18817 if test $ac_have_func = no; then
18818 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18819 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18820 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18821 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18822 $as_echo_n "(cached) " >&6
18824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18825 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18827 # Is the header compilable?
18828 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18829 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 $ac_includes_default
18837 #include <inq_stats/cpustats.h>
18839 rm -f conftest.$ac_objext
18840 if { (ac_try="$ac_compile"
18841 case "(($ac_try" in
18842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18843 *) ac_try_echo
=$ac_try;;
18845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18846 $as_echo "$ac_try_echo") >&5
18847 (eval "$ac_compile") 2>conftest.er1
18849 grep -v '^ *+' conftest.er1
>conftest.err
18851 cat conftest.err
>&5
18852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest.
$ac_objext; then
18857 ac_header_compiler
=yes
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.
$ac_ext >&5
18862 ac_header_compiler
=no
18865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18866 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18867 $as_echo "$ac_header_compiler" >&6; }
18869 # Is the header present?
18870 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18871 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18872 cat >conftest.
$ac_ext <<_ACEOF
18875 cat confdefs.h
>>conftest.
$ac_ext
18876 cat >>conftest.
$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <inq_stats/cpustats.h>
18880 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18881 case "(($ac_try" in
18882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18886 $as_echo "$ac_try_echo") >&5
18887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } >/dev/null && {
18894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18897 ac_header_preproc=yes
18899 $as_echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18902 ac_header_preproc=no
18905 rm -f conftest.err conftest.$ac_ext
18906 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18907 $as_echo "$ac_header_preproc" >&6; }
18909 # So? What about this header?
18910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18912 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18913 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18914 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18915 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18916 ac_header_preproc=yes
18919 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18920 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18921 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18922 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18923 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18924 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18925 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18926 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18927 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18928 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18929 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18930 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18934 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18935 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18936 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18937 $as_echo_n "(cached) " >&6
18939 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18941 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18942 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18945 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18948 cat >>confdefs.h <<\_ACEOF
18953 cat >>confdefs.h <<\_ACEOF
18962 if test $ac_have_func = no; then
18963 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18964 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18965 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18966 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18967 $as_echo_n "(cached) " >&6
18969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18970 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18972 # Is the header compilable?
18973 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18974 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18975 cat >conftest.$ac_ext <<_ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 $ac_includes_default
18982 #include <sys/cpustats.h>
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18988 *) ac_try_echo
=$ac_try;;
18990 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18991 $as_echo "$ac_try_echo") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1
>conftest.err
18996 cat conftest.err
>&5
18997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.
$ac_objext; then
19002 ac_header_compiler
=yes
19004 $as_echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.
$ac_ext >&5
19007 ac_header_compiler
=no
19010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19012 $as_echo "$ac_header_compiler" >&6; }
19014 # Is the header present?
19015 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19016 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19017 cat >conftest.
$ac_ext <<_ACEOF
19020 cat confdefs.h
>>conftest.
$ac_ext
19021 cat >>conftest.
$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <sys/cpustats.h>
19025 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19026 case "(($ac_try" in
19027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19031 $as_echo "$ac_try_echo") >&5
19032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } >/dev/null && {
19039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19040 test ! -s conftest.err
19042 ac_header_preproc=yes
19044 $as_echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_header_preproc=no
19050 rm -f conftest.err conftest.$ac_ext
19051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19052 $as_echo "$ac_header_preproc" >&6; }
19054 # So? What about this header?
19055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19057 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19058 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19059 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19060 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19061 ac_header_preproc=yes
19064 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19065 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19066 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19067 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19068 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19069 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19070 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19071 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19072 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19073 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19074 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19075 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19079 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19080 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19081 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19082 $as_echo_n "(cached) " >&6
19084 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19087 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19090 if test $ac_cv_header_sys_cpustats_h = yes; then
19091 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19100 if test $ac_have_func = no; then
19102 for ac_header in mach/mach.h
19104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19107 $as_echo_n "checking for $ac_header... " >&6; }
19108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19109 $as_echo_n "(cached) " >&6
19111 ac_res=`eval 'as_val=${'$as_ac_Header'}
19112 $as_echo "$as_val"'`
19113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19114 $as_echo "$ac_res" >&6; }
19116 # Is the header compilable?
19117 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19118 $as_echo_n "checking $ac_header usability... " >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 $ac_includes_default
19126 #include <$ac_header>
19128 rm -f conftest.$ac_objext
19129 if { (ac_try="$ac_compile"
19130 case "(($ac_try" in
19131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19132 *) ac_try_echo
=$ac_try;;
19134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19135 $as_echo "$ac_try_echo") >&5
19136 (eval "$ac_compile") 2>conftest.er1
19138 grep -v '^ *+' conftest.er1
>conftest.err
19140 cat conftest.err
>&5
19141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && {
19143 test -z "$ac_c_werror_flag" ||
19144 test ! -s conftest.err
19145 } && test -s conftest.
$ac_objext; then
19146 ac_header_compiler
=yes
19148 $as_echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.
$ac_ext >&5
19151 ac_header_compiler
=no
19154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19155 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19156 $as_echo "$ac_header_compiler" >&6; }
19158 # Is the header present?
19159 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19160 $as_echo_n "checking $ac_header presence... " >&6; }
19161 cat >conftest.
$ac_ext <<_ACEOF
19164 cat confdefs.h
>>conftest.
$ac_ext
19165 cat >>conftest.
$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 #include <$ac_header>
19169 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19170 case "(($ac_try" in
19171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19175 $as_echo "$ac_try_echo") >&5
19176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19178 grep -v '^ *+' conftest.er1 >conftest.err
19180 cat conftest.err >&5
19181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } >/dev/null && {
19183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19184 test ! -s conftest.err
19186 ac_header_preproc=yes
19188 $as_echo "$as_me: failed program was:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_header_preproc=no
19194 rm -f conftest.err conftest.$ac_ext
19195 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19196 $as_echo "$ac_header_preproc" >&6; }
19198 # So? What about this header?
19199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19202 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19205 ac_header_preproc=yes
19208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19209 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19211 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19213 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19215 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19219 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 $as_echo_n "checking for $ac_header... " >&6; }
19225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19226 $as_echo_n "(cached) " >&6
19228 eval "$as_ac_Header=\$ac_header_preproc"
19230 ac_res=`eval 'as_val=${'$as_ac_Header'}
19231 $as_echo "$as_val"'`
19232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19233 $as_echo "$ac_res" >&6; }
19236 if test `eval 'as_val=${'$as_ac_Header'}
19237 $as_echo "$as_val"'` = yes; then
19238 cat >>confdefs.h <<_ACEOF
19239 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19249 for ac_header in nlist.h
19251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19254 $as_echo_n "checking for $ac_header... " >&6; }
19255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19256 $as_echo_n "(cached) " >&6
19258 ac_res=`eval 'as_val=${'$as_ac_Header'}
19259 $as_echo "$as_val"'`
19260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19261 $as_echo "$ac_res" >&6; }
19263 # Is the header compilable?
19264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19265 $as_echo_n "checking $ac_header usability... " >&6; }
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 $ac_includes_default
19273 #include <$ac_header>
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19279 *) ac_try_echo
=$ac_try;;
19281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19282 $as_echo "$ac_try_echo") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19285 grep -v '^ *+' conftest.er1
>conftest.err
19287 cat conftest.err
>&5
19288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.
$ac_objext; then
19293 ac_header_compiler
=yes
19295 $as_echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.
$ac_ext >&5
19298 ac_header_compiler
=no
19301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19303 $as_echo "$ac_header_compiler" >&6; }
19305 # Is the header present?
19306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19307 $as_echo_n "checking $ac_header presence... " >&6; }
19308 cat >conftest.
$ac_ext <<_ACEOF
19311 cat confdefs.h
>>conftest.
$ac_ext
19312 cat >>conftest.
$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <$ac_header>
19316 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19317 case "(($ac_try" in
19318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19322 $as_echo "$ac_try_echo") >&5
19323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19325 grep -v '^ *+' conftest.er1 >conftest.err
19327 cat conftest.err >&5
19328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } >/dev/null && {
19330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19333 ac_header_preproc=yes
19335 $as_echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_header_preproc=no
19341 rm -f conftest.err conftest.$ac_ext
19342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19343 $as_echo "$ac_header_preproc" >&6; }
19345 # So? What about this header?
19346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19352 ac_header_preproc=yes
19355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 $as_echo_n "checking for $ac_header... " >&6; }
19372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19373 $as_echo_n "(cached) " >&6
19375 eval "$as_ac_Header=\$ac_header_preproc"
19377 ac_res=`eval 'as_val=${'$as_ac_Header'}
19378 $as_echo "$as_val"'`
19379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19380 $as_echo "$ac_res" >&6; }
19383 if test `eval 'as_val=${'$as_ac_Header'}
19384 $as_echo "$as_val"'` = yes; then
19385 cat >>confdefs.h <<_ACEOF
19386 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19388 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19389 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19390 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19391 $as_echo_n "(cached) " >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19404 static struct nlist ac_aggr;
19405 if (ac_aggr.n_un.n_name)
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19415 *) ac_try_echo
=$ac_try;;
19417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_compile") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1
>conftest.err
19423 cat conftest.err
>&5
19424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest.
$ac_objext; then
19429 ac_cv_member_struct_nlist_n_un_n_name
=yes
19431 $as_echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.
$ac_ext >&5
19434 cat >conftest.
$ac_ext <<_ACEOF
19437 cat confdefs.h
>>conftest.
$ac_ext
19438 cat >>conftest.
$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19445 static struct nlist ac_aggr;
19446 if (sizeof ac_aggr.n_un.n_name)
19452 rm -f conftest.
$ac_objext
19453 if { (ac_try
="$ac_compile"
19454 case "(($ac_try" in
19455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19459 $as_echo "$ac_try_echo") >&5
19460 (eval "$ac_compile") 2>conftest.er1
19462 grep -v '^ *+' conftest.er1 >conftest.err
19464 cat conftest.err >&5
19465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); } && {
19467 test -z "$ac_c_werror_flag" ||
19468 test ! -s conftest.err
19469 } && test -s conftest.$ac_objext; then
19470 ac_cv_member_struct_nlist_n_un_n_name=yes
19472 $as_echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_member_struct_nlist_n_un_n_name=no
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19484 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19485 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19492 cat >>confdefs.h <<\_ACEOF
19493 #define NLIST_NAME_UNION 1
19507 # Some definitions of getloadavg require that the program be installed setgid.
19508 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19509 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19510 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19511 $as_echo_n "(cached) " >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19520 #ifdef LDAV_PRIVILEGED
19521 Yowza Am I SETGID yet
19524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19525 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19526 ac_cv_func_getloadavg_setgid=yes
19528 ac_cv_func_getloadavg_setgid=no
19533 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19534 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19535 if test $ac_cv_func_getloadavg_setgid = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define GETLOADAVG_PRIVILEGED 1
19546 if test $ac_cv_func_getloadavg_setgid = yes; then
19547 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19548 $as_echo_n "checking group of /dev/kmem... " >&6; }
19549 if test "${ac_cv_group_kmem+set}" = set; then
19550 $as_echo_n "(cached) " >&6
19552 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19553 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19554 # If we got an error (system does not support symlinks), try without -L.
19555 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19556 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19557 |
sed -ne 's/[ ][ ]*/ /g;
19558 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19563 $as_echo "$ac_cv_group_kmem" >&6; }
19564 KMEM_GROUP=$ac_cv_group_kmem
19566 if test "x$ac_save_LIBS" = x; then
19567 GETLOADAVG_LIBS=$LIBS
19569 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19575 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19576 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19577 if test "${ac_cv_sys_largefile_source+set}" = set; then
19578 $as_echo_n "(cached) " >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 #include <sys/types.h> /* for off_t */
19592 int (*fp) (FILE *, off_t, int) = fseeko;
19593 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19602 *) ac_try_echo
=$ac_try;;
19604 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606 (eval "$ac_link") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1
>conftest.err
19610 cat conftest.err
>&5
19611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest
$ac_exeext && {
19616 test "$cross_compiling" = yes ||
19617 $as_test_x conftest
$ac_exeext
19619 ac_cv_sys_largefile_source
=no
; break
19621 $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.
$ac_ext >&5
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19629 conftest
$ac_exeext conftest.
$ac_ext
19630 cat >conftest.
$ac_ext <<_ACEOF
19633 cat confdefs.h
>>conftest.
$ac_ext
19634 cat >>conftest.
$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 #define _LARGEFILE_SOURCE 1
19637 #include <sys/types.h> /* for off_t */
19642 int (*fp) (FILE *, off_t, int) = fseeko;
19643 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19648 rm -f conftest.
$ac_objext conftest
$ac_exeext
19649 if { (ac_try
="$ac_link"
19650 case "(($ac_try" in
19651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19655 $as_echo "$ac_try_echo") >&5
19656 (eval "$ac_link") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest$ac_exeext && {
19666 test "$cross_compiling" = yes ||
19667 $as_test_x conftest$ac_exeext
19669 ac_cv_sys_largefile_source=1; break
19671 $as_echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19677 rm -rf conftest.dSYM
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 ac_cv_sys_largefile_source=unknown
19684 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19685 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19686 case $ac_cv_sys_largefile_source in #(
19689 cat >>confdefs.h <<_ACEOF
19690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19697 # in glibc 2.1.3, but that breaks too many other things.
19698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19699 if test $ac_cv_sys_largefile_source != unknown; then
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE_FSEEKO 1
19708 # Configure getopt.
19709 # getopt.m4 serial 10
19711 # The getopt module assume you want GNU getopt, with getopt_long etc,
19712 # rather than vanilla POSIX getopt. This means your your code should
19713 # always include <getopt.h> for the getopt prototypes.
19725 # Prerequisites of lib/getopt*.
19732 for ac_header in getopt.h
19734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19736 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19737 $as_echo_n "checking for $ac_header... " >&6; }
19738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19739 $as_echo_n "(cached) " >&6
19741 ac_res=`eval 'as_val=${'$as_ac_Header'}
19742 $as_echo "$as_val"'`
19743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19744 $as_echo "$ac_res" >&6; }
19746 # Is the header compilable?
19747 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19748 $as_echo_n "checking $ac_header usability... " >&6; }
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19756 #include <$ac_header>
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19762 *) ac_try_echo
=$ac_try;;
19764 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19765 $as_echo "$ac_try_echo") >&5
19766 (eval "$ac_compile") 2>conftest.er1
19768 grep -v '^ *+' conftest.er1
>conftest.err
19770 cat conftest.err
>&5
19771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest.
$ac_objext; then
19776 ac_header_compiler
=yes
19778 $as_echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.
$ac_ext >&5
19781 ac_header_compiler
=no
19784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19785 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19786 $as_echo "$ac_header_compiler" >&6; }
19788 # Is the header present?
19789 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19790 $as_echo_n "checking $ac_header presence... " >&6; }
19791 cat >conftest.
$ac_ext <<_ACEOF
19794 cat confdefs.h
>>conftest.
$ac_ext
19795 cat >>conftest.
$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 #include <$ac_header>
19799 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19800 case "(($ac_try" in
19801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19805 $as_echo "$ac_try_echo") >&5
19806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } >/dev/null && {
19813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19814 test ! -s conftest.err
19816 ac_header_preproc=yes
19818 $as_echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_header_preproc=no
19824 rm -f conftest.err conftest.$ac_ext
19825 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19826 $as_echo "$ac_header_preproc" >&6; }
19828 # So? What about this header?
19829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19832 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19835 ac_header_preproc=yes
19838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19839 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19854 $as_echo_n "checking for $ac_header... " >&6; }
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856 $as_echo_n "(cached) " >&6
19858 eval "$as_ac_Header=\$ac_header_preproc"
19860 ac_res=`eval 'as_val=${'$as_ac_Header'}
19861 $as_echo "$as_val"'`
19862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19863 $as_echo "$ac_res" >&6; }
19866 if test `eval 'as_val=${'$as_ac_Header'}
19867 $as_echo "$as_val"'` = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19878 if test -z "$GETOPT_H"; then
19880 for ac_func in getopt_long_only
19882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19884 $as_echo_n "checking for $ac_func... " >&6; }
19885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19886 $as_echo_n "(cached) " >&6
19888 cat >conftest.$ac_ext <<_ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19896 #define $ac_func innocuous_$ac_func
19898 /* System header to define __stub macros and hopefully few prototypes,
19899 which can conflict with char $ac_func (); below.
19900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19901 <limits.h> exists even on freestanding compilers. */
19904 # include <limits.h>
19906 # include <assert.h>
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19918 /* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 return $ac_func ();
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19937 *) ac_try_echo
=$ac_try;;
19939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19940 $as_echo "$ac_try_echo") >&5
19941 (eval "$ac_link") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1
>conftest.err
19945 cat conftest.err
>&5
19946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest
$ac_exeext && {
19951 test "$cross_compiling" = yes ||
19952 $as_test_x conftest
$ac_exeext
19954 eval "$as_ac_var=yes"
19956 $as_echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.
$ac_ext >&5
19959 eval "$as_ac_var=no"
19962 rm -rf conftest.dSYM
19963 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19964 conftest
$ac_exeext conftest.
$ac_ext
19966 ac_res
=`eval 'as_val=${'$as_ac_var'}
19967 $as_echo "$as_val"'`
19968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19969 $as_echo "$ac_res" >&6; }
19970 if test `eval 'as_val=${'$as_ac_var'}
19971 $as_echo "$as_val"'` = yes; then
19972 cat >>confdefs.h
<<_ACEOF
19973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19983 if test -z "$GETOPT_H"; then
19984 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19985 $as_echo_n "checking whether optreset is declared... " >&6; }
19986 if test "${ac_cv_have_decl_optreset+set}" = set; then
19987 $as_echo_n "(cached) " >&6
19989 cat >conftest.
$ac_ext <<_ACEOF
19992 cat confdefs.h
>>conftest.
$ac_ext
19993 cat >>conftest.
$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 #include <getopt.h>
20008 rm -f conftest.
$ac_objext
20009 if { (ac_try
="$ac_compile"
20010 case "(($ac_try" in
20011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20015 $as_echo "$ac_try_echo") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_have_decl_optreset=yes
20028 $as_echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_have_decl_optreset=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20037 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20038 if test $ac_cv_have_decl_optreset = yes; then
20044 if test -z "$GETOPT_H"; then
20045 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20046 $as_echo_n "checking for working GNU getopt function... " >&6; }
20047 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20048 $as_echo_n "(cached) " >&6
20050 if test "$cross_compiling" = yes; then
20051 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20052 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20053 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20054 $as_echo_n "(cached) " >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <getopt.h>
20067 #ifndef getopt_clip
20068 (void) getopt_clip;
20075 rm -f conftest.$ac_objext
20076 if { (ac_try="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20079 *) ac_try_echo
=$ac_try;;
20081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20082 $as_echo "$ac_try_echo") >&5
20083 (eval "$ac_compile") 2>conftest.er1
20085 grep -v '^ *+' conftest.er1
>conftest.err
20087 cat conftest.err
>&5
20088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } && {
20090 test -z "$ac_c_werror_flag" ||
20091 test ! -s conftest.err
20092 } && test -s conftest.
$ac_objext; then
20093 ac_cv_have_decl_getopt_clip
=yes
20095 $as_echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.
$ac_ext >&5
20098 ac_cv_have_decl_getopt_clip
=no
20101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20103 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20104 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20105 if test $ac_cv_have_decl_getopt_clip = yes; then
20106 gl_cv_func_gnu_getopt
=no
20108 gl_cv_func_gnu_getopt
=yes
20112 cat >conftest.
$ac_ext <<_ACEOF
20115 cat confdefs.h
>>conftest.
$ac_ext
20116 cat >>conftest.
$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <getopt.h>
20124 myargv[0] = "conftest";
20127 return getopt (2, myargv, "+a") != '?';
20133 rm -f conftest
$ac_exeext
20134 if { (ac_try
="$ac_link"
20135 case "(($ac_try" in
20136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20140 $as_echo "$ac_try_echo") >&5
20141 (eval "$ac_link") 2>&5
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20145 { (case "(($ac_try" in
20146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20147 *) ac_try_echo
=$ac_try;;
20149 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20150 $as_echo "$ac_try_echo") >&5
20151 (eval "$ac_try") 2>&5
20153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 gl_cv_func_gnu_getopt
=yes
20157 $as_echo "$as_me: program exited with status $ac_status" >&5
20158 $as_echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.
$ac_ext >&5
20161 ( exit $ac_status )
20162 gl_cv_func_gnu_getopt
=no
20164 rm -rf conftest.dSYM
20165 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20170 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20171 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20172 if test "$gl_cv_func_gnu_getopt" = "no"; then
20179 if test -n "$GETOPT_H"; then
20184 cat >>confdefs.h
<<\_ACEOF
20185 #define __GETOPT_PREFIX rpl_
20191 GETOPTOBJS
='getopt.o getopt1.o'
20198 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20199 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20200 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20201 $as_echo_n "(cached) " >&6
20203 # Use it with a single arg.
20204 cat >conftest.
$ac_ext <<_ACEOF
20207 cat confdefs.h
>>conftest.
$ac_ext
20208 cat >>conftest.
$ac_ext <<_ACEOF
20209 /* end confdefs.h. */
20210 $ac_includes_default
20219 rm -f conftest.
$ac_objext
20220 if { (ac_try
="$ac_compile"
20221 case "(($ac_try" in
20222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_compile") 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && {
20234 test -z "$ac_c_werror_flag" ||
20235 test ! -s conftest.err
20236 } && test -s conftest.$ac_objext; then
20237 ac_cv_func_getpgrp_void=no
20239 $as_echo "$as_me: failed program was:" >&5
20240 sed 's/^/| /' conftest.$ac_ext >&5
20242 ac_cv_func_getpgrp_void=yes
20245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20248 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20249 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20250 if test $ac_cv_func_getpgrp_void = yes; then
20252 cat >>confdefs.h <<\_ACEOF
20253 #define GETPGRP_VOID 1
20260 for ac_func in strftime
20262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20264 $as_echo_n "checking for $ac_func... " >&6; }
20265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20266 $as_echo_n "(cached) " >&6
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20276 #define $ac_func innocuous_$ac_func
20278 /* System header to define __stub macros and hopefully few prototypes,
20279 which can conflict with char $ac_func (); below.
20280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20281 <limits.h> exists even on freestanding compilers. */
20284 # include <limits.h>
20286 # include <assert.h>
20291 /* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20298 /* The GNU C library defines this for functions which it implements
20299 to always fail with ENOSYS. Some functions are actually named
20300 something starting with __ and the normal name is an alias. */
20301 #if defined __stub_$ac_func || defined __stub___$ac_func
20308 return $ac_func ();
20313 rm -f conftest.$ac_objext conftest$ac_exeext
20314 if { (ac_try="$ac_link"
20315 case "(($ac_try" in
20316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20317 *) ac_try_echo
=$ac_try;;
20319 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20320 $as_echo "$ac_try_echo") >&5
20321 (eval "$ac_link") 2>conftest.er1
20323 grep -v '^ *+' conftest.er1
>conftest.err
20325 cat conftest.err
>&5
20326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest
$ac_exeext && {
20331 test "$cross_compiling" = yes ||
20332 $as_test_x conftest
$ac_exeext
20334 eval "$as_ac_var=yes"
20336 $as_echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.
$ac_ext >&5
20339 eval "$as_ac_var=no"
20342 rm -rf conftest.dSYM
20343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20344 conftest
$ac_exeext conftest.
$ac_ext
20346 ac_res
=`eval 'as_val=${'$as_ac_var'}
20347 $as_echo "$as_val"'`
20348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20349 $as_echo "$ac_res" >&6; }
20350 if test `eval 'as_val=${'$as_ac_var'}
20351 $as_echo "$as_val"'` = yes; then
20352 cat >>confdefs.h
<<_ACEOF
20353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20357 # strftime is in -lintl on SCO UNIX.
20358 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20359 $as_echo_n "checking for strftime in -lintl... " >&6; }
20360 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20361 $as_echo_n "(cached) " >&6
20363 ac_check_lib_save_LIBS
=$LIBS
20364 LIBS
="-lintl $LIBS"
20365 cat >conftest.
$ac_ext <<_ACEOF
20368 cat confdefs.h
>>conftest.
$ac_ext
20369 cat >>conftest.
$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20382 return strftime ();
20387 rm -f conftest.
$ac_objext conftest
$ac_exeext
20388 if { (ac_try
="$ac_link"
20389 case "(($ac_try" in
20390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_link") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext && {
20405 test "$cross_compiling" = yes ||
20406 $as_test_x conftest$ac_exeext
20408 ac_cv_lib_intl_strftime=yes
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_lib_intl_strftime=no
20416 rm -rf conftest.dSYM
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20422 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20423 if test $ac_cv_lib_intl_strftime = yes; then
20424 cat >>confdefs.h <<\_ACEOF
20425 #define HAVE_STRFTIME 1
20428 LIBS="-lintl $LIBS"
20437 for ac_func in grantpt
20439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20440 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 $as_echo_n "checking for $ac_func... " >&6; }
20442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20443 $as_echo_n "(cached) " >&6
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define $ac_func innocuous_$ac_func
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20461 # include <limits.h>
20463 # include <assert.h>
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined __stub_$ac_func || defined __stub___$ac_func
20485 return $ac_func ();
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20494 *) ac_try_echo
=$ac_try;;
20496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498 (eval "$ac_link") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1
>conftest.err
20502 cat conftest.err
>&5
20503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest
$ac_exeext && {
20508 test "$cross_compiling" = yes ||
20509 $as_test_x conftest
$ac_exeext
20511 eval "$as_ac_var=yes"
20513 $as_echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.
$ac_ext >&5
20516 eval "$as_ac_var=no"
20519 rm -rf conftest.dSYM
20520 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20521 conftest
$ac_exeext conftest.
$ac_ext
20523 ac_res
=`eval 'as_val=${'$as_ac_var'}
20524 $as_echo "$as_val"'`
20525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20526 $as_echo "$ac_res" >&6; }
20527 if test `eval 'as_val=${'$as_ac_var'}
20528 $as_echo "$as_val"'` = yes; then
20529 cat >>confdefs.h
<<_ACEOF
20530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20537 # PTY-related GNU extensions.
20539 for ac_func
in getpt
20541 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20542 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20543 $as_echo_n "checking for $ac_func... " >&6; }
20544 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20545 $as_echo_n "(cached) " >&6
20547 cat >conftest.
$ac_ext <<_ACEOF
20550 cat confdefs.h
>>conftest.
$ac_ext
20551 cat >>conftest.
$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20555 #define $ac_func innocuous_$ac_func
20557 /* System header to define __stub macros and hopefully few prototypes,
20558 which can conflict with char $ac_func (); below.
20559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20560 <limits.h> exists even on freestanding compilers. */
20563 # include <limits.h>
20565 # include <assert.h>
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20577 /* The GNU C library defines this for functions which it implements
20578 to always fail with ENOSYS. Some functions are actually named
20579 something starting with __ and the normal name is an alias. */
20580 #if defined __stub_$ac_func || defined __stub___$ac_func
20587 return $ac_func ();
20592 rm -f conftest.
$ac_objext conftest
$ac_exeext
20593 if { (ac_try
="$ac_link"
20594 case "(($ac_try" in
20595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20599 $as_echo "$ac_try_echo") >&5
20600 (eval "$ac_link") 2>conftest.er1
20602 grep -v '^ *+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest$ac_exeext && {
20610 test "$cross_compiling" = yes ||
20611 $as_test_x conftest$ac_exeext
20613 eval "$as_ac_var=yes"
20615 $as_echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 eval "$as_ac_var=no"
20621 rm -rf conftest.dSYM
20622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20623 conftest$ac_exeext conftest.$ac_ext
20625 ac_res=`eval 'as_val=${'$as_ac_var'}
20626 $as_echo "$as_val"'`
20627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20628 $as_echo "$ac_res" >&6; }
20629 if test `eval 'as_val=${'$as_ac_var'}
20630 $as_echo "$as_val"'` = yes; then
20631 cat >>confdefs.h <<_ACEOF
20632 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20639 # Check this now, so that we will NOT find the above functions in ncurses.
20640 # That is because we have not set up to link ncurses in lib-src.
20641 # It's better to believe a function is not available
20642 # than to expect to find it in ncurses.
20644 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20645 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20646 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20647 $as_echo_n "(cached) " >&6
20649 ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-lncurses $LIBS"
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (ac_try="$ac_link"
20675 case "(($ac_try" in
20676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20677 *) ac_try_echo
=$ac_try;;
20679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20680 $as_echo "$ac_try_echo") >&5
20681 (eval "$ac_link") 2>conftest.er1
20683 grep -v '^ *+' conftest.er1
>conftest.err
20685 cat conftest.err
>&5
20686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest
$ac_exeext && {
20691 test "$cross_compiling" = yes ||
20692 $as_test_x conftest
$ac_exeext
20694 ac_cv_lib_ncurses_tparm
=yes
20696 $as_echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.
$ac_ext >&5
20699 ac_cv_lib_ncurses_tparm
=no
20702 rm -rf conftest.dSYM
20703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20704 conftest
$ac_exeext conftest.
$ac_ext
20705 LIBS
=$ac_check_lib_save_LIBS
20707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20708 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20709 if test $ac_cv_lib_ncurses_tparm = yes; then
20710 cat >>confdefs.h
<<_ACEOF
20711 #define HAVE_LIBNCURSES 1
20714 LIBS
="-lncurses $LIBS"
20719 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20722 cat >conftest.
$ac_ext <<_ACEOF
20725 cat confdefs.h
>>conftest.
$ac_ext
20726 cat >>conftest.
$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 #include <netinet/in.h>
20729 #include <arpa/nameser.h>
20730 #include <resolv.h>
20739 rm -f conftest.
$ac_objext conftest
$ac_exeext
20740 if { (ac_try
="$ac_link"
20741 case "(($ac_try" in
20742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20746 $as_echo "$ac_try_echo") >&5
20747 (eval "$ac_link") 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } && {
20754 test -z "$ac_c_werror_flag" ||
20755 test ! -s conftest.err
20756 } && test -s conftest$ac_exeext && {
20757 test "$cross_compiling" = yes ||
20758 $as_test_x conftest$ac_exeext
20762 $as_echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20768 rm -rf conftest.dSYM
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20771 if test "$have_res_init" = no; then
20773 LIBS="$LIBS -lresolv"
20774 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20775 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #include <netinet/in.h>
20783 #include <arpa/nameser.h>
20784 #include <resolv.h>
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20797 *) ac_try_echo
=$ac_try;;
20799 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1
>conftest.err
20805 cat conftest.err
>&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest
$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest
$ac_exeext
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.
$ac_ext >&5
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20824 conftest
$ac_exeext conftest.
$ac_ext
20825 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20826 $as_echo "$have_res_init" >&6; }
20827 if test "$have_res_init" = yes ; then
20833 if test "$have_res_init" = yes; then
20835 cat >>confdefs.h
<<\_ACEOF
20836 #define HAVE_RES_INIT 1
20841 # Do we need the Hesiod library to provide the support routines?
20842 if test "$with_hesiod" != no
; then
20843 # Don't set $LIBS here -- see comments above.
20844 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20845 $as_echo_n "checking for res_send... " >&6; }
20846 if test "${ac_cv_func_res_send+set}" = set; then
20847 $as_echo_n "(cached) " >&6
20849 cat >conftest.
$ac_ext <<_ACEOF
20852 cat confdefs.h
>>conftest.
$ac_ext
20853 cat >>conftest.
$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20857 #define res_send innocuous_res_send
20859 /* System header to define __stub macros and hopefully few prototypes,
20860 which can conflict with char res_send (); below.
20861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20862 <limits.h> exists even on freestanding compilers. */
20865 # include <limits.h>
20867 # include <assert.h>
20872 /* Override any GCC internal prototype to avoid an error.
20873 Use char because int might match the return type of a GCC
20874 builtin and then its argument prototype would still apply. */
20879 /* The GNU C library defines this for functions which it implements
20880 to always fail with ENOSYS. Some functions are actually named
20881 something starting with __ and the normal name is an alias. */
20882 #if defined __stub_res_send || defined __stub___res_send
20889 return res_send ();
20894 rm -f conftest.
$ac_objext conftest
$ac_exeext
20895 if { (ac_try
="$ac_link"
20896 case "(($ac_try" in
20897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20901 $as_echo "$ac_try_echo") >&5
20902 (eval "$ac_link") 2>conftest.er1
20904 grep -v '^ *+' conftest.er1 >conftest.err
20906 cat conftest.err >&5
20907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } && {
20909 test -z "$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 } && test -s conftest$ac_exeext && {
20912 test "$cross_compiling" = yes ||
20913 $as_test_x conftest$ac_exeext
20915 ac_cv_func_res_send=yes
20917 $as_echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_cv_func_res_send=no
20923 rm -rf conftest.dSYM
20924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20925 conftest$ac_exeext conftest.$ac_ext
20927 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20928 $as_echo "$ac_cv_func_res_send" >&6; }
20929 if test $ac_cv_func_res_send = yes; then
20932 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20933 $as_echo_n "checking for __res_send... " >&6; }
20934 if test "${ac_cv_func___res_send+set}" = set; then
20935 $as_echo_n "(cached) " >&6
20937 cat >conftest.$ac_ext <<_ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h. */
20943 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20945 #define __res_send innocuous___res_send
20947 /* System header to define __stub macros and hopefully few prototypes,
20948 which can conflict with char __res_send (); below.
20949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20950 <limits.h> exists even on freestanding compilers. */
20953 # include <limits.h>
20955 # include <assert.h>
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20966 char __res_send ();
20967 /* The GNU C library defines this for functions which it implements
20968 to always fail with ENOSYS. Some functions are actually named
20969 something starting with __ and the normal name is an alias. */
20970 #if defined __stub___res_send || defined __stub_____res_send
20977 return __res_send ();
20982 rm -f conftest.$ac_objext conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20986 *) ac_try_echo
=$ac_try;;
20988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20989 $as_echo "$ac_try_echo") >&5
20990 (eval "$ac_link") 2>conftest.er1
20992 grep -v '^ *+' conftest.er1
>conftest.err
20994 cat conftest.err
>&5
20995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest
$ac_exeext && {
21000 test "$cross_compiling" = yes ||
21001 $as_test_x conftest
$ac_exeext
21003 ac_cv_func___res_send
=yes
21005 $as_echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.
$ac_ext >&5
21008 ac_cv_func___res_send
=no
21011 rm -rf conftest.dSYM
21012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21013 conftest
$ac_exeext conftest.
$ac_ext
21015 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21016 $as_echo "$ac_cv_func___res_send" >&6; }
21017 if test $ac_cv_func___res_send = yes; then
21020 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21021 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21022 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21023 $as_echo_n "(cached) " >&6
21025 ac_check_lib_save_LIBS
=$LIBS
21026 LIBS
="-lresolv $LIBS"
21027 cat >conftest.
$ac_ext <<_ACEOF
21030 cat confdefs.h
>>conftest.
$ac_ext
21031 cat >>conftest.
$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21034 /* Override any GCC internal prototype to avoid an error.
21035 Use char because int might match the return type of a GCC
21036 builtin and then its argument prototype would still apply. */
21044 return res_send ();
21049 rm -f conftest.
$ac_objext conftest
$ac_exeext
21050 if { (ac_try
="$ac_link"
21051 case "(($ac_try" in
21052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21056 $as_echo "$ac_try_echo") >&5
21057 (eval "$ac_link") 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest$ac_exeext && {
21067 test "$cross_compiling" = yes ||
21068 $as_test_x conftest$ac_exeext
21070 ac_cv_lib_resolv_res_send=yes
21072 $as_echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_lib_resolv_res_send=no
21078 rm -rf conftest.dSYM
21079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21080 conftest$ac_exeext conftest.$ac_ext
21081 LIBS=$ac_check_lib_save_LIBS
21083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21084 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21085 if test $ac_cv_lib_resolv_res_send = yes; then
21088 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21089 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21090 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21091 $as_echo_n "(cached) " >&6
21093 ac_check_lib_save_LIBS=$LIBS
21094 LIBS="-lresolv $LIBS"
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21102 /* Override any GCC internal prototype to avoid an error.
21103 Use char because int might match the return type of a GCC
21104 builtin and then its argument prototype would still apply. */
21108 char __res_send ();
21112 return __res_send ();
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21121 *) ac_try_echo
=$ac_try;;
21123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21124 $as_echo "$ac_try_echo") >&5
21125 (eval "$ac_link") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1
>conftest.err
21129 cat conftest.err
>&5
21130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest
$ac_exeext && {
21135 test "$cross_compiling" = yes ||
21136 $as_test_x conftest
$ac_exeext
21138 ac_cv_lib_resolv___res_send
=yes
21140 $as_echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.
$ac_ext >&5
21143 ac_cv_lib_resolv___res_send
=no
21146 rm -rf conftest.dSYM
21147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21148 conftest
$ac_exeext conftest.
$ac_ext
21149 LIBS
=$ac_check_lib_save_LIBS
21151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21152 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21153 if test $ac_cv_lib_resolv___res_send = yes; then
21163 if test "$resolv" = yes ; then
21168 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21169 $as_echo_n "checking for hes_getmailhost... " >&6; }
21170 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21171 $as_echo_n "(cached) " >&6
21173 cat >conftest.
$ac_ext <<_ACEOF
21176 cat confdefs.h
>>conftest.
$ac_ext
21177 cat >>conftest.
$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21181 #define hes_getmailhost innocuous_hes_getmailhost
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char hes_getmailhost (); below.
21185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21186 <limits.h> exists even on freestanding compilers. */
21189 # include <limits.h>
21191 # include <assert.h>
21194 #undef hes_getmailhost
21196 /* Override any GCC internal prototype to avoid an error.
21197 Use char because int might match the return type of a GCC
21198 builtin and then its argument prototype would still apply. */
21202 char hes_getmailhost ();
21203 /* The GNU C library defines this for functions which it implements
21204 to always fail with ENOSYS. Some functions are actually named
21205 something starting with __ and the normal name is an alias. */
21206 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21213 return hes_getmailhost ();
21218 rm -f conftest.
$ac_objext conftest
$ac_exeext
21219 if { (ac_try
="$ac_link"
21220 case "(($ac_try" in
21221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21225 $as_echo "$ac_try_echo") >&5
21226 (eval "$ac_link") 2>conftest.er1
21228 grep -v '^ *+' conftest.er1 >conftest.err
21230 cat conftest.err >&5
21231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } && {
21233 test -z "$ac_c_werror_flag" ||
21234 test ! -s conftest.err
21235 } && test -s conftest$ac_exeext && {
21236 test "$cross_compiling" = yes ||
21237 $as_test_x conftest$ac_exeext
21239 ac_cv_func_hes_getmailhost=yes
21241 $as_echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_func_hes_getmailhost=no
21247 rm -rf conftest.dSYM
21248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 conftest$ac_exeext conftest.$ac_ext
21251 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21252 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21253 if test $ac_cv_func_hes_getmailhost = yes; then
21256 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21257 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21258 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21259 $as_echo_n "(cached) " >&6
21261 ac_check_lib_save_LIBS=$LIBS
21262 LIBS="-lhesiod $RESOLVLIB $LIBS"
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21270 /* Override any GCC internal prototype to avoid an error.
21271 Use char because int might match the return type of a GCC
21272 builtin and then its argument prototype would still apply. */
21276 char hes_getmailhost ();
21280 return hes_getmailhost ();
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21289 *) ac_try_echo
=$ac_try;;
21291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21292 $as_echo "$ac_try_echo") >&5
21293 (eval "$ac_link") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1
>conftest.err
21297 cat conftest.err
>&5
21298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest
$ac_exeext && {
21303 test "$cross_compiling" = yes ||
21304 $as_test_x conftest
$ac_exeext
21306 ac_cv_lib_hesiod_hes_getmailhost
=yes
21308 $as_echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.
$ac_ext >&5
21311 ac_cv_lib_hesiod_hes_getmailhost
=no
21314 rm -rf conftest.dSYM
21315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21316 conftest
$ac_exeext conftest.
$ac_ext
21317 LIBS
=$ac_check_lib_save_LIBS
21319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21320 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21321 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21323 cat >>confdefs.h
<<\_ACEOF
21324 #define HAVE_LIBHESIOD 1
21335 # Do we need libresolv (due to res_init or Hesiod)?
21336 if test "$resolv" = yes ; then
21338 cat >>confdefs.h
<<\_ACEOF
21339 #define HAVE_LIBRESOLV 1
21344 # These tell us which Kerberos-related libraries to use.
21345 if test "${with_kerberos}" != no
; then
21347 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21348 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21349 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21350 $as_echo_n "(cached) " >&6
21352 ac_check_lib_save_LIBS
=$LIBS
21353 LIBS
="-lcom_err $LIBS"
21354 cat >conftest.
$ac_ext <<_ACEOF
21357 cat confdefs.h
>>conftest.
$ac_ext
21358 cat >>conftest.
$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21376 rm -f conftest.
$ac_objext conftest
$ac_exeext
21377 if { (ac_try
="$ac_link"
21378 case "(($ac_try" in
21379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21383 $as_echo "$ac_try_echo") >&5
21384 (eval "$ac_link") 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest$ac_exeext && {
21394 test "$cross_compiling" = yes ||
21395 $as_test_x conftest$ac_exeext
21397 ac_cv_lib_com_err_com_err=yes
21399 $as_echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21402 ac_cv_lib_com_err_com_err=no
21405 rm -rf conftest.dSYM
21406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21411 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21412 if test $ac_cv_lib_com_err_com_err = yes; then
21413 cat >>confdefs.h <<_ACEOF
21414 #define HAVE_LIBCOM_ERR 1
21417 LIBS="-lcom_err $LIBS"
21422 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21423 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21424 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21425 $as_echo_n "(cached) " >&6
21427 ac_check_lib_save_LIBS=$LIBS
21428 LIBS="-lk5crypto $LIBS"
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21436 /* Override any GCC internal prototype to avoid an error.
21437 Use char because int might match the return type of a GCC
21438 builtin and then its argument prototype would still apply. */
21442 char mit_des_cbc_encrypt ();
21446 return mit_des_cbc_encrypt ();
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21455 *) ac_try_echo
=$ac_try;;
21457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21458 $as_echo "$ac_try_echo") >&5
21459 (eval "$ac_link") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1
>conftest.err
21463 cat conftest.err
>&5
21464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest
$ac_exeext && {
21469 test "$cross_compiling" = yes ||
21470 $as_test_x conftest
$ac_exeext
21472 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21474 $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.
$ac_ext >&5
21477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21480 rm -rf conftest.dSYM
21481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21482 conftest
$ac_exeext conftest.
$ac_ext
21483 LIBS
=$ac_check_lib_save_LIBS
21485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21486 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21487 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21488 cat >>confdefs.h
<<_ACEOF
21489 #define HAVE_LIBK5CRYPTO 1
21492 LIBS
="-lk5crypto $LIBS"
21497 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21498 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21499 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21500 $as_echo_n "(cached) " >&6
21502 ac_check_lib_save_LIBS
=$LIBS
21503 LIBS
="-lcrypto $LIBS"
21504 cat >conftest.
$ac_ext <<_ACEOF
21507 cat confdefs.h
>>conftest.
$ac_ext
21508 cat >>conftest.
$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21511 /* Override any GCC internal prototype to avoid an error.
21512 Use char because int might match the return type of a GCC
21513 builtin and then its argument prototype would still apply. */
21517 char mit_des_cbc_encrypt ();
21521 return mit_des_cbc_encrypt ();
21526 rm -f conftest.
$ac_objext conftest
$ac_exeext
21527 if { (ac_try
="$ac_link"
21528 case "(($ac_try" in
21529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_link") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest$ac_exeext && {
21544 test "$cross_compiling" = yes ||
21545 $as_test_x conftest$ac_exeext
21547 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21549 $as_echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21555 rm -rf conftest.dSYM
21556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21557 conftest$ac_exeext conftest.$ac_ext
21558 LIBS=$ac_check_lib_save_LIBS
21560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21561 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21562 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_LIBCRYPTO 1
21567 LIBS="-lcrypto $LIBS"
21572 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21573 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21574 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21575 $as_echo_n "(cached) " >&6
21577 ac_check_lib_save_LIBS=$LIBS
21578 LIBS="-lkrb5 $LIBS"
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 /* Override any GCC internal prototype to avoid an error.
21587 Use char because int might match the return type of a GCC
21588 builtin and then its argument prototype would still apply. */
21592 char krb5_init_context ();
21596 return krb5_init_context ();
21601 rm -f conftest.$ac_objext conftest$ac_exeext
21602 if { (ac_try="$ac_link"
21603 case "(($ac_try" in
21604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21605 *) ac_try_echo
=$ac_try;;
21607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21608 $as_echo "$ac_try_echo") >&5
21609 (eval "$ac_link") 2>conftest.er1
21611 grep -v '^ *+' conftest.er1
>conftest.err
21613 cat conftest.err
>&5
21614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest
$ac_exeext && {
21619 test "$cross_compiling" = yes ||
21620 $as_test_x conftest
$ac_exeext
21622 ac_cv_lib_krb5_krb5_init_context
=yes
21624 $as_echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.
$ac_ext >&5
21627 ac_cv_lib_krb5_krb5_init_context
=no
21630 rm -rf conftest.dSYM
21631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21632 conftest
$ac_exeext conftest.
$ac_ext
21633 LIBS
=$ac_check_lib_save_LIBS
21635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21636 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21637 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21638 cat >>confdefs.h
<<_ACEOF
21639 #define HAVE_LIBKRB5 1
21642 LIBS
="-lkrb5 $LIBS"
21646 if test "${with_kerberos5}" = no
; then
21648 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21649 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21650 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21651 $as_echo_n "(cached) " >&6
21653 ac_check_lib_save_LIBS
=$LIBS
21654 LIBS
="-ldes425 $LIBS"
21655 cat >conftest.
$ac_ext <<_ACEOF
21658 cat confdefs.h
>>conftest.
$ac_ext
21659 cat >>conftest.
$ac_ext <<_ACEOF
21660 /* end confdefs.h. */
21662 /* Override any GCC internal prototype to avoid an error.
21663 Use char because int might match the return type of a GCC
21664 builtin and then its argument prototype would still apply. */
21668 char des_cbc_encrypt ();
21672 return des_cbc_encrypt ();
21677 rm -f conftest.
$ac_objext conftest
$ac_exeext
21678 if { (ac_try
="$ac_link"
21679 case "(($ac_try" in
21680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21684 $as_echo "$ac_try_echo") >&5
21685 (eval "$ac_link") 2>conftest.er1
21687 grep -v '^ *+' conftest.er1 >conftest.err
21689 cat conftest.err >&5
21690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } && {
21692 test -z "$ac_c_werror_flag" ||
21693 test ! -s conftest.err
21694 } && test -s conftest$ac_exeext && {
21695 test "$cross_compiling" = yes ||
21696 $as_test_x conftest$ac_exeext
21698 ac_cv_lib_des425_des_cbc_encrypt=yes
21700 $as_echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_cv_lib_des425_des_cbc_encrypt=no
21706 rm -rf conftest.dSYM
21707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21708 conftest$ac_exeext conftest.$ac_ext
21709 LIBS=$ac_check_lib_save_LIBS
21711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21712 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21713 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21714 cat >>confdefs.h <<_ACEOF
21715 #define HAVE_LIBDES425 1
21718 LIBS="-ldes425 $LIBS"
21722 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21723 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21724 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21725 $as_echo_n "(cached) " >&6
21727 ac_check_lib_save_LIBS=$LIBS
21729 cat >conftest.$ac_ext <<_ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21736 /* Override any GCC internal prototype to avoid an error.
21737 Use char because int might match the return type of a GCC
21738 builtin and then its argument prototype would still apply. */
21742 char des_cbc_encrypt ();
21746 return des_cbc_encrypt ();
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21755 *) ac_try_echo
=$ac_try;;
21757 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_link") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1
>conftest.err
21763 cat conftest.err
>&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest
$ac_exeext && {
21769 test "$cross_compiling" = yes ||
21770 $as_test_x conftest
$ac_exeext
21772 ac_cv_lib_des_des_cbc_encrypt
=yes
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.
$ac_ext >&5
21777 ac_cv_lib_des_des_cbc_encrypt
=no
21780 rm -rf conftest.dSYM
21781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21782 conftest
$ac_exeext conftest.
$ac_ext
21783 LIBS
=$ac_check_lib_save_LIBS
21785 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21786 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21787 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21788 cat >>confdefs.h
<<_ACEOF
21789 #define HAVE_LIBDES 1
21799 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21800 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21801 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21802 $as_echo_n "(cached) " >&6
21804 ac_check_lib_save_LIBS
=$LIBS
21805 LIBS
="-lkrb4 $LIBS"
21806 cat >conftest.
$ac_ext <<_ACEOF
21809 cat confdefs.h
>>conftest.
$ac_ext
21810 cat >>conftest.
$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21813 /* Override any GCC internal prototype to avoid an error.
21814 Use char because int might match the return type of a GCC
21815 builtin and then its argument prototype would still apply. */
21819 char krb_get_cred ();
21823 return krb_get_cred ();
21828 rm -f conftest.
$ac_objext conftest
$ac_exeext
21829 if { (ac_try
="$ac_link"
21830 case "(($ac_try" in
21831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21835 $as_echo "$ac_try_echo") >&5
21836 (eval "$ac_link") 2>conftest.er1
21838 grep -v '^ *+' conftest.er1 >conftest.err
21840 cat conftest.err >&5
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && {
21843 test -z "$ac_c_werror_flag" ||
21844 test ! -s conftest.err
21845 } && test -s conftest$ac_exeext && {
21846 test "$cross_compiling" = yes ||
21847 $as_test_x conftest$ac_exeext
21849 ac_cv_lib_krb4_krb_get_cred=yes
21851 $as_echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_cv_lib_krb4_krb_get_cred=no
21857 rm -rf conftest.dSYM
21858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21859 conftest$ac_exeext conftest.$ac_ext
21860 LIBS=$ac_check_lib_save_LIBS
21862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21863 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21864 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define HAVE_LIBKRB4 1
21869 LIBS="-lkrb4 $LIBS"
21873 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21874 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21875 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21876 $as_echo_n "(cached) " >&6
21878 ac_check_lib_save_LIBS=$LIBS
21880 cat >conftest.$ac_ext <<_ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21887 /* Override any GCC internal prototype to avoid an error.
21888 Use char because int might match the return type of a GCC
21889 builtin and then its argument prototype would still apply. */
21893 char krb_get_cred ();
21897 return krb_get_cred ();
21902 rm -f conftest.$ac_objext conftest$ac_exeext
21903 if { (ac_try="$ac_link"
21904 case "(($ac_try" in
21905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21906 *) ac_try_echo
=$ac_try;;
21908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21909 $as_echo "$ac_try_echo") >&5
21910 (eval "$ac_link") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1
>conftest.err
21914 cat conftest.err
>&5
21915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest
$ac_exeext && {
21920 test "$cross_compiling" = yes ||
21921 $as_test_x conftest
$ac_exeext
21923 ac_cv_lib_krb_krb_get_cred
=yes
21925 $as_echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.
$ac_ext >&5
21928 ac_cv_lib_krb_krb_get_cred
=no
21931 rm -rf conftest.dSYM
21932 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21933 conftest
$ac_exeext conftest.
$ac_ext
21934 LIBS
=$ac_check_lib_save_LIBS
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21937 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21938 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21939 cat >>confdefs.h
<<_ACEOF
21940 #define HAVE_LIBKRB 1
21951 if test "${with_kerberos5}" != no
; then
21953 for ac_header
in krb5.h
21955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21958 $as_echo_n "checking for $ac_header... " >&6; }
21959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 $as_echo_n "(cached) " >&6
21962 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21963 $as_echo "$as_val"'`
21964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21965 $as_echo "$ac_res" >&6; }
21967 # Is the header compilable?
21968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21969 $as_echo_n "checking $ac_header usability... " >&6; }
21970 cat >conftest.
$ac_ext <<_ACEOF
21973 cat confdefs.h
>>conftest.
$ac_ext
21974 cat >>conftest.
$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21977 #include <$ac_header>
21979 rm -f conftest.
$ac_objext
21980 if { (ac_try
="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986 $as_echo "$ac_try_echo") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21999 $as_echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 $as_echo "$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011 $as_echo_n "checking $ac_header presence... " >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <$ac_header>
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22023 *) ac_try_echo
=$ac_try;;
22025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1
>conftest.err
22031 cat conftest.err
>&5
22032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } >/dev
/null
&& {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22037 ac_header_preproc
=yes
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.
$ac_ext >&5
22042 ac_header_preproc
=no
22045 rm -f conftest.err conftest.
$ac_ext
22046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 $as_echo "$ac_header_preproc" >&6; }
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc
=yes
22059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22062 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22066 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22075 $as_echo_n "checking for $ac_header... " >&6; }
22076 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 $as_echo_n "(cached) " >&6
22079 eval "$as_ac_Header=\$ac_header_preproc"
22081 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22082 $as_echo "$as_val"'`
22083 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22084 $as_echo "$ac_res" >&6; }
22087 if test `eval 'as_val=${'$as_ac_Header'}
22088 $as_echo "$as_val"'` = yes; then
22089 cat >>confdefs.h
<<_ACEOF
22090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22092 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22093 $as_echo_n "checking for krb5_error.text... " >&6; }
22094 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22095 $as_echo_n "(cached) " >&6
22097 cat >conftest.
$ac_ext <<_ACEOF
22100 cat confdefs.h
>>conftest.
$ac_ext
22101 cat >>conftest.
$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22108 static krb5_error ac_aggr;
22115 rm -f conftest.
$ac_objext
22116 if { (ac_try
="$ac_compile"
22117 case "(($ac_try" in
22118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_compile") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest.$ac_objext; then
22133 ac_cv_member_krb5_error_text=yes
22135 $as_echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22149 static krb5_error ac_aggr;
22150 if (sizeof ac_aggr.text)
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22160 *) ac_try_echo
=$ac_try;;
22162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22163 $as_echo "$ac_try_echo") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22166 grep -v '^ *+' conftest.er1
>conftest.err
22168 cat conftest.err
>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.
$ac_objext; then
22174 ac_cv_member_krb5_error_text
=yes
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.
$ac_ext >&5
22179 ac_cv_member_krb5_error_text
=no
22182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22187 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22188 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22189 if test $ac_cv_member_krb5_error_text = yes; then
22191 cat >>confdefs.h
<<_ACEOF
22192 #define HAVE_KRB5_ERROR_TEXT 1
22197 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22198 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22199 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22200 $as_echo_n "(cached) " >&6
22202 cat >conftest.
$ac_ext <<_ACEOF
22205 cat confdefs.h
>>conftest.
$ac_ext
22206 cat >>conftest.
$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22213 static krb5_error ac_aggr;
22214 if (ac_aggr.e_text)
22220 rm -f conftest.
$ac_objext
22221 if { (ac_try
="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_compile") 2>conftest.er1
22230 grep -v '^ *+' conftest.er1 >conftest.err
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest.$ac_objext; then
22238 ac_cv_member_krb5_error_e_text=yes
22240 $as_echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22254 static krb5_error ac_aggr;
22255 if (sizeof ac_aggr.e_text)
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22265 *) ac_try_echo
=$ac_try;;
22267 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22268 $as_echo "$ac_try_echo") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1
>conftest.err
22273 cat conftest.err
>&5
22274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } && {
22276 test -z "$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 } && test -s conftest.
$ac_objext; then
22279 ac_cv_member_krb5_error_e_text
=yes
22281 $as_echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.
$ac_ext >&5
22284 ac_cv_member_krb5_error_e_text
=no
22287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22292 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22293 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22294 if test $ac_cv_member_krb5_error_e_text = yes; then
22296 cat >>confdefs.h
<<_ACEOF
22297 #define HAVE_KRB5_ERROR_E_TEXT 1
22309 for ac_header
in des.h
22311 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22312 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22314 $as_echo_n "checking for $ac_header... " >&6; }
22315 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22316 $as_echo_n "(cached) " >&6
22318 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22319 $as_echo "$as_val"'`
22320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22321 $as_echo "$ac_res" >&6; }
22323 # Is the header compilable?
22324 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22325 $as_echo_n "checking $ac_header usability... " >&6; }
22326 cat >conftest.
$ac_ext <<_ACEOF
22329 cat confdefs.h
>>conftest.
$ac_ext
22330 cat >>conftest.
$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 $ac_includes_default
22333 #include <$ac_header>
22335 rm -f conftest.
$ac_objext
22336 if { (ac_try
="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22342 $as_echo "$ac_try_echo") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_header_compiler=yes
22355 $as_echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_header_compiler=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22363 $as_echo "$ac_header_compiler" >&6; }
22365 # Is the header present?
22366 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22367 $as_echo_n "checking $ac_header presence... " >&6; }
22368 cat >conftest.$ac_ext <<_ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <$ac_header>
22376 if { (ac_try="$ac_cpp conftest.$ac_ext"
22377 case "(($ac_try" in
22378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22379 *) ac_try_echo
=$ac_try;;
22381 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22382 $as_echo "$ac_try_echo") >&5
22383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22385 grep -v '^ *+' conftest.er1
>conftest.err
22387 cat conftest.err
>&5
22388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); } >/dev
/null
&& {
22390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22391 test ! -s conftest.err
22393 ac_header_preproc
=yes
22395 $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.
$ac_ext >&5
22398 ac_header_preproc
=no
22401 rm -f conftest.err conftest.
$ac_ext
22402 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22403 $as_echo "$ac_header_preproc" >&6; }
22405 # So? What about this header?
22406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22409 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22412 ac_header_preproc
=yes
22415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22416 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22418 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22420 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22422 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22426 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22430 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22431 $as_echo_n "checking for $ac_header... " >&6; }
22432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22433 $as_echo_n "(cached) " >&6
22435 eval "$as_ac_Header=\$ac_header_preproc"
22437 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22438 $as_echo "$as_val"'`
22439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22440 $as_echo "$ac_res" >&6; }
22443 if test `eval 'as_val=${'$as_ac_Header'}
22444 $as_echo "$as_val"'` = yes; then
22445 cat >>confdefs.h
<<_ACEOF
22446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22451 for ac_header
in kerberosIV
/des.h
22453 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22454 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22456 $as_echo_n "checking for $ac_header... " >&6; }
22457 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22458 $as_echo_n "(cached) " >&6
22460 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22461 $as_echo "$as_val"'`
22462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22463 $as_echo "$ac_res" >&6; }
22465 # Is the header compilable?
22466 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22467 $as_echo_n "checking $ac_header usability... " >&6; }
22468 cat >conftest.
$ac_ext <<_ACEOF
22471 cat confdefs.h
>>conftest.
$ac_ext
22472 cat >>conftest.
$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 $ac_includes_default
22475 #include <$ac_header>
22477 rm -f conftest.
$ac_objext
22478 if { (ac_try
="$ac_compile"
22479 case "(($ac_try" in
22480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22484 $as_echo "$ac_try_echo") >&5
22485 (eval "$ac_compile") 2>conftest.er1
22487 grep -v '^ *+' conftest.er1 >conftest.err
22489 cat conftest.err >&5
22490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } && {
22492 test -z "$ac_c_werror_flag" ||
22493 test ! -s conftest.err
22494 } && test -s conftest.$ac_objext; then
22495 ac_header_compiler=yes
22497 $as_echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22500 ac_header_compiler=no
22503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22504 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22505 $as_echo "$ac_header_compiler" >&6; }
22507 # Is the header present?
22508 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22509 $as_echo_n "checking $ac_header presence... " >&6; }
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22516 #include <$ac_header>
22518 if { (ac_try="$ac_cpp conftest.$ac_ext"
22519 case "(($ac_try" in
22520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22521 *) ac_try_echo
=$ac_try;;
22523 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22524 $as_echo "$ac_try_echo") >&5
22525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22527 grep -v '^ *+' conftest.er1
>conftest.err
22529 cat conftest.err
>&5
22530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } >/dev
/null
&& {
22532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22533 test ! -s conftest.err
22535 ac_header_preproc
=yes
22537 $as_echo "$as_me: failed program was:" >&5
22538 sed 's/^/| /' conftest.
$ac_ext >&5
22540 ac_header_preproc
=no
22543 rm -f conftest.err conftest.
$ac_ext
22544 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22545 $as_echo "$ac_header_preproc" >&6; }
22547 # So? What about this header?
22548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22551 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22553 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22554 ac_header_preproc
=yes
22557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22558 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22560 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22562 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22564 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22568 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22573 $as_echo_n "checking for $ac_header... " >&6; }
22574 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575 $as_echo_n "(cached) " >&6
22577 eval "$as_ac_Header=\$ac_header_preproc"
22579 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22580 $as_echo "$as_val"'`
22581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22582 $as_echo "$ac_res" >&6; }
22585 if test `eval 'as_val=${'$as_ac_Header'}
22586 $as_echo "$as_val"'` = yes; then
22587 cat >>confdefs.h
<<_ACEOF
22588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22593 for ac_header
in kerberos
/des.h
22595 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22598 $as_echo_n "checking for $ac_header... " >&6; }
22599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22600 $as_echo_n "(cached) " >&6
22602 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22603 $as_echo "$as_val"'`
22604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22605 $as_echo "$ac_res" >&6; }
22607 # Is the header compilable?
22608 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22609 $as_echo_n "checking $ac_header usability... " >&6; }
22610 cat >conftest.
$ac_ext <<_ACEOF
22613 cat confdefs.h
>>conftest.
$ac_ext
22614 cat >>conftest.
$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616 $ac_includes_default
22617 #include <$ac_header>
22619 rm -f conftest.
$ac_objext
22620 if { (ac_try
="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22626 $as_echo "$ac_try_echo") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22637 ac_header_compiler=yes
22639 $as_echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 ac_header_compiler=no
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22647 $as_echo "$ac_header_compiler" >&6; }
22649 # Is the header present?
22650 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22651 $as_echo_n "checking $ac_header presence... " >&6; }
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <$ac_header>
22660 if { (ac_try="$ac_cpp conftest.$ac_ext"
22661 case "(($ac_try" in
22662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22663 *) ac_try_echo
=$ac_try;;
22665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22666 $as_echo "$ac_try_echo") >&5
22667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22669 grep -v '^ *+' conftest.er1
>conftest.err
22671 cat conftest.err
>&5
22672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } >/dev
/null
&& {
22674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22675 test ! -s conftest.err
22677 ac_header_preproc
=yes
22679 $as_echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.
$ac_ext >&5
22682 ac_header_preproc
=no
22685 rm -f conftest.err conftest.
$ac_ext
22686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22687 $as_echo "$ac_header_preproc" >&6; }
22689 # So? What about this header?
22690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22693 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22696 ac_header_preproc
=yes
22699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22700 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22702 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22704 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22706 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22708 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22710 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22715 $as_echo_n "checking for $ac_header... " >&6; }
22716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22717 $as_echo_n "(cached) " >&6
22719 eval "$as_ac_Header=\$ac_header_preproc"
22721 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22722 $as_echo "$as_val"'`
22723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22724 $as_echo "$ac_res" >&6; }
22727 if test `eval 'as_val=${'$as_ac_Header'}
22728 $as_echo "$as_val"'` = yes; then
22729 cat >>confdefs.h
<<_ACEOF
22730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22746 for ac_header
in krb.h
22748 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22749 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22751 $as_echo_n "checking for $ac_header... " >&6; }
22752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22753 $as_echo_n "(cached) " >&6
22755 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22756 $as_echo "$as_val"'`
22757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22758 $as_echo "$ac_res" >&6; }
22760 # Is the header compilable?
22761 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22762 $as_echo_n "checking $ac_header usability... " >&6; }
22763 cat >conftest.
$ac_ext <<_ACEOF
22766 cat confdefs.h
>>conftest.
$ac_ext
22767 cat >>conftest.
$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 $ac_includes_default
22770 #include <$ac_header>
22772 rm -f conftest.
$ac_objext
22773 if { (ac_try
="$ac_compile"
22774 case "(($ac_try" in
22775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780 (eval "$ac_compile") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest.$ac_objext; then
22790 ac_header_compiler=yes
22792 $as_echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_compiler=no
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22800 $as_echo "$ac_header_compiler" >&6; }
22802 # Is the header present?
22803 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22804 $as_echo_n "checking $ac_header presence... " >&6; }
22805 cat >conftest.$ac_ext <<_ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h. */
22811 #include <$ac_header>
22813 if { (ac_try="$ac_cpp conftest.$ac_ext"
22814 case "(($ac_try" in
22815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22816 *) ac_try_echo
=$ac_try;;
22818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22819 $as_echo "$ac_try_echo") >&5
22820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22822 grep -v '^ *+' conftest.er1
>conftest.err
22824 cat conftest.err
>&5
22825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } >/dev
/null
&& {
22827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22828 test ! -s conftest.err
22830 ac_header_preproc
=yes
22832 $as_echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.
$ac_ext >&5
22835 ac_header_preproc
=no
22838 rm -f conftest.err conftest.
$ac_ext
22839 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22840 $as_echo "$ac_header_preproc" >&6; }
22842 # So? What about this header?
22843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22846 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22849 ac_header_preproc
=yes
22852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22853 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22855 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22857 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22859 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22861 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22863 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22868 $as_echo_n "checking for $ac_header... " >&6; }
22869 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22870 $as_echo_n "(cached) " >&6
22872 eval "$as_ac_Header=\$ac_header_preproc"
22874 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22875 $as_echo "$as_val"'`
22876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22877 $as_echo "$ac_res" >&6; }
22880 if test `eval 'as_val=${'$as_ac_Header'}
22881 $as_echo "$as_val"'` = yes; then
22882 cat >>confdefs.h
<<_ACEOF
22883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22888 for ac_header
in kerberosIV
/krb.h
22890 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22891 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 $as_echo_n "checking for $ac_header... " >&6; }
22894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 $as_echo_n "(cached) " >&6
22897 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22898 $as_echo "$as_val"'`
22899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22900 $as_echo "$ac_res" >&6; }
22902 # Is the header compilable?
22903 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22904 $as_echo_n "checking $ac_header usability... " >&6; }
22905 cat >conftest.
$ac_ext <<_ACEOF
22908 cat confdefs.h
>>conftest.
$ac_ext
22909 cat >>conftest.
$ac_ext <<_ACEOF
22910 /* end confdefs.h. */
22911 $ac_includes_default
22912 #include <$ac_header>
22914 rm -f conftest.
$ac_objext
22915 if { (ac_try
="$ac_compile"
22916 case "(($ac_try" in
22917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22921 $as_echo "$ac_try_echo") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22934 $as_echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22942 $as_echo "$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22946 $as_echo_n "checking $ac_header presence... " >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <$ac_header>
22955 if { (ac_try="$ac_cpp conftest.$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22958 *) ac_try_echo
=$ac_try;;
22960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22961 $as_echo "$ac_try_echo") >&5
22962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22964 grep -v '^ *+' conftest.er1
>conftest.err
22966 cat conftest.err
>&5
22967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } >/dev
/null
&& {
22969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22972 ac_header_preproc
=yes
22974 $as_echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.
$ac_ext >&5
22977 ac_header_preproc
=no
22980 rm -f conftest.err conftest.
$ac_ext
22981 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22982 $as_echo "$ac_header_preproc" >&6; }
22984 # So? What about this header?
22985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22988 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22991 ac_header_preproc
=yes
22994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22995 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22997 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22999 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23001 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23005 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 $as_echo_n "checking for $ac_header... " >&6; }
23011 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached) " >&6
23014 eval "$as_ac_Header=\$ac_header_preproc"
23016 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23017 $as_echo "$as_val"'`
23018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23019 $as_echo "$ac_res" >&6; }
23022 if test `eval 'as_val=${'$as_ac_Header'}
23023 $as_echo "$as_val"'` = yes; then
23024 cat >>confdefs.h
<<_ACEOF
23025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23030 for ac_header
in kerberos
/krb.h
23032 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23033 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23035 $as_echo_n "checking for $ac_header... " >&6; }
23036 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23037 $as_echo_n "(cached) " >&6
23039 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23040 $as_echo "$as_val"'`
23041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23044 # Is the header compilable?
23045 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23046 $as_echo_n "checking $ac_header usability... " >&6; }
23047 cat >conftest.
$ac_ext <<_ACEOF
23050 cat confdefs.h
>>conftest.
$ac_ext
23051 cat >>conftest.
$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 $ac_includes_default
23054 #include <$ac_header>
23056 rm -f conftest.
$ac_objext
23057 if { (ac_try
="$ac_compile"
23058 case "(($ac_try" in
23059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23060 *) ac_try_echo=$ac_try;;
23062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23063 $as_echo "$ac_try_echo") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.$ac_objext; then
23074 ac_header_compiler=yes
23076 $as_echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_header_compiler=no
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23084 $as_echo "$ac_header_compiler" >&6; }
23086 # Is the header present?
23087 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23088 $as_echo_n "checking $ac_header presence... " >&6; }
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 #include <$ac_header>
23097 if { (ac_try="$ac_cpp conftest.$ac_ext"
23098 case "(($ac_try" in
23099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23100 *) ac_try_echo
=$ac_try;;
23102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23103 $as_echo "$ac_try_echo") >&5
23104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23106 grep -v '^ *+' conftest.er1
>conftest.err
23108 cat conftest.err
>&5
23109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } >/dev
/null
&& {
23111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23112 test ! -s conftest.err
23114 ac_header_preproc
=yes
23116 $as_echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.
$ac_ext >&5
23119 ac_header_preproc
=no
23122 rm -f conftest.err conftest.
$ac_ext
23123 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23124 $as_echo "$ac_header_preproc" >&6; }
23126 # So? What about this header?
23127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23130 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23133 ac_header_preproc
=yes
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23145 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23147 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 $as_echo_n "checking for $ac_header... " >&6; }
23153 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached) " >&6
23156 eval "$as_ac_Header=\$ac_header_preproc"
23158 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23159 $as_echo "$as_val"'`
23160 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23161 $as_echo "$ac_res" >&6; }
23164 if test `eval 'as_val=${'$as_ac_Header'}
23165 $as_echo "$as_val"'` = yes; then
23166 cat >>confdefs.h
<<_ACEOF
23167 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23184 for ac_header
in com_err.h
23186 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23187 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23189 $as_echo_n "checking for $ac_header... " >&6; }
23190 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23191 $as_echo_n "(cached) " >&6
23193 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23194 $as_echo "$as_val"'`
23195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23196 $as_echo "$ac_res" >&6; }
23198 # Is the header compilable?
23199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23200 $as_echo_n "checking $ac_header usability... " >&6; }
23201 cat >conftest.
$ac_ext <<_ACEOF
23204 cat confdefs.h
>>conftest.
$ac_ext
23205 cat >>conftest.
$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 #include <$ac_header>
23210 rm -f conftest.
$ac_objext
23211 if { (ac_try
="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_header_compiler=yes
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_header_compiler=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23238 $as_echo "$ac_header_compiler" >&6; }
23240 # Is the header present?
23241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23242 $as_echo_n "checking $ac_header presence... " >&6; }
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <$ac_header>
23251 if { (ac_try="$ac_cpp conftest.$ac_ext"
23252 case "(($ac_try" in
23253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23254 *) ac_try_echo
=$ac_try;;
23256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23260 grep -v '^ *+' conftest.er1
>conftest.err
23262 cat conftest.err
>&5
23263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } >/dev
/null
&& {
23265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23268 ac_header_preproc
=yes
23270 $as_echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.
$ac_ext >&5
23273 ac_header_preproc
=no
23276 rm -f conftest.err conftest.
$ac_ext
23277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23278 $as_echo "$ac_header_preproc" >&6; }
23280 # So? What about this header?
23281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23287 ac_header_preproc
=yes
23290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23306 $as_echo_n "checking for $ac_header... " >&6; }
23307 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23308 $as_echo_n "(cached) " >&6
23310 eval "$as_ac_Header=\$ac_header_preproc"
23312 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23313 $as_echo "$as_val"'`
23314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23315 $as_echo "$ac_res" >&6; }
23318 if test `eval 'as_val=${'$as_ac_Header'}
23319 $as_echo "$as_val"'` = yes; then
23320 cat >>confdefs.h
<<_ACEOF
23321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23330 # Solaris requires -lintl if you want strerror (which calls dgettext)
23331 # to return localized messages.
23333 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23334 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23335 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23336 $as_echo_n "(cached) " >&6
23338 ac_check_lib_save_LIBS
=$LIBS
23339 LIBS
="-lintl $LIBS"
23340 cat >conftest.
$ac_ext <<_ACEOF
23343 cat confdefs.h
>>conftest.
$ac_ext
23344 cat >>conftest.
$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23347 /* Override any GCC internal prototype to avoid an error.
23348 Use char because int might match the return type of a GCC
23349 builtin and then its argument prototype would still apply. */
23357 return dgettext ();
23362 rm -f conftest.
$ac_objext conftest
$ac_exeext
23363 if { (ac_try
="$ac_link"
23364 case "(($ac_try" in
23365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369 $as_echo "$ac_try_echo") >&5
23370 (eval "$ac_link") 2>conftest.er1
23372 grep -v '^ *+' conftest.er1 >conftest.err
23374 cat conftest.err >&5
23375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } && {
23377 test -z "$ac_c_werror_flag" ||
23378 test ! -s conftest.err
23379 } && test -s conftest$ac_exeext && {
23380 test "$cross_compiling" = yes ||
23381 $as_test_x conftest$ac_exeext
23383 ac_cv_lib_intl_dgettext=yes
23385 $as_echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 ac_cv_lib_intl_dgettext=no
23391 rm -rf conftest.dSYM
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393 conftest$ac_exeext conftest.$ac_ext
23394 LIBS=$ac_check_lib_save_LIBS
23396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23397 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23398 if test $ac_cv_lib_intl_dgettext = yes; then
23399 cat >>confdefs.h <<_ACEOF
23400 #define HAVE_LIBINTL 1
23403 LIBS="-lintl $LIBS"
23408 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23409 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23410 if test "${emacs_cv_localtime_cache+set}" = set; then
23411 $as_echo_n "(cached) " >&6
23413 if test x$ac_cv_func_tzset = xyes; then
23414 if test "$cross_compiling" = yes; then
23415 # If we have tzset, assume the worst when cross-compiling.
23416 emacs_cv_localtime_cache=yes
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23425 extern char **environ;
23429 for (to = from = environ; (*to = *from); from++)
23430 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23433 char TZ_GMT0[] = "TZ=GMT0";
23434 char TZ_PST8[] = "TZ=PST8";
23437 time_t now = time ((time_t *) 0);
23438 int hour_GMT0, hour_unset;
23439 if (putenv (TZ_GMT0) != 0)
23441 hour_GMT0 = localtime (&now)->tm_hour;
23443 hour_unset = localtime (&now)->tm_hour;
23444 if (putenv (TZ_PST8) != 0)
23446 if (localtime (&now)->tm_hour == hour_GMT0)
23449 if (localtime (&now)->tm_hour != hour_unset)
23454 rm -f conftest$ac_exeext
23455 if { (ac_try="$ac_link"
23456 case "(($ac_try" in
23457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23458 *) ac_try_echo
=$ac_try;;
23460 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_link") 2>&5
23464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23466 { (case "(($ac_try" in
23467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23471 $as_echo "$ac_try_echo") >&5
23472 (eval "$ac_try") 2>&5
23474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; }; then
23476 emacs_cv_localtime_cache=no
23478 $as_echo "$as_me: program exited with status $ac_status" >&5
23479 $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ( exit $ac_status )
23483 emacs_cv_localtime_cache=yes
23485 rm -rf conftest.dSYM
23486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 # If we lack tzset, report that localtime does not cache TZ,
23492 # since we can't invalidate the cache if we don't have tzset.
23493 emacs_cv_localtime_cache=no
23496 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23497 $as_echo "$emacs_cv_localtime_cache" >&6; }
23498 if test $emacs_cv_localtime_cache = yes; then
23500 cat >>confdefs.h <<\_ACEOF
23501 #define LOCALTIME_CACHE 1
23506 if test "x$HAVE_TIMEVAL" = xyes; then
23508 for ac_func in gettimeofday
23510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23511 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23512 $as_echo_n "checking for $ac_func... " >&6; }
23513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23514 $as_echo_n "(cached) " >&6
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23524 #define $ac_func innocuous_$ac_func
23526 /* System header to define __stub macros and hopefully few prototypes,
23527 which can conflict with char $ac_func (); below.
23528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23529 <limits.h> exists even on freestanding compilers. */
23532 # include <limits.h>
23534 # include <assert.h>
23539 /* Override any GCC internal prototype to avoid an error.
23540 Use char because int might match the return type of a GCC
23541 builtin and then its argument prototype would still apply. */
23546 /* The GNU C library defines this for functions which it implements
23547 to always fail with ENOSYS. Some functions are actually named
23548 something starting with __ and the normal name is an alias. */
23549 #if defined __stub_$ac_func || defined __stub___$ac_func
23556 return $ac_func ();
23561 rm -f conftest.$ac_objext conftest$ac_exeext
23562 if { (ac_try="$ac_link"
23563 case "(($ac_try" in
23564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23565 *) ac_try_echo
=$ac_try;;
23567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23568 $as_echo "$ac_try_echo") >&5
23569 (eval "$ac_link") 2>conftest.er1
23571 grep -v '^ *+' conftest.er1
>conftest.err
23573 cat conftest.err
>&5
23574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } && {
23576 test -z "$ac_c_werror_flag" ||
23577 test ! -s conftest.err
23578 } && test -s conftest
$ac_exeext && {
23579 test "$cross_compiling" = yes ||
23580 $as_test_x conftest
$ac_exeext
23582 eval "$as_ac_var=yes"
23584 $as_echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.
$ac_ext >&5
23587 eval "$as_ac_var=no"
23590 rm -rf conftest.dSYM
23591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23592 conftest
$ac_exeext conftest.
$ac_ext
23594 ac_res
=`eval 'as_val=${'$as_ac_var'}
23595 $as_echo "$as_val"'`
23596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23597 $as_echo "$ac_res" >&6; }
23598 if test `eval 'as_val=${'$as_ac_var'}
23599 $as_echo "$as_val"'` = yes; then
23600 cat >>confdefs.h
<<_ACEOF
23601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23607 if test $ac_cv_func_gettimeofday = yes; then
23608 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23609 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23610 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23611 $as_echo_n "(cached) " >&6
23613 cat >conftest.
$ac_ext <<_ACEOF
23616 cat confdefs.h
>>conftest.
$ac_ext
23617 cat >>conftest.
$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23620 #ifdef TIME_WITH_SYS_TIME
23621 #include <sys/time.h>
23624 #ifdef HAVE_SYS_TIME_H
23625 #include <sys/time.h>
23633 struct timeval time;
23634 gettimeofday (&time, 0);
23639 rm -f conftest.
$ac_objext
23640 if { (ac_try
="$ac_compile"
23641 case "(($ac_try" in
23642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23643 *) ac_try_echo=$ac_try;;
23645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23646 $as_echo "$ac_try_echo") >&5
23647 (eval "$ac_compile") 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest.$ac_objext; then
23657 emacs_cv_gettimeofday_two_arguments=yes
23659 $as_echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 emacs_cv_gettimeofday_two_arguments=no
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23668 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23669 if test $emacs_cv_gettimeofday_two_arguments = no; then
23671 cat >>confdefs.h <<\_ACEOF
23672 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23680 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23681 $as_echo_n "checking for socket... " >&6; }
23682 if test "${ac_cv_func_socket+set}" = set; then
23683 $as_echo_n "(cached) " >&6
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23693 #define socket innocuous_socket
23695 /* System header to define __stub macros and hopefully few prototypes,
23696 which can conflict with char socket (); below.
23697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23698 <limits.h> exists even on freestanding compilers. */
23701 # include <limits.h>
23703 # include <assert.h>
23708 /* Override any GCC internal prototype to avoid an error.
23709 Use char because int might match the return type of a GCC
23710 builtin and then its argument prototype would still apply. */
23715 /* The GNU C library defines this for functions which it implements
23716 to always fail with ENOSYS. Some functions are actually named
23717 something starting with __ and the normal name is an alias. */
23718 #if defined __stub_socket || defined __stub___socket
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23734 *) ac_try_echo
=$ac_try;;
23736 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738 (eval "$ac_link") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1
>conftest.err
23742 cat conftest.err
>&5
23743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest
$ac_exeext && {
23748 test "$cross_compiling" = yes ||
23749 $as_test_x conftest
$ac_exeext
23751 ac_cv_func_socket
=yes
23753 $as_echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.
$ac_ext >&5
23756 ac_cv_func_socket
=no
23759 rm -rf conftest.dSYM
23760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23761 conftest
$ac_exeext conftest.
$ac_ext
23763 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23764 $as_echo "$ac_cv_func_socket" >&6; }
23765 if test $ac_cv_func_socket = yes; then
23771 if test $ok_so_far = yes; then
23772 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23773 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23774 $as_echo_n "checking for netinet/in.h... " >&6; }
23775 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23776 $as_echo_n "(cached) " >&6
23778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23779 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23781 # Is the header compilable?
23782 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23783 $as_echo_n "checking netinet/in.h usability... " >&6; }
23784 cat >conftest.
$ac_ext <<_ACEOF
23787 cat confdefs.h
>>conftest.
$ac_ext
23788 cat >>conftest.
$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 $ac_includes_default
23791 #include <netinet/in.h>
23793 rm -f conftest.
$ac_objext
23794 if { (ac_try
="$ac_compile"
23795 case "(($ac_try" in
23796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23800 $as_echo "$ac_try_echo") >&5
23801 (eval "$ac_compile") 2>conftest.er1
23803 grep -v '^ *+' conftest.er1 >conftest.err
23805 cat conftest.err >&5
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } && {
23808 test -z "$ac_c_werror_flag" ||
23809 test ! -s conftest.err
23810 } && test -s conftest.$ac_objext; then
23811 ac_header_compiler=yes
23813 $as_echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23816 ac_header_compiler=no
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23821 $as_echo "$ac_header_compiler" >&6; }
23823 # Is the header present?
23824 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23825 $as_echo_n "checking netinet/in.h presence... " >&6; }
23826 cat >conftest.$ac_ext <<_ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23832 #include <netinet/in.h>
23834 if { (ac_try="$ac_cpp conftest.$ac_ext"
23835 case "(($ac_try" in
23836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23837 *) ac_try_echo
=$ac_try;;
23839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23840 $as_echo "$ac_try_echo") >&5
23841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1
>conftest.err
23845 cat conftest.err
>&5
23846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } >/dev
/null
&& {
23848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23851 ac_header_preproc
=yes
23853 $as_echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.
$ac_ext >&5
23856 ac_header_preproc
=no
23859 rm -f conftest.err conftest.
$ac_ext
23860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23861 $as_echo "$ac_header_preproc" >&6; }
23863 # So? What about this header?
23864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23866 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23867 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23869 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23870 ac_header_preproc
=yes
23873 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23874 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23875 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23876 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23877 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23878 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23879 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23880 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23881 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23882 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23883 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23884 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23888 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23889 $as_echo_n "checking for netinet/in.h... " >&6; }
23890 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23891 $as_echo_n "(cached) " >&6
23893 ac_cv_header_netinet_in_h
=$ac_header_preproc
23895 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23896 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23899 if test $ac_cv_header_netinet_in_h = yes; then
23907 if test $ok_so_far = yes; then
23908 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23909 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23910 $as_echo_n "checking for arpa/inet.h... " >&6; }
23911 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23912 $as_echo_n "(cached) " >&6
23914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23915 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23917 # Is the header compilable?
23918 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23919 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23920 cat >conftest.
$ac_ext <<_ACEOF
23923 cat confdefs.h
>>conftest.
$ac_ext
23924 cat >>conftest.
$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 #include <arpa/inet.h>
23929 rm -f conftest.
$ac_objext
23930 if { (ac_try
="$ac_compile"
23931 case "(($ac_try" in
23932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23936 $as_echo "$ac_try_echo") >&5
23937 (eval "$ac_compile") 2>conftest.er1
23939 grep -v '^ *+' conftest.er1 >conftest.err
23941 cat conftest.err >&5
23942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest.$ac_objext; then
23947 ac_header_compiler=yes
23949 $as_echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_header_compiler=no
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23957 $as_echo "$ac_header_compiler" >&6; }
23959 # Is the header present?
23960 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23961 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23962 cat >conftest.$ac_ext <<_ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 #include <arpa/inet.h>
23970 if { (ac_try="$ac_cpp conftest.$ac_ext"
23971 case "(($ac_try" in
23972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23973 *) ac_try_echo
=$ac_try;;
23975 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23976 $as_echo "$ac_try_echo") >&5
23977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23979 grep -v '^ *+' conftest.er1
>conftest.err
23981 cat conftest.err
>&5
23982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } >/dev
/null
&& {
23984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23985 test ! -s conftest.err
23987 ac_header_preproc
=yes
23989 $as_echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.
$ac_ext >&5
23992 ac_header_preproc
=no
23995 rm -f conftest.err conftest.
$ac_ext
23996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23997 $as_echo "$ac_header_preproc" >&6; }
23999 # So? What about this header?
24000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24002 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24003 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24004 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24005 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24006 ac_header_preproc
=yes
24009 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24010 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24011 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24012 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24013 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24014 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24015 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24016 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24018 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24019 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24020 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24024 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24025 $as_echo_n "checking for arpa/inet.h... " >&6; }
24026 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24027 $as_echo_n "(cached) " >&6
24029 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24032 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24035 if test $ac_cv_header_arpa_inet_h = yes; then
24043 if test $ok_so_far = yes; then
24045 cat >>confdefs.h
<<\_ACEOF
24046 #define HAVE_INET_SOCKETS 1
24052 for ac_header
in sys
/ioctl.h
24054 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24055 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24057 $as_echo_n "checking for $ac_header... " >&6; }
24058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24059 $as_echo_n "(cached) " >&6
24061 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24062 $as_echo "$as_val"'`
24063 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24064 $as_echo "$ac_res" >&6; }
24066 # Is the header compilable?
24067 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24068 $as_echo_n "checking $ac_header usability... " >&6; }
24069 cat >conftest.
$ac_ext <<_ACEOF
24072 cat confdefs.h
>>conftest.
$ac_ext
24073 cat >>conftest.
$ac_ext <<_ACEOF
24074 /* end confdefs.h. */
24075 $ac_includes_default
24076 #include <$ac_header>
24078 rm -f conftest.
$ac_objext
24079 if { (ac_try
="$ac_compile"
24080 case "(($ac_try" in
24081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24082 *) ac_try_echo=$ac_try;;
24084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24085 $as_echo "$ac_try_echo") >&5
24086 (eval "$ac_compile") 2>conftest.er1
24088 grep -v '^ *+' conftest.er1 >conftest.err
24090 cat conftest.err >&5
24091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } && {
24093 test -z "$ac_c_werror_flag" ||
24094 test ! -s conftest.err
24095 } && test -s conftest.$ac_objext; then
24096 ac_header_compiler=yes
24098 $as_echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24101 ac_header_compiler=no
24104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24105 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24106 $as_echo "$ac_header_compiler" >&6; }
24108 # Is the header present?
24109 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24110 $as_echo_n "checking $ac_header presence... " >&6; }
24111 cat >conftest.$ac_ext <<_ACEOF
24114 cat confdefs.h >>conftest.$ac_ext
24115 cat >>conftest.$ac_ext <<_ACEOF
24116 /* end confdefs.h. */
24117 #include <$ac_header>
24119 if { (ac_try="$ac_cpp conftest.$ac_ext"
24120 case "(($ac_try" in
24121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24122 *) ac_try_echo
=$ac_try;;
24124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24125 $as_echo "$ac_try_echo") >&5
24126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24128 grep -v '^ *+' conftest.er1
>conftest.err
24130 cat conftest.err
>&5
24131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); } >/dev
/null
&& {
24133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24134 test ! -s conftest.err
24136 ac_header_preproc
=yes
24138 $as_echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.
$ac_ext >&5
24141 ac_header_preproc
=no
24144 rm -f conftest.err conftest.
$ac_ext
24145 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24146 $as_echo "$ac_header_preproc" >&6; }
24148 # So? What about this header?
24149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24152 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24155 ac_header_preproc
=yes
24158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24159 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24161 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24163 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24165 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24167 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24169 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24174 $as_echo_n "checking for $ac_header... " >&6; }
24175 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24176 $as_echo_n "(cached) " >&6
24178 eval "$as_ac_Header=\$ac_header_preproc"
24180 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24181 $as_echo "$as_val"'`
24182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24183 $as_echo "$ac_res" >&6; }
24186 if test `eval 'as_val=${'$as_ac_Header'}
24187 $as_echo "$as_val"'` = yes; then
24188 cat >>confdefs.h
<<_ACEOF
24189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24197 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24199 cat >>confdefs.h
<<\_ACEOF
24200 #define HAVE_AIX_SMT_EXP 1
24205 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24206 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24207 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24208 { $as_echo "$as_me:$LINENO: result: yes" >&5
24209 $as_echo "yes" >&6; }
24211 cat >>confdefs.h
<<\_ACEOF
24212 #define HAVE_DEV_PTMX 1
24216 { $as_echo "$as_me:$LINENO: result: no" >&5
24217 $as_echo "no" >&6; }
24220 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24221 $as_echo_n "checking for pid_t... " >&6; }
24222 if test "${ac_cv_type_pid_t+set}" = set; then
24223 $as_echo_n "(cached) " >&6
24225 ac_cv_type_pid_t
=no
24226 cat >conftest.
$ac_ext <<_ACEOF
24229 cat confdefs.h
>>conftest.
$ac_ext
24230 cat >>conftest.
$ac_ext <<_ACEOF
24231 /* end confdefs.h. */
24232 $ac_includes_default
24236 if (sizeof (pid_t))
24242 rm -f conftest.
$ac_objext
24243 if { (ac_try
="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24246 *) ac_try_echo=$ac_try;;
24248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24249 $as_echo "$ac_try_echo") >&5
24250 (eval "$ac_compile") 2>conftest.er1
24252 grep -v '^ *+' conftest.er1 >conftest.err
24254 cat conftest.err >&5
24255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); } && {
24257 test -z "$ac_c_werror_flag" ||
24258 test ! -s conftest.err
24259 } && test -s conftest.$ac_objext; then
24260 cat >conftest.$ac_ext <<_ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 $ac_includes_default
24270 if (sizeof ((pid_t)))
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24280 *) ac_try_echo
=$ac_try;;
24282 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24283 $as_echo "$ac_try_echo") >&5
24284 (eval "$ac_compile") 2>conftest.er1
24286 grep -v '^ *+' conftest.er1
>conftest.err
24288 cat conftest.err
>&5
24289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290 (exit $ac_status); } && {
24291 test -z "$ac_c_werror_flag" ||
24292 test ! -s conftest.err
24293 } && test -s conftest.
$ac_objext; then
24296 $as_echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.
$ac_ext >&5
24299 ac_cv_type_pid_t
=yes
24302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24304 $as_echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.
$ac_ext >&5
24310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24312 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24313 $as_echo "$ac_cv_type_pid_t" >&6; }
24314 if test $ac_cv_type_pid_t = yes; then
24318 cat >>confdefs.h
<<_ACEOF
24325 for ac_header
in vfork.h
24327 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24328 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24330 $as_echo_n "checking for $ac_header... " >&6; }
24331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24332 $as_echo_n "(cached) " >&6
24334 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24335 $as_echo "$as_val"'`
24336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24337 $as_echo "$ac_res" >&6; }
24339 # Is the header compilable?
24340 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24341 $as_echo_n "checking $ac_header usability... " >&6; }
24342 cat >conftest.
$ac_ext <<_ACEOF
24345 cat confdefs.h
>>conftest.
$ac_ext
24346 cat >>conftest.
$ac_ext <<_ACEOF
24347 /* end confdefs.h. */
24348 $ac_includes_default
24349 #include <$ac_header>
24351 rm -f conftest.
$ac_objext
24352 if { (ac_try
="$ac_compile"
24353 case "(($ac_try" in
24354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24358 $as_echo "$ac_try_echo") >&5
24359 (eval "$ac_compile") 2>conftest.er1
24361 grep -v '^ *+' conftest.er1 >conftest.err
24363 cat conftest.err >&5
24364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); } && {
24366 test -z "$ac_c_werror_flag" ||
24367 test ! -s conftest.err
24368 } && test -s conftest.$ac_objext; then
24369 ac_header_compiler=yes
24371 $as_echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 ac_header_compiler=no
24377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24379 $as_echo "$ac_header_compiler" >&6; }
24381 # Is the header present?
24382 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24383 $as_echo_n "checking $ac_header presence... " >&6; }
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 #include <$ac_header>
24392 if { (ac_try="$ac_cpp conftest.$ac_ext"
24393 case "(($ac_try" in
24394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24395 *) ac_try_echo
=$ac_try;;
24397 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24398 $as_echo "$ac_try_echo") >&5
24399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24401 grep -v '^ *+' conftest.er1
>conftest.err
24403 cat conftest.err
>&5
24404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } >/dev
/null
&& {
24406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24407 test ! -s conftest.err
24409 ac_header_preproc
=yes
24411 $as_echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.
$ac_ext >&5
24414 ac_header_preproc
=no
24417 rm -f conftest.err conftest.
$ac_ext
24418 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24419 $as_echo "$ac_header_preproc" >&6; }
24421 # So? What about this header?
24422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24425 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24428 ac_header_preproc
=yes
24431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24432 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24434 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24436 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24438 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24440 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24442 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24447 $as_echo_n "checking for $ac_header... " >&6; }
24448 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24449 $as_echo_n "(cached) " >&6
24451 eval "$as_ac_Header=\$ac_header_preproc"
24453 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24454 $as_echo "$as_val"'`
24455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24456 $as_echo "$ac_res" >&6; }
24459 if test `eval 'as_val=${'$as_ac_Header'}
24460 $as_echo "$as_val"'` = yes; then
24461 cat >>confdefs.h
<<_ACEOF
24462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24471 for ac_func
in fork vfork
24473 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24475 $as_echo_n "checking for $ac_func... " >&6; }
24476 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24477 $as_echo_n "(cached) " >&6
24479 cat >conftest.
$ac_ext <<_ACEOF
24482 cat confdefs.h
>>conftest.
$ac_ext
24483 cat >>conftest.
$ac_ext <<_ACEOF
24484 /* end confdefs.h. */
24485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24487 #define $ac_func innocuous_$ac_func
24489 /* System header to define __stub macros and hopefully few prototypes,
24490 which can conflict with char $ac_func (); below.
24491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24492 <limits.h> exists even on freestanding compilers. */
24495 # include <limits.h>
24497 # include <assert.h>
24502 /* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24509 /* The GNU C library defines this for functions which it implements
24510 to always fail with ENOSYS. Some functions are actually named
24511 something starting with __ and the normal name is an alias. */
24512 #if defined __stub_$ac_func || defined __stub___$ac_func
24519 return $ac_func ();
24524 rm -f conftest.
$ac_objext conftest
$ac_exeext
24525 if { (ac_try
="$ac_link"
24526 case "(($ac_try" in
24527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_link") 2>conftest.er1
24534 grep -v '^ *+' conftest.er1 >conftest.err
24536 cat conftest.err >&5
24537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest$ac_exeext && {
24542 test "$cross_compiling" = yes ||
24543 $as_test_x conftest$ac_exeext
24545 eval "$as_ac_var=yes"
24547 $as_echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 eval "$as_ac_var=no"
24553 rm -rf conftest.dSYM
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555 conftest$ac_exeext conftest.$ac_ext
24557 ac_res=`eval 'as_val=${'$as_ac_var'}
24558 $as_echo "$as_val"'`
24559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24560 $as_echo "$ac_res" >&6; }
24561 if test `eval 'as_val=${'$as_ac_var'}
24562 $as_echo "$as_val"'` = yes; then
24563 cat >>confdefs.h <<_ACEOF
24564 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24570 if test "x$ac_cv_func_fork" = xyes; then
24571 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24572 $as_echo_n "checking for working fork... " >&6; }
24573 if test "${ac_cv_func_fork_works+set}" = set; then
24574 $as_echo_n "(cached) " >&6
24576 if test "$cross_compiling" = yes; then
24577 ac_cv_func_fork_works=cross
24579 cat >conftest.$ac_ext <<_ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 $ac_includes_default
24590 /* By Ruediger Kuhlmann. */
24591 return fork () < 0;
24597 rm -f conftest$ac_exeext
24598 if { (ac_try="$ac_link"
24599 case "(($ac_try" in
24600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24601 *) ac_try_echo
=$ac_try;;
24603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24604 $as_echo "$ac_try_echo") >&5
24605 (eval "$ac_link") 2>&5
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24609 { (case "(($ac_try" in
24610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24614 $as_echo "$ac_try_echo") >&5
24615 (eval "$ac_try") 2>&5
24617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_func_fork_works=yes
24621 $as_echo "$as_me: program exited with status $ac_status" >&5
24622 $as_echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24625 ( exit $ac_status )
24626 ac_cv_func_fork_works=no
24628 rm -rf conftest.dSYM
24629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24634 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24635 $as_echo "$ac_cv_func_fork_works" >&6; }
24638 ac_cv_func_fork_works=$ac_cv_func_fork
24640 if test "x$ac_cv_func_fork_works" = xcross; then
24642 *-*-amigaos* | *-*-msdosdjgpp*)
24643 # Override, as these systems have only a dummy fork() stub
24644 ac_cv_func_fork_works=no
24647 ac_cv_func_fork_works=yes
24650 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24651 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24653 ac_cv_func_vfork_works=$ac_cv_func_vfork
24654 if test "x$ac_cv_func_vfork" = xyes; then
24655 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24656 $as_echo_n "checking for working vfork... " >&6; }
24657 if test "${ac_cv_func_vfork_works+set}" = set; then
24658 $as_echo_n "(cached) " >&6
24660 if test "$cross_compiling" = yes; then
24661 ac_cv_func_vfork_works=cross
24663 cat >conftest.$ac_ext <<_ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h. */
24669 /* Thanks to Paul Eggert for this test. */
24670 $ac_includes_default
24671 #include <sys/wait.h>
24672 #ifdef HAVE_VFORK_H
24673 # include <vfork.h>
24675 /* On some sparc systems, changes by the child to local and incoming
24676 argument registers are propagated back to the parent. The compiler
24677 is told about this with #include <vfork.h>, but some compilers
24678 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24679 static variable whose address is put into a register that is
24680 clobbered by the vfork. */
24683 sparc_address_test (int arg)
24685 sparc_address_test (arg) int arg;
24688 static pid_t child;
24706 pid_t parent = getpid ();
24709 sparc_address_test (0);
24714 /* Here is another test for sparc vfork register problems. This
24715 test uses lots of local variables, at least as many local
24716 variables as main has allocated so far including compiler
24717 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24718 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24719 reuse the register of parent for one of the local variables,
24720 since it will think that parent can't possibly be used any more
24721 in this routine. Assigning to the local variable will thus
24722 munge parent in the parent process. */
24724 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24725 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24726 /* Convince the compiler that p..p7 are live; otherwise, it might
24727 use the same hardware register for all 8 local variables. */
24728 if (p != p1 || p != p2 || p != p3 || p != p4
24729 || p != p5 || p != p6 || p != p7)
24732 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24733 from child file descriptors. If the child closes a descriptor
24734 before it execs or exits, this munges the parent's descriptor
24735 as well. Test for this by closing stdout in the child. */
24736 _exit(close(fileno(stdout)) != 0);
24741 while (wait(&status) != child)
24744 /* Was there some problem with vforking? */
24747 /* Did the child fail? (This shouldn't happen.) */
24750 /* Did the vfork/compiler bug occur? */
24751 || parent != getpid()
24753 /* Did the file descriptor bug occur? */
24754 || fstat(fileno(stdout), &st) != 0
24759 rm -f conftest$ac_exeext
24760 if { (ac_try="$ac_link"
24761 case "(($ac_try" in
24762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24763 *) ac_try_echo
=$ac_try;;
24765 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24766 $as_echo "$ac_try_echo") >&5
24767 (eval "$ac_link") 2>&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24771 { (case "(($ac_try" in
24772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24776 $as_echo "$ac_try_echo") >&5
24777 (eval "$ac_try") 2>&5
24779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ac_cv_func_vfork_works=yes
24783 $as_echo "$as_me: program exited with status $ac_status" >&5
24784 $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24787 ( exit $ac_status )
24788 ac_cv_func_vfork_works=no
24790 rm -rf conftest.dSYM
24791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24796 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24797 $as_echo "$ac_cv_func_vfork_works" >&6; }
24800 if test "x$ac_cv_func_fork_works" = xcross; then
24801 ac_cv_func_vfork_works=$ac_cv_func_vfork
24802 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24803 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24806 if test "x$ac_cv_func_vfork_works" = xyes; then
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_WORKING_VFORK 1
24814 cat >>confdefs.h <<\_ACEOF
24819 if test "x$ac_cv_func_fork_works" = xyes; then
24821 cat >>confdefs.h <<\_ACEOF
24822 #define HAVE_WORKING_FORK 1
24828 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24829 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24830 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24831 $as_echo_n "(cached) " >&6
24833 cat >conftest.$ac_ext <<_ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h. */
24839 #include <langinfo.h>
24843 char* cs = nl_langinfo(CODESET);
24848 rm -f conftest.$ac_objext conftest$ac_exeext
24849 if { (ac_try="$ac_link"
24850 case "(($ac_try" in
24851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24852 *) ac_try_echo
=$ac_try;;
24854 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24855 $as_echo "$ac_try_echo") >&5
24856 (eval "$ac_link") 2>conftest.er1
24858 grep -v '^ *+' conftest.er1
>conftest.err
24860 cat conftest.err
>&5
24861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } && {
24863 test -z "$ac_c_werror_flag" ||
24864 test ! -s conftest.err
24865 } && test -s conftest
$ac_exeext && {
24866 test "$cross_compiling" = yes ||
24867 $as_test_x conftest
$ac_exeext
24869 emacs_cv_langinfo_codeset
=yes
24871 $as_echo "$as_me: failed program was:" >&5
24872 sed 's/^/| /' conftest.
$ac_ext >&5
24874 emacs_cv_langinfo_codeset
=no
24877 rm -rf conftest.dSYM
24878 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24879 conftest
$ac_exeext conftest.
$ac_ext
24882 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24883 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24884 if test $emacs_cv_langinfo_codeset = yes; then
24886 cat >>confdefs.h
<<\_ACEOF
24887 #define HAVE_LANGINFO_CODESET 1
24892 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24893 $as_echo_n "checking for size_t... " >&6; }
24894 if test "${ac_cv_type_size_t+set}" = set; then
24895 $as_echo_n "(cached) " >&6
24897 ac_cv_type_size_t
=no
24898 cat >conftest.
$ac_ext <<_ACEOF
24901 cat confdefs.h
>>conftest.
$ac_ext
24902 cat >>conftest.
$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 $ac_includes_default
24908 if (sizeof (size_t))
24914 rm -f conftest.
$ac_objext
24915 if { (ac_try
="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24918 *) ac_try_echo=$ac_try;;
24920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922 (eval "$ac_compile") 2>conftest.er1
24924 grep -v '^ *+' conftest.er1 >conftest.err
24926 cat conftest.err >&5
24927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); } && {
24929 test -z "$ac_c_werror_flag" ||
24930 test ! -s conftest.err
24931 } && test -s conftest.$ac_objext; then
24932 cat >conftest.$ac_ext <<_ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 $ac_includes_default
24942 if (sizeof ((size_t)))
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24952 *) ac_try_echo
=$ac_try;;
24954 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24955 $as_echo "$ac_try_echo") >&5
24956 (eval "$ac_compile") 2>conftest.er1
24958 grep -v '^ *+' conftest.er1
>conftest.err
24960 cat conftest.err
>&5
24961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); } && {
24963 test -z "$ac_c_werror_flag" ||
24964 test ! -s conftest.err
24965 } && test -s conftest.
$ac_objext; then
24968 $as_echo "$as_me: failed program was:" >&5
24969 sed 's/^/| /' conftest.
$ac_ext >&5
24971 ac_cv_type_size_t
=yes
24974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24976 $as_echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.
$ac_ext >&5
24982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24984 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24985 $as_echo "$ac_cv_type_size_t" >&6; }
24986 if test $ac_cv_type_size_t = yes; then
24988 cat >>confdefs.h
<<_ACEOF
24989 #define HAVE_SIZE_T 1
24996 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24997 $as_echo_n "checking for mbstate_t... " >&6; }
24998 if test "${ac_cv_type_mbstate_t+set}" = set; then
24999 $as_echo_n "(cached) " >&6
25001 cat >conftest.
$ac_ext <<_ACEOF
25004 cat confdefs.h
>>conftest.
$ac_ext
25005 cat >>conftest.
$ac_ext <<_ACEOF
25006 /* end confdefs.h. */
25007 $ac_includes_default
25008 # include <wchar.h>
25012 mbstate_t x; return sizeof x;
25017 rm -f conftest.
$ac_objext
25018 if { (ac_try
="$ac_compile"
25019 case "(($ac_try" in
25020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25024 $as_echo "$ac_try_echo") >&5
25025 (eval "$ac_compile") 2>conftest.er1
25027 grep -v '^ *+' conftest.er1 >conftest.err
25029 cat conftest.err >&5
25030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } && {
25032 test -z "$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25034 } && test -s conftest.$ac_objext; then
25035 ac_cv_type_mbstate_t=yes
25037 $as_echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25040 ac_cv_type_mbstate_t=no
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25045 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25046 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25047 if test $ac_cv_type_mbstate_t = yes; then
25049 cat >>confdefs.h <<\_ACEOF
25050 #define HAVE_MBSTATE_T 1
25055 cat >>confdefs.h <<\_ACEOF
25056 #define mbstate_t int
25061 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25062 $as_echo_n "checking for C restrict keyword... " >&6; }
25063 if test "${emacs_cv_c_restrict+set}" = set; then
25064 $as_echo_n "(cached) " >&6
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 void fred (int *restrict x);
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25085 *) ac_try_echo
=$ac_try;;
25087 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25088 $as_echo "$ac_try_echo") >&5
25089 (eval "$ac_compile") 2>conftest.er1
25091 grep -v '^ *+' conftest.er1
>conftest.err
25093 cat conftest.err
>&5
25094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest.
$ac_objext; then
25099 emacs_cv_c_restrict
=yes
25101 $as_echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.
$ac_ext >&5
25104 cat >conftest.
$ac_ext <<_ACEOF
25107 cat confdefs.h
>>conftest.
$ac_ext
25108 cat >>conftest.
$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 void fred (int *__restrict x);
25119 rm -f conftest.
$ac_objext
25120 if { (ac_try
="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25126 $as_echo "$ac_try_echo") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25129 grep -v '^ *+' conftest.er1 >conftest.err
25131 cat conftest.err >&5
25132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_c_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25137 emacs_cv_c_restrict=__restrict
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 emacs_cv_c_restrict=no
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25151 $as_echo "$emacs_cv_c_restrict" >&6; }
25152 case "$emacs_cv_c_restrict" in
25153 yes) emacs_restrict=restrict;;
25154 no) emacs_restrict="";;
25155 *) emacs_restrict="$emacs_cv_c_restrict";;
25157 if test "$emacs_restrict" != __restrict; then
25159 cat >>confdefs.h <<_ACEOF
25160 #define __restrict $emacs_restrict
25165 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25166 $as_echo_n "checking for C restricted array declarations... " >&6; }
25167 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25168 $as_echo_n "(cached) " >&6
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 void fred (int x[__restrict]);
25185 rm -f conftest.$ac_objext
25186 if { (ac_try="$ac_compile"
25187 case "(($ac_try" in
25188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25189 *) ac_try_echo
=$ac_try;;
25191 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25192 $as_echo "$ac_try_echo") >&5
25193 (eval "$ac_compile") 2>conftest.er1
25195 grep -v '^ *+' conftest.er1
>conftest.err
25197 cat conftest.err
>&5
25198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); } && {
25200 test -z "$ac_c_werror_flag" ||
25201 test ! -s conftest.err
25202 } && test -s conftest.
$ac_objext; then
25203 emacs_cv_c_restrict_arr
=yes
25205 $as_echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.
$ac_ext >&5
25208 emacs_cv_c_restrict_arr
=no
25211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25213 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25214 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25215 if test "$emacs_cv_c_restrict_arr" = yes; then
25217 cat >>confdefs.h
<<\_ACEOF
25218 #define __restrict_arr __restrict
25225 # Set up the CFLAGS for real compilation, so we can substitute it.
25226 CFLAGS
="$REAL_CFLAGS"
25227 CPPFLAGS
="$REAL_CPPFLAGS"
25229 #### Find out which version of Emacs this is.
25230 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25231 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25232 if test x
"${version}" = x
; then
25233 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25234 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25235 { (exit 1); exit 1; }; }
25237 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25238 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25239 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25242 ### Specify what sort of things we'll be editing into Makefile and config.h.
25243 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25288 cat >>confdefs.h <<_ACEOF
25289 #define EMACS_CONFIGURATION "${canonical}"
25293 cat >>confdefs.h <<_ACEOF
25294 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25298 cat >>confdefs.h <<_ACEOF
25299 #define config_machfile "${machfile}"
25303 cat >>confdefs.h <<_ACEOF
25304 #define config_opsysfile "${opsysfile}"
25308 cat >>confdefs.h <<_ACEOF
25309 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25313 cat >>confdefs.h <<_ACEOF
25314 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25318 cat >>confdefs.h <<_ACEOF
25319 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25323 cat >>confdefs.h <<_ACEOF
25324 #define UNEXEC_SRC ${UNEXEC_SRC}
25328 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25330 cat >>confdefs.h <<\_ACEOF
25331 #define HAVE_X_WINDOWS 1
25335 if test "${USE_X_TOOLKIT}" != "none
" ; then
25337 cat >>confdefs.h <<\_ACEOF
25338 #define USE_X_TOOLKIT 1
25341 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
25343 cat >>confdefs.h <<\_ACEOF
25344 #define USE_LUCID 1
25347 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define USE_MOTIF 1
25355 if test "${HAVE_X11}" = "yes" ; then
25357 cat >>confdefs.h <<\_ACEOF
25362 if test "${HAVE_MENUS}" = "yes" ; then
25364 cat >>confdefs.h <<\_ACEOF
25365 #define HAVE_MENUS 1
25369 if test "${GNU_MALLOC}" = "yes" ; then
25371 cat >>confdefs.h <<\_ACEOF
25372 #define GNU_MALLOC 1
25376 if test "${REL_ALLOC}" = "yes" ; then
25378 cat >>confdefs.h <<\_ACEOF
25379 #define REL_ALLOC 1
25389 #### Report on what we decided to do.
25390 #### Report GTK as a toolkit, even if it doesn't use Xt.
25391 #### It makes printing result more understandable as using GTK sets
25392 #### toolkit_scroll_bars to yes by default.
25393 if test "${HAVE_GTK}" = "yes"; then
25398 Configured
for \
`${canonical}'.
25400 Where should the build process find the source code? ${srcdir}
25401 What operating system and machine description files should Emacs use?
25402 \`${opsysfile}' and \`${machfile}'
25403 What compiler should emacs be built with?
${CC} ${CFLAGS}
25404 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
25405 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
25406 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
25407 What window system should Emacs use?
${window_system}
25408 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
25410 if test -n "${x_includes}"; then
25411 echo " Where
do we
find X Windows header files?
${x_includes}"
25413 echo " Where
do we
find X Windows header files? Standard
dirs"
25415 if test -n "${x_libraries}"; then
25416 echo " Where
do we
find X Windows libraries?
${x_libraries}"
25418 echo " Where
do we
find X Windows libraries? Standard
dirs"
25421 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
25422 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
25423 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
25424 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
25425 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
25426 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
25427 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
25428 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
25429 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
25431 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
25432 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
25433 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
25434 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
25436 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
25439 if test $USE_XASSERTS = yes; then
25440 echo " Compiling with asserts turned on.
"
25441 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25446 if test "$USE_X_TOOLKIT" = GTK; then
25447 case "$canonical" in
25449 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
25450 will probably get a crash on startup. If this happens
, please use another
25451 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
25456 if test "$HAVE_NS" = "yes"; then
25458 echo "You must run
\"make install\" in order to
test the built application.
25459 The installed application will go to nextstep
/Emacs.app and can be
25460 run or moved from there.
"
25461 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25462 echo "The application will be fully self-contained.
"
25464 echo "The lisp resources
for the application will be installed under
${prefix}.
25465 You may need to run
\"make install\" with sudo. The application will fail
25466 to run
if these resources are not installed.
"
25471 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
25472 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
25477 # Remove any trailing slashes in these variables.
25478 test "${prefix}" != NONE &&
25479 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25480 test "${exec_prefix}" != NONE &&
25481 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25483 # Now get this: Some word that is part of the ${srcdir} directory name
25484 # or the ${configuration} value might, just might, happen to be an
25485 # identifier like `sun4' or `i386' or something, and be predefined by
25486 # the C preprocessor to some helpful value like 1, or maybe the empty
25487 # string. Needless to say consequent macro substitutions are less
25488 # than conducive to the makefile finding the correct directory.
25489 cpp_undefs="`echo $srcdir $configuration $canonical |
25490 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25491 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25493 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25494 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25495 ## from Makefile.c can correctly provide the arg `-traditional' to the
25498 cat >conftest.$ac_ext <<_ACEOF
25501 cat confdefs.h >>conftest.$ac_ext
25502 cat >>conftest.$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25506 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25507 $EGREP "yes..
yes" >/dev/null 2>&1; then
25508 CPP_NEED_TRADITIONAL=no
25510 CPP_NEED_TRADITIONAL=yes
25515 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
"
25517 ac_config_commands="$ac_config_commands default
"
25519 cat >confcache <<\_ACEOF
25520 # This file is a shell script that caches the results of configure
25521 # tests run on this system so they can be shared between configure
25522 # scripts and configure runs, see configure's option --config-cache.
25523 # It is not useful on other systems. If it contains results you don't
25524 # want to keep, you may remove or edit it.
25526 # config.status only pays attention to the cache file if you give it
25527 # the --recheck option to rerun configure.
25529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25531 # following values.
25535 # The following way of writing the cache mishandles newlines in values,
25536 # but we know of no workaround that is simple, portable, and efficient.
25537 # So, we kill variables containing newlines.
25538 # Ultrix sh set writes to stderr and can't be redirected directly,
25539 # and sets the high bit in the cache file unless we assign to the vars.
25541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25542 eval ac_val=\$$ac_var
25546 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
25547 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
25550 _ | IFS | as_nl) ;; #(
25551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25552 *) $as_unset $ac_var ;;
25558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25559 *${as_nl}ac_space=\ *)
25560 # `set' does not quote correctly, so add quotes (double-quote
25561 # substitution turns \\\\ into \\, and sed turns \\ into \).
25564 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
25567 # `set' quotes correctly as required by POSIX, so do not add quotes.
25568 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
25577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25582 if test -w "$cache_file"; then
25583 test "x
$cache_file" != "x
/dev
/null
" &&
25584 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
25585 $as_echo "$as_me: updating cache
$cache_file" >&6;}
25586 cat confcache >$cache_file
25588 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
25589 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
25594 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
25595 # Let make expand exec_prefix.
25596 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
25598 DEFS=-DHAVE_CONFIG_H
25602 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
25603 # 1. Remove the extension, and $U if already installed.
25604 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25605 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25606 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25607 # will be set to the directory where LIBOBJS objects are built.
25608 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
25609 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
25611 LIBOBJS=$ac_libobjs
25613 LTLIBOBJS=$ac_ltlibobjs
25617 : ${CONFIG_STATUS=./config.status}
25619 ac_clean_files_save=$ac_clean_files
25620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25621 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
25622 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
25623 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25625 # Generated by $as_me.
25626 # Run this file to recreate the current configuration.
25627 # Compiler output produced by configure, useful for debugging
25628 # configure, is in config.log if it exists.
25631 ac_cs_recheck=false
25633 SHELL=\${CONFIG_SHELL-$SHELL}
25636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25637 ## --------------------- ##
25638 ## M4sh Initialization. ##
25639 ## --------------------- ##
25641 # Be more Bourne compatible
25642 DUALCASE=1; export DUALCASE # for MKS sh
25643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25647 # is contrary to our usage. Disable this feature.
25648 alias -g '${1+"$@"}'='"$@
"'
25649 setopt NO_GLOB_SUBST
25651 case `(set -o) 2>/dev/null` in
25652 *posix*) set -o posix ;;
25661 # Avoid depending upon Character Ranges.
25662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25665 as_cr_digits='0123456789'
25666 as_cr_alnum=$as_cr_Letters$as_cr_digits
25671 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25672 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25674 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25675 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
25676 as_echo='printf %s\n'
25677 as_echo_n='printf %s'
25679 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
25680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25681 as_echo_n='/usr/ucb/echo -n'
25683 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
25684 as_echo_n_body='eval
25688 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
25689 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
25691 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
25693 export as_echo_n_body
25694 as_echo_n='sh -c $as_echo_n_body as_echo'
25696 export as_echo_body
25697 as_echo='sh -c $as_echo_body as_echo'
25700 # The user is always right.
25701 if test "${PATH_SEPARATOR+set}" != set; then
25703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25709 # Support unset when possible.
25710 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25718 # We need space, tab and new line, in precisely that order. Quoting is
25719 # there to prevent editors from complaining about space-tab.
25720 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25721 # splitting by setting IFS to empty value.)
25724 # Find who we are. Look in the path if we contain no directory separator.
25726 *[\\/]* ) as_myself=$0 ;;
25727 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25728 for as_dir in $PATH
25731 test -z "$as_dir" && as_dir=.
25732 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25738 # We did not find ourselves, most probably we were run as `sh COMMAND'
25739 # in which case we are not to be found in the path.
25740 if test "x
$as_myself" = x; then
25743 if test ! -f "$as_myself"; then
25744 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
25745 { (exit 1); exit 1; }
25748 # Work around bugs in pre-3.0 UWIN ksh.
25749 for as_var in ENV MAIL MAILPATH
25750 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25762 # Required to use basename.
25763 if expr a : '\(a\)' >/dev/null 2>&1 &&
25764 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25770 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
25771 as_basename=basename
25777 # Name of the executable.
25778 as_me=`$as_basename -- "$0" ||
25779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25780 X"$0" : 'X\(//\)$' \| \
25781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25783 sed '/^.*\/\([^/][^/]*\)\/*$/{
25802 as_lineno_1=$LINENO
25803 as_lineno_2=$LINENO
25804 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
25805 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
25807 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25808 # uniformly replaced by the line number. The first 'sed' inserts a
25809 # line-number line after each line using $LINENO; the second 'sed'
25810 # does the real work. The second script uses 'N' to pair each
25811 # line-number line with the line containing $LINENO, and appends
25812 # trailing '-' during substitution so that $LINENO is not a special
25813 # case at line end.
25814 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25815 # scripts with optimization help from Paolo Bonzini. Blame Lee
25816 # E. McMahon (1931-1989) for sed's syntax. :-)
25828 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25831 ' >$as_me.lineno &&
25832 chmod +x "$as_me.lineno
" ||
25833 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
25834 { (exit 1); exit 1; }; }
25836 # Don't try to exec as it changes $[0], causing all sort of problems
25837 # (the dirname of $[0] is not the place where we might find the
25838 # original and so on. Autoconf is especially sensitive to this).
25839 . ".
/$as_me.lineno
"
25840 # Exit status is that of the last command.
25845 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
25851 ECHO_C= ECHO_N= ECHO_T=
25852 case `echo -n x` in
25854 case `echo 'x\c'` in
25855 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25861 if expr a : '\(a\)' >/dev/null 2>&1 &&
25862 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
25868 rm -f conf$$ conf$$.exe conf$$.file
25869 if test -d conf$$.dir; then
25870 rm -f conf$$.dir/conf$$.file
25873 mkdir conf$$.dir 2>/dev/null
25875 if (echo >conf$$.file) 2>/dev/null; then
25876 if ln -s conf$$.file conf$$ 2>/dev/null; then
25878 # ... but there are two gotchas:
25879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25881 # In both cases, we have to default to `cp -p'.
25882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25884 elif ln conf$$.file conf$$ 2>/dev/null; then
25892 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25893 rmdir conf$$.dir 2>/dev/null
25895 if mkdir -p . 2>/dev/null; then
25898 test -d ./-p && rmdir ./-p
25902 if test -x / >/dev/null 2>&1; then
25903 as_test_x='test -x'
25905 if ls -dL / >/dev/null 2>&1; then
25912 if test -d "$1"; then
25918 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25919 ???[sx]*):;;*)false;;esac;fi
25923 as_executable_p=$as_test_x
25925 # Sed expression to map a string onto a valid CPP name.
25926 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25928 # Sed expression to map a string onto a valid variable name.
25929 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25934 # Save the log message, to keep $[0] and so on meaningful, and to
25935 # report actual input values of CONFIG_FILES etc. instead of their
25936 # values after options handling.
25938 This
file was extended by emacs
$as_me 23.1.50, which was
25939 generated by GNU Autoconf
2.62. Invocation
command line was
25941 CONFIG_FILES
= $CONFIG_FILES
25942 CONFIG_HEADERS
= $CONFIG_HEADERS
25943 CONFIG_LINKS
= $CONFIG_LINKS
25944 CONFIG_COMMANDS
= $CONFIG_COMMANDS
25947 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
25952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25953 # Files that config.status was made for.
25954 config_files="$ac_config_files"
25955 config_headers="$ac_config_headers"
25956 config_commands="$ac_config_commands"
25960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25962 \
`$as_me' instantiates files from templates according to the
25963 current configuration.
25965 Usage: $0 [OPTIONS] [FILE]...
25967 -h, --help print this help, then exit
25968 -V, --version print version number and configuration settings, then exit
25969 -q, --quiet do not print progress messages
25970 -d, --debug don't remove temporary files
25971 --recheck update $as_me by reconfiguring in the same conditions
25972 --file=FILE[:TEMPLATE]
25973 instantiate the configuration file FILE
25974 --header=FILE[:TEMPLATE]
25975 instantiate the configuration header FILE
25977 Configuration files:
25980 Configuration headers:
25983 Configuration commands:
25986 Report bugs to <bug-autoconf@gnu.org>."
25989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25991 emacs config.status 23.1.50
25992 configured by $0, generated by GNU Autoconf 2.62,
25993 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25995 Copyright (C) 2008 Free Software Foundation, Inc.
25996 This config.status script is free software; the Free Software Foundation
25997 gives unlimited permission to copy, distribute and modify it."
26002 test -n "\$AWK" || AWK=awk
26005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26006 # The default lists apply if the user does not specify any file.
26012 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26013 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26024 # Handling of the options.
26025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26028 $as_echo "$ac_cs_version"; exit ;;
26029 --debug | --debu | --deb | --de | --d | -d )
26031 --file | --fil | --fi | --f )
26034 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26036 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26037 ac_need_defaults=false;;
26038 --header | --heade | --head | --hea )
26041 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26043 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26044 ac_need_defaults=false;;
26046 # Conflict between --help and --header
26047 { $as_echo "$as_me: error: ambiguous option: $1
26048 Try \`$0 --help' for more information." >&2
26049 { (exit 1); exit 1; }; };;
26050 --help | --hel | -h )
26051 $as_echo "$ac_cs_usage"; exit ;;
26052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26056 # This is an error.
26057 -*) { $as_echo "$as_me: error: unrecognized option: $1
26058 Try \`$0 --help' for more information.
" >&2
26059 { (exit 1); exit 1; }; } ;;
26061 *) ac_config_targets="$ac_config_targets $1"
26062 ac_need_defaults=false ;;
26068 ac_configure_extra_args=
26070 if $ac_cs_silent; then
26072 ac_configure_extra_args="$ac_configure_extra_args --silent"
26076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26077 if \$ac_cs_recheck; then
26078 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26080 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26081 CONFIG_SHELL='$SHELL'
26082 export CONFIG_SHELL
26087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26092 ## Running $as_me. ##
26098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26102 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26108 # Handling of arguments.
26109 for ac_config_target in $ac_config_targets
26111 case $ac_config_target in
26112 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26113 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26114 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26115 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26116 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26117 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26118 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26119 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26120 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26121 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26122 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26123 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26124 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26126 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26127 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26128 { (exit 1); exit 1; }; };;
26133 # If the user did not use the arguments to specify the items to instantiate,
26134 # then the envvar interface is used. Set only those that are not.
26135 # We use the long form for the default assignment because of an extremely
26136 # bizarre bug on SunOS 4.1.3.
26137 if $ac_need_defaults; then
26138 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26139 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26140 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26143 # Have a temporary directory for convenience. Make it in the build tree
26144 # simply because there is no reason against having it here, and in addition,
26145 # creating and moving files from /tmp can sometimes cause problems.
26146 # Hook for its removal unless debugging.
26147 # Note that there is a small window in which the directory will not be cleaned:
26148 # after its creation but before its name has been assigned to `$tmp'.
26152 trap 'exit_status=$?
26153 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26155 trap '{ (exit 1); exit 1; }' 1 2 13 15
26157 # Create a (secure) tmp directory for tmp files.
26160 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26161 test -n "$tmp" && test -d "$tmp"
26164 tmp=./conf$$-$RANDOM
26165 (umask 077 && mkdir "$tmp")
26168 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26169 { (exit 1); exit 1; }
26172 # Set up the scripts for CONFIG_FILES section.
26173 # No need to generate them if there are no CONFIG_FILES.
26174 # This happens for instance with `./config.status config.h'.
26175 if test -n "$CONFIG_FILES"; then
26179 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26180 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26183 ac_cs_awk_cr=$ac_cr
26186 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26191 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26192 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26194 } >conf$$subs.sh ||
26195 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26196 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26197 { (exit 1); exit 1; }; }
26198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26200 for ac_last_try in false false false false false :; do
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; }; }
26206 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26208 elif $ac_last_try; then
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 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26216 rm -f conf$$subs.sh
26218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26219 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26223 s/^/S["/; s
/!.
*/"]=/
26233 s/\(.\{148\}\).*/\1/
26235 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26240 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26247 s/\(.\{148\}\).*/\1/
26249 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26253 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26258 ' <conf$$subs.awk | sed '
26263 ' >>$CONFIG_STATUS || ac_write_fail=1
26264 rm -f conf$$subs.awk
26265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26267 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26268 for (key in S) S_is_set[key] = 1
26274 nfields = split(line, field, "@
")
26276 len = length(field[1])
26277 for (i = 2; i < nfields; i++) {
26279 keylen = length(key)
26280 if (S_is_set[key]) {
26282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26283 len += length(value) + length(field[++i])
26294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26295 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26296 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26299 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26300 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26301 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26302 { (exit 1); exit 1; }; }
26305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26307 # trailing colons and then remove the whole line if VPATH becomes empty
26308 # (actually we leave an empty line to preserve line numbers).
26309 if test "x
$srcdir" = x.; then
26310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26311 s/:*\$(srcdir):*/:/
26312 s/:*\${srcdir}:*/:/
26314 s/^\([^=]*=[ ]*\):*/\1/
26320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26321 fi # test -n "$CONFIG_FILES"
26323 # Set up the scripts for CONFIG_HEADERS section.
26324 # No need to generate them if there are no CONFIG_HEADERS.
26325 # This happens for instance with `./config.status Makefile'.
26326 if test -n "$CONFIG_HEADERS"; then
26327 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26331 # Transform confdefs.h into an awk script `defines.awk', embedded as
26332 # here-document in config.status, that substitutes the proper values into
26333 # config.h.in to produce config.h.
26335 # Create a delimiter string that does not exist in confdefs.h, to ease
26336 # handling of long lines.
26338 for ac_last_try in false false :; do
26339 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26340 if test -z "$ac_t"; then
26342 elif $ac_last_try; then
26343 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26344 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26345 { (exit 1); exit 1; }; }
26347 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26351 # For the awk script, D is an array of macro values keyed by name,
26352 # likewise P contains macro parameters if any. Preserve backslash
26353 # newline sequences.
26355 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26357 s/.\{148\}/&'"$ac_delim"'/g
26360 s/^[ ]*#[ ]*define[ ][ ]*/ /
26367 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26369 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26374 D["\
1"]=" \
3\\\\\\n
"\\/p
26376 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26381 s/.\{148\}/&'"$ac_delim"'/g
26386 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26389 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26391 ' <confdefs.h | sed '
26392 s/'"$ac_delim"'/"\\\
26393 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26396 for (key in D) D_is_set[key] = 1
26399 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26401 split(line, arg, " ")
26402 if (arg[1] == "#") {
26406 defundef
= substr
(arg
[1], 2)
26409 split(mac1
, mac2
, "(") #)
26411 if (D_is_set
[macro
]) {
26412 # Preserve the white space surrounding the "#".
26413 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26414 print prefix
"define", macro P
[macro
] D
[macro
]
26417 # Replace #undef with comments. This is necessary, for example,
26418 # in the case of _POSIX_SOURCE, which is predefined and required
26419 # on some systems where configure will not decide to define it.
26420 if (defundef
== "undef") {
26421 print
"/*", line
, "*/"
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26430 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26431 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26432 { (exit 1); exit 1; }; }
26433 fi # test -n "$CONFIG_HEADERS"
26436 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26441 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26443 case $ac_mode$ac_tag in
26445 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26446 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26447 { (exit 1); exit 1; }; };;
26448 :[FH
]-) ac_tag
=-:-;;
26449 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26466 -) ac_f
="$tmp/stdin";;
26467 *) # Look for the file first in the build tree, then in the source tree
26468 # (if the path is not absolute). The absolute path cannot be DOS-style,
26469 # because $ac_f cannot contain `:'.
26473 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26475 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26476 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26477 { (exit 1); exit 1; }; };;
26479 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26480 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26483 # Let's still pretend it is `configure' which instantiates (i.e., don't
26484 # use $as_me), people would be surprised to read:
26485 # /* config.h. Generated by config.status. */
26486 configure_input
='Generated from '`
26487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26489 if test x
"$ac_file" != x-
; then
26490 configure_input
="$ac_file. $configure_input"
26491 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26492 $as_echo "$as_me: creating $ac_file" >&6;}
26494 # Neutralize special characters interpreted by sed in replacement strings.
26495 case $configure_input in #(
26496 *\
&* |
*\|
* |
*\\* )
26497 ac_sed_conf_input
=`$as_echo "$configure_input" |
26498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26499 *) ac_sed_conf_input
=$configure_input;;
26503 *:-:* |
*:-) cat >"$tmp/stdin" \
26504 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26505 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26506 { (exit 1); exit 1; }; } ;;
26511 ac_dir
=`$as_dirname -- "$ac_file" ||
26512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26513 X"$ac_file" : 'X\(//\)[^/]' \| \
26514 X"$ac_file" : 'X\(//\)$' \| \
26515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26516 $as_echo X"$ac_file" |
26517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26521 /^X\(\/\/\)[^/].*/{
26536 -*) as_dir
=.
/$as_dir;;
26538 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26542 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26543 *) as_qdir
=$as_dir;;
26545 as_dirs
="'$as_qdir' $as_dirs"
26546 as_dir
=`$as_dirname -- "$as_dir" ||
26547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26548 X"$as_dir" : 'X\(//\)[^/]' \| \
26549 X"$as_dir" : 'X\(//\)$' \| \
26550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26551 $as_echo X"$as_dir" |
26552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26556 /^X\(\/\/\)[^/].*/{
26569 test -d "$as_dir" && break
26571 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26572 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26573 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26574 { (exit 1); exit 1; }; }; }
26578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26581 # A ".." for each directory in $ac_dir_suffix.
26582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26583 case $ac_top_builddir_sub in
26584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26588 ac_abs_top_builddir
=$ac_pwd
26589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26590 # for backward compatibility:
26591 ac_top_builddir
=$ac_top_build_prefix
26594 .
) # We are building in place.
26596 ac_top_srcdir
=$ac_top_builddir_sub
26597 ac_abs_top_srcdir
=$ac_pwd ;;
26598 [\\/]* | ?
:[\\/]* ) # Absolute name.
26599 ac_srcdir
=$srcdir$ac_dir_suffix;
26600 ac_top_srcdir
=$srcdir
26601 ac_abs_top_srcdir
=$srcdir ;;
26602 *) # Relative name.
26603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26617 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26618 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26623 # If the template does not know about datarootdir, expand it.
26624 # FIXME: This hack should be removed a few years after 2.60.
26625 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26638 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26639 *datarootdir
*) ac_datarootdir_seen
=yes;;
26640 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26641 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26642 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26645 ac_datarootdir_hack='
26646 s&@datadir@&$datadir&g
26647 s&@docdir@&$docdir&g
26648 s&@infodir@&$infodir&g
26649 s&@localedir@&$localedir&g
26650 s&@mandir@&$mandir&g
26651 s&\\\${datarootdir}&$datarootdir&g' ;;
26655 # Neutralize VPATH when `$srcdir' = `.'.
26656 # Shell code in configure.ac might set extrasub.
26657 # FIXME: do we really want to maintain this feature?
26658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26659 ac_sed_extra="$ac_vpsub
26662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26664 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26665 s|@configure_input@|
$ac_sed_conf_input|
;t t
26666 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26667 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26668 s
&@srcdir@
&$ac_srcdir&;t t
26669 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26670 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26671 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26672 s
&@builddir@
&$ac_builddir&;t t
26673 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26674 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26675 s
&@INSTALL@
&$ac_INSTALL&;t t
26676 $ac_datarootdir_hack
26678 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26679 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26680 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26681 { (exit 1); exit 1; }; }
26683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26684 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26686 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26687 which seems to be undefined. Please make sure it is defined." >&5
26688 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26689 which seems to be undefined. Please make sure it is defined." >&2;}
26693 -) cat "$tmp/out" && rm -f "$tmp/out";;
26694 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26697 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26698 { (exit 1); exit 1; }; }
26704 if test x"$ac_file" != x-; then
26706 $as_echo "/* $configure_input */" \
26707 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26708 } >"$tmp/config.h" \
26709 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26710 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26711 { (exit 1); exit 1; }; }
26712 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26713 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26714 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26717 mv "$tmp/config.h" "$ac_file" \
26718 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26719 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26720 { (exit 1); exit 1; }; }
26723 $as_echo "/* $configure_input */" \
26724 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26725 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26726 $as_echo "$as_me: error: could not create -" >&2;}
26727 { (exit 1); exit 1; }; }
26731 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26732 $as_echo "$as_me: executing $ac_file commands" >&6;}
26737 case $ac_file$ac_mode in
26740 ### Make the necessary directories, if they don't exist.
26741 for dir
in etc lisp
; do
26742 test -d ${dir} || mkdir
${dir}
26745 # Build src/Makefile from ${srcdir}/src/Makefile.c
26746 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26747 # This must be done after src/config.h is built, since we rely on that file.
26749 echo creating src
/epaths.h
26750 ${MAKE-make} epaths-force
26752 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26753 # `..' to `. .' unless invoked with -traditional
26755 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26756 CPPFLAGS
="$CPPFLAGS -traditional"
26759 echo creating lib-src
/Makefile
26761 rm -f junk.c junk1.c junk2.c
26762 sed -e '/start of cpp stuff/q' \
26763 < Makefile.c
> junk1.c
26764 sed -e '1,/start of cpp stuff/d'\
26765 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26766 < Makefile.c
> junk.c
26767 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26768 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26769 cat junk1.c junk2.c
> Makefile.new
26770 rm -f junk.c junk1.c junk2.c
26771 chmod 444 Makefile.new
26772 mv -f Makefile.new Makefile
26775 echo creating src
/Makefile
26777 rm -f junk.c junk1.c junk2.c
26778 sed -e '/start of cpp stuff/q' \
26779 < Makefile.c
> junk1.c
26780 sed -e '1,/start of cpp stuff/d'\
26781 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26782 < Makefile.c
> junk.c
26783 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26784 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26785 cat junk1.c junk2.c
> Makefile.new
26786 rm -f junk.c junk1.c junk2.c
26787 chmod 444 Makefile.new
26788 mv -f Makefile.new Makefile
26791 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26792 echo creating src
/.gdbinit
26793 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26802 { (exit 0); exit 0; }
26804 chmod +x
$CONFIG_STATUS
26805 ac_clean_files
=$ac_clean_files_save
26807 test $ac_write_fail = 0 ||
26808 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26809 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26810 { (exit 1); exit 1; }; }
26813 # configure is writing to config.log, and then calls config.status.
26814 # config.status does its own redirection, appending to config.log.
26815 # Unfortunately, on DOS this fails, as config.log is still kept open
26816 # by configure, so config.status won't be able to write to it; its
26817 # output is simply discarded. So we exec the FD to /dev/null,
26818 # effectively closing config.log, so it can be properly (re)opened and
26819 # appended to by config.status. When coming back to configure, we
26820 # need to make the FD available again.
26821 if test "$no_create" != yes; then
26823 ac_config_status_args
=
26824 test "$silent" = yes &&
26825 ac_config_status_args
="$ac_config_status_args --quiet"
26827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26830 # would make configure fail if this is the last instruction.
26831 $ac_cs_success ||
{ (exit 1); exit 1; }
26833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26834 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26835 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}