2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.0.92.
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.0.92'
598 PACKAGE_STRING
='emacs 23.0.92'
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
770 enable_option_checking
788 with_toolkit_scroll_bars
799 enable_ns_self_contained
801 enable_maintainer_mode
806 ac_precious_vars
='build_alias
818 # Initialize some variables set by options.
820 ac_init_version
=false
821 ac_unrecognized_opts
=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
832 program_transform_name
=s
,x
,x
,
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir
='${exec_prefix}/bin'
847 sbindir
='${exec_prefix}/sbin'
848 libexecdir
='${exec_prefix}/libexec'
849 datarootdir
='${prefix}/share'
850 datadir
='${datarootdir}'
851 sysconfdir
='${prefix}/etc'
852 sharedstatedir
='${prefix}/com'
853 localstatedir
='${prefix}/var'
854 includedir
='${prefix}/include'
855 oldincludedir
='/usr/include'
856 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir
='${datarootdir}/info'
862 libdir
='${exec_prefix}/lib'
863 localedir
='${datarootdir}/locale'
864 mandir
='${datarootdir}/man'
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\
$ac_option
878 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 # Accept the important Cygnus configure options, so we can diagnose typos.
884 case $ac_dashdash$ac_option in
888 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
890 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
893 -build |
--build |
--buil |
--bui |
--bu)
894 ac_prev
=build_alias
;;
895 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
896 build_alias
=$ac_optarg ;;
898 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
899 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
900 ac_prev
=cache_file
;;
901 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
902 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
903 cache_file
=$ac_optarg ;;
906 cache_file
=config.cache
;;
908 -datadir |
--datadir |
--datadi |
--datad)
910 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
911 datadir
=$ac_optarg ;;
913 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
914 |
--dataroo |
--dataro |
--datar)
915 ac_prev
=datarootdir
;;
916 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
917 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
918 datarootdir
=$ac_optarg ;;
920 -disable-* |
--disable-*)
921 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
924 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925 { (exit 1); exit 1; }; }
926 ac_useropt_orig
=$ac_useropt
927 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep
=', ';;
935 eval enable_
$ac_useropt=no
;;
937 -docdir |
--docdir |
--docdi |
--doc |
--do)
939 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
942 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
944 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
947 -enable-* |
--enable-*)
948 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
951 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952 { (exit 1); exit 1; }; }
953 ac_useropt_orig
=$ac_useropt
954 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
959 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep
=', ';;
962 eval enable_
$ac_useropt=\
$ac_optarg ;;
964 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
965 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
966 |
--exec |
--exe |
--ex)
967 ac_prev
=exec_prefix
;;
968 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
969 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
970 |
--exec=* |
--exe=* |
--ex=*)
971 exec_prefix
=$ac_optarg ;;
973 -gas |
--gas |
--ga |
--g)
974 # Obsolete; use --with-gas.
977 -help |
--help |
--hel |
--he |
-h)
979 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
980 ac_init_help
=recursive
;;
981 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
982 ac_init_help
=short
;;
984 -host |
--host |
--hos |
--ho)
985 ac_prev
=host_alias
;;
986 -host=* |
--host=* |
--hos=* |
--ho=*)
987 host_alias
=$ac_optarg ;;
989 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
991 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
993 htmldir
=$ac_optarg ;;
995 -includedir |
--includedir |
--includedi |
--included |
--include \
996 |
--includ |
--inclu |
--incl |
--inc)
997 ac_prev
=includedir
;;
998 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
999 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1000 includedir
=$ac_optarg ;;
1002 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1004 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1005 infodir
=$ac_optarg ;;
1007 -libdir |
--libdir |
--libdi |
--libd)
1009 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1010 libdir
=$ac_optarg ;;
1012 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1013 |
--libexe |
--libex |
--libe)
1014 ac_prev
=libexecdir
;;
1015 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1016 |
--libexe=* |
--libex=* |
--libe=*)
1017 libexecdir
=$ac_optarg ;;
1019 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1020 ac_prev
=localedir
;;
1021 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1022 localedir
=$ac_optarg ;;
1024 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1025 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1026 ac_prev
=localstatedir
;;
1027 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1028 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1029 localstatedir
=$ac_optarg ;;
1031 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1033 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1034 mandir
=$ac_optarg ;;
1036 -nfp |
--nfp |
--nf)
1037 # Obsolete; use --without-fp.
1040 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1041 |
--no-cr |
--no-c |
-n)
1044 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1045 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1048 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1049 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1050 |
--oldin |
--oldi |
--old |
--ol |
--o)
1051 ac_prev
=oldincludedir
;;
1052 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1053 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1054 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1055 oldincludedir
=$ac_optarg ;;
1057 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1059 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1060 prefix
=$ac_optarg ;;
1062 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1063 |
--program-pre |
--program-pr |
--program-p)
1064 ac_prev
=program_prefix
;;
1065 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1066 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1067 program_prefix
=$ac_optarg ;;
1069 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1070 |
--program-suf |
--program-su |
--program-s)
1071 ac_prev
=program_suffix
;;
1072 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1073 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1074 program_suffix
=$ac_optarg ;;
1076 -program-transform-name |
--program-transform-name \
1077 |
--program-transform-nam |
--program-transform-na \
1078 |
--program-transform-n |
--program-transform- \
1079 |
--program-transform |
--program-transfor \
1080 |
--program-transfo |
--program-transf \
1081 |
--program-trans |
--program-tran \
1082 |
--progr-tra |
--program-tr |
--program-t)
1083 ac_prev
=program_transform_name
;;
1084 -program-transform-name=* |
--program-transform-name=* \
1085 |
--program-transform-nam=* |
--program-transform-na=* \
1086 |
--program-transform-n=* |
--program-transform-=* \
1087 |
--program-transform=* |
--program-transfor=* \
1088 |
--program-transfo=* |
--program-transf=* \
1089 |
--program-trans=* |
--program-tran=* \
1090 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1091 program_transform_name
=$ac_optarg ;;
1093 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1095 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1096 pdfdir
=$ac_optarg ;;
1098 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1100 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1103 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1104 |
-silent |
--silent |
--silen |
--sile |
--sil)
1107 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1109 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1111 sbindir
=$ac_optarg ;;
1113 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1114 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1115 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1117 ac_prev
=sharedstatedir
;;
1118 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1119 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1120 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1122 sharedstatedir
=$ac_optarg ;;
1124 -site |
--site |
--sit)
1126 -site=* |
--site=* |
--sit=*)
1129 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1131 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1132 srcdir
=$ac_optarg ;;
1134 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1135 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1136 ac_prev
=sysconfdir
;;
1137 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1138 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1139 sysconfdir
=$ac_optarg ;;
1141 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1142 ac_prev
=target_alias
;;
1143 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1144 target_alias
=$ac_optarg ;;
1146 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1149 -version |
--version |
--versio |
--versi |
--vers |
-V)
1150 ac_init_version
=: ;;
1153 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1156 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=\
$ac_optarg ;;
1169 -without-* |
--without-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig
=$ac_useropt
1176 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep
=', ';;
1184 eval with_
$ac_useropt=no
;;
1187 # Obsolete; use --with-x.
1190 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1191 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1192 ac_prev
=x_includes
;;
1193 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1194 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1195 x_includes
=$ac_optarg ;;
1197 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1198 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1199 ac_prev
=x_libraries
;;
1200 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1201 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1202 x_libraries
=$ac_optarg ;;
1204 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205 Try \`$0 --help' for more information." >&2
1206 { (exit 1); exit 1; }; }
1210 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1213 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214 { (exit 1); exit 1; }; }
1215 eval $ac_envvar=\
$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229 if test -n "$ac_prev"; then
1230 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1231 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232 { (exit 1); exit 1; }; }
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1238 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1239 { (exit 1); exit 1; }; } ;;
1240 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val
=\$
$ac_var
1251 # Remove trailing slashes.
1254 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\
$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$
]* | ?
:[\\/]* ) continue;;
1260 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1262 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263 { (exit 1); exit 1; }; }
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1271 target
=$target_alias
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x
; then
1275 if test "x$build_alias" = x
; then
1276 cross_compiling
=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1285 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1287 test "$silent" = yes && exec 6>/dev
/null
1290 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di
=`ls -di .` &&
1292 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1293 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1294 { (exit 1); exit 1; }; }
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297 { (exit 1); exit 1; }; }
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted
=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir
=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted
=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1336 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337 { (exit 1); exit 1; }; }
1339 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342 { (exit 1); exit 1; }; }
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1352 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 for ac_var
in $ac_precious_vars; do
1355 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1357 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1368 \`configure' configures emacs 23.0.92 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1431 --x-includes=DIR X include files are
in DIR
1432 --x-libraries=DIR X library files are
in DIR
1435 --build=BUILD configure
for building on BUILD
[guessed
]
1436 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive
) echo "Configuration of emacs 23.0.92:";;
1447 --disable-option-checking ignore unrecognized
--enable/--with options
1448 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1449 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1450 --disable-ns-self-contained
1451 disable self contained build under NeXTstep
1452 --enable-asserts compile code with asserts enabled
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful
(and
1455 sometimes confusing
) to the casual installer
1456 --enable-locallisppath=PATH
1457 directories Emacs should search
for lisp files
1458 specific to this site
1459 --disable-largefile omit support
for large files
1462 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1463 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1464 --without-pop don
't support POP mail retrieval with movemail
1465 --with-kerberos support Kerberos-authenticated POP
1466 --with-kerberos5 support Kerberos version 5 authenticated POP
1467 --with-hesiod support Hesiod to get the POP server host
1468 --without-sound don't compile with sound support
1469 --without-sync-input process async input synchronously
1470 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1472 --without-xpm don
't compile with XPM image support
1473 --without-jpeg don't compile with JPEG image support
1474 --without-tiff don
't compile with TIFF image support
1475 --without-gif don't compile with GIF image support
1476 --without-png don
't compile with PNG image support
1477 --without-rsvg don't compile with SVG image support
1478 --without-freetype don
't use Freetype for local font support
1479 --without-xft don't use XFT
for anti aliased fonts
1480 --without-libotf don
't use libotf for OpenType font support
1481 --without-m17n-flt don't use m17n-flt
for text shaping
1482 --without-toolkit-scroll-bars
1483 don
't use Motif or Xaw3d scroll bars
1484 --without-xaw3d don't use Xaw3d
1485 --without-xim don
't use X11 XIM
1486 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1487 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1489 --without-dbus don
't compile with D-Bus support
1490 --without-makeinfo don't require makeinfo
for building manuals
1492 --with-pkg-config-prog=PATH
1493 path to pkg-config
for finding GTK and librsvg
1494 --with-gnustep-conf=PATH
1495 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1496 or
/etc
/GNUstep
/GNUstep.conf
1497 --with-x use the X Window System
1499 Some influential environment variables
:
1500 CC C compiler
command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1503 nonstandard directory
<lib dir
>
1504 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1505 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1506 you have headers
in a nonstandard directory
<include dir
>
1508 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1510 Use these variables to override the choices made by
`configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1542 .) # We are building in place.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1575 emacs configure 23.0.92
1576 generated by GNU Autoconf 2.62
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1589 It was created by emacs $as_me 23.0.92, which was
1590 generated by GNU Autoconf 2.62. Invocation command line was
1602 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1603 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1604 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1605 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1606 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1608 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1609 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1611 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1612 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1613 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1614 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1615 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1616 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1617 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 $as_echo "PATH: $as_dir"
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1650 ac_must_keep_next=false
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1661 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 -* ) ac_must_keep_next=true ;;
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1706 # The following way of writing the cache mishandles newlines in values,
1708 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1709 eval ac_val=\$$ac_var
1713 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 _ | IFS | as_nl) ;; #(
1718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 $as_echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 $as_echo "$as_me: caught signal $ac_signal"
1784 $as_echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer an explicitly selected file to automatically selected ones.
1829 if test -n "$CONFIG_SITE"; then
1830 ac_site_file1=$CONFIG_SITE
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1840 test "x$ac_site_file" = xNONE && continue
1841 if test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1861 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
1866 ac_header_list="$ac_header_list sys/time.h"
1867 ac_header_list="$ac_header_list unistd.h"
1868 ac_func_list="$ac_func_list alarm"
1869 # Check that the precious variables saved in the cache have kept the same
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1879 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1880 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1884 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 # differences in whitespace do not lead to failure.
1890 ac_old_val_w=`echo x
$ac_old_val`
1891 ac_new_val_w=`echo x
$ac_new_val`
1892 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1893 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1895 ac_cache_corrupted=:
1897 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1899 eval $ac_var=\$ac_old_val
1901 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1902 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1903 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1904 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1910 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1919 if $ac_cache_corrupted; then
1920 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1921 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1922 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1924 { (exit 1); exit 1; }; }
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1962 test "$program_prefix" != NONE &&
1963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1964 # Use a double $ so make ignores it.
1965 test "$program_suffix" != NONE &&
1966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1967 # Double any \ or $.
1968 # By default was `s
,x
,x
', remove it if useless.
1969 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
1970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1973 lispdir='${datadir}/emacs
/${version}/lisp
'
1974 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1975 '${datadir}/emacs
/site-lisp
'
1976 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1977 etcdir='${datadir}/emacs
/${version}/etc
'
1978 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1979 docdir='${datadir}/emacs
/${version}/etc
'
1980 gamedir='${localstatedir}/games
/emacs
'
1987 # Check whether --with-pop was given.
1988 if test "${with_pop+set}" = set; then
1994 if test "$with_pop" = yes; then
1995 cat >>confdefs.h <<\_ACEOF
1996 #define MAIL_USE_POP 1
2003 # Check whether --with-kerberos was given.
2004 if test "${with_kerberos+set}" = set; then
2005 withval=$with_kerberos;
2010 if test "$with_kerberos" != no; then
2011 cat >>confdefs.h <<\_ACEOF
2019 # Check whether --with-kerberos5 was given.
2020 if test "${with_kerberos5+set}" = set; then
2021 withval=$with_kerberos5;
2026 if test "${with_kerberos5}" != no; then
2027 if test "${with_kerberos}" = no; then
2029 cat >>confdefs.h <<\_ACEOF
2035 cat >>confdefs.h <<\_ACEOF
2042 # Check whether --with-hesiod was given.
2043 if test "${with_hesiod+set}" = set; then
2044 withval=$with_hesiod;
2049 if test "$with_hesiod" != no; then
2051 cat >>confdefs.h <<\_ACEOF
2058 # Check whether --with-sound was given.
2059 if test "${with_sound+set}" = set; then
2060 withval=$with_sound;
2067 # Check whether --with-sync-input was given.
2068 if test "${with_sync_input+set}" = set; then
2069 withval=$with_sync_input;
2074 if test "$with_sync_input" = yes; then
2076 cat >>confdefs.h <<\_ACEOF
2077 #define SYNC_INPUT 1
2083 # Check whether --with-x-toolkit was given.
2084 if test "${with_x_toolkit+set}" = set; then
2085 withval=$with_x_toolkit; case "${withval}" in
2086 y | ye | yes ) val=gtk ;;
2088 l | lu | luc | luci | lucid ) val=lucid ;;
2089 a | at | ath | athe | athen | athena ) val=athena ;;
2090 m | mo | mot | moti | motif ) val=motif ;;
2091 g | gt | gtk ) val=gtk ;;
2093 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2094 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2095 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2096 $as_echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
2097 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2098 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
2099 { (exit 1); exit 1; }; }
2108 # Check whether --with-xpm was given.
2109 if test "${with_xpm+set}" = set; then
2116 # Check whether --with-jpeg was given.
2117 if test "${with_jpeg+set}" = set; then
2124 # Check whether --with-tiff was given.
2125 if test "${with_tiff+set}" = set; then
2132 # Check whether --with-gif was given.
2133 if test "${with_gif+set}" = set; then
2140 # Check whether --with-png was given.
2141 if test "${with_png+set}" = set; then
2148 # Check whether --with-rsvg was given.
2149 if test "${with_rsvg+set}" = set; then
2157 # Check whether --with-freetype was given.
2158 if test "${with_freetype+set}" = set; then
2159 withval=$with_freetype;
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 #### Make srcdir absolute, if it isn't already. It's important to
2336 #### avoid running the path through pwd unnecessarily, since pwd can
2337 #### give you automounter prefixes, which can go away. We do all this
2338 #### so Emacs can find its files when run uninstalled.
2339 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2344 ## We may be able to use the $PWD environment variable to make this
2345 ## absolute. But sometimes PWD is inaccurate.
2346 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2347 ## but that tested only for a well-formed and valid PWD,
2348 ## it did not object when PWD was well-formed and valid but just wrong.
2349 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2353 srcdir
="`(cd ${srcdir}; pwd)`"
2356 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2359 #### Check if the source directory already has a configured system in it.
2360 if test `pwd` != `(cd ${srcdir} && pwd)` \
2361 && test -f "${srcdir}/src/config.h" ; then
2362 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2363 as a build directory right now; it has been configured in its own
2364 right. To configure in another directory as well, you MUST
2365 use GNU make. If you do not have GNU make, then you must
2366 now do \`make distclean' in ${srcdir},
2367 and then run $0 again." >&5
2368 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2369 as a build directory right now; it has been configured in its own
2370 right. To configure in another directory as well, you MUST
2371 use GNU make. If you do not have GNU make, then you must
2372 now do \`make distclean' in ${srcdir},
2373 and then run $0 again." >&2;}
2376 #### Given the configuration name, set machfile and opsysfile to the
2377 #### names of the m/*.h and s/*.h files we should use.
2379 ### Canonicalize the configuration name.
2382 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383 if test -f "$ac_dir/install-sh"; then
2385 ac_install_sh
="$ac_aux_dir/install-sh -c"
2387 elif test -f "$ac_dir/install.sh"; then
2389 ac_install_sh
="$ac_aux_dir/install.sh -c"
2391 elif test -f "$ac_dir/shtool"; then
2393 ac_install_sh
="$ac_aux_dir/shtool install -c"
2397 if test -z "$ac_aux_dir"; then
2398 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2399 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2400 { (exit 1); exit 1; }; }
2403 # These three variables are undocumented and unsupported,
2404 # and are intended to be withdrawn in a future Autoconf release.
2405 # They can cause serious problems if a builder's source tree is in a directory
2406 # whose full name contains unusual characters.
2407 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2408 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2409 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412 # Make sure we can run config.sub.
2413 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2414 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2415 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2416 { (exit 1); exit 1; }; }
2418 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2419 $as_echo_n "checking build system type... " >&6; }
2420 if test "${ac_cv_build+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2423 ac_build_alias
=$build_alias
2424 test "x$ac_build_alias" = x
&&
2425 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2426 test "x$ac_build_alias" = x
&&
2427 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2428 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2429 { (exit 1); exit 1; }; }
2430 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2433 { (exit 1); exit 1; }; }
2436 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2437 $as_echo "$ac_cv_build" >&6; }
2438 case $ac_cv_build in
2440 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2441 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2442 { (exit 1); exit 1; }; };;
2445 ac_save_IFS
=$IFS; IFS
='-'
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2455 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2459 $as_echo_n "checking host system type... " >&6; }
2460 if test "${ac_cv_host+set}" = set; then
2461 $as_echo_n "(cached) " >&6
2463 if test "x$host_alias" = x
; then
2464 ac_cv_host
=$ac_cv_build
2466 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2468 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2469 { (exit 1); exit 1; }; }
2473 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2474 $as_echo "$ac_cv_host" >&6; }
2477 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2478 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2479 { (exit 1); exit 1; }; };;
2482 ac_save_IFS
=$IFS; IFS
='-'
2488 # Remember, the first character of IFS is used to create $*,
2489 # except with old shells:
2492 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496 configuration
=${host_alias-${build_alias-$host}}
2500 ### If you add support for a new configuration, add code to this
2501 ### switch statement to recognize your configuration name and select
2502 ### the appropriate operating system and machine description files.
2504 ### You would hope that you could choose an m/*.h file pretty much
2505 ### based on the machine portion of the configuration name, and an s-
2506 ### file based on the operating system portion. However, it turns out
2507 ### that each m/*.h file is pretty manufacturer-specific - for
2508 ### example mips.h is MIPS
2509 ### So we basically have to have a special case for each
2510 ### configuration name.
2512 ### As far as handling version numbers on operating systems is
2513 ### concerned, make sure things will fail in a fixable way. If
2514 ### /etc/MACHINES doesn't say anything about version numbers, be
2515 ### prepared to handle anything reasonably. If version numbers
2516 ### matter, be sure /etc/MACHINES says something about it.
2518 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2519 ### "System V Release 4"; he writes, "The old convention encouraged
2520 ### confusion between `system' and `release' levels'."
2522 machine
='' opsys
='' unported
=no
2523 case "${canonical}" in
2528 case "${canonical}" in
2529 alpha
*-*-freebsd*) machine
=alpha
;;
2530 arm
*-*-freebsd*) machine
=arm
;;
2531 ia64-
*-freebsd*) machine
=ia64
;;
2532 sparc-
*-freebsd*) machine
=sparc
;;
2533 sparc64-
*-freebsd*) machine
=sparc
;;
2534 powerpc-
*-freebsd*) machine
=macppc
;;
2535 i
[3456]86-*-freebsd*) machine
=intel386
;;
2536 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2540 ## FreeBSD kernel + glibc based userland
2543 case "${canonical}" in
2544 alpha
*-*-kfreebsd*) machine
=alpha
;;
2545 ia64-
*-kfreebsd*) machine
=ia64
;;
2546 sparc-
*-kfreebsd*) machine
=sparc
;;
2547 sparc64-
*-kfreebsd*) machine
=sparc
;;
2548 powerpc-
*-kfreebsd*) machine
=macppc
;;
2549 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2550 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2557 if test -f /usr
/lib
/crti.o
; then
2559 cat >>confdefs.h
<<\_ACEOF
2560 #define HAVE_CRTIN /**/
2565 case "${canonical}" in
2566 alpha
*-*-netbsd*) machine
=alpha
;;
2567 i
[3456]86-*-netbsd*) machine
=intel386
;;
2568 powerpc-
*-netbsd*) machine
=macppc
;;
2569 sparc
*-*-netbsd*) machine
=sparc
;;
2570 vax-
*-netbsd*) machine
=vax
;;
2571 arm-
*-netbsd*) machine
=arm
;;
2572 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2573 hppa-
*-netbsd*) machine
=hp800
;;
2574 m68k-
*-netbsd*) machine
=m68k
;;
2581 case "${canonical}" in
2582 alpha
*-*-openbsd*) machine
=alpha
;;
2583 arm-
*-openbsd*) machine
=arm
;;
2584 i386-
*-openbsd*) machine
=intel386
;;
2585 powerpc-
*-openbsd*) machine
=macppc
;;
2586 sparc
*-*-openbsd*) machine
=sparc
;;
2587 vax-
*-openbsd*) machine
=vax
;;
2588 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2589 hppa-
*-openbsd*) machine
=hp800
;;
2596 case "${canonical}" in
2597 i
[3456]86-*-lynxos*) machine
=intel386
;;
2598 powerpc-
*-lynxos*) machine
=powerpc
;;
2602 alpha
*-*-linux-gnu* )
2603 machine
=alpha opsys
=gnu-linux
2607 machine
=arm opsys
=gnu-linux
2610 ## Apple Darwin / Mac OS X
2612 case "${canonical}" in
2613 i
[3456]86-* ) machine
=intel386
;;
2614 powerpc-
* ) machine
=macppc
;;
2618 # Define CPP as follows to make autoconf work correctly.
2619 CPP
="${CC-cc} -E -no-cpp-precomp"
2620 # Use fink packages if available.
2621 if test -d /sw
/include
&& test -d /sw
/lib
; then
2622 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2623 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2624 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2628 ## HP 9000 series 700 and 800, running HP/UX
2629 hppa
*-hp-hpux10.2
* )
2630 machine
=hp800 opsys
=hpux10-20
2632 hppa
*-hp-hpux1[1-9]* )
2633 machine
=hp800 opsys
=hpux11
2634 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2637 hppa
*-*-linux-gnu* )
2638 machine
=hp800 opsys
=gnu-linux
2643 machine
=ibms390 opsys
=gnu-linux
2645 s390x-
*-linux-gnu* )
2646 machine
=ibms390x opsys
=gnu-linux
2648 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2649 machine
=ibmrs6000 opsys
=aix4-2
2651 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2652 machine
=ibmrs6000 opsys
=aix4-2
2654 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2655 machine
=ibmrs6000 opsys
=aix4-2
2657 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2658 machine
=ibmrs6000 opsys
=aix4-2
2661 ## Macintosh PowerPC
2662 powerpc
*-*-linux-gnu* )
2663 machine
=macppc opsys
=gnu-linux
2666 ## Silicon Graphics machines
2669 machine
=iris4d opsys
=irix6-5
2670 # Without defining _LANGUAGE_C, things get masked out in the headers
2671 # so that, for instance, grepping for `free' in stdlib.h fails and
2672 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2673 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2674 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2678 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2679 machine
=sparc opsys
=gnu-linux
2683 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2684 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2685 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2686 case "${canonical}" in
2687 i
[3456]86-*-* ) machine
=intel386
;;
2688 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2689 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2690 sparc
* ) machine
=sparc
;;
2693 case "${canonical}" in
2694 *-sunos5.3
* |
*-solaris2.3
* )
2696 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2698 *-sunos5.4
* |
*-solaris2.4
* )
2700 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2703 *-sunos5.5
* |
*-solaris2.5
* )
2705 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2708 *-sunos5.6
* |
*-solaris2.6
* )
2710 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2713 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2715 emacs_check_sunpro_c
=yes
2716 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2718 *-sunos5* |
*-solaris* )
2720 emacs_check_sunpro_c
=yes
2721 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2724 ## Watch out for a compiler that we know will not work.
2725 case "${canonical}" in
2726 *-solaris* |
*-sunos5* )
2727 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2728 ## /usr/ucb/cc doesn't work;
2729 ## we should find some other compiler that does work.
2740 case "${canonical}" in
2741 *-vms* ) opsys
=vms
;;
2748 machine
=ia64 opsys
=gnu-linux
2751 ## Intel 386 machines where we don't care about the manufacturer
2754 case "${canonical}" in
2755 *-cygwin ) opsys
=cygwin
;;
2756 *-darwin* ) opsys
=darwin
2757 CPP
="${CC-cc} -E -no-cpp-precomp"
2759 *-linux-gnu* ) opsys
=gnu-linux
;;
2760 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2761 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2762 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2763 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2767 ## m68k Linux-based GNU system
2769 machine
=m68k opsys
=gnu-linux
2772 ## Mips Linux-based GNU system
2773 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2774 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2775 machine
=mips opsys
=gnu-linux
2778 ## AMD x86-64 Linux-based GNU system
2779 x86_64-
*-linux-gnu* )
2780 machine
=amdx86-64 opsys
=gnu-linux
2783 ## Tensilica Xtensa Linux-based GNU system
2784 xtensa
*-*-linux-gnu* )
2785 machine
=xtensa opsys
=gnu-linux
2788 ## SuperH Linux-based GNU system
2789 sh
[34]*-*-linux-gnu* )
2790 machine
=sh3 opsys
=gnu-linux
2798 ### If the code above didn't choose an operating system, just choose
2799 ### an operating system based on the configuration name. You really
2800 ### only want to use this when you have no idea what the right
2801 ### operating system is; if you know what operating systems a machine
2802 ### runs, it's cleaner to make it explicit in the case statement
2804 if test x
"${opsys}" = x
; then
2805 case "${canonical}" in
2806 *-gnu* ) opsys
=gnu
;;
2807 *-sysv4.2uw
* ) opsys
=unixware
;;
2808 *-sysv5uw* ) opsys
=unixware
;;
2809 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2810 *-sysv4.1
* |
*-sysvr4.1
* )
2811 NON_GNU_CPP
=/usr
/lib
/cpp
2813 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2814 if [ x
$NON_GNU_CPP = x
]; then
2815 if [ -f /usr
/ccs
/lib
/cpp
]; then
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 NON_GNU_CPP
=/lib
/cpp
2822 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2831 if test $unported = yes; then
2832 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2833 Check \`etc/MACHINES' for recognized configuration names." >&5
2834 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2835 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2836 { (exit 1); exit 1; }; }
2839 machfile
="m/${machine}.h"
2840 opsysfile
="s/${opsys}.h"
2843 #### Choose a compiler.
2844 test -n "$CC" && cc_specified
=yes
2846 # Save the value of CFLAGS that the user specified.
2847 SPECIFIED_CFLAGS
="$CFLAGS"
2850 ac_cpp
='$CPP $CPPFLAGS'
2851 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC
="$CC" # Let the user override the test.
2865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir
=.
2870 for ac_exec_ext
in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc
; ac_word
=$2
2897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 for ac_exec_ext
in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC
="gcc"
2913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x
; then
2934 case $cross_compiling:$ac_tool_warned in
2936 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2937 whose name does not start with the host triplet. If you think this
2938 configuration is useful to you, please write to autoconf@gnu.org." >&5
2939 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2940 whose name does not start with the host triplet. If you think this
2941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2942 ac_tool_warned
=yes ;;
2950 if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_CC+set}" = set; then
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC
="$CC" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2970 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2984 { $as_echo "$as_me:$LINENO: result: no" >&5
2985 $as_echo "no" >&6; }
2991 if test -z "$CC"; then
2992 # Extract the first word of "cc", so it can be a program name with args.
2993 set dummy cc
; ac_word
=$2
2994 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$CC"; then
3000 ac_cv_prog_CC
="$CC" # Let the user override the test.
3003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir
=.
3008 for ac_exec_ext
in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011 ac_prog_rejected
=yes
3015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 if test $ac_prog_rejected = yes; then
3023 # We found a bogon in the path, so make sure we never use it.
3024 set dummy
$ac_cv_prog_CC
3026 if test $# != 0; then
3027 # We chose a different compiler from the bogus one.
3028 # However, it has the same basename, so the bogon will be chosen
3029 # first if we set CC to just the basename; use the full file name.
3031 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3041 { $as_echo "$as_me:$LINENO: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 for ac_prog
in cl.exe
3051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC
="$CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3088 test -n "$CC" && break
3091 if test -z "$CC"; then
3093 for ac_prog
in cl.exe
3095 # Extract the first word of "$ac_prog", so it can be a program name with args.
3096 set dummy
$ac_prog; ac_word
=$2
3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$ac_ct_CC"; then
3103 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir
=.
3110 for ac_exec_ext
in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_ac_ct_CC
="$ac_prog"
3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3123 if test -n "$ac_ct_CC"; then
3124 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3125 $as_echo "$ac_ct_CC" >&6; }
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3132 test -n "$ac_ct_CC" && break
3135 if test "x$ac_ct_CC" = x
; then
3138 case $cross_compiling:$ac_tool_warned in
3140 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet. If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&5
3143 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet. If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3146 ac_tool_warned
=yes ;;
3155 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3156 See \`config.log' for more details." >&5
3157 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details." >&2;}
3159 { (exit 1); exit 1; }; }
3161 # Provide some information about the compiler.
3162 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3165 { (ac_try
="$ac_compiler --version >&5"
3167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3171 $as_echo "$ac_try_echo") >&5
3172 (eval "$ac_compiler --version >&5") 2>&5
3174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176 { (ac_try="$ac_compiler -v >&5"
3178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3179 *) ac_try_echo
=$ac_try;;
3181 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183 (eval "$ac_compiler -v >&5") 2>&5
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }
3187 { (ac_try
="$ac_compiler -V >&5"
3189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compiler -V >&5") 2>&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }
3199 cat >conftest.$ac_ext <<_ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h. */
3214 ac_clean_files_save=$ac_clean_files
3215 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3216 # Try to create an executable without -o first, disregard a.out.
3217 # It will help us diagnose broken compilers, and finding out an intuition
3219 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3220 $as_echo_n "checking for C compiler default output file name... " >&6; }
3221 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3223 # The possible output files:
3224 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3227 for ac_file in $ac_files
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 if { (ac_try="$ac_link_default"
3238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3239 *) ac_try_echo
=$ac_try;;
3241 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_link_default") 2>&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; then
3247 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3248 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3249 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3250 # so that the user can short-circuit this test for compilers unknown to
3252 for ac_file
in $ac_files ''
3254 test -f "$ac_file" ||
continue
3256 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3259 # We found the default executable, but exeext='' is most
3263 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3265 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 # We set ac_cv_exeext here because the later test for it is not
3268 # safe: cross compilers may not add the suffix if given an `-o'
3269 # argument, so we may need to know it at that point already.
3270 # Even if this section looks crufty: it has the advantage of
3277 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3283 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3284 $as_echo "$ac_file" >&6; }
3285 if test -z "$ac_file"; then
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.
$ac_ext >&5
3289 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3290 See \`config.log' for more details." >&5
3291 $as_echo "$as_me: error: C compiler cannot create executables
3292 See \`config.log' for more details." >&2;}
3293 { (exit 77); exit 77; }; }
3296 ac_exeext
=$ac_cv_exeext
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3303 # If not cross compiling, check that we can run a simple program.
3304 if test "$cross_compiling" != yes; then
3305 if { ac_try
='./$ac_file'
3306 { (case "(($ac_try" in
3307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_try") 2>&5
3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3318 if test "$cross_compiling" = maybe; then
3321 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3322 If you meant to cross compile, use \`--host'.
3323 See \`config.log' for more details.
" >&5
3324 $as_echo "$as_me: error
: cannot run C compiled programs.
3325 If you meant to cross compile
, use \
`--host'.
3326 See \`config.log
' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3331 { $as_echo "$as_me:$LINENO: result: yes" >&5
3332 $as_echo "yes" >&6; }
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3339 $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3343 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { (ac_try="$ac_link"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_link") 2>&5
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; then
3356 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3360 for ac_file
in conftest.exe conftest conftest.
*; do
3361 test -f "$ac_file" ||
continue
3363 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3364 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3371 See \`config.log' for more details." >&5
3372 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details." >&2;}
3374 { (exit 1); exit 1; }; }
3377 rm -f conftest
$ac_cv_exeext
3378 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3379 $as_echo "$ac_cv_exeext" >&6; }
3381 rm -f conftest.
$ac_ext
3382 EXEEXT
=$ac_cv_exeext
3384 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if test "${ac_cv_objext+set}" = set; then
3387 $as_echo_n "(cached) " >&6
3389 cat >conftest.
$ac_ext <<_ACEOF
3392 cat confdefs.h
>>conftest.
$ac_ext
3393 cat >>conftest.
$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3404 rm -f conftest.o conftest.obj
3405 if { (ac_try
="$ac_compile"
3407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3411 $as_echo "$ac_try_echo") >&5
3412 (eval "$ac_compile") 2>&5
3414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; then
3416 for ac_file in conftest.o conftest.obj conftest.*; do
3417 test -f "$ac_file" || continue;
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3420 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3429 See \`config.log
' for more details." >&5
3430 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3431 See \`config.log' for more details.
" >&2;}
3432 { (exit 1); exit 1; }; }
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3441 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3444 $as_echo_n "(cached
) " >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compile") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3478 (exit $ac_status); } && {
3479 test -z "$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3481 } && test -s conftest.$ac_objext; then
3484 $as_echo "$as_me: failed program was
:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3494 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3495 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3501 ac_test_CFLAGS=${CFLAGS+set}
3502 ac_save_CFLAGS=$CFLAGS
3503 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3504 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3505 if test "${ac_cv_prog_cc_g+set}" = set; then
3506 $as_echo_n "(cached
) " >&6
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3527 rm -f conftest.$ac_objext
3528 if { (ac_try="$ac_compile"
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3534 $as_echo "$ac_try_echo") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3547 $as_echo "$as_me: failed program was
:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3576 grep -v '^ *+' conftest.er1 >conftest.err
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3580 (exit $ac_status); } && {
3581 test -z "$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 } && test -s conftest.$ac_objext; then
3586 $as_echo "$as_me: failed program was
:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3613 $as_echo "$ac_try_echo") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3626 $as_echo "$as_me: failed program was
:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3659 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3660 if test "${ac_cv_prog_cc_c89+set}" = set; then
3661 $as_echo_n "(cached
) " >&6
3663 ac_cv_prog_cc_c89=no
3665 cat >conftest.$ac_ext <<_ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3676 struct buf { int x; };
3677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3678 static char *e (p, i)
3684 static char *f (char * (*g) (char **, int), char **p, ...)
3689 s = g (p, va_arg (v,int));
3694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3695 function prototypes and stuff, but not '\xHH' hex character constants.
3696 These don't provoke an error unfortunately, instead are silently treated
3697 as 'x'. The following induces an error, until -std is added to get
3698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3699 array size at least. It's necessary to write '\x00'==0 to get something
3700 that's true only with -std. */
3701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3704 inside strings and character constants. */
3706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708 int test (int i, double x);
3709 struct s1 {int (*f) (int a);};
3710 struct s2 {int (*f) (double a);};
3711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725 CC="$ac_save_CC $ac_arg"
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3733 $as_echo "$ac_try_echo") >&5
3734 (eval "$ac_compile") 2>conftest.er1
3736 grep -v '^ *+' conftest.er1 >conftest.err
3738 cat conftest.err >&5
3739 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3740 (exit $ac_status); } && {
3741 test -z "$ac_c_werror_flag" ||
3742 test ! -s conftest.err
3743 } && test -s conftest.$ac_objext; then
3744 ac_cv_prog_cc_c89=$ac_arg
3746 $as_echo "$as_me: failed program was
:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f core conftest.err conftest.$ac_objext
3753 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3755 rm -f conftest.$ac_ext
3760 case "x
$ac_cv_prog_cc_c89" in
3762 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3763 $as_echo "none needed
" >&6; } ;;
3765 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3766 $as_echo "unsupported
" >&6; } ;;
3768 CC="$CC $ac_cv_prog_cc_c89"
3769 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3786 ## If not using gcc, and on Solaris, and no CPP specified, see if
3787 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3788 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3789 test x"$CPP" = x; then
3790 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3791 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3793 if test "${emacs_cv_sunpro_c+set}" = set; then
3794 $as_echo_n "(cached
) " >&6
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (ac_try="$ac_link"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822 (eval "$ac_link") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest$ac_exeext && {
3832 test "$cross_compiling" = yes ||
3833 $as_test_x conftest$ac_exeext
3835 emacs_cv_sunpro_c=yes
3837 $as_echo "$as_me: failed program was
:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 emacs_cv_sunpro_c=no
3843 rm -rf conftest.dSYM
3844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3845 conftest$ac_exeext conftest.$ac_ext
3848 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3849 $as_echo "$emacs_cv_sunpro_c" >&6; }
3851 if test x"$emacs_cv_sunpro_c" = xyes; then
3852 NON_GNU_CPP="$CC -E -Xs"
3856 #### Some systems specify a CPP to use unless we are using GCC.
3857 #### Now that we know whether we are using GCC, we can decide whether
3858 #### to use that one.
3859 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3864 #### Some systems specify a CC to use unless we are using GCC.
3865 #### Now that we know whether we are using GCC, we can decide whether
3866 #### to use that one.
3867 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3868 test x$cc_specified != xyes
3873 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3875 CC="$CC $GCC_TEST_OPTIONS"
3878 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3880 CC="$CC $NON_GCC_TEST_OPTIONS"
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3889 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3890 # On Suns, sometimes $CPP names a directory.
3891 if test -n "$CPP" && test -d "$CPP"; then
3894 if test -z "$CPP"; then
3895 if test "${ac_cv_prog_CPP+set}" = set; then
3896 $as_echo_n "(cached
) " >&6
3898 # Double quotes because CPP needs to be expanded
3899 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3902 for ac_c_preproc_warn_flag in '' yes
3904 # Use a header file that comes with gcc, so configuring glibc
3905 # with a fresh cross-compiler works.
3906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3907 # <limits.h> exists even on freestanding compilers.
3908 # On the NeXT, cc -E runs the code through the compiler's parser,
3909 # not just through cpp. "Syntax error
" is here to catch this case.
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3917 # include <limits.h>
3919 # include <assert.h>
3923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3929 $as_echo "$ac_try_echo") >&5
3930 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3942 $as_echo "$as_me: failed program was
:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Broken: fails on valid input.
3949 rm -f conftest.err conftest.$ac_ext
3951 # OK, works on sane cases. Now check whether nonexistent headers
3952 # can be detected and how.
3953 cat >conftest.$ac_ext <<_ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <ac_nonexistent.h>
3961 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3967 $as_echo "$ac_try_echo") >&5
3968 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3974 (exit $ac_status); } >/dev/null && {
3975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3978 # Broken: success on invalid input.
3981 $as_echo "$as_me: failed program was
:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Passes both tests.
3989 rm -f conftest.err conftest.$ac_ext
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then
4006 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4007 $as_echo "$CPP" >&6; }
4009 for ac_c_preproc_warn_flag in '' yes
4011 # Use a header file that comes with gcc, so configuring glibc
4012 # with a fresh cross-compiler works.
4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 # <limits.h> exists even on freestanding compilers.
4015 # On the NeXT, cc -E runs the code through the compiler's parser,
4016 # not just through cpp. "Syntax error
" is here to catch this case.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4024 # include <limits.h>
4026 # include <assert.h>
4030 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4036 $as_echo "$ac_try_echo") >&5
4037 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4043 (exit $ac_status); } >/dev/null && {
4044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4045 test ! -s conftest.err
4049 $as_echo "$as_me: failed program was
:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 # Broken: fails on valid input.
4056 rm -f conftest.err conftest.$ac_ext
4058 # OK, works on sane cases. Now check whether nonexistent headers
4059 # can be detected and how.
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4068 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4085 # Broken: success on invalid input.
4088 $as_echo "$as_me: failed program was
:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 # Passes both tests.
4096 rm -f conftest.err conftest.$ac_ext
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then
4104 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4105 See \
`config.log' for more details." >&5
4106 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4107 See \`config.log
' for more details." >&2;}
4108 { (exit 1); exit 1; }; }
4112 ac_cpp='$CPP $CPPFLAGS'
4113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4114 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120 if test "${ac_cv_path_GREP+set}" = set; then
4121 $as_echo_n "(cached) " >&6
4123 if test -z "$GREP"; then
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and
test for each of PROGNAME-LIST
4126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4127 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4130 test -z "$as_dir" && as_dir
=.
4131 for ac_prog
in grep ggrep
; do
4132 for ac_exec_ext
in '' $ac_executable_extensions; do
4133 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4139 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4142 $as_echo_n 0123456789 >"conftest.in"
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
4148 $as_echo 'GREP' >> "conftest.nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4150 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4151 ac_count
=`expr $ac_count + 1`
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP
="$ac_path_GREP"
4155 ac_path_GREP_max
=$ac_count
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4160 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4163 $ac_path_GREP_found && break 3
4168 if test -z "$ac_cv_path_GREP"; then
4169 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4170 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4171 { (exit 1); exit 1; }; }
4174 ac_cv_path_GREP
=$GREP
4178 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4179 $as_echo "$ac_cv_path_GREP" >&6; }
4180 GREP
="$ac_cv_path_GREP"
4183 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4184 $as_echo_n "checking for egrep... " >&6; }
4185 if test "${ac_cv_path_EGREP+set}" = set; then
4186 $as_echo_n "(cached) " >&6
4188 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4189 then ac_cv_path_EGREP
="$GREP -E"
4191 if test -z "$EGREP"; then
4192 ac_path_EGREP_found
=false
4193 # Loop through the user's path and test for each of PROGNAME-LIST
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4195 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_prog
in egrep; do
4200 for ac_exec_ext
in '' $ac_executable_extensions; do
4201 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4203 # Check for GNU ac_path_EGREP and select it if it is found.
4204 # Check for GNU $ac_path_EGREP
4205 case `"$ac_path_EGREP" --version 2>&1` in
4207 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4210 $as_echo_n 0123456789 >"conftest.in"
4213 cat "conftest.in" "conftest.in" >"conftest.tmp"
4214 mv "conftest.tmp" "conftest.in"
4215 cp "conftest.in" "conftest.nl"
4216 $as_echo 'EGREP' >> "conftest.nl"
4217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4218 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4219 ac_count
=`expr $ac_count + 1`
4220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4221 # Best one so far, save it but keep looking for a better one
4222 ac_cv_path_EGREP
="$ac_path_EGREP"
4223 ac_path_EGREP_max
=$ac_count
4225 # 10*(2^10) chars as input seems more than enough
4226 test $ac_count -gt 10 && break
4228 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4231 $ac_path_EGREP_found && break 3
4236 if test -z "$ac_cv_path_EGREP"; then
4237 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4242 ac_cv_path_EGREP
=$EGREP
4247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4248 $as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP
="$ac_cv_path_EGREP"
4252 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 $as_echo_n "checking for ANSI C header files... " >&6; }
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 $as_echo_n "(cached) " >&6
4257 cat >conftest.
$ac_ext <<_ACEOF
4260 cat confdefs.h
>>conftest.
$ac_ext
4261 cat >>conftest.
$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4276 rm -f conftest.
$ac_objext
4277 if { (ac_try
="$ac_compile"
4279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 ac_cv_header_stdc=yes
4296 $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cv_header_stdc=no
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 if test $ac_cv_header_stdc = yes; then
4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "memchr" >/dev/null 2>&1; then
4319 ac_cv_header_stdc=no
4325 if test $ac_cv_header_stdc = yes; then
4326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "free" >/dev/null 2>&1; then
4340 ac_cv_header_stdc=no
4346 if test $ac_cv_header_stdc = yes; then
4347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348 if test "$cross_compiling" = yes; then
4351 cat >conftest.$ac_ext <<_ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4359 #if ((' ' & 0x0FF) == 0x020)
4360 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4361 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4363 # define ISLOWER(c) \
4364 (('a' <= (c) && (c) <= 'i') \
4365 || ('j' <= (c) && (c) <= 'r') \
4366 || ('s' <= (c) && (c) <= 'z'))
4367 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4370 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4375 for (i = 0; i < 256; i++)
4376 if (XOR (islower (i), ISLOWER (i))
4377 || toupper (i) != TOUPPER (i))
4382 rm -f conftest$ac_exeext
4383 if { (ac_try="$ac_link"
4385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4386 *) ac_try_echo
=$ac_try;;
4388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4389 $as_echo "$ac_try_echo") >&5
4390 (eval "$ac_link") 2>&5
4392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4394 { (case "(($ac_try" in
4395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4399 $as_echo "$ac_try_echo") >&5
4400 (eval "$ac_try") 2>&5
4402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; }; then
4406 $as_echo "$as_me: program exited with status $ac_status" >&5
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_header_stdc=no
4413 rm -rf conftest.dSYM
4414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421 $as_echo "$ac_cv_header_stdc" >&6; }
4422 if test $ac_cv_header_stdc = yes; then
4424 cat >>confdefs.h <<\_ACEOF
4425 #define STDC_HEADERS 1
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 $as_echo_n "checking for $ac_header... " >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 $as_echo_n "(cached) " >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 $ac_includes_default
4457 #include <$ac_header>
4459 rm -f conftest.$ac_objext
4460 if { (ac_try="$ac_compile"
4462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4463 *) ac_try_echo
=$ac_try;;
4465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4466 $as_echo "$ac_try_echo") >&5
4467 (eval "$ac_compile") 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } && {
4474 test -z "$ac_c_werror_flag" ||
4475 test ! -s conftest.err
4476 } && test -s conftest.
$ac_objext; then
4477 eval "$as_ac_Header=yes"
4479 $as_echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.
$ac_ext >&5
4482 eval "$as_ac_Header=no"
4485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4487 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4488 $as_echo "$as_val"'`
4489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4490 $as_echo "$ac_res" >&6; }
4491 if test `eval 'as_val=${'$as_ac_Header'}
4492 $as_echo "$as_val"'` = yes; then
4493 cat >>confdefs.h
<<_ACEOF
4494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4503 if test "${ac_cv_header_minix_config_h+set}" = set; then
4504 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4505 $as_echo_n "checking for minix/config.h... " >&6; }
4506 if test "${ac_cv_header_minix_config_h+set}" = set; then
4507 $as_echo_n "(cached) " >&6
4509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4510 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4512 # Is the header compilable?
4513 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4514 $as_echo_n "checking minix/config.h usability... " >&6; }
4515 cat >conftest.
$ac_ext <<_ACEOF
4518 cat confdefs.h
>>conftest.
$ac_ext
4519 cat >>conftest.
$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 $ac_includes_default
4522 #include <minix/config.h>
4524 rm -f conftest.
$ac_objext
4525 if { (ac_try
="$ac_compile"
4527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4531 $as_echo "$ac_try_echo") >&5
4532 (eval "$ac_compile") 2>conftest.er1
4534 grep -v '^ *+' conftest.er1 >conftest.err
4536 cat conftest.err >&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && {
4539 test -z "$ac_c_werror_flag" ||
4540 test ! -s conftest.err
4541 } && test -s conftest.$ac_objext; then
4542 ac_header_compiler=yes
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_header_compiler=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4552 $as_echo "$ac_header_compiler" >&6; }
4554 # Is the header present?
4555 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4556 $as_echo_n "checking minix/config.h presence... " >&6; }
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563 #include <minix/config.h>
4565 if { (ac_try="$ac_cpp conftest.$ac_ext"
4567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4568 *) ac_try_echo
=$ac_try;;
4570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4574 grep -v '^ *+' conftest.er1
>conftest.err
4576 cat conftest.err
>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } >/dev
/null
&& {
4579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4580 test ! -s conftest.err
4582 ac_header_preproc
=yes
4584 $as_echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.
$ac_ext >&5
4587 ac_header_preproc
=no
4590 rm -f conftest.err conftest.
$ac_ext
4591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4592 $as_echo "$ac_header_preproc" >&6; }
4594 # So? What about this header?
4595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4597 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4598 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4599 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4600 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4601 ac_header_preproc
=yes
4604 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4605 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4606 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4607 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4608 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4609 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4610 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4611 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4612 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4613 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4614 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4615 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4619 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4620 $as_echo_n "checking for minix/config.h... " >&6; }
4621 if test "${ac_cv_header_minix_config_h+set}" = set; then
4622 $as_echo_n "(cached) " >&6
4624 ac_cv_header_minix_config_h
=$ac_header_preproc
4626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4627 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4630 if test $ac_cv_header_minix_config_h = yes; then
4637 if test "$MINIX" = yes; then
4639 cat >>confdefs.h
<<\_ACEOF
4640 #define _POSIX_SOURCE 1
4644 cat >>confdefs.h
<<\_ACEOF
4645 #define _POSIX_1_SOURCE 2
4649 cat >>confdefs.h
<<\_ACEOF
4657 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4658 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4659 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4662 cat >conftest.
$ac_ext <<_ACEOF
4665 cat confdefs.h
>>conftest.
$ac_ext
4666 cat >>conftest.
$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4669 # define __EXTENSIONS__ 1
4670 $ac_includes_default
4679 rm -f conftest.
$ac_objext
4680 if { (ac_try
="$ac_compile"
4682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4686 $as_echo "$ac_try_echo") >&5
4687 (eval "$ac_compile") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && {
4694 test -z "$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 } && test -s conftest.$ac_objext; then
4697 ac_cv_safe_to_define___extensions__=yes
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 ac_cv_safe_to_define___extensions__=no
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4708 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4709 test $ac_cv_safe_to_define___extensions__ = yes &&
4710 cat >>confdefs.h <<\_ACEOF
4711 #define __EXTENSIONS__ 1
4714 cat >>confdefs.h <<\_ACEOF
4715 #define _ALL_SOURCE 1
4718 cat >>confdefs.h <<\_ACEOF
4719 #define _GNU_SOURCE 1
4722 cat >>confdefs.h <<\_ACEOF
4723 #define _POSIX_PTHREAD_SEMANTICS 1
4726 cat >>confdefs.h <<\_ACEOF
4727 #define _TANDEM_SOURCE 1
4732 ### Use -Wno-pointer-sign if the compiler supports it
4733 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4734 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4735 SAVE_CFLAGS="$CFLAGS"
4736 CFLAGS="$CFLAGS -Wno-pointer-sign"
4737 cat >conftest.$ac_ext <<_ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4756 *) ac_try_echo
=$ac_try;;
4758 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4759 $as_echo "$ac_try_echo") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4762 grep -v '^ *+' conftest.er1
>conftest.err
4764 cat conftest.err
>&5
4765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.
$ac_objext; then
4772 $as_echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.
$ac_ext >&5
4778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4779 if test $has_option = yes; then
4780 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4782 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4783 $as_echo "$has_option" >&6; }
4784 CFLAGS
="$SAVE_CFLAGS"
4788 #### Some other nice autoconf tests.
4790 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4791 $as_echo_n "checking whether ln -s works... " >&6; }
4793 if test "$LN_S" = "ln -s"; then
4794 { $as_echo "$as_me:$LINENO: result: yes" >&5
4795 $as_echo "yes" >&6; }
4797 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4798 $as_echo "no, using $LN_S" >&6; }
4802 ac_cpp
='$CPP $CPPFLAGS'
4803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4808 # On Suns, sometimes $CPP names a directory.
4809 if test -n "$CPP" && test -d "$CPP"; then
4812 if test -z "$CPP"; then
4813 if test "${ac_cv_prog_CPP+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4816 # Double quotes because CPP needs to be expanded
4817 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4820 for ac_c_preproc_warn_flag
in '' yes
4822 # Use a header file that comes with gcc, so configuring glibc
4823 # with a fresh cross-compiler works.
4824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825 # <limits.h> exists even on freestanding compilers.
4826 # On the NeXT, cc -E runs the code through the compiler's parser,
4827 # not just through cpp. "Syntax error" is here to catch this case.
4828 cat >conftest.
$ac_ext <<_ACEOF
4831 cat confdefs.h
>>conftest.
$ac_ext
4832 cat >>conftest.
$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4835 # include <limits.h>
4837 # include <assert.h>
4841 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4860 $as_echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Broken: fails on valid input.
4867 rm -f conftest.err conftest.$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4882 *) ac_try_echo
=$ac_try;;
4884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4885 $as_echo "$ac_try_echo") >&5
4886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1
>conftest.err
4890 cat conftest.err
>&5
4891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } >/dev
/null
&& {
4893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4896 # Broken: success on invalid input.
4899 $as_echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.
$ac_ext >&5
4902 # Passes both tests.
4907 rm -f conftest.err conftest.
$ac_ext
4910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4911 rm -f conftest.err conftest.
$ac_ext
4912 if $ac_preproc_ok; then
4924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4925 $as_echo "$CPP" >&6; }
4927 for ac_c_preproc_warn_flag
in '' yes
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.
$ac_ext <<_ACEOF
4938 cat confdefs.h
>>conftest.
$ac_ext
4939 cat >>conftest.
$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 # include <limits.h>
4944 # include <assert.h>
4948 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4954 $as_echo "$ac_try_echo") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 grep -v '^ *+' conftest.er1 >conftest.err
4959 cat conftest.err >&5
4960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null && {
4962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4963 test ! -s conftest.err
4967 $as_echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 # Broken: fails on valid input.
4974 rm -f conftest.err conftest.$ac_ext
4976 # OK, works on sane cases. Now check whether nonexistent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 #include <ac_nonexistent.h>
4986 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4989 *) ac_try_echo
=$ac_try;;
4991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4992 $as_echo "$ac_try_echo") >&5
4993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 grep -v '^ *+' conftest.er1
>conftest.err
4997 cat conftest.err
>&5
4998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev
/null
&& {
5000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5001 test ! -s conftest.err
5003 # Broken: success on invalid input.
5006 $as_echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.
$ac_ext >&5
5009 # Passes both tests.
5014 rm -f conftest.err conftest.
$ac_ext
5017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018 rm -f conftest.err conftest.
$ac_ext
5019 if $ac_preproc_ok; then
5022 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5023 See \`config.log' for more details." >&5
5024 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5025 See \`config.log' for more details." >&2;}
5026 { (exit 1); exit 1; }; }
5030 ac_cpp
='$CPP $CPPFLAGS'
5031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5035 # Find a good install program. We prefer a C program (faster),
5036 # so one script is as good as another. But avoid the broken or
5037 # incompatible versions:
5038 # SysV /etc/install, /usr/sbin/install
5039 # SunOS /usr/etc/install
5040 # IRIX /sbin/install
5042 # AmigaOS /C/install, which installs bootblocks on floppy discs
5043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5046 # OS/2's system install, which has a completely different semantic
5047 # ./install, which can be erroneously created by make from ./install.sh.
5048 # Reject install programs that cannot install multiple files.
5049 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5051 if test -z "$INSTALL"; then
5052 if test "${ac_cv_path_install+set}" = set; then
5053 $as_echo_n "(cached) " >&6
5055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir
=.
5060 # Account for people who put trailing slashes in PATH elements.
5062 .
/ | .
// |
/cC
/* | \
5063 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5064 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5067 # OSF1 and SCO ODT 3.0 have their own names for install.
5068 # Don't use installbsd from OSF since it installs stuff as root
5070 for ac_prog
in ginstall scoinst
install; do
5071 for ac_exec_ext
in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5073 if test $ac_prog = install &&
5074 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5075 # AIX install. It has an incompatible calling convention.
5077 elif test $ac_prog = install &&
5078 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5079 # program-specific install script used by HP pwplus--don't use.
5082 rm -rf conftest.one conftest.two conftest.dir
5083 echo one
> conftest.one
5084 echo two
> conftest.two
5086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5087 test -s conftest.one
&& test -s conftest.two
&&
5088 test -s conftest.dir
/conftest.one
&&
5089 test -s conftest.dir
/conftest.two
5091 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5104 rm -rf conftest.one conftest.two conftest.dir
5107 if test "${ac_cv_path_install+set}" = set; then
5108 INSTALL
=$ac_cv_path_install
5110 # As a last resort, use the slow shell script. Don't cache a
5111 # value for INSTALL within a source directory, because that will
5112 # break other packages using the cache if that directory is
5113 # removed, or if the value is a relative name.
5114 INSTALL
=$ac_install_sh
5117 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5118 $as_echo "$INSTALL" >&6; }
5120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121 # It thinks the first close brace ends the variable substitution.
5122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5126 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5128 if test "x$RANLIB" = x
; then
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5131 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_RANLIB+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5137 if test -n "$RANLIB"; then
5138 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir
=.
5145 for ac_exec_ext
in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 RANLIB
=$ac_cv_prog_RANLIB
5158 if test -n "$RANLIB"; then
5159 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5160 $as_echo "$RANLIB" >&6; }
5162 { $as_echo "$as_me:$LINENO: result: no" >&5
5163 $as_echo "no" >&6; }
5168 if test -z "$ac_cv_prog_RANLIB"; then
5169 ac_ct_RANLIB
=$RANLIB
5170 # Extract the first word of "ranlib", so it can be a program name with args.
5171 set dummy ranlib
; ac_word
=$2
5172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5175 $as_echo_n "(cached) " >&6
5177 if test -n "$ac_ct_RANLIB"; then
5178 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir
=.
5185 for ac_exec_ext
in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5198 if test -n "$ac_ct_RANLIB"; then
5199 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5200 $as_echo "$ac_ct_RANLIB" >&6; }
5202 { $as_echo "$as_me:$LINENO: result: no" >&5
5203 $as_echo "no" >&6; }
5206 if test "x$ac_ct_RANLIB" = x
; then
5209 case $cross_compiling:$ac_tool_warned in
5211 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5212 whose name does not start with the host triplet. If you think this
5213 configuration is useful to you, please write to autoconf@gnu.org." >&5
5214 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5215 whose name does not start with the host triplet. If you think this
5216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5217 ac_tool_warned
=yes ;;
5219 RANLIB
=$ac_ct_RANLIB
5222 RANLIB
="$ac_cv_prog_RANLIB"
5226 # Extract the first word of "install-info", so it can be a program name with args.
5227 set dummy install-info
; ac_word
=$2
5228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5231 $as_echo_n "(cached) " >&6
5233 case $INSTALL_INFO in
5235 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir
=.
5243 for ac_exec_ext
in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5257 if test -n "$INSTALL_INFO"; then
5258 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5259 $as_echo "$INSTALL_INFO" >&6; }
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5266 # Extract the first word of "install-info", so it can be a program name with args.
5267 set dummy install-info
; ac_word
=$2
5268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5271 $as_echo_n "(cached) " >&6
5273 case $INSTALL_INFO in
5275 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5279 for as_dir
in /usr
/sbin
5282 test -z "$as_dir" && as_dir
=.
5283 for ac_exec_ext
in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5297 if test -n "$INSTALL_INFO"; then
5298 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5299 $as_echo "$INSTALL_INFO" >&6; }
5301 { $as_echo "$as_me:$LINENO: result: no" >&5
5302 $as_echo "no" >&6; }
5306 # Extract the first word of "install-info", so it can be a program name with args.
5307 set dummy install-info
; ac_word
=$2
5308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5311 $as_echo_n "(cached) " >&6
5313 case $INSTALL_INFO in
5315 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_exec_ext
in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5337 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5338 if test -n "$INSTALL_INFO"; then
5339 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5340 $as_echo "$INSTALL_INFO" >&6; }
5342 { $as_echo "$as_me:$LINENO: result: no" >&5
5343 $as_echo "no" >&6; }
5347 # Extract the first word of "gzip", so it can be a program name with args.
5348 set dummy
gzip; ac_word
=$2
5349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5352 $as_echo_n "(cached) " >&6
5356 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir
=.
5364 for ac_exec_ext
in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5378 if test -n "$GZIP_PROG"; then
5379 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5380 $as_echo "$GZIP_PROG" >&6; }
5382 { $as_echo "$as_me:$LINENO: result: no" >&5
5383 $as_echo "no" >&6; }
5389 ## Need makeinfo >= 4.6 (?) to build the manuals.
5390 # Extract the first word of "makeinfo", so it can be a program name with args.
5391 set dummy makeinfo
; ac_word
=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5399 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir
=.
5407 for ac_exec_ext
in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5421 MAKEINFO
=$ac_cv_path_MAKEINFO
5422 if test -n "$MAKEINFO"; then
5423 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5424 $as_echo "$MAKEINFO" >&6; }
5426 { $as_echo "$as_me:$LINENO: result: no" >&5
5427 $as_echo "no" >&6; }
5431 if test "$MAKEINFO" != "no" && \
5432 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
5436 ## Makeinfo is unusual. For a released Emacs, the manuals are
5437 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5438 ## therefore in the category of "special tools" not normally required, which
5439 ## configure does not have to check for (eg autoconf itself).
5440 ## In a CVS checkout on the other hand, the manuals are not included.
5441 ## So makeinfo is a requirement to build from CVS, and configure
5442 ## should test for it as it does for any other build requirement.
5443 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5444 ## with pre-built manuals, from a CVS checkout.
5445 if test "$MAKEINFO" = "no"; then
5446 if test "x${with_makeinfo}" = "xno"; then
5448 elif ! test -e $srcdir/info
/emacs
; then
5449 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5450 source tree does not seem to have pre-built manuals in the \`info' directory.
5451 Either install a suitable version of makeinfo, or re-run configure
5452 with the \`--without-makeinfo' option to build without the manuals. " >&5
5453 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5454 source tree does not seem to have pre-built manuals in the \`info' directory.
5455 Either install a suitable version of makeinfo, or re-run configure
5456 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5457 { (exit 1); exit 1; }; }
5462 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5464 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5467 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5469 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5473 late_LDFLAGS
=$LDFLAGS
5474 if test "$GCC" = yes; then
5475 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5477 LDFLAGS
="$LDFLAGS -znocombreloc"
5480 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5481 $as_echo_n "checking for -znocombreloc... " >&6; }
5482 cat >conftest.
$ac_ext <<_ACEOF
5485 rm -f conftest.
$ac_objext conftest
$ac_exeext
5486 if { (ac_try
="$ac_link"
5488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_link") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest$ac_exeext && {
5503 test "$cross_compiling" = yes ||
5504 $as_test_x conftest$ac_exeext
5506 { $as_echo "$as_me:$LINENO: result: yes" >&5
5507 $as_echo "yes" >&6; }
5509 $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 LDFLAGS=$late_LDFLAGS
5513 { $as_echo "$as_me:$LINENO: result: no" >&5
5514 $as_echo "no" >&6; }
5517 rm -rf conftest.dSYM
5518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5519 conftest$ac_exeext conftest.$ac_ext
5521 #### Extract some information from the operating system and machine files.
5523 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5524 - which libraries the lib-src programs will want, and
5525 - whether the GNU malloc routines are usable..." >&5
5526 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5527 - which libraries the lib-src programs will want, and
5528 - whether the GNU malloc routines are usable..." >&6;}
5530 ### First figure out CFLAGS (which we use for running the compiler here)
5531 ### and REAL_CFLAGS (which we use for real compilation).
5532 ### The two are the same except on a few systems, where they are made
5533 ### different to work around various lossages. For example,
5534 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5535 ### as implying static linking.
5537 ### If the CFLAGS env var is specified, we use that value
5538 ### instead of the default.
5540 ### It's not important that this name contain the PID; you can't run
5541 ### two configures in the same directory and have anything work
5543 tempcname="conftest.c"
5546 #include "'${srcdir}'/src/'${opsysfile}'"
5547 #include "'${srcdir}'/src/'${machfile}'"
5548 #ifndef LIBS_MACHINE
5549 #define LIBS_MACHINE
5554 #ifndef C_SWITCH_SYSTEM
5555 #define C_SWITCH_SYSTEM
5557 #ifndef C_SWITCH_MACHINE
5558 #define C_SWITCH_MACHINE
5560 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5561 configure___ c_switch_system=C_SWITCH_SYSTEM
5562 configure___ c_switch_machine=C_SWITCH_MACHINE
5565 #define LIB_X11_LIB -lX11
5568 #ifndef LIBX11_SYSTEM
5569 #define LIBX11_SYSTEM
5571 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5574 configure___ unexec=UNEXEC
5576 configure___ unexec=unexec.o
5579 #ifdef SYSTEM_MALLOC
5580 configure___ system_malloc=yes
5582 configure___ system_malloc=no
5585 #ifdef USE_MMAP_FOR_BUFFERS
5586 configure___ use_mmap_for_buffers=yes
5588 configure___ use_mmap_for_buffers=no
5591 #ifndef C_DEBUG_SWITCH
5592 #define C_DEBUG_SWITCH -g
5595 #ifndef C_OPTIMIZE_SWITCH
5597 #define C_OPTIMIZE_SWITCH -O2
5599 #define C_OPTIMIZE_SWITCH -O
5603 #ifndef C_WARNINGS_SWITCH
5604 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5607 #ifndef LD_SWITCH_MACHINE
5608 #define LD_SWITCH_MACHINE
5611 #ifndef LD_SWITCH_SYSTEM
5612 #define LD_SWITCH_SYSTEM
5615 #ifndef LD_SWITCH_X_SITE_AUX
5616 #define LD_SWITCH_X_SITE_AUX
5619 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5620 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5622 #ifdef THIS_IS_CONFIGURE
5624 /* Get the CFLAGS for tests in configure. */
5626 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5628 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5631 #else /* not THIS_IS_CONFIGURE */
5633 /* Get the CFLAGS for real compilation. */
5635 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5637 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5640 #endif /* not THIS_IS_CONFIGURE */
5643 # The value of CPP is a quoted variable reference, so we need to do this
5644 # to get its actual value...
5645 CPP=`eval "echo $CPP"`
5646 eval `${CPP} -Isrc ${tempcname} \
5647 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5648 if test "x$SPECIFIED_CFLAGS" = x; then
5649 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5650 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5652 REAL_CFLAGS="$CFLAGS"
5656 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5658 ### Make sure subsequent tests use flags consistent with the build flags.
5660 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5661 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5663 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5668 # Check whether --enable-largefile was given.
5669 if test "${enable_largefile+set}" = set; then
5670 enableval=$enable_largefile;
5673 if test "$enable_largefile" != no; then
5675 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5676 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5677 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5678 $as_echo_n "(cached) " >&6
5680 ac_cv_sys_largefile_CC=no
5681 if test "$GCC" != yes; then
5684 # IRIX 6.2 and later do not support large files by default,
5685 # so use the C compiler's -n32 option if that helps.
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5713 *) ac_try_echo
=$ac_try;;
5715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5716 $as_echo "$ac_try_echo") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1
>conftest.err
5721 cat conftest.err
>&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.
$ac_objext; then
5729 $as_echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5735 rm -f core conftest.err conftest.
$ac_objext
5737 rm -f conftest.
$ac_objext
5738 if { (ac_try
="$ac_compile"
5740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744 $as_echo "$ac_try_echo") >&5
5745 (eval "$ac_compile") 2>conftest.er1
5747 grep -v '^ *+' conftest.er1 >conftest.err
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest.$ac_objext; then
5755 ac_cv_sys_largefile_CC=' -n32'; break
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5763 rm -f core conftest.err conftest.$ac_objext
5767 rm -f conftest.$ac_ext
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no; then
5773 CC=$CC$ac_cv_sys_largefile_CC
5776 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5809 *) ac_try_echo
=$ac_try;;
5811 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.
$ac_objext; then
5823 ac_cv_sys_file_offset_bits
=no
; break
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 cat >conftest.
$ac_ext <<_ACEOF
5835 cat confdefs.h
>>conftest.
$ac_ext
5836 cat >>conftest.
$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #define _FILE_OFFSET_BITS 64
5839 #include <sys/types.h>
5840 /* Check that off_t can represent 2**63 - 1 correctly.
5841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5842 since some C++ compilers masquerading as C compilers
5843 incorrectly reject 9223372036854775807. */
5844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5846 && LARGE_OFF_T % 2147483647 == 1)
5856 rm -f conftest.
$ac_objext
5857 if { (ac_try
="$ac_compile"
5859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5860 *) ac_try_echo=$ac_try;;
5862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5863 $as_echo "$ac_try_echo") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_sys_file_offset_bits=64; break
5876 $as_echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_sys_file_offset_bits=unknown
5887 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5888 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5889 case $ac_cv_sys_file_offset_bits in #(
5892 cat >>confdefs.h <<_ACEOF
5893 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5898 if test $ac_cv_sys_file_offset_bits = unknown; then
5899 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5900 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5901 if test "${ac_cv_sys_large_files+set}" = set; then
5902 $as_echo_n "(cached) " >&6
5905 cat >conftest.$ac_ext <<_ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h. */
5911 #include <sys/types.h>
5912 /* Check that off_t can represent 2**63 - 1 correctly.
5913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5914 since some C++ compilers masquerading as C compilers
5915 incorrectly reject 9223372036854775807. */
5916 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5918 && LARGE_OFF_T % 2147483647 == 1)
5928 rm -f conftest.$ac_objext
5929 if { (ac_try="$ac_compile"
5931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5932 *) ac_try_echo
=$ac_try;;
5934 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5935 $as_echo "$ac_try_echo") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5938 grep -v '^ *+' conftest.er1
>conftest.err
5940 cat conftest.err
>&5
5941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.
$ac_objext; then
5946 ac_cv_sys_large_files
=no
; break
5948 $as_echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.
$ac_ext >&5
5954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #define _LARGE_FILES 1
5962 #include <sys/types.h>
5963 /* Check that off_t can represent 2**63 - 1 correctly.
5964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5965 since some C++ compilers masquerading as C compilers
5966 incorrectly reject 9223372036854775807. */
5967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5969 && LARGE_OFF_T % 2147483647 == 1)
5979 rm -f conftest.
$ac_objext
5980 if { (ac_try
="$ac_compile"
5982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 ac_cv_sys_large_files=1; break
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 ac_cv_sys_large_files=unknown
6010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6011 $as_echo "$ac_cv_sys_large_files" >&6; }
6012 case $ac_cv_sys_large_files in #(
6015 cat >>confdefs.h <<_ACEOF
6016 #define _LARGE_FILES $ac_cv_sys_large_files
6026 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6027 ### be located in either /usr/lib64 or /usr/lib.
6028 ### In some rare cases, /usr/lib64 exists but does not contain the
6029 ### relevant files (bug#1287). Hence test for crtn.o.
6030 case "${canonical}" in
6031 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6032 if test -e /usr/lib64/crtn.o; then
6034 cat >>confdefs.h <<\_ACEOF
6035 #define HAVE_LIB64_DIR 1
6044 if test "${with_sound}" != "no"; then
6045 # Sound support for GNU/Linux and the free BSDs.
6049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 $as_echo_n "checking for $ac_header... " >&6; }
6055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6056 $as_echo_n "(cached) " >&6
6058 ac_res=`eval 'as_val=${'$as_ac_Header'}
6059 $as_echo "$as_val"'`
6060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6061 $as_echo "$ac_res" >&6; }
6063 # Is the header compilable?
6064 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6065 $as_echo_n "checking $ac_header usability... " >&6; }
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6079 *) ac_try_echo
=$ac_try;;
6081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.
$ac_objext; then
6093 ac_header_compiler
=yes
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6098 ac_header_compiler
=no
6101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6103 $as_echo "$ac_header_compiler" >&6; }
6105 # Is the header present?
6106 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6107 $as_echo_n "checking $ac_header presence... " >&6; }
6108 cat >conftest.
$ac_ext <<_ACEOF
6111 cat confdefs.h
>>conftest.
$ac_ext
6112 cat >>conftest.
$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <$ac_header>
6116 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } >/dev/null && {
6130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6133 ac_header_preproc=yes
6135 $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_header_preproc=no
6141 rm -f conftest.err conftest.$ac_ext
6142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6143 $as_echo "$ac_header_preproc" >&6; }
6145 # So? What about this header?
6146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6149 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6152 ac_header_preproc=yes
6155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6160 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6162 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6166 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6170 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6171 $as_echo_n "checking for $ac_header... " >&6; }
6172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6173 $as_echo_n "(cached) " >&6
6175 eval "$as_ac_Header=\$ac_header_preproc"
6177 ac_res=`eval 'as_val=${'$as_ac_Header'}
6178 $as_echo "$as_val"'`
6179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6180 $as_echo "$ac_res" >&6; }
6183 if test `eval 'as_val=${'$as_ac_Header'}
6184 $as_echo "$as_val"'` = yes; then
6185 cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6193 # Emulation library used on NetBSD.
6194 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6195 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6197 $as_echo_n "(cached) " >&6
6199 ac_check_lib_save_LIBS=$LIBS
6200 LIBS="-lossaudio $LIBS"
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply. */
6218 return _oss_ioctl ();
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (ac_try="$ac_link"
6226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6227 *) ac_try_echo
=$ac_try;;
6229 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6230 $as_echo "$ac_try_echo") >&5
6231 (eval "$ac_link") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest
$ac_exeext && {
6241 test "$cross_compiling" = yes ||
6242 $as_test_x conftest
$ac_exeext
6244 ac_cv_lib_ossaudio__oss_ioctl
=yes
6246 $as_echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.
$ac_ext >&5
6249 ac_cv_lib_ossaudio__oss_ioctl
=no
6252 rm -rf conftest.dSYM
6253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6254 conftest
$ac_exeext conftest.
$ac_ext
6255 LIBS
=$ac_check_lib_save_LIBS
6257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6258 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6259 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6268 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6272 # Extract the first word of "pkg-config", so it can be a program name with args.
6273 set dummy pkg-config
; ac_word
=$2
6274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6277 $as_echo_n "(cached) " >&6
6281 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir
=.
6289 for ac_exec_ext
in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6303 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6304 if test -n "$PKG_CONFIG"; then
6305 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6306 $as_echo "$PKG_CONFIG" >&6; }
6308 { $as_echo "$as_me:$LINENO: result: no" >&5
6309 $as_echo "no" >&6; }
6314 if test "$PKG_CONFIG" = "no" ; then
6317 PKG_CONFIG_MIN_VERSION
=0.9.0
6318 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6319 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6320 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6322 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6323 { $as_echo "$as_me:$LINENO: result: yes" >&5
6324 $as_echo "yes" >&6; }
6327 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6328 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6329 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6330 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6331 $as_echo "$ALSA_CFLAGS" >&6; }
6333 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6334 $as_echo_n "checking ALSA_LIBS... " >&6; }
6335 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6336 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6337 $as_echo "$ALSA_LIBS" >&6; }
6339 { $as_echo "$as_me:$LINENO: result: no" >&5
6340 $as_echo "no" >&6; }
6343 ## If we have a custom action on failure, don't print errors, but
6344 ## do set a variable so people can do so.
6345 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6352 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6353 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6357 if test $succeeded = yes; then
6363 if test $HAVE_ALSA = yes; then
6364 SAVE_CFLAGS
="$CFLAGS"
6365 SAVE_LDFLAGS
="$LDFLAGS"
6366 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6367 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <asoundlib.h>
6378 snd_lib_error_set_handler (0);
6383 rm -f conftest.
$ac_objext
6384 if { (ac_try
="$ac_compile"
6386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390 $as_echo "$ac_try_echo") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 emacs_alsa_normal=yes
6403 $as_echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 emacs_alsa_normal=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 if test "$emacs_alsa_normal" != yes; then
6411 cat >conftest.$ac_ext <<_ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <alsa/asoundlib.h>
6421 snd_lib_error_set_handler (0);
6426 rm -f conftest.$ac_objext
6427 if { (ac_try="$ac_compile"
6429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6430 *) ac_try_echo
=$ac_try;;
6432 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.
$ac_objext; then
6444 emacs_alsa_subdir
=yes
6446 $as_echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 emacs_alsa_subdir
=no
6452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6453 if test "$emacs_alsa_subdir" != yes; then
6454 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6455 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6456 { (exit 1); exit 1; }; }
6458 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6461 CFLAGS
="$SAVE_CFLAGS"
6462 LDFLAGS
="$SAVE_LDFLAGS"
6463 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6464 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6466 cat >>confdefs.h
<<\_ACEOF
6499 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6500 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6501 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6502 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6505 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6506 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6508 $as_echo_n "checking for $ac_header... " >&6; }
6509 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6510 $as_echo_n "(cached) " >&6
6512 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6513 $as_echo "$as_val"'`
6514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6515 $as_echo "$ac_res" >&6; }
6517 # Is the header compilable?
6518 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6519 $as_echo_n "checking $ac_header usability... " >&6; }
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #include <$ac_header>
6529 rm -f conftest.
$ac_objext
6530 if { (ac_try
="$ac_compile"
6532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536 $as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_header_compiler=yes
6549 $as_echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 ac_header_compiler=no
6555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6557 $as_echo "$ac_header_compiler" >&6; }
6559 # Is the header present?
6560 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6561 $as_echo_n "checking $ac_header presence... " >&6; }
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <$ac_header>
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6573 *) ac_try_echo
=$ac_try;;
6575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6576 $as_echo "$ac_try_echo") >&5
6577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1
>conftest.err
6581 cat conftest.err
>&5
6582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } >/dev
/null
&& {
6584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6587 ac_header_preproc
=yes
6589 $as_echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.
$ac_ext >&5
6592 ac_header_preproc
=no
6595 rm -f conftest.err conftest.
$ac_ext
6596 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6597 $as_echo "$ac_header_preproc" >&6; }
6599 # So? What about this header?
6600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6603 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6606 ac_header_preproc
=yes
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6625 $as_echo_n "checking for $ac_header... " >&6; }
6626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6627 $as_echo_n "(cached) " >&6
6629 eval "$as_ac_Header=\$ac_header_preproc"
6631 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6632 $as_echo "$as_val"'`
6633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6634 $as_echo "$ac_res" >&6; }
6637 if test `eval 'as_val=${'$as_ac_Header'}
6638 $as_echo "$as_val"'` = yes; then
6639 cat >>confdefs.h
<<_ACEOF
6640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6649 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6650 cat >conftest.
$ac_ext <<_ACEOF
6653 cat confdefs.h
>>conftest.
$ac_ext
6654 cat >>conftest.
$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <sys/personality.h>
6660 personality (PER_LINUX32)
6665 rm -f conftest.
$ac_objext
6666 if { (ac_try
="$ac_compile"
6668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 emacs_cv_personality_linux32=yes
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 emacs_cv_personality_linux32=no
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6693 $as_echo "$emacs_cv_personality_linux32" >&6; }
6695 if test $emacs_cv_personality_linux32 = yes; then
6697 cat >>confdefs.h <<\_ACEOF
6698 #define HAVE_PERSONALITY_LINUX32 1
6704 for ac_header in term.h
6706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6708 $as_echo_n "checking for $ac_header... " >&6; }
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 $as_echo_n "(cached) " >&6
6712 cat >conftest.$ac_ext <<_ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6718 #include <$ac_header>
6720 if { (ac_try="$ac_cpp conftest.$ac_ext"
6722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6723 *) ac_try_echo
=$ac_try;;
6725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1
>conftest.err
6731 cat conftest.err
>&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev
/null
&& {
6734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6737 eval "$as_ac_Header=yes"
6739 $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.
$ac_ext >&5
6742 eval "$as_ac_Header=no"
6745 rm -f conftest.err conftest.
$ac_ext
6747 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6748 $as_echo "$as_val"'`
6749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6750 $as_echo "$ac_res" >&6; }
6751 if test `eval 'as_val=${'$as_ac_Header'}
6752 $as_echo "$as_val"'` = yes; then
6753 cat >>confdefs.h
<<_ACEOF
6754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6761 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6762 $as_echo_n "checking for ANSI C header files... " >&6; }
6763 if test "${ac_cv_header_stdc+set}" = set; then
6764 $as_echo_n "(cached) " >&6
6766 cat >conftest.
$ac_ext <<_ACEOF
6769 cat confdefs.h
>>conftest.
$ac_ext
6770 cat >>conftest.
$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6785 rm -f conftest.
$ac_objext
6786 if { (ac_try
="$ac_compile"
6788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792 $as_echo "$ac_try_echo") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_header_stdc=yes
6805 $as_echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_header_stdc=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 if test $ac_cv_header_stdc = yes; then
6814 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "memchr" >/dev/null 2>&1; then
6828 ac_cv_header_stdc=no
6834 if test $ac_cv_header_stdc = yes; then
6835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "free" >/dev/null 2>&1; then
6849 ac_cv_header_stdc=no
6855 if test $ac_cv_header_stdc = yes; then
6856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6857 if test "$cross_compiling" = yes; then
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6868 #if ((' ' & 0x0FF) == 0x020)
6869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6872 # define ISLOWER(c) \
6873 (('a' <= (c) && (c) <= 'i') \
6874 || ('j' <= (c) && (c) <= 'r') \
6875 || ('s' <= (c) && (c) <= 'z'))
6876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6884 for (i = 0; i < 256; i++)
6885 if (XOR (islower (i), ISLOWER (i))
6886 || toupper (i) != TOUPPER (i))
6891 rm -f conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6895 *) ac_try_echo
=$ac_try;;
6897 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6903 { (case "(($ac_try" in
6904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6908 $as_echo "$ac_try_echo") >&5
6909 (eval "$ac_try") 2>&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6915 $as_echo "$as_me: program exited with status $ac_status" >&5
6916 $as_echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_header_stdc=no
6922 rm -rf conftest.dSYM
6923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6930 $as_echo "$ac_cv_header_stdc" >&6; }
6931 if test $ac_cv_header_stdc = yes; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define STDC_HEADERS 1
6939 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6940 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6941 if test "${ac_cv_header_time+set}" = set; then
6942 $as_echo_n "(cached) " >&6
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <sys/types.h>
6951 #include <sys/time.h>
6957 if ((struct tm *) 0)
6963 rm -f conftest.$ac_objext
6964 if { (ac_try="$ac_compile"
6966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6967 *) ac_try_echo
=$ac_try;;
6969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6970 $as_echo "$ac_try_echo") >&5
6971 (eval "$ac_compile") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1
>conftest.err
6975 cat conftest.err
>&5
6976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } && {
6978 test -z "$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6980 } && test -s conftest.
$ac_objext; then
6981 ac_cv_header_time
=yes
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.
$ac_ext >&5
6986 ac_cv_header_time
=no
6989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6992 $as_echo "$ac_cv_header_time" >&6; }
6993 if test $ac_cv_header_time = yes; then
6995 cat >>confdefs.h
<<\_ACEOF
6996 #define TIME_WITH_SYS_TIME 1
7001 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7002 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7003 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7004 $as_echo_n "(cached) " >&6
7006 cat >conftest.
$ac_ext <<_ACEOF
7009 cat confdefs.h
>>conftest.
$ac_ext
7010 cat >>conftest.
$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7024 rm -f conftest.
$ac_objext
7025 if { (ac_try
="$ac_compile"
7027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031 $as_echo "$ac_try_echo") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 ac_cv_have_decl_sys_siglist=yes
7044 $as_echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_have_decl_sys_siglist=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7053 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7054 if test $ac_cv_have_decl_sys_siglist = yes; then
7056 cat >>confdefs.h <<_ACEOF
7057 #define HAVE_DECL_SYS_SIGLIST 1
7062 cat >>confdefs.h <<_ACEOF
7063 #define HAVE_DECL_SYS_SIGLIST 0
7070 if test $ac_cv_have_decl_sys_siglist != yes; then
7071 # For Tru64, at least:
7072 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7073 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7074 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7075 $as_echo_n "(cached) " >&6
7077 cat >conftest.$ac_ext <<_ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 $ac_includes_default
7087 #ifndef __sys_siglist
7088 (void) __sys_siglist;
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7099 *) ac_try_echo
=$ac_try;;
7101 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7102 $as_echo "$ac_try_echo") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7105 grep -v '^ *+' conftest.er1
>conftest.err
7107 cat conftest.err
>&5
7108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.
$ac_objext; then
7113 ac_cv_have_decl___sys_siglist
=yes
7115 $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.
$ac_ext >&5
7118 ac_cv_have_decl___sys_siglist
=no
7121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7123 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7124 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7125 if test $ac_cv_have_decl___sys_siglist = yes; then
7127 cat >>confdefs.h
<<_ACEOF
7128 #define HAVE_DECL___SYS_SIGLIST 1
7133 cat >>confdefs.h
<<_ACEOF
7134 #define HAVE_DECL___SYS_SIGLIST 0
7141 if test $ac_cv_have_decl___sys_siglist = yes; then
7143 cat >>confdefs.h
<<\_ACEOF
7144 #define sys_siglist __sys_siglist
7149 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7150 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7151 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7152 $as_echo_n "(cached) " >&6
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 #include <sys/types.h>
7161 #include <sys/wait.h>
7163 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7166 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7174 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7179 rm -f conftest.
$ac_objext
7180 if { (ac_try
="$ac_compile"
7182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7186 $as_echo "$ac_try_echo") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7189 grep -v '^ *+' conftest.er1 >conftest.err
7191 cat conftest.err >&5
7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_header_sys_wait_h=yes
7199 $as_echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_header_sys_wait_h=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7208 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7209 if test $ac_cv_header_sys_wait_h = yes; then
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_SYS_WAIT_H 1
7218 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7219 $as_echo_n "checking for struct utimbuf... " >&6; }
7220 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7221 $as_echo_n "(cached) " >&6
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 #ifdef TIME_WITH_SYS_TIME
7230 #include <sys/time.h>
7233 #ifdef HAVE_SYS_TIME_H
7234 #include <sys/time.h>
7245 static struct utimbuf x; x.actime = x.modtime;
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7254 *) ac_try_echo
=$ac_try;;
7256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.
$ac_objext; then
7268 emacs_cv_struct_utimbuf
=yes
7270 $as_echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.
$ac_ext >&5
7273 emacs_cv_struct_utimbuf
=no
7276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7278 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7279 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7280 if test $emacs_cv_struct_utimbuf = yes; then
7282 cat >>confdefs.h
<<\_ACEOF
7283 #define HAVE_STRUCT_UTIMBUF 1
7288 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7289 $as_echo_n "checking return type of signal handlers... " >&6; }
7290 if test "${ac_cv_type_signal+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7293 cat >conftest.
$ac_ext <<_ACEOF
7296 cat confdefs.h
>>conftest.
$ac_ext
7297 cat >>conftest.
$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <sys/types.h>
7305 return *(signal (0, 0)) (0) == 1;
7310 rm -f conftest.
$ac_objext
7311 if { (ac_try
="$ac_compile"
7313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_type_signal=int
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_cv_type_signal=void
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7339 $as_echo "$ac_cv_type_signal" >&6; }
7341 cat >>confdefs.h <<_ACEOF
7342 #define RETSIGTYPE $ac_cv_type_signal
7347 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7348 $as_echo_n "checking for speed_t... " >&6; }
7349 if test "${emacs_cv_speed_t+set}" = set; then
7350 $as_echo_n "(cached) " >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <termios.h>
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7371 *) ac_try_echo
=$ac_try;;
7373 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7374 $as_echo "$ac_try_echo") >&5
7375 (eval "$ac_compile") 2>conftest.er1
7377 grep -v '^ *+' conftest.er1
>conftest.err
7379 cat conftest.err
>&5
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && {
7382 test -z "$ac_c_werror_flag" ||
7383 test ! -s conftest.err
7384 } && test -s conftest.
$ac_objext; then
7385 emacs_cv_speed_t
=yes
7387 $as_echo "$as_me: failed program was:" >&5
7388 sed 's/^/| /' conftest.
$ac_ext >&5
7393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7395 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7396 $as_echo "$emacs_cv_speed_t" >&6; }
7397 if test $emacs_cv_speed_t = yes; then
7399 cat >>confdefs.h
<<\_ACEOF
7400 #define HAVE_SPEED_T 1
7405 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7406 $as_echo_n "checking for struct timeval... " >&6; }
7407 if test "${emacs_cv_struct_timeval+set}" = set; then
7408 $as_echo_n "(cached) " >&6
7410 cat >conftest.
$ac_ext <<_ACEOF
7413 cat confdefs.h
>>conftest.
$ac_ext
7414 cat >>conftest.
$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 #ifdef TIME_WITH_SYS_TIME
7417 #include <sys/time.h>
7420 #ifdef HAVE_SYS_TIME_H
7421 #include <sys/time.h>
7429 static struct timeval x; x.tv_sec = x.tv_usec;
7434 rm -f conftest.
$ac_objext
7435 if { (ac_try
="$ac_compile"
7437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 emacs_cv_struct_timeval=yes
7454 $as_echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 emacs_cv_struct_timeval=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7463 $as_echo "$emacs_cv_struct_timeval" >&6; }
7464 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7465 if test $emacs_cv_struct_timeval = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_TIMEVAL 1
7473 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7474 $as_echo_n "checking for struct exception... " >&6; }
7475 if test "${emacs_cv_struct_exception+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7488 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7493 rm -f conftest.$ac_objext
7494 if { (ac_try="$ac_compile"
7496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7497 *) ac_try_echo
=$ac_try;;
7499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1
>conftest.err
7505 cat conftest.err
>&5
7506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.
$ac_objext; then
7511 emacs_cv_struct_exception
=yes
7513 $as_echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.
$ac_ext >&5
7516 emacs_cv_struct_exception
=no
7519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7521 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7522 $as_echo "$emacs_cv_struct_exception" >&6; }
7523 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7524 if test $emacs_cv_struct_exception != yes; then
7526 cat >>confdefs.h
<<\_ACEOF
7527 #define NO_MATHERR 1
7533 for ac_header
in sys
/socket.h
7535 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7536 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 $as_echo_n "checking for $ac_header... " >&6; }
7539 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7540 $as_echo_n "(cached) " >&6
7542 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7543 $as_echo "$as_val"'`
7544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7545 $as_echo "$ac_res" >&6; }
7547 # Is the header compilable?
7548 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7549 $as_echo_n "checking $ac_header usability... " >&6; }
7550 cat >conftest.
$ac_ext <<_ACEOF
7553 cat confdefs.h
>>conftest.
$ac_ext
7554 cat >>conftest.
$ac_ext <<_ACEOF
7555 /* end confdefs.h. */
7556 $ac_includes_default
7557 #include <$ac_header>
7559 rm -f conftest.
$ac_objext
7560 if { (ac_try
="$ac_compile"
7562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7566 $as_echo "$ac_try_echo") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_header_compiler=yes
7579 $as_echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_header_compiler=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 $as_echo "$ac_header_compiler" >&6; }
7589 # Is the header present?
7590 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 $as_echo_n "checking $ac_header presence... " >&6; }
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7600 if { (ac_try="$ac_cpp conftest.$ac_ext"
7602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7603 *) ac_try_echo
=$ac_try;;
7605 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7606 $as_echo "$ac_try_echo") >&5
7607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7609 grep -v '^ *+' conftest.er1
>conftest.err
7611 cat conftest.err
>&5
7612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } >/dev
/null
&& {
7614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7617 ac_header_preproc
=yes
7619 $as_echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 ac_header_preproc
=no
7625 rm -f conftest.err conftest.
$ac_ext
7626 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7627 $as_echo "$ac_header_preproc" >&6; }
7629 # So? What about this header?
7630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7633 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7636 ac_header_preproc
=yes
7639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7640 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7642 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7644 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7646 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7650 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7655 $as_echo_n "checking for $ac_header... " >&6; }
7656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7657 $as_echo_n "(cached) " >&6
7659 eval "$as_ac_Header=\$ac_header_preproc"
7661 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7662 $as_echo "$as_val"'`
7663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7664 $as_echo "$ac_res" >&6; }
7667 if test `eval 'as_val=${'$as_ac_Header'}
7668 $as_echo "$as_val"'` = yes; then
7669 cat >>confdefs.h
<<_ACEOF
7670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7678 for ac_header
in net
/if.h
7680 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7682 $as_echo_n "checking for $ac_header... " >&6; }
7683 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7684 $as_echo_n "(cached) " >&6
7686 cat >conftest.
$ac_ext <<_ACEOF
7689 cat confdefs.h
>>conftest.
$ac_ext
7690 cat >>conftest.
$ac_ext <<_ACEOF
7691 /* end confdefs.h. */
7692 $ac_includes_default
7693 #if HAVE_SYS_SOCKET_H
7694 #include <sys/socket.h>
7697 #include <$ac_header>
7699 rm -f conftest.
$ac_objext
7700 if { (ac_try
="$ac_compile"
7702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7706 $as_echo "$ac_try_echo") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7719 $as_echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 eval "$as_ac_Header=no"
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 ac_res=`eval 'as_val=${'$as_ac_Header'}
7728 $as_echo "$as_val"'`
7729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7730 $as_echo "$ac_res" >&6; }
7731 if test `eval 'as_val=${'$as_ac_Header'}
7732 $as_echo "$as_val"'` = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7742 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7743 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7744 if test "${ac_cv_struct_tm+set}" = set; then
7745 $as_echo_n "(cached) " >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <sys/types.h>
7760 int *p = &tm.tm_sec;
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7770 *) ac_try_echo
=$ac_try;;
7772 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1
>conftest.err
7778 cat conftest.err
>&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.
$ac_objext; then
7784 ac_cv_struct_tm
=time.h
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7789 ac_cv_struct_tm
=sys
/time.h
7792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7795 $as_echo "$ac_cv_struct_tm" >&6; }
7796 if test $ac_cv_struct_tm = sys
/time.h
; then
7798 cat >>confdefs.h
<<\_ACEOF
7799 #define TM_IN_SYS_TIME 1
7804 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7805 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7807 $as_echo_n "(cached) " >&6
7809 cat >conftest.
$ac_ext <<_ACEOF
7812 cat confdefs.h
>>conftest.
$ac_ext
7813 cat >>conftest.
$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7816 #include <$ac_cv_struct_tm>
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_zone)
7829 rm -f conftest.
$ac_objext
7830 if { (ac_try
="$ac_compile"
7832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1 >conftest.err
7841 cat conftest.err >&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_cv_member_struct_tm_tm_zone=yes
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <sys/types.h>
7859 #include <$ac_cv_struct_tm>
7865 static struct tm ac_aggr;
7866 if (sizeof ac_aggr.tm_zone)
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7876 *) ac_try_echo
=$ac_try;;
7878 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7879 $as_echo "$ac_try_echo") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7882 grep -v '^ *+' conftest.er1
>conftest.err
7884 cat conftest.err
>&5
7885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.
$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone
=yes
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.
$ac_ext >&5
7895 ac_cv_member_struct_tm_tm_zone
=no
7898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7907 cat >>confdefs.h
<<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7916 cat >>confdefs.h
<<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7921 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 $as_echo_n "checking whether tzname is declared... " >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7926 cat >conftest.
$ac_ext <<_ACEOF
7929 cat confdefs.h
>>conftest.
$ac_ext
7930 cat >>conftest.
$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7945 rm -f conftest.
$ac_objext
7946 if { (ac_try
="$ac_compile"
7948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7963 ac_cv_have_decl_tzname=yes
7965 $as_echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_cv_have_decl_tzname=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7974 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7975 if test $ac_cv_have_decl_tzname = yes; then
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 1
7983 cat >>confdefs.h <<_ACEOF
7984 #define HAVE_DECL_TZNAME 0
7991 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
7992 $as_echo_n "checking for tzname... " >&6; }
7993 if test "${ac_cv_var_tzname+set}" = set; then
7994 $as_echo_n "(cached) " >&6
7996 cat >conftest.$ac_ext <<_ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8003 #if !HAVE_DECL_TZNAME
8004 extern char *tzname[];
8010 return tzname[0][0];
8015 rm -f conftest.$ac_objext conftest$ac_exeext
8016 if { (ac_try="$ac_link"
8018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8019 *) ac_try_echo
=$ac_try;;
8021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_link") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1
>conftest.err
8027 cat conftest.err
>&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest
$ac_exeext && {
8033 test "$cross_compiling" = yes ||
8034 $as_test_x conftest
$ac_exeext
8036 ac_cv_var_tzname
=yes
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.
$ac_ext >&5
8044 rm -rf conftest.dSYM
8045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8046 conftest
$ac_exeext conftest.
$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8049 $as_echo "$ac_cv_var_tzname" >&6; }
8050 if test $ac_cv_var_tzname = yes; then
8052 cat >>confdefs.h
<<\_ACEOF
8053 #define HAVE_TZNAME 1
8059 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8060 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8061 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8062 $as_echo_n "(cached) " >&6
8064 cat >conftest.
$ac_ext <<_ACEOF
8067 cat confdefs.h
>>conftest.
$ac_ext
8068 cat >>conftest.
$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_gmtoff)
8082 rm -f conftest.
$ac_objext
8083 if { (ac_try
="$ac_compile"
8085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1 >conftest.err
8094 cat conftest.err >&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_cv_member_struct_tm_tm_gmtoff=yes
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8116 static struct tm ac_aggr;
8117 if (sizeof ac_aggr.tm_gmtoff)
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8127 *) ac_try_echo
=$ac_try;;
8129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8130 $as_echo "$ac_try_echo") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8133 grep -v '^ *+' conftest.er1
>conftest.err
8135 cat conftest.err
>&5
8136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.
$ac_objext; then
8141 ac_cv_member_struct_tm_tm_gmtoff
=yes
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.
$ac_ext >&5
8146 ac_cv_member_struct_tm_tm_gmtoff
=no
8149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8154 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8155 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8156 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8158 cat >>confdefs.h
<<\_ACEOF
8159 #define HAVE_TM_GMTOFF 1
8164 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8165 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8166 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8167 $as_echo_n "(cached) " >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8172 cat confdefs.h
>>conftest.
$ac_ext
8173 cat >>conftest.
$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8186 static struct ifreq ac_aggr;
8187 if (ac_aggr.ifr_flags)
8193 rm -f conftest.
$ac_objext
8194 if { (ac_try
="$ac_compile"
8196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_ifreq_ifr_flags=yes
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8222 $ac_includes_default
8223 #if HAVE_SYS_SOCKET_H
8224 #include <sys/socket.h>
8233 static struct ifreq ac_aggr;
8234 if (sizeof ac_aggr.ifr_flags)
8240 rm -f conftest.$ac_objext
8241 if { (ac_try="$ac_compile"
8243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8244 *) ac_try_echo
=$ac_try;;
8246 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8247 $as_echo "$ac_try_echo") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1
>conftest.err
8252 cat conftest.err
>&5
8253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.
$ac_objext; then
8258 ac_cv_member_struct_ifreq_ifr_flags
=yes
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.
$ac_ext >&5
8263 ac_cv_member_struct_ifreq_ifr_flags
=no
8266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8271 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8272 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8273 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8275 cat >>confdefs.h
<<_ACEOF
8276 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8281 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8282 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8283 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8284 $as_echo_n "(cached) " >&6
8286 cat >conftest.
$ac_ext <<_ACEOF
8289 cat confdefs.h
>>conftest.
$ac_ext
8290 cat >>conftest.
$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8303 static struct ifreq ac_aggr;
8304 if (ac_aggr.ifr_hwaddr)
8310 rm -f conftest.
$ac_objext
8311 if { (ac_try
="$ac_compile"
8313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8320 grep -v '^ *+' conftest.er1 >conftest.err
8322 cat conftest.err >&5
8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8330 $as_echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 #if HAVE_SYS_SOCKET_H
8341 #include <sys/socket.h>
8350 static struct ifreq ac_aggr;
8351 if (sizeof ac_aggr.ifr_hwaddr)
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8361 *) ac_try_echo
=$ac_try;;
8363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8364 $as_echo "$ac_try_echo") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1
>conftest.err
8369 cat conftest.err
>&5
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.
$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8377 $as_echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.
$ac_ext >&5
8380 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8388 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8389 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8390 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8392 cat >>confdefs.h
<<_ACEOF
8393 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8398 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8399 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8400 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8401 $as_echo_n "(cached) " >&6
8403 cat >conftest.
$ac_ext <<_ACEOF
8406 cat confdefs.h
>>conftest.
$ac_ext
8407 cat >>conftest.
$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 #if HAVE_SYS_SOCKET_H
8411 #include <sys/socket.h>
8420 static struct ifreq ac_aggr;
8421 if (ac_aggr.ifr_netmask)
8427 rm -f conftest.
$ac_objext
8428 if { (ac_try
="$ac_compile"
8430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8434 $as_echo "$ac_try_echo") >&5
8435 (eval "$ac_compile") 2>conftest.er1
8437 grep -v '^ *+' conftest.er1 >conftest.err
8439 cat conftest.err >&5
8440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest.$ac_objext; then
8445 ac_cv_member_struct_ifreq_ifr_netmask=yes
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 cat >conftest.$ac_ext <<_ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8467 static struct ifreq ac_aggr;
8468 if (sizeof ac_aggr.ifr_netmask)
8474 rm -f conftest.$ac_objext
8475 if { (ac_try="$ac_compile"
8477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8478 *) ac_try_echo
=$ac_try;;
8480 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8481 $as_echo "$ac_try_echo") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8484 grep -v '^ *+' conftest.er1
>conftest.err
8486 cat conftest.err
>&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.
$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.
$ac_ext >&5
8497 ac_cv_member_struct_ifreq_ifr_netmask
=no
8500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8506 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8509 cat >>confdefs.h
<<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8515 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8516 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8517 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8520 cat >conftest.
$ac_ext <<_ACEOF
8523 cat confdefs.h
>>conftest.
$ac_ext
8524 cat >>conftest.
$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 $ac_includes_default
8527 #if HAVE_SYS_SOCKET_H
8528 #include <sys/socket.h>
8537 static struct ifreq ac_aggr;
8538 if (ac_aggr.ifr_broadaddr)
8544 rm -f conftest.
$ac_objext
8545 if { (ac_try
="$ac_compile"
8547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8595 *) ac_try_echo
=$ac_try;;
8597 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1
>conftest.err
8603 cat conftest.err
>&5
8604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.
$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8611 $as_echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.
$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8623 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8626 cat >>confdefs.h
<<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8632 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8633 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8635 $as_echo_n "(cached) " >&6
8637 cat >conftest.
$ac_ext <<_ACEOF
8640 cat confdefs.h
>>conftest.
$ac_ext
8641 cat >>conftest.
$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_addr)
8661 rm -f conftest.
$ac_objext
8662 if { (ac_try
="$ac_compile"
8664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8668 $as_echo "$ac_try_echo") >&5
8669 (eval "$ac_compile") 2>conftest.er1
8671 grep -v '^ *+' conftest.er1 >conftest.err
8673 cat conftest.err >&5
8674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && {
8676 test -z "$ac_c_werror_flag" ||
8677 test ! -s conftest.err
8678 } && test -s conftest.$ac_objext; then
8679 ac_cv_member_struct_ifreq_ifr_addr=yes
8681 $as_echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 cat >conftest.$ac_ext <<_ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8690 $ac_includes_default
8691 #if HAVE_SYS_SOCKET_H
8692 #include <sys/socket.h>
8701 static struct ifreq ac_aggr;
8702 if (sizeof ac_aggr.ifr_addr)
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8712 *) ac_try_echo
=$ac_try;;
8714 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8715 $as_echo "$ac_try_echo") >&5
8716 (eval "$ac_compile") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1
>conftest.err
8720 cat conftest.err
>&5
8721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest.
$ac_objext; then
8726 ac_cv_member_struct_ifreq_ifr_addr
=yes
8728 $as_echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.
$ac_ext >&5
8731 ac_cv_member_struct_ifreq_ifr_addr
=no
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8739 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8740 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8741 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8743 cat >>confdefs.h
<<_ACEOF
8744 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8752 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8753 $as_echo_n "checking for function prototypes... " >&6; }
8754 if test "$ac_cv_prog_cc_c89" != no
; then
8755 { $as_echo "$as_me:$LINENO: result: yes" >&5
8756 $as_echo "yes" >&6; }
8758 cat >>confdefs.h
<<\_ACEOF
8759 #define PROTOTYPES 1
8763 cat >>confdefs.h
<<\_ACEOF
8764 #define __PROTOTYPES 1
8768 { $as_echo "$as_me:$LINENO: result: no" >&5
8769 $as_echo "no" >&6; }
8772 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8773 $as_echo_n "checking for working volatile... " >&6; }
8774 if test "${ac_cv_c_volatile+set}" = set; then
8775 $as_echo_n "(cached) " >&6
8777 cat >conftest.
$ac_ext <<_ACEOF
8780 cat confdefs.h
>>conftest.
$ac_ext
8781 cat >>conftest.
$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8789 int * volatile y = (int *) 0;
8795 rm -f conftest.
$ac_objext
8796 if { (ac_try
="$ac_compile"
8798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8805 grep -v '^ *+' conftest.er1 >conftest.err
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest.$ac_objext; then
8813 ac_cv_c_volatile=yes
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8824 $as_echo "$ac_cv_c_volatile" >&6; }
8825 if test $ac_cv_c_volatile = no; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define volatile /**/
8833 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8834 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8835 if test "${ac_cv_c_const+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8848 /* FIXME: Include the comments suggested by Paul. */
8850 /* Ultrix mips cc rejects this. */
8851 typedef int charset[2];
8853 /* SunOS 4.1.1 cc rejects this. */
8854 char const *const *pcpcc;
8856 /* NEC SVR4.0.2 mips cc rejects this. */
8857 struct point {int x, y;};
8858 static struct point const zero = {0,0};
8859 /* AIX XL C 1.02.0.0 rejects this.
8860 It does not let you subtract one const X* pointer from another in
8861 an arm of an if-expression whose if-part is not a constant
8863 const char *g = "string";
8864 pcpcc = &g + (g ? g-g : 0);
8865 /* HPUX 7.0 cc rejects these. */
8867 ppc = (char**) pcpcc;
8868 pcpcc = (char const *const *) ppc;
8869 { /* SCO 3.2v4 cc rejects this. */
8871 char const *s = 0 ? (char *) 0 : (char const *) 0;
8876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8878 const int *foo = &x[0];
8881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8882 typedef const int *iptr;
8886 { /* AIX XL C 1.02.0.0 rejects this saying
8887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8888 struct s { int j; const int *ap[3]; };
8889 struct s *b; b->j = 5;
8891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8895 return !cs[0] && !zero.x;
8902 rm -f conftest.$ac_objext
8903 if { (ac_try="$ac_compile"
8905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8906 *) ac_try_echo
=$ac_try;;
8908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8909 $as_echo "$ac_try_echo") >&5
8910 (eval "$ac_compile") 2>conftest.er1
8912 grep -v '^ *+' conftest.er1
>conftest.err
8914 cat conftest.err
>&5
8915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest.
$ac_objext; then
8922 $as_echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.
$ac_ext >&5
8928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8930 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8931 $as_echo "$ac_cv_c_const" >&6; }
8932 if test $ac_cv_c_const = no
; then
8934 cat >>confdefs.h
<<\_ACEOF
8940 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
8941 $as_echo_n "checking for void * support... " >&6; }
8942 if test "${emacs_cv_void_star+set}" = set; then
8943 $as_echo_n "(cached) " >&6
8945 cat >conftest.
$ac_ext <<_ACEOF
8948 cat confdefs.h
>>conftest.
$ac_ext
8949 cat >>conftest.
$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8960 rm -f conftest.
$ac_objext
8961 if { (ac_try
="$ac_compile"
8963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8967 $as_echo "$ac_try_echo") >&5
8968 (eval "$ac_compile") 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } && {
8975 test -z "$ac_c_werror_flag" ||
8976 test ! -s conftest.err
8977 } && test -s conftest.$ac_objext; then
8978 emacs_cv_void_star=yes
8980 $as_echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 emacs_cv_void_star=no
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8989 $as_echo "$emacs_cv_void_star" >&6; }
8990 if test $emacs_cv_void_star = yes; then
8991 cat >>confdefs.h <<\_ACEOF
8992 #define POINTER_TYPE void
8996 cat >>confdefs.h <<\_ACEOF
8997 #define POINTER_TYPE char
9006 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9009 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9010 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9011 $as_echo_n "(cached) " >&6
9013 cat >conftest.make <<\_ACEOF
9016 @echo '@@@%%%=$(MAKE)=@@@%%%'
9018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9019 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9021 eval ac_cv_prog_make_${ac_make}_set=yes;;
9023 eval ac_cv_prog_make_${ac_make}_set=no;;
9027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9028 { $as_echo "$as_me:$LINENO: result: yes" >&5
9029 $as_echo "yes" >&6; }
9032 { $as_echo "$as_me:$LINENO: result: no" >&5
9033 $as_echo "no" >&6; }
9034 SET_MAKE="MAKE=${MAKE-make}"
9038 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9039 $as_echo_n "checking for long file names... " >&6; }
9040 if test "${ac_cv_sys_long_file_names+set}" = set; then
9041 $as_echo_n "(cached) " >&6
9043 ac_cv_sys_long_file_names=yes
9044 # Test for long file names in all the places we know might matter:
9045 # . the current directory, where building will happen
9046 # $prefix/lib where we will be installing things
9047 # $exec_prefix/lib likewise
9048 # $TMPDIR if set, where it might want to write temporary files
9049 # /tmp where it might want to write temporary files
9052 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9053 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9054 # in the usual case where exec_prefix is '${prefix}'.
9056 . | /* | ?:[\\/]*) ;; #(
9059 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9060 ac_xdir=$ac_dir/cf$$
9061 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9062 ac_tf1=$ac_xdir/conftest9012345
9063 ac_tf2=$ac_xdir/conftest9012346
9064 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9065 ac_cv_sys_long_file_names=no
9066 rm -f -r "$ac_xdir" 2>/dev/null
9067 test $ac_cv_sys_long_file_names = no && break
9070 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9071 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9072 if test $ac_cv_sys_long_file_names = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_LONG_FILE_NAMES 1
9081 #### Choose a window system.
9083 { $as_echo "$as_me:$LINENO: checking for X" >&5
9084 $as_echo_n "checking for X... " >&6; }
9087 # Check whether --with-x was given.
9088 if test "${with_x+set}" = set; then
9092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9093 if test "x$with_x" = xno; then
9094 # The user explicitly disabled X.
9097 case $x_includes,$x_libraries in #(
9098 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9099 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9100 { (exit 1); exit 1; }; };; #(
9101 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9102 $as_echo_n "(cached) " >&6
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes=no ac_x_libraries=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir; then
9109 cat >Imakefile <<'_ACEOF'
9111 @echo incroot='${INCROOT}'
9113 @echo usrlibdir='${USRLIBDIR}'
9115 @echo libdir='${LIBDIR}'
9117 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var in incroot usrlibdir libdir; do
9120 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension in a so sl dylib la dll; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir=$ac_im_libdir; break
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr/include) ac_x_includes= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9136 case $ac_im_usrlibdir in
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9142 rm -f -r conftest.dir
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9158 /usr/local/X11/include
9159 /usr/local/X11R6/include
9160 /usr/local/X11R5/include
9161 /usr/local/X11R4/include
9163 /usr/local/include/X11
9164 /usr/local/include/X11R6
9165 /usr/local/include/X11R5
9166 /usr/local/include/X11R4
9170 /usr/XFree86/include/X11
9174 /usr/unsupported/include
9176 /usr/local/x11r5/include
9177 /usr/lpp/Xamples/include
9179 /usr/openwin/include
9180 /usr/openwin/share/include'
9182 if test "$ac_x_includes" = no; then
9183 # Guess where to find include files, by looking for Xlib.h.
9184 # First, try using that file with no special directory specified.
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9193 if { (ac_try="$ac_cpp conftest.$ac_ext"
9195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9196 *) ac_try_echo
=$ac_try;;
9198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9199 $as_echo "$ac_try_echo") >&5
9200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1
>conftest.err
9204 cat conftest.err
>&5
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev
/null
&& {
9207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9210 # We can compile using X headers with no special include directory.
9213 $as_echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9216 for ac_dir
in $ac_x_header_dirs; do
9217 if test -r "$ac_dir/X11/Xlib.h"; then
9218 ac_x_includes
=$ac_dir
9224 rm -f conftest.err conftest.
$ac_ext
9225 fi # $ac_x_includes = no
9227 if test "$ac_x_libraries" = no
; then
9228 # Check for the libraries.
9229 # See if we find them without any special options.
9230 # Don't add to $LIBS permanently.
9233 cat >conftest.
$ac_ext <<_ACEOF
9236 cat confdefs.h
>>conftest.
$ac_ext
9237 cat >>conftest.
$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9239 #include <X11/Xlib.h>
9248 rm -f conftest.
$ac_objext conftest
$ac_exeext
9249 if { (ac_try
="$ac_link"
9251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9252 *) ac_try_echo=$ac_try;;
9254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9255 $as_echo "$ac_try_echo") >&5
9256 (eval "$ac_link") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext && {
9266 test "$cross_compiling" = yes ||
9267 $as_test_x conftest$ac_exeext
9270 # We can link X programs with no special library path.
9273 $as_echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9277 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9279 # Don't even attempt the hair of trying to link an X program!
9280 for ac_extension in a so sl dylib la dll; do
9281 if test -r "$ac_dir/libX11.$ac_extension"; then
9282 ac_x_libraries=$ac_dir
9289 rm -rf conftest.dSYM
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 fi # $ac_x_libraries = no
9294 case $ac_x_includes,$ac_x_libraries in #(
9296 # Didn't find X, or a directory has "'" in its name.
9297 ac_cv_have_x="have_x=no";; #(
9299 # Record where we found X for the cache.
9300 ac_cv_have_x="have_x=yes\
9301 ac_x_includes='$ac_x_includes'\
9302 ac_x_libraries='$ac_x_libraries'"
9308 eval "$ac_cv_have_x"
9311 if test "$have_x" != yes; then
9312 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9313 $as_echo "$have_x" >&6; }
9316 # If each of the values was on the command line, it overrides each guess.
9317 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9318 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9319 # Update the cache value to reflect the command line values.
9320 ac_cv_have_x="have_x=yes\
9321 ac_x_includes='$x_includes'\
9322 ac_x_libraries='$x_libraries'"
9323 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9324 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9327 if test "$no_x" = yes; then
9333 ## Workaround for bug in autoconf <= 2.62.
9334 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9335 ## No need to do anything special for these standard directories.
9336 ## This is an experiment, take it out if it causes problems.
9337 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9339 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9343 if test "${x_libraries}" != NONE; then
9344 if test -n "${x_libraries}"; then
9345 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9346 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9348 x_default_search_path=""
9349 x_search_path=${x_libraries}
9350 if test -z "${x_search_path}"; then
9351 x_search_path=/usr/lib
9353 for x_library in `echo ${x_search_path}: | \
9354 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9356 ${x_library}/X11/%L/%T/%N%C%S:\
9357 ${x_library}/X11/%l/%T/%N%C%S:\
9358 ${x_library}/X11/%T/%N%C%S:\
9359 ${x_library}/X11/%L/%T/%N%S:\
9360 ${x_library}/X11/%l/%T/%N%S:\
9361 ${x_library}/X11/%T/%N%S"
9362 if test x"${x_default_search_path}" = x; then
9363 x_default_search_path=${x_search_path}
9365 x_default_search_path="${x_search_path}:${x_default_search_path}"
9369 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9370 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9373 if test x"${x_includes}" = x; then
9374 bitmapdir=/usr/include/X11/bitmaps
9376 # accumulate include directories that have X11 bitmap subdirectories
9378 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9379 if test -d "${bmd}/X11/bitmaps"; then
9380 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9382 if test -d "${bmd}/bitmaps"; then
9383 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9386 if test ${bmd_acc} != "dummyval"; then
9387 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9394 tmp_CPPFLAGS="$CPPFLAGS"
9395 tmp_CFLAGS="$CFLAGS"
9396 CPPFLAGS="$CPPFLAGS -x objective-c"
9397 CFLAGS="$CFLAGS -x objective-c"
9398 if test "${with_ns}" != no; then
9399 if test "${opsys}" = darwin; then
9401 ns_appdir=`pwd`/nextstep/Emacs.app
9402 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9403 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9404 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9405 elif test -f $GNUSTEP_CONFIG_FILE; then
9407 ns_appdir=`pwd`/nextstep/Emacs.app
9408 ns_appbindir=`pwd`/nextstep/Emacs.app
9409 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9410 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9411 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9412 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9413 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9414 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9415 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9416 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9417 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9419 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9420 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9421 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9422 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9426 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9428 # Is the header compilable?
9429 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9430 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9431 cat >conftest.$ac_ext <<_ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 $ac_includes_default
9438 #include <AppKit/AppKit.h>
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9444 *) ac_try_echo
=$ac_try;;
9446 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448 (eval "$ac_compile") 2>conftest.er1
9450 grep -v '^ *+' conftest.er1
>conftest.err
9452 cat conftest.err
>&5
9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } && {
9455 test -z "$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 } && test -s conftest.
$ac_objext; then
9458 ac_header_compiler
=yes
9460 $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.
$ac_ext >&5
9463 ac_header_compiler
=no
9466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9468 $as_echo "$ac_header_compiler" >&6; }
9470 # Is the header present?
9471 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9472 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9473 cat >conftest.
$ac_ext <<_ACEOF
9476 cat confdefs.h
>>conftest.
$ac_ext
9477 cat >>conftest.
$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <AppKit/AppKit.h>
9481 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9487 $as_echo "$ac_try_echo") >&5
9488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9490 grep -v '^ *+' conftest.er1 >conftest.err
9492 cat conftest.err >&5
9493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } >/dev/null && {
9495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9496 test ! -s conftest.err
9498 ac_header_preproc=yes
9500 $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_preproc=no
9506 rm -f conftest.err conftest.$ac_ext
9507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9508 $as_echo "$ac_header_preproc" >&6; }
9510 # So? What about this header?
9511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9513 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9514 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9515 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9516 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9517 ac_header_preproc=yes
9520 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9521 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9522 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9523 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9524 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9525 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9526 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9527 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9528 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9529 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9530 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9531 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9535 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9536 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9537 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9538 $as_echo_n "(cached) " >&6
9540 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9543 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9546 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9549 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9550 files are missing or cannot be compiled." >&5
9551 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9552 files are missing or cannot be compiled.
" >&2;}
9553 { (exit 1); exit 1; }; }
9557 NS_HAVE_NSINTEGER=yes
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 #include <Foundation/NSObjCRuntime.h>
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9580 $as_echo "$ac_try_echo") >&5
9581 (eval "$ac_compile") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest.$ac_objext; then
9591 ns_have_nsinteger=yes
9593 $as_echo "$as_me: failed program was
:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ns_have_nsinteger=no
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 if test $ns_have_nsinteger = no; then
9601 NS_HAVE_NSINTEGER=no
9604 if test "${HAVE_NS}" = yes; then
9605 window_system=nextstep
9608 # set up packaging dirs
9609 exec_prefix=${ns_appbindir}
9610 libexecdir=${ns_appbindir}/libexec
9611 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9612 prefix=${ns_appresdir}
9615 CFLAGS="$tmp_CFLAGS"
9616 CPPFLAGS="$tmp_CPPFLAGS"
9618 case "${window_system}" in
9622 case "${with_x_toolkit}" in
9623 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9624 motif ) USE_X_TOOLKIT=MOTIF ;;
9626 USE_X_TOOLKIT=none ;;
9627 no ) USE_X_TOOLKIT=none ;;
9628 * ) USE_X_TOOLKIT=maybe ;;
9638 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9639 # Extract the first word of "X
", so it can be a program name with args.
9640 set dummy X; ac_word=$2
9641 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9642 $as_echo_n "checking
for $ac_word...
" >&6; }
9643 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9644 $as_echo_n "(cached
) " >&6
9646 if test -n "$HAVE_XSERVER"; then
9647 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_HAVE_XSERVER="true
"
9657 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9664 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9667 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9668 if test -n "$HAVE_XSERVER"; then
9669 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9670 $as_echo "$HAVE_XSERVER" >&6; }
9672 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9673 $as_echo "no
" >&6; }
9677 if test "$HAVE_XSERVER" = true ||
9678 test -n "$DISPLAY" ||
9679 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9680 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9681 were found. You should
install the relevant development files
for X
9682 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9683 sure you have development files
for image handling
, i.e.
9684 tiff
, gif
, jpeg
, png and xpm.
9685 If you are sure you want Emacs compiled without X window support
, pass
9688 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
9689 were found. You should
install the relevant development files
for X
9690 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9691 sure you have development files
for image handling
, i.e.
9692 tiff
, gif
, jpeg
, png and xpm.
9693 If you are sure you want Emacs compiled without X window support
, pass
9695 to configure.
" >&2;}
9696 { (exit 1); exit 1; }; }
9700 ### If we're using X11, we should use the X menu package.
9703 yes ) HAVE_MENUS=yes ;;
9706 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9707 # Assume not, until told otherwise.
9710 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9711 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9712 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9713 $as_echo_n "(cached
) " >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_get_state innocuous_malloc_get_state
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_get_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9736 #undef malloc_get_state
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9744 char malloc_get_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9755 return malloc_get_state ();
9760 rm -f conftest.$ac_objext conftest$ac_exeext
9761 if { (ac_try="$ac_link"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext && {
9778 test "$cross_compiling" = yes ||
9779 $as_test_x conftest$ac_exeext
9781 ac_cv_func_malloc_get_state=yes
9783 $as_echo "$as_me: failed program was
:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9786 ac_cv_func_malloc_get_state=no
9789 rm -rf conftest.dSYM
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791 conftest$ac_exeext conftest.$ac_ext
9793 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9794 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9795 if test $ac_cv_func_malloc_get_state = yes; then
9801 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9802 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9803 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9804 $as_echo_n "(cached
) " >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814 #define malloc_set_state innocuous_malloc_set_state
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char malloc_set_state (); below.
9818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819 <limits.h> exists even on freestanding compilers. */
9822 # include <limits.h>
9824 # include <assert.h>
9827 #undef malloc_set_state
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9835 char malloc_set_state ();
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9846 return malloc_set_state ();
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9858 $as_echo "$ac_try_echo") >&5
9859 (eval "$ac_link") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1 >conftest.err
9863 cat conftest.err >&5
9864 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest$ac_exeext && {
9869 test "$cross_compiling" = yes ||
9870 $as_test_x conftest$ac_exeext
9872 ac_cv_func_malloc_set_state=yes
9874 $as_echo "$as_me: failed program was
:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 ac_cv_func_malloc_set_state=no
9880 rm -rf conftest.dSYM
9881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9882 conftest$ac_exeext conftest.$ac_ext
9884 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9885 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9886 if test $ac_cv_func_malloc_set_state = yes; then
9892 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9893 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9894 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9895 $as_echo_n "(cached
) " >&6
9897 cat >conftest.$ac_ext <<_ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 extern void (* __after_morecore_hook)();
9907 __after_morecore_hook = 0
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9919 $as_echo "$ac_try_echo") >&5
9920 (eval "$ac_link") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1 >conftest.err
9924 cat conftest.err >&5
9925 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9926 (exit $ac_status); } && {
9927 test -z "$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 } && test -s conftest$ac_exeext && {
9930 test "$cross_compiling" = yes ||
9931 $as_test_x conftest$ac_exeext
9933 emacs_cv_var___after_morecore_hook=yes
9935 $as_echo "$as_me: failed program was
:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 emacs_cv_var___after_morecore_hook=no
9941 rm -rf conftest.dSYM
9942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943 conftest$ac_exeext conftest.$ac_ext
9945 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
9946 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9947 if test $emacs_cv_var___after_morecore_hook = no; then
9950 if test "${system_malloc}" = "yes"; then
9953 (The GNU allocators don
't work with this system configuration.)"
9955 if test "$doug_lea_malloc" = "yes" ; then
9956 if test "$GNU_MALLOC" = yes ; then
9958 (Using Doug Lea's new malloc from the GNU C Library.
)"
9961 cat >>confdefs.h <<\_ACEOF
9962 #define DOUG_LEA_MALLOC 1
9967 if test x"${REL_ALLOC}" = x; then
9968 REL_ALLOC=${GNU_MALLOC}
9974 for ac_header in stdlib.h unistd.h
9976 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9978 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
9979 $as_echo_n "checking
for $ac_header...
" >&6; }
9980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9981 $as_echo_n "(cached
) " >&6
9983 ac_res=`eval 'as_val=${'$as_ac_Header'}
9984 $as_echo "$as_val"'`
9985 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
9986 $as_echo "$ac_res" >&6; }
9988 # Is the header compilable?
9989 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9990 $as_echo_n "checking
$ac_header usability...
" >&6; }
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 #include <$ac_header>
10000 rm -f conftest.$ac_objext
10001 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
10018 ac_header_compiler=yes
10020 $as_echo "$as_me: failed program was
:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023 ac_header_compiler=no
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10028 $as_echo "$ac_header_compiler" >&6; }
10030 # Is the header present?
10031 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10032 $as_echo_n "checking
$ac_header presence...
" >&6; }
10033 cat >conftest.$ac_ext <<_ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10039 #include <$ac_header>
10041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10047 $as_echo "$ac_try_echo") >&5
10048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10050 grep -v '^ *+' conftest.er1 >conftest.err
10052 cat conftest.err >&5
10053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10054 (exit $ac_status); } >/dev/null && {
10055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10058 ac_header_preproc=yes
10060 $as_echo "$as_me: failed program was
:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_header_preproc=no
10066 rm -f conftest.err conftest.$ac_ext
10067 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10068 $as_echo "$ac_header_preproc" >&6; }
10070 # So? What about this header?
10071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10074 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10077 ac_header_preproc=yes
10080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10081 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10083 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10084 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10085 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10086 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10087 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10088 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10090 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10091 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10095 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10096 $as_echo_n "checking
for $ac_header...
" >&6; }
10097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10098 $as_echo_n "(cached
) " >&6
10100 eval "$as_ac_Header=\
$ac_header_preproc"
10102 ac_res=`eval 'as_val=${'$as_ac_Header'}
10103 $as_echo "$as_val"'`
10104 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10105 $as_echo "$ac_res" >&6; }
10108 if test `eval 'as_val=${'$as_ac_Header'}
10109 $as_echo "$as_val"'` = yes; then
10110 cat >>confdefs.h <<_ACEOF
10111 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10119 for ac_func in getpagesize
10121 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10122 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10123 $as_echo_n "checking
for $ac_func...
" >&6; }
10124 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10125 $as_echo_n "(cached
) " >&6
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10143 # include <limits.h>
10145 # include <assert.h>
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10157 /* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160 #if defined __stub_$ac_func || defined __stub___$ac_func
10167 return $ac_func ();
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10179 $as_echo "$ac_try_echo") >&5
10180 (eval "$ac_link") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest$ac_exeext && {
10190 test "$cross_compiling" = yes ||
10191 $as_test_x conftest$ac_exeext
10193 eval "$as_ac_var=yes"
10195 $as_echo "$as_me: failed program was
:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 eval "$as_ac_var=no
"
10201 rm -rf conftest.dSYM
10202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10203 conftest$ac_exeext conftest.$ac_ext
10205 ac_res=`eval 'as_val=${'$as_ac_var'}
10206 $as_echo "$as_val"'`
10207 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10208 $as_echo "$ac_res" >&6; }
10209 if test `eval 'as_val=${'$as_ac_var'}
10210 $as_echo "$as_val"'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10218 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10219 $as_echo_n "checking
for working mmap...
" >&6; }
10220 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10221 $as_echo_n "(cached
) " >&6
10223 if test "$cross_compiling" = yes; then
10224 ac_cv_func_mmap_fixed_mapped=no
10226 cat >conftest.$ac_ext <<_ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h. */
10232 $ac_includes_default
10233 /* malloc might have been renamed as rpl_malloc. */
10236 /* Thanks to Mike Haertel and Jim Avera for this test.
10237 Here is a matrix of mmap possibilities:
10238 mmap private not fixed
10239 mmap private fixed at somewhere currently unmapped
10240 mmap private fixed at somewhere already mapped
10241 mmap shared not fixed
10242 mmap shared fixed at somewhere currently unmapped
10243 mmap shared fixed at somewhere already mapped
10244 For private mappings, we should verify that changes cannot be read()
10245 back from the file, nor mmap's back from the file at a different
10246 address. (There have been systems where private was not correctly
10247 implemented like the infamous i386 svr4.0, and systems where the
10248 VM page cache was not coherent with the file system buffer cache
10249 like early versions of FreeBSD and possibly contemporary NetBSD.)
10250 For shared mappings, we should conversely verify that changes get
10251 propagated back to all the places they're supposed to be.
10253 Grep wants private fixed already mapped.
10254 The main things grep needs to know about mmap are:
10255 * does it exist and is it safe to write into the mmap'd area
10256 * how to use it (BSD variants) */
10259 #include <sys/mman.h>
10261 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10265 /* This mess was copied from the GNU getpagesize.h. */
10266 #ifndef HAVE_GETPAGESIZE
10267 /* Assume that all systems that can run configure have sys/param.h. */
10268 # ifndef HAVE_SYS_PARAM_H
10269 # define HAVE_SYS_PARAM_H 1
10272 # ifdef _SC_PAGESIZE
10273 # define getpagesize() sysconf(_SC_PAGESIZE)
10274 # else /* no _SC_PAGESIZE */
10275 # ifdef HAVE_SYS_PARAM_H
10276 # include <sys/param.h>
10277 # ifdef EXEC_PAGESIZE
10278 # define getpagesize() EXEC_PAGESIZE
10279 # else /* no EXEC_PAGESIZE */
10281 # define getpagesize() NBPG * CLSIZE
10284 # endif /* no CLSIZE */
10285 # else /* no NBPG */
10287 # define getpagesize() NBPC
10288 # else /* no NBPC */
10290 # define getpagesize() PAGESIZE
10291 # endif /* PAGESIZE */
10292 # endif /* no NBPC */
10293 # endif /* no NBPG */
10294 # endif /* no EXEC_PAGESIZE */
10295 # else /* no HAVE_SYS_PARAM_H */
10296 # define getpagesize() 8192 /* punt totally */
10297 # endif /* no HAVE_SYS_PARAM_H */
10298 # endif /* no _SC_PAGESIZE */
10300 #endif /* no HAVE_GETPAGESIZE */
10305 char *data, *data2, *data3;
10309 pagesize = getpagesize ();
10311 /* First, make a file with some known garbage in it. */
10312 data = (char *) malloc (pagesize);
10315 for (i = 0; i < pagesize; ++i)
10316 *(data + i) = rand ();
10318 fd = creat ("conftest.mmap
", 0600);
10321 if (write (fd, data, pagesize) != pagesize)
10325 /* Next, try to mmap the file at a fixed address which already has
10326 something else allocated at it. If we can, also make sure that
10327 we see the same garbage. */
10328 fd = open ("conftest.mmap
", O_RDWR);
10331 data2 = (char *) malloc (2 * pagesize);
10334 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10335 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10336 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10338 for (i = 0; i < pagesize; ++i)
10339 if (*(data + i) != *(data2 + i))
10342 /* Finally, make sure that changes to the mapped area do not
10343 percolate back to the file as seen by read(). (This is a bug on
10344 some variants of i386 svr4.0.) */
10345 for (i = 0; i < pagesize; ++i)
10346 *(data2 + i) = *(data2 + i) + 1;
10347 data3 = (char *) malloc (pagesize);
10350 if (read (fd, data3, pagesize) != pagesize)
10352 for (i = 0; i < pagesize; ++i)
10353 if (*(data + i) != *(data3 + i))
10359 rm -f conftest$ac_exeext
10360 if { (ac_try="$ac_link"
10361 case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10366 $as_echo "$ac_try_echo") >&5
10367 (eval "$ac_link") 2>&5
10369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10371 { (case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10376 $as_echo "$ac_try_echo") >&5
10377 (eval "$ac_try") 2>&5
10379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_func_mmap_fixed_mapped=yes
10383 $as_echo "$as_me: program exited with status
$ac_status" >&5
10384 $as_echo "$as_me: failed program was
:" >&5
10385 sed 's/^/| /' conftest.$ac_ext >&5
10387 ( exit $ac_status )
10388 ac_cv_func_mmap_fixed_mapped=no
10390 rm -rf conftest.dSYM
10391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10397 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10398 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_MMAP 1
10405 rm -f conftest.mmap
10407 if test $use_mmap_for_buffers = yes; then
10411 LIBS="$libsrc_libs $LIBS"
10414 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10415 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10416 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10417 $as_echo_n "(cached
) " >&6
10419 ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-ldnet $LIBS"
10421 cat >conftest.$ac_ext <<_ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h. */
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10438 return dnet_ntoa ();
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_link") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext && {
10461 test "$cross_compiling" = yes ||
10462 $as_test_x conftest$ac_exeext
10464 ac_cv_lib_dnet_dnet_ntoa=yes
10466 $as_echo "$as_me: failed program was
:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_cv_lib_dnet_dnet_ntoa=no
10472 rm -rf conftest.dSYM
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10478 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10479 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define HAVE_LIBDNET 1
10484 LIBS="-ldnet $LIBS"
10489 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10490 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10491 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10492 $as_echo_n "(cached
) " >&6
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lXbsd $LIBS"
10496 cat >conftest.$ac_ext <<_ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10518 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10519 $as_echo "$ac_try_echo") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext && {
10530 test "$cross_compiling" = yes ||
10531 $as_test_x conftest$ac_exeext
10533 ac_cv_lib_Xbsd_main=yes
10535 $as_echo "$as_me: failed program was
:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10538 ac_cv_lib_Xbsd_main=no
10541 rm -rf conftest.dSYM
10542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10543 conftest$ac_exeext conftest.$ac_ext
10544 LIBS=$ac_check_lib_save_LIBS
10546 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10547 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10548 if test $ac_cv_lib_Xbsd_main = yes; then
10549 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10554 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10555 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10556 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10557 $as_echo_n "(cached
) " >&6
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lpthreads $LIBS"
10561 cat >conftest.$ac_ext <<_ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10578 return cma_open ();
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10590 $as_echo "$ac_try_echo") >&5
10591 (eval "$ac_link") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext && {
10601 test "$cross_compiling" = yes ||
10602 $as_test_x conftest$ac_exeext
10604 ac_cv_lib_pthreads_cma_open=yes
10606 $as_echo "$as_me: failed program was
:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_cv_lib_pthreads_cma_open=no
10612 rm -rf conftest.dSYM
10613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10618 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10619 if test $ac_cv_lib_pthreads_cma_open = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define HAVE_LIBPTHREADS 1
10624 LIBS="-lpthreads $LIBS"
10632 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10633 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10634 if test "${gdb_cv_bigtoc+set}" = set; then
10635 $as_echo_n "(cached
) " >&6
10639 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10640 *) gdb_cv_bigtoc=-bbigtoc ;;
10643 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10666 $as_echo "$ac_try_echo") >&5
10667 (eval "$ac_link") 2>conftest.er1
10669 grep -v '^ *+' conftest.er1 >conftest.err
10671 cat conftest.err >&5
10672 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest$ac_exeext && {
10677 test "$cross_compiling" = yes ||
10678 $as_test_x conftest$ac_exeext
10682 $as_echo "$as_me: failed program was
:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10688 rm -rf conftest.dSYM
10689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10690 conftest$ac_exeext conftest.$ac_ext
10693 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10694 $as_echo "$gdb_cv_bigtoc" >&6; }
10698 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10699 # used for the tests that follow. We set them back to REAL_CFLAGS and
10700 # REAL_CPPFLAGS later on.
10702 REAL_CPPFLAGS="$CPPFLAGS"
10704 if test "${HAVE_X11}" = "yes"; then
10705 DEFS="$C_SWITCH_X_SITE $DEFS"
10706 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10708 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10709 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10711 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10712 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10713 # but it's more convenient here to set LD_RUN_PATH
10714 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10715 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10716 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10720 if test "${opsys}" = "gnu-linux
"; then
10721 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10722 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10733 XOpenDisplay ("foo
");
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10744 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10745 $as_echo "$ac_try_echo") >&5
10746 (eval "$ac_link") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext && {
10756 test "$cross_compiling" = yes ||
10757 $as_test_x conftest$ac_exeext
10759 xlinux_first_failure=no
10761 $as_echo "$as_me: failed program was
:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 xlinux_first_failure=yes
10767 rm -rf conftest.dSYM
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 if test "${xlinux_first_failure}" = "yes"; then
10771 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10772 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10773 OLD_CPPFLAGS="$CPPFLAGS"
10775 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10776 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10777 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10778 LIBS="$LIBS -b i486-linuxaout
"
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10789 XOpenDisplay ("foo
");
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10801 $as_echo "$ac_try_echo") >&5
10802 (eval "$ac_link") 2>conftest.er1
10804 grep -v '^ *+' conftest.er1 >conftest.err
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext && {
10812 test "$cross_compiling" = yes ||
10813 $as_test_x conftest$ac_exeext
10815 xlinux_second_failure=no
10817 $as_echo "$as_me: failed program was
:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 xlinux_second_failure=yes
10823 rm -rf conftest.dSYM
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10826 if test "${xlinux_second_failure}" = "yes"; then
10827 # If we get the same failure with -b, there is no use adding -b.
10828 # So take it out. This plays safe.
10829 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10830 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10831 CPPFLAGS="$OLD_CPPFLAGS"
10833 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10834 $as_echo "no
" >&6; }
10836 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10837 $as_echo "yes" >&6; }
10840 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10841 $as_echo "no
" >&6; }
10845 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10846 # header files included from there.
10847 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10848 $as_echo_n "checking
for Xkb...
" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <X11/Xlib.h>
10856 #include <X11/XKBlib.h>
10860 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10865 rm -f conftest.$ac_objext conftest$ac_exeext
10866 if { (ac_try="$ac_link"
10867 case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10872 $as_echo "$ac_try_echo") >&5
10873 (eval "$ac_link") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1 >conftest.err
10877 cat conftest.err >&5
10878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest$ac_exeext
10888 $as_echo "$as_me: failed program was
:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10894 rm -rf conftest.dSYM
10895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10896 conftest$ac_exeext conftest.$ac_ext
10897 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10898 $as_echo "$emacs_xkb" >&6; }
10899 if test $emacs_xkb = yes; then
10901 cat >>confdefs.h <<\_ACEOF
10902 #define HAVE_XKBGETKEYBOARD 1
10911 for ac_func in XrmSetDatabase XScreenResourceString \
10912 XScreenNumberOfScreen XSetWMProtocols
10914 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10915 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10916 $as_echo_n "checking
for $ac_func...
" >&6; }
10917 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10918 $as_echo_n "(cached
) " >&6
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10928 #define $ac_func innocuous_$ac_func
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func (); below.
10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10933 <limits.h> exists even on freestanding compilers. */
10936 # include <limits.h>
10938 # include <assert.h>
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10950 /* The GNU C library defines this for functions which it implements
10951 to always fail with ENOSYS. Some functions are actually named
10952 something starting with __ and the normal name is an alias. */
10953 #if defined __stub_$ac_func || defined __stub___$ac_func
10960 return $ac_func ();
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (ac_try="$ac_link"
10967 case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10972 $as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10975 grep -v '^ *+' conftest.er1 >conftest.err
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10986 eval "$as_ac_var=yes"
10988 $as_echo "$as_me: failed program was
:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 eval "$as_ac_var=no
"
10994 rm -rf conftest.dSYM
10995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
10998 ac_res=`eval 'as_val=${'$as_ac_var'}
10999 $as_echo "$as_val"'`
11000 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11001 $as_echo "$ac_res" >&6; }
11002 if test `eval 'as_val=${'$as_ac_var'}
11003 $as_echo "$as_val"'` = yes; then
11004 cat >>confdefs.h <<_ACEOF
11005 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11013 if test "${window_system}" = "x11
"; then
11014 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11015 $as_echo_n "checking X11 version
6...
" >&6; }
11016 if test "${emacs_cv_x11_version_6+set}" = set; then
11017 $as_echo_n "(cached
) " >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <X11/Xlib.h>
11029 #if XlibSpecificationRelease < 6
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045 (eval "$ac_link") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext && {
11055 test "$cross_compiling" = yes ||
11056 $as_test_x conftest$ac_exeext
11058 emacs_cv_x11_version_6=yes
11060 $as_echo "$as_me: failed program was
:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 emacs_cv_x11_version_6=no
11066 rm -rf conftest.dSYM
11067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11071 if test $emacs_cv_x11_version_6 = yes; then
11072 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11073 $as_echo "6 or newer
" >&6; }
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_X11R6 1
11080 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11081 $as_echo "before
6" >&6; }
11086 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11088 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11089 if test "${with_rsvg}" != "no
"; then
11090 RSVG_REQUIRED=2.11.0
11091 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11096 # Extract the first word of "pkg-config
", so it can be a program name with args.
11097 set dummy pkg-config; ac_word=$2
11098 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11099 $as_echo_n "checking
for $ac_word...
" >&6; }
11100 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11101 $as_echo_n "(cached
) " >&6
11103 case $PKG_CONFIG in
11105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 for as_dir in $PATH
11112 test -z "$as_dir" && as_dir=.
11113 for ac_exec_ext in '' $ac_executable_extensions; do
11114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11116 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11128 if test -n "$PKG_CONFIG"; then
11129 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11130 $as_echo "$PKG_CONFIG" >&6; }
11132 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11133 $as_echo "no
" >&6; }
11138 if test "$PKG_CONFIG" = "no
" ; then
11141 PKG_CONFIG_MIN_VERSION=0.9.0
11142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11143 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11144 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11146 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11147 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11148 $as_echo "yes" >&6; }
11151 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11152 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11153 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11154 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11155 $as_echo "$RSVG_CFLAGS" >&6; }
11157 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11158 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11159 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11160 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11161 $as_echo "$RSVG_LIBS" >&6; }
11163 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11164 $as_echo "no
" >&6; }
11167 ## If we have a custom action on failure, don't print errors, but
11168 ## do set a variable so people can do so.
11169 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11176 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11177 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11181 if test $succeeded = yes; then
11190 if test ".
${RSVG_CFLAGS}" != ".
"; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_RSVG 1
11197 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11198 LIBS="$RSVG_LIBS $LIBS"
11205 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11208 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11213 # Extract the first word of "pkg-config
", so it can be a program name with args.
11214 set dummy pkg-config; ac_word=$2
11215 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11216 $as_echo_n "checking
for $ac_word...
" >&6; }
11217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11218 $as_echo_n "(cached
) " >&6
11220 case $PKG_CONFIG in
11222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11233 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11245 if test -n "$PKG_CONFIG"; then
11246 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11247 $as_echo "$PKG_CONFIG" >&6; }
11249 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11250 $as_echo "no
" >&6; }
11255 if test "$PKG_CONFIG" = "no
" ; then
11258 PKG_CONFIG_MIN_VERSION=0.9.0
11259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11260 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11261 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11263 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11264 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11265 $as_echo "yes" >&6; }
11268 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11269 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11270 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11271 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11272 $as_echo "$GTK_CFLAGS" >&6; }
11274 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11275 $as_echo_n "checking GTK_LIBS...
" >&6; }
11276 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11277 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11278 $as_echo "$GTK_LIBS" >&6; }
11280 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11281 $as_echo "no
" >&6; }
11284 ## If we have a custom action on failure, don't print errors, but
11285 ## do set a variable so people can do so.
11286 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11293 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11294 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11298 if test $succeeded = yes; then
11304 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11305 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11306 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11307 { (exit 1); exit 1; }; }
11312 if test x"$pkg_check_gtk" = xyes; then
11316 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11317 CFLAGS="$CFLAGS $GTK_CFLAGS"
11318 LIBS="$GTK_LIBS $LIBS"
11321 for ac_func in gtk_main
11323 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11324 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11325 $as_echo_n "checking
for $ac_func...
" >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11327 $as_echo_n "(cached
) " >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11345 # include <limits.h>
11347 # include <assert.h>
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11369 return $ac_func ();
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_link") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest$ac_exeext && {
11392 test "$cross_compiling" = yes ||
11393 $as_test_x conftest$ac_exeext
11395 eval "$as_ac_var=yes"
11397 $as_echo "$as_me: failed program was
:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11400 eval "$as_ac_var=no
"
11403 rm -rf conftest.dSYM
11404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405 conftest$ac_exeext conftest.$ac_ext
11407 ac_res=`eval 'as_val=${'$as_ac_var'}
11408 $as_echo "$as_val"'`
11409 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11410 $as_echo "$ac_res" >&6; }
11411 if test `eval 'as_val=${'$as_ac_var'}
11412 $as_echo "$as_val"'` = yes; then
11413 cat >>confdefs.h <<_ACEOF
11414 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11420 if test "${GTK_COMPILES}" != "yes"; then
11421 if test "$USE_X_TOOLKIT" != "maybe
"; then
11422 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11423 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11424 { (exit 1); exit 1; }; };
11429 cat >>confdefs.h <<\_ACEOF
11434 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11437 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11438 closing open displays. This is no problem
if you just use
11439 one display
, but
if you use
more than one and close one of them
11440 Emacs may crash.
" >&5
11441 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11442 closing open displays. This is no problem
if you just use
11443 one display
, but
if you use
more than one and close one of them
11444 Emacs may crash.
" >&2;}
11452 if test "${HAVE_GTK}" = "yes"; then
11454 if test "$with_toolkit_scroll_bars" != no; then
11455 with_toolkit_scroll_bars=yes
11458 HAVE_GTK_MULTIDISPLAY=no
11460 for ac_func in gdk_display_open
11462 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11463 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11464 $as_echo_n "checking
for $ac_func...
" >&6; }
11465 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11466 $as_echo_n "(cached
) " >&6
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11476 #define $ac_func innocuous_$ac_func
11478 /* System header to define __stub macros and hopefully few prototypes,
11479 which can conflict with char $ac_func (); below.
11480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11481 <limits.h> exists even on freestanding compilers. */
11484 # include <limits.h>
11486 # include <assert.h>
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11498 /* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501 #if defined __stub_$ac_func || defined __stub___$ac_func
11508 return $ac_func ();
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (ac_try="$ac_link"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11520 $as_echo "$ac_try_echo") >&5
11521 (eval "$ac_link") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest$ac_exeext && {
11531 test "$cross_compiling" = yes ||
11532 $as_test_x conftest$ac_exeext
11534 eval "$as_ac_var=yes"
11536 $as_echo "$as_me: failed program was
:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no
"
11542 rm -rf conftest.dSYM
11543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11544 conftest$ac_exeext conftest.$ac_ext
11546 ac_res=`eval 'as_val=${'$as_ac_var'}
11547 $as_echo "$as_val"'`
11548 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11549 $as_echo "$ac_res" >&6; }
11550 if test `eval 'as_val=${'$as_ac_var'}
11551 $as_echo "$as_val"'` = yes; then
11552 cat >>confdefs.h <<_ACEOF
11553 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11555 HAVE_GTK_MULTIDISPLAY=yes
11559 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define HAVE_GTK_MULTIDISPLAY 1
11567 HAVE_GTK_FILE_SELECTION=no
11568 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11569 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11570 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11571 $as_echo_n "(cached
) " >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11580 #include <gtk/gtk.h>
11585 #ifndef GTK_TYPE_FILE_SELECTION
11586 (void) GTK_TYPE_FILE_SELECTION;
11593 rm -f conftest.$ac_objext
11594 if { (ac_try="$ac_compile"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11613 $as_echo "$as_me: failed program was
:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11622 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11623 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11624 HAVE_GTK_FILE_SELECTION=yes
11626 HAVE_GTK_FILE_SELECTION=no
11629 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11631 for ac_func in gtk_file_selection_new
11633 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11634 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11635 $as_echo_n "checking
for $ac_func...
" >&6; }
11636 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11637 $as_echo_n "(cached
) " >&6
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11647 #define $ac_func innocuous_$ac_func
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char $ac_func (); below.
11651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11652 <limits.h> exists even on freestanding compilers. */
11655 # include <limits.h>
11657 # include <assert.h>
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11669 /* The GNU C library defines this for functions which it implements
11670 to always fail with ENOSYS. Some functions are actually named
11671 something starting with __ and the normal name is an alias. */
11672 #if defined __stub_$ac_func || defined __stub___$ac_func
11679 return $ac_func ();
11684 rm -f conftest.$ac_objext conftest$ac_exeext
11685 if { (ac_try="$ac_link"
11686 case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11691 $as_echo "$ac_try_echo") >&5
11692 (eval "$ac_link") 2>conftest.er1
11694 grep -v '^ *+' conftest.er1 >conftest.err
11696 cat conftest.err >&5
11697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest$ac_exeext && {
11702 test "$cross_compiling" = yes ||
11703 $as_test_x conftest$ac_exeext
11705 eval "$as_ac_var=yes"
11707 $as_echo "$as_me: failed program was
:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 eval "$as_ac_var=no
"
11713 rm -rf conftest.dSYM
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715 conftest$ac_exeext conftest.$ac_ext
11717 ac_res=`eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'`
11719 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11720 $as_echo "$ac_res" >&6; }
11721 if test `eval 'as_val=${'$as_ac_var'}
11722 $as_echo "$as_val"'` = yes; then
11723 cat >>confdefs.h <<_ACEOF
11724 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11726 HAVE_GTK_FILE_SELECTION=yes
11728 HAVE_GTK_FILE_SELECTION=no
11734 HAVE_GTK_FILE_CHOOSER=no
11735 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11736 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11737 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11738 $as_echo_n "(cached
) " >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 $ac_includes_default
11747 #include <gtk/gtk.h>
11752 #ifndef GTK_TYPE_FILE_CHOOSER
11753 (void) GTK_TYPE_FILE_CHOOSER;
11760 rm -f conftest.$ac_objext
11761 if { (ac_try="$ac_compile"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11766 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11767 $as_echo "$ac_try_echo") >&5
11768 (eval "$ac_compile") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest.$ac_objext; then
11778 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11780 $as_echo "$as_me: failed program was
:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11789 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11790 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11791 HAVE_GTK_FILE_CHOOSER=yes
11793 HAVE_GTK_FILE_CHOOSER=no
11796 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11798 for ac_func in gtk_file_chooser_dialog_new
11800 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11801 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11802 $as_echo_n "checking
for $ac_func...
" >&6; }
11803 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11804 $as_echo_n "(cached
) " >&6
11806 cat >conftest.$ac_ext <<_ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814 #define $ac_func innocuous_$ac_func
11816 /* System header to define __stub macros and hopefully few prototypes,
11817 which can conflict with char $ac_func (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
11822 # include <limits.h>
11824 # include <assert.h>
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11836 /* The GNU C library defines this for functions which it implements
11837 to always fail with ENOSYS. Some functions are actually named
11838 something starting with __ and the normal name is an alias. */
11839 #if defined __stub_$ac_func || defined __stub___$ac_func
11846 return $ac_func ();
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11858 $as_echo "$ac_try_echo") >&5
11859 (eval "$ac_link") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest$ac_exeext && {
11869 test "$cross_compiling" = yes ||
11870 $as_test_x conftest$ac_exeext
11872 eval "$as_ac_var=yes"
11874 $as_echo "$as_me: failed program was
:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 eval "$as_ac_var=no
"
11880 rm -rf conftest.dSYM
11881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11882 conftest$ac_exeext conftest.$ac_ext
11884 ac_res=`eval 'as_val=${'$as_ac_var'}
11885 $as_echo "$as_val"'`
11886 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11887 $as_echo "$ac_res" >&6; }
11888 if test `eval 'as_val=${'$as_ac_var'}
11889 $as_echo "$as_val"'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11893 HAVE_GTK_FILE_CHOOSER=yes
11895 HAVE_GTK_FILE_CHOOSER=no
11901 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11902 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11904 cat >>confdefs.h <<\_ACEOF
11905 #define HAVE_GTK_FILE_BOTH 1
11910 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11911 HAVE_GTK_AND_PTHREAD=no
11913 for ac_header in pthread.h
11915 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11917 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11918 $as_echo_n "checking
for $ac_header...
" >&6; }
11919 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11920 $as_echo_n "(cached
) " >&6
11922 ac_res=`eval 'as_val=${'$as_ac_Header'}
11923 $as_echo "$as_val"'`
11924 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11925 $as_echo "$ac_res" >&6; }
11927 # Is the header compilable?
11928 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11929 $as_echo_n "checking
$ac_header usability...
" >&6; }
11930 cat >conftest.$ac_ext <<_ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11936 $ac_includes_default
11937 #include <$ac_header>
11939 rm -f conftest.$ac_objext
11940 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
11957 ac_header_compiler=yes
11959 $as_echo "$as_me: failed program was
:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_header_compiler=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11967 $as_echo "$ac_header_compiler" >&6; }
11969 # Is the header present?
11970 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11971 $as_echo_n "checking
$ac_header presence...
" >&6; }
11972 cat >conftest.$ac_ext <<_ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 #include <$ac_header>
11980 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11986 $as_echo "$ac_try_echo") >&5
11987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11989 grep -v '^ *+' conftest.er1 >conftest.err
11991 cat conftest.err >&5
11992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11993 (exit $ac_status); } >/dev/null && {
11994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11997 ac_header_preproc=yes
11999 $as_echo "$as_me: failed program was
:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 ac_header_preproc=no
12005 rm -f conftest.err conftest.$ac_ext
12006 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12007 $as_echo "$ac_header_preproc" >&6; }
12009 # So? What about this header?
12010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12012 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12013 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12016 ac_header_preproc=yes
12019 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12020 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12021 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12022 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12023 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12024 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12025 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12026 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12027 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12029 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12030 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12034 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12035 $as_echo_n "checking
for $ac_header...
" >&6; }
12036 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12037 $as_echo_n "(cached
) " >&6
12039 eval "$as_ac_Header=\
$ac_header_preproc"
12041 ac_res=`eval 'as_val=${'$as_ac_Header'}
12042 $as_echo "$as_val"'`
12043 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12044 $as_echo "$ac_res" >&6; }
12047 if test `eval 'as_val=${'$as_ac_Header'}
12048 $as_echo "$as_val"'` = yes; then
12049 cat >>confdefs.h <<_ACEOF
12050 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12057 if test "$ac_cv_header_pthread_h"; then
12058 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12059 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12060 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12061 $as_echo_n "(cached
) " >&6
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-lpthread $LIBS"
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12078 char pthread_self ();
12082 return pthread_self ();
12087 rm -f conftest.$ac_objext conftest$ac_exeext
12088 if { (ac_try="$ac_link"
12089 case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12094 $as_echo "$ac_try_echo") >&5
12095 (eval "$ac_link") 2>conftest.er1
12097 grep -v '^ *+' conftest.er1 >conftest.err
12099 cat conftest.err >&5
12100 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12101 (exit $ac_status); } && {
12102 test -z "$ac_c_werror_flag" ||
12103 test ! -s conftest.err
12104 } && test -s conftest$ac_exeext && {
12105 test "$cross_compiling" = yes ||
12106 $as_test_x conftest$ac_exeext
12108 ac_cv_lib_pthread_pthread_self=yes
12110 $as_echo "$as_me: failed program was
:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_lib_pthread_pthread_self=no
12116 rm -rf conftest.dSYM
12117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LIBS=$ac_check_lib_save_LIBS
12121 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12122 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12123 if test $ac_cv_lib_pthread_pthread_self = yes; then
12124 HAVE_GTK_AND_PTHREAD=yes
12128 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12129 case "${canonical}" in
12131 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_GTK_AND_PTHREAD 1
12143 if test "${with_dbus}" = "yes"; then
12147 # Extract the first word of "pkg-config
", so it can be a program name with args.
12148 set dummy pkg-config; ac_word=$2
12149 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12150 $as_echo_n "checking
for $ac_word...
" >&6; }
12151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12152 $as_echo_n "(cached
) " >&6
12154 case $PKG_CONFIG in
12156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12167 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12178 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12179 if test -n "$PKG_CONFIG"; then
12180 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12181 $as_echo "$PKG_CONFIG" >&6; }
12183 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12184 $as_echo "no
" >&6; }
12189 if test "$PKG_CONFIG" = "no
" ; then
12192 PKG_CONFIG_MIN_VERSION=0.9.0
12193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12194 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12195 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12197 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12198 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12199 $as_echo "yes" >&6; }
12202 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12203 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12204 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12205 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12206 $as_echo "$DBUS_CFLAGS" >&6; }
12208 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12209 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12210 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12211 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12212 $as_echo "$DBUS_LIBS" >&6; }
12214 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12215 $as_echo "no
" >&6; }
12218 ## If we have a custom action on failure, don't print errors, but
12219 ## do set a variable so people can do so.
12220 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12227 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12228 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12232 if test $succeeded = yes; then
12238 if test "$HAVE_DBUS" = yes; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_DBUS 1
12248 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12249 if test "$with_xaw3d" != no; then
12250 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12251 $as_echo_n "checking
for xaw3d...
" >&6; }
12252 if test "${emacs_cv_xaw3d+set}" = set; then
12253 $as_echo_n "(cached
) " >&6
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 #include <X11/Intrinsic.h>
12263 #include <X11/Xaw3d/Simple.h>
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (ac_try="$ac_link"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12279 $as_echo "$ac_try_echo") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext && {
12290 test "$cross_compiling" = yes ||
12291 $as_test_x conftest$ac_exeext
12295 $as_echo "$as_me: failed program was
:" >&5
12296 sed 's/^/| /' conftest.$ac_ext >&5
12301 rm -rf conftest.dSYM
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12309 if test $emacs_cv_xaw3d = yes; then
12310 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12311 $as_echo "yes; using Lucid toolkit
" >&6; }
12312 USE_X_TOOLKIT=LUCID
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_XAW3D 1
12320 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12321 $as_echo "no
" >&6; }
12322 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12323 $as_echo_n "checking
for libXaw...
" >&6; }
12324 if test "${emacs_cv_xaw+set}" = set; then
12325 $as_echo_n "(cached
) " >&6
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 #include <X11/Intrinsic.h>
12335 #include <X11/Xaw/Simple.h>
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12351 $as_echo "$ac_try_echo") >&5
12352 (eval "$ac_link") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1 >conftest.err
12356 cat conftest.err >&5
12357 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest$ac_exeext && {
12362 test "$cross_compiling" = yes ||
12363 $as_test_x conftest$ac_exeext
12367 $as_echo "$as_me: failed program was
:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12373 rm -rf conftest.dSYM
12374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12375 conftest$ac_exeext conftest.$ac_ext
12378 if test $emacs_cv_xaw = yes; then
12379 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12380 $as_echo "yes; using Lucid toolkit
" >&6; }
12381 USE_X_TOOLKIT=LUCID
12382 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12383 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12384 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12385 { (exit 1); exit 1; }; }
12387 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12388 $as_echo "no
; do not use toolkit by default
" >&6; }
12394 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12396 if test "${USE_X_TOOLKIT}" != "none
"; then
12397 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12398 $as_echo_n "checking X11 toolkit version...
" >&6; }
12399 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12400 $as_echo_n "(cached
) " >&6
12402 cat >conftest.$ac_ext <<_ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 #include <X11/Intrinsic.h>
12412 #if XtSpecificationRelease < 6
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12427 $as_echo "$ac_try_echo") >&5
12428 (eval "$ac_link") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest$ac_exeext && {
12438 test "$cross_compiling" = yes ||
12439 $as_test_x conftest$ac_exeext
12441 emacs_cv_x11_toolkit_version_6=yes
12443 $as_echo "$as_me: failed program was
:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 emacs_cv_x11_toolkit_version_6=no
12449 rm -rf conftest.dSYM
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451 conftest$ac_exeext conftest.$ac_ext
12454 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12455 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12456 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12457 $as_echo "6 or newer
" >&6; }
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_X11XTR6 1
12464 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12465 $as_echo "before
6" >&6; }
12469 if test x$HAVE_X11XTR6 = xyes; then
12470 LIBS="-lXt -lSM -lICE $LIBS"
12475 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12476 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12477 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12478 $as_echo_n "(cached
) " >&6
12480 ac_check_lib_save_LIBS=$LIBS
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12495 char XmuConvertStandardSelection ();
12499 return XmuConvertStandardSelection ();
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12511 $as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12525 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12527 $as_echo "$as_me: failed program was
:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12533 rm -rf conftest.dSYM
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12538 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12539 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12540 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define HAVE_LIBXMU 1
12549 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12552 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12553 if test "${HAVE_X11}" = "yes"; then
12554 if test "${USE_X_TOOLKIT}" != "none
"; then
12556 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12557 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12558 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12559 $as_echo_n "(cached
) " >&6
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-lXext $LIBS"
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12576 char XShapeQueryExtension ();
12580 return XShapeQueryExtension ();
12585 rm -f conftest.$ac_objext conftest$ac_exeext
12586 if { (ac_try="$ac_link"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_link") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest$ac_exeext && {
12603 test "$cross_compiling" = yes ||
12604 $as_test_x conftest$ac_exeext
12606 ac_cv_lib_Xext_XShapeQueryExtension=yes
12608 $as_echo "$as_me: failed program was
:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_Xext_XShapeQueryExtension=no
12614 rm -rf conftest.dSYM
12615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12616 conftest$ac_exeext conftest.$ac_ext
12617 LIBS=$ac_check_lib_save_LIBS
12619 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12620 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12621 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_LIBXEXT 1
12626 LIBS="-lXext $LIBS"
12633 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12634 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12635 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12636 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12637 $as_echo_n "(cached
) " >&6
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12649 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12652 Motif version prior to 2.1.
12658 rm -f conftest.$ac_objext
12659 if { (ac_try="$ac_compile"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_compile") 2>conftest.er1
12668 grep -v '^ *+' conftest.er1 >conftest.err
12670 cat conftest.err >&5
12671 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12672 (exit $ac_status); } && {
12673 test -z "$ac_c_werror_flag" ||
12674 test ! -s conftest.err
12675 } && test -s conftest.$ac_objext; then
12676 emacs_cv_motif_version_2_1=yes
12678 $as_echo "$as_me: failed program was
:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 emacs_cv_motif_version_2_1=no
12684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12687 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12688 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12689 if test $emacs_cv_motif_version_2_1 = yes; then
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_MOTIF_2_1 1
12696 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12697 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12698 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12699 $as_echo_n "(cached
) " >&6
12701 ac_check_lib_save_LIBS=$LIBS
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 /* Override any GCC internal prototype to avoid an error.
12711 Use char because int might match the return type of a GCC
12712 builtin and then its argument prototype would still apply. */
12716 char XpCreateContext ();
12720 return XpCreateContext ();
12725 rm -f conftest.$ac_objext conftest$ac_exeext
12726 if { (ac_try="$ac_link"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12732 $as_echo "$ac_try_echo") >&5
12733 (eval "$ac_link") 2>conftest.er1
12735 grep -v '^ *+' conftest.er1 >conftest.err
12737 cat conftest.err >&5
12738 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest$ac_exeext && {
12743 test "$cross_compiling" = yes ||
12744 $as_test_x conftest$ac_exeext
12746 ac_cv_lib_Xp_XpCreateContext=yes
12748 $as_echo "$as_me: failed program was
:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 ac_cv_lib_Xp_XpCreateContext=no
12754 rm -rf conftest.dSYM
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756 conftest$ac_exeext conftest.$ac_ext
12757 LIBS=$ac_check_lib_save_LIBS
12759 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12760 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12761 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12765 if test ${HAVE_LIBXP} = yes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define HAVE_LIBXP 1
12773 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12774 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12775 if test "${emacs_cv_lesstif+set}" = set; then
12776 $as_echo_n "(cached
) " >&6
12778 # We put this in CFLAGS temporarily to precede other -I options
12779 # that might be in CFLAGS temporarily.
12780 # We put this in CPPFLAGS where it precedes the other -I options.
12781 OLD_CPPFLAGS=$CPPFLAGS
12783 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12784 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12800 rm -f conftest.$ac_objext
12801 if { (ac_try="$ac_compile"
12802 case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12806 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 emacs_cv_lesstif=yes
12820 $as_echo "$as_me: failed program was
:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 emacs_cv_lesstif=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12829 $as_echo "$emacs_cv_lesstif" >&6; }
12830 if test $emacs_cv_lesstif = yes; then
12831 # Make sure this -I option remains in CPPFLAGS after it is set
12832 # back to REAL_CPPFLAGS.
12833 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12834 # have those other -I options anyway. Ultimately, having this
12835 # directory ultimately in CPPFLAGS will be enough.
12836 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12837 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12840 CPPFLAGS=$OLD_CPPFLAGS
12847 USE_TOOLKIT_SCROLL_BARS=no
12848 if test "${with_toolkit_scroll_bars}" != "no
"; then
12849 if test "${USE_X_TOOLKIT}" != "none
"; then
12850 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12851 cat >>confdefs.h <<\_ACEOF
12852 #define USE_TOOLKIT_SCROLL_BARS 1
12856 USE_TOOLKIT_SCROLL_BARS=yes
12857 elif test "${HAVE_XAW3D}" = "yes"; then
12858 cat >>confdefs.h <<\_ACEOF
12859 #define USE_TOOLKIT_SCROLL_BARS 1
12862 USE_TOOLKIT_SCROLL_BARS=yes
12864 elif test "${HAVE_GTK}" = "yes"; then
12865 cat >>confdefs.h <<\_ACEOF
12866 #define USE_TOOLKIT_SCROLL_BARS 1
12869 USE_TOOLKIT_SCROLL_BARS=yes
12870 elif test "${HAVE_NS}" = "yes"; then
12871 cat >>confdefs.h <<\_ACEOF
12872 #define USE_TOOLKIT_SCROLL_BARS 1
12875 USE_TOOLKIT_SCROLL_BARS=yes
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 #include <X11/Xlib.h>
12887 #include <X11/Xresource.h>
12896 rm -f conftest.$ac_objext
12897 if { (ac_try="$ac_compile"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12903 $as_echo "$ac_try_echo") >&5
12904 (eval "$ac_compile") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest.$ac_objext; then
12916 cat >>confdefs.h <<\_ACEOF
12921 $as_echo "$as_me: failed program was
:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 if test "${with_xim}" != "no
"; then
12932 cat >>confdefs.h <<\_ACEOF
12939 if test "${HAVE_XIM}" != "no
"; then
12940 late_CFLAGS=$CFLAGS
12941 if test "$GCC" = yes; then
12942 CFLAGS="$CFLAGS --pedantic-errors"
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 #include <X11/Xlib.h>
12952 #include <X11/Xresource.h>
12961 XPointer *client_data;
12963 /* If we're not using GCC, it's probably not XFree86, and this is
12964 probably right, but we can't use something like --pedantic-errors. */
12965 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12966 char*, XIMProc, XPointer*);
12968 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12974 rm -f conftest.$ac_objext
12975 if { (ac_try="$ac_compile"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12981 $as_echo "$ac_try_echo") >&5
12982 (eval "$ac_compile") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12988 (exit $ac_status); } && {
12989 test -z "$ac_c_werror_flag" ||
12990 test ! -s conftest.err
12991 } && test -s conftest.$ac_objext; then
12992 emacs_cv_arg6_star=yes
12994 $as_echo "$as_me: failed program was
:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 if test "$emacs_cv_arg6_star" = yes; then
13003 cat >>confdefs.h <<\_ACEOF
13004 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13008 cat >>confdefs.h <<\_ACEOF
13009 #define XRegisterIMInstantiateCallback_arg6 XPointer
13013 CFLAGS=$late_CFLAGS
13016 ### Start of font-backend (under any platform) section.
13017 # (nothing here yet -- this is a placeholder)
13018 ### End of font-backend (under any platform) section.
13020 ### Start of font-backend (under X11) section.
13021 if test "${HAVE_X11}" = "yes"; then
13025 # Extract the first word of "pkg-config
", so it can be a program name with args.
13026 set dummy pkg-config; ac_word=$2
13027 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13028 $as_echo_n "checking
for $ac_word...
" >&6; }
13029 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13030 $as_echo_n "(cached
) " >&6
13032 case $PKG_CONFIG in
13034 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13045 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13052 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13056 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13057 if test -n "$PKG_CONFIG"; then
13058 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13059 $as_echo "$PKG_CONFIG" >&6; }
13061 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13062 $as_echo "no
" >&6; }
13067 if test "$PKG_CONFIG" = "no
" ; then
13070 PKG_CONFIG_MIN_VERSION=0.9.0
13071 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13072 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13073 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13075 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13076 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13077 $as_echo "yes" >&6; }
13080 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13081 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13082 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13083 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13084 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13086 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13087 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13088 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13089 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13090 $as_echo "$FONTCONFIG_LIBS" >&6; }
13092 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13093 $as_echo "no
" >&6; }
13094 FONTCONFIG_CFLAGS=""
13096 ## If we have a custom action on failure, don't print errors, but
13097 ## do set a variable so people can do so.
13098 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13105 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13106 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13110 if test $succeeded = yes; then
13116 test "${HAVE_FC}" = "no
" && with_freetype=no
13118 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
13120 if test "x
${with_freetype}" = "xno
" || test "x
${with_x}" = "xno
"; then
13123 if test "x
${with_xft}" != "xno
"; then
13128 # Extract the first word of "pkg-config
", so it can be a program name with args.
13129 set dummy pkg-config; ac_word=$2
13130 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13131 $as_echo_n "checking
for $ac_word...
" >&6; }
13132 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13133 $as_echo_n "(cached
) " >&6
13135 case $PKG_CONFIG in
13137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13148 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13160 if test -n "$PKG_CONFIG"; then
13161 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13162 $as_echo "$PKG_CONFIG" >&6; }
13164 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13165 $as_echo "no
" >&6; }
13170 if test "$PKG_CONFIG" = "no
" ; then
13173 PKG_CONFIG_MIN_VERSION=0.9.0
13174 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13175 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13176 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13178 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13179 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13180 $as_echo "yes" >&6; }
13183 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13184 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13185 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13186 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13187 $as_echo "$XFT_CFLAGS" >&6; }
13189 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13190 $as_echo_n "checking XFT_LIBS...
" >&6; }
13191 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13192 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13193 $as_echo "$XFT_LIBS" >&6; }
13195 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13196 $as_echo "no
" >&6; }
13199 ## If we have a custom action on failure, don't print errors, but
13200 ## do set a variable so people can do so.
13201 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13208 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13209 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13213 if test $succeeded = yes; then
13219 if test "$HAVE_XFT" != no; then
13220 OLD_CPPFLAGS="$CPPFLAGS"
13221 OLD_CFLAGS="$CFLAGS"
13223 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13224 CFLAGS="$CFLAGS $XFT_CFLAGS"
13225 LIBS="$XFT_LIBS $LIBS"
13226 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13227 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13228 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13229 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13230 $as_echo_n "(cached
) " >&6
13232 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13233 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13235 # Is the header compilable?
13236 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13237 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13245 #include <X11/Xft/Xft.h>
13247 rm -f conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13254 $as_echo "$ac_try_echo") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_header_compiler=yes
13267 $as_echo "$as_me: failed program was
:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_header_compiler=no
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13275 $as_echo "$ac_header_compiler" >&6; }
13277 # Is the header present?
13278 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13279 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/Xft/Xft.h>
13288 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13294 $as_echo "$ac_try_echo") >&5
13295 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13297 grep -v '^ *+' conftest.er1 >conftest.err
13299 cat conftest.err >&5
13300 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13301 (exit $ac_status); } >/dev/null && {
13302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13303 test ! -s conftest.err
13305 ac_header_preproc=yes
13307 $as_echo "$as_me: failed program was
:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 ac_header_preproc=no
13313 rm -f conftest.err conftest.$ac_ext
13314 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13315 $as_echo "$ac_header_preproc" >&6; }
13317 # So? What about this header?
13318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13320 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13321 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13322 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13323 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13324 ac_header_preproc=yes
13327 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13328 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13329 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13330 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13331 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13332 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13333 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13334 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13335 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13336 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13337 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13338 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13342 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13343 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13344 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13345 $as_echo_n "(cached
) " >&6
13347 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13349 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13350 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13353 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13354 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13355 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13356 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13357 $as_echo_n "(cached
) " >&6
13359 ac_check_lib_save_LIBS=$LIBS
13360 LIBS="-lXft $XFT_LIBS $LIBS"
13361 cat >conftest.$ac_ext <<_ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13368 /* Override any GCC internal prototype to avoid an error.
13369 Use char because int might match the return type of a GCC
13370 builtin and then its argument prototype would still apply. */
13374 char XftFontOpen ();
13378 return XftFontOpen ();
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391 (eval "$ac_link") 2>conftest.er1
13393 grep -v '^ *+' conftest.er1 >conftest.err
13395 cat conftest.err >&5
13396 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13397 (exit $ac_status); } && {
13398 test -z "$ac_c_werror_flag" ||
13399 test ! -s conftest.err
13400 } && test -s conftest$ac_exeext && {
13401 test "$cross_compiling" = yes ||
13402 $as_test_x conftest$ac_exeext
13404 ac_cv_lib_Xft_XftFontOpen=yes
13406 $as_echo "$as_me: failed program was
:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13409 ac_cv_lib_Xft_XftFontOpen=no
13412 rm -rf conftest.dSYM
13413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13414 conftest$ac_exeext conftest.$ac_ext
13415 LIBS=$ac_check_lib_save_LIBS
13417 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13418 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13419 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13427 if test "${HAVE_XFT}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13434 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13436 CPPFLAGS="$OLD_CPPFLAGS"
13437 CFLAGS="$OLD_CFLAGS"
13439 fi # "${HAVE_XFT}" = "yes"
13440 fi # "$HAVE_XFT" != no
13441 fi # "x
${with_xft}" != "xno
"
13443 if test "$HAVE_XFT" != "yes"; then
13449 ### Use -lfreetype if available, unless `--with-freetype=no'.
13450 if test "${HAVE_XFT}" = "yes"; then
13454 elif test "x
${with_freetype}" != "xno
" && test "x
${with_x}" != "xno
"; then
13459 # Extract the first word of "pkg-config
", so it can be a program name with args.
13460 set dummy pkg-config; ac_word=$2
13461 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13462 $as_echo_n "checking
for $ac_word...
" >&6; }
13463 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13464 $as_echo_n "(cached
) " >&6
13466 case $PKG_CONFIG in
13468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13479 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13486 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13490 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13491 if test -n "$PKG_CONFIG"; then
13492 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13493 $as_echo "$PKG_CONFIG" >&6; }
13495 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13496 $as_echo "no
" >&6; }
13501 if test "$PKG_CONFIG" = "no
" ; then
13504 PKG_CONFIG_MIN_VERSION=0.9.0
13505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13506 { $as_echo "$as_me:$LINENO: checking
for freetype2
" >&5
13507 $as_echo_n "checking
for freetype2...
" >&6; }
13509 if $PKG_CONFIG --exists "freetype2
" 2>&5; then
13510 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13511 $as_echo "yes" >&6; }
13514 { $as_echo "$as_me:$LINENO: checking FREETYPE_CFLAGS
" >&5
13515 $as_echo_n "checking FREETYPE_CFLAGS...
" >&6; }
13516 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2
"|sed -e 's,///*,/,g'`
13517 { $as_echo "$as_me:$LINENO: result
: $FREETYPE_CFLAGS" >&5
13518 $as_echo "$FREETYPE_CFLAGS" >&6; }
13520 { $as_echo "$as_me:$LINENO: checking FREETYPE_LIBS
" >&5
13521 $as_echo_n "checking FREETYPE_LIBS...
" >&6; }
13522 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2
"|sed -e 's,///*,/,g'`
13523 { $as_echo "$as_me:$LINENO: result
: $FREETYPE_LIBS" >&5
13524 $as_echo "$FREETYPE_LIBS" >&6; }
13526 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13527 $as_echo "no
" >&6; }
13530 ## If we have a custom action on failure, don't print errors, but
13531 ## do set a variable so people can do so.
13532 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2
"`
13539 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13540 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13544 if test $succeeded = yes; then
13553 if test "${HAVE_FREETYPE}" = "yes"; then
13555 cat >>confdefs.h <<\_ACEOF
13556 #define HAVE_FREETYPE 1
13559 if test "${with_libotf}" != "no
"; then
13563 # Extract the first word of "pkg-config
", so it can be a program name with args.
13564 set dummy pkg-config; ac_word=$2
13565 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13566 $as_echo_n "checking
for $ac_word...
" >&6; }
13567 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13568 $as_echo_n "(cached
) " >&6
13570 case $PKG_CONFIG in
13572 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13579 test -z "$as_dir" && as_dir=.
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13582 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13583 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13590 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13595 if test -n "$PKG_CONFIG"; then
13596 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13597 $as_echo "$PKG_CONFIG" >&6; }
13599 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13600 $as_echo "no
" >&6; }
13605 if test "$PKG_CONFIG" = "no
" ; then
13608 PKG_CONFIG_MIN_VERSION=0.9.0
13609 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13610 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13611 $as_echo_n "checking
for libotf...
" >&6; }
13613 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13614 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13615 $as_echo "yes" >&6; }
13618 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13619 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13620 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13621 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13622 $as_echo "$LIBOTF_CFLAGS" >&6; }
13624 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13625 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13626 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13627 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13628 $as_echo "$LIBOTF_LIBS" >&6; }
13630 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13631 $as_echo "no
" >&6; }
13634 ## If we have a custom action on failure, don't print errors, but
13635 ## do set a variable so people can do so.
13636 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13643 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13644 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13648 if test $succeeded = yes; then
13654 if test "$HAVE_LIBOTF" = "yes"; then
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_LIBOTF 1
13660 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13661 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13662 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13663 $as_echo_n "(cached
) " >&6
13665 ac_check_lib_save_LIBS=$LIBS
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13680 char OTF_get_variation_glyphs ();
13684 return OTF_get_variation_glyphs ();
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697 (eval "$ac_link") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest$ac_exeext && {
13707 test "$cross_compiling" = yes ||
13708 $as_test_x conftest$ac_exeext
13710 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13712 $as_echo "$as_me: failed program was
:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13718 rm -rf conftest.dSYM
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13724 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13725 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13726 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13728 HAVE_OTF_GET_VARIATION_GLYPHS=no
13731 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13733 cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13743 if test "${HAVE_LIBOTF}" = yes; then
13744 if test "${with_m17n_flt}" != "no
"; then
13748 # Extract the first word of "pkg-config
", so it can be a program name with args.
13749 set dummy pkg-config; ac_word=$2
13750 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13751 $as_echo_n "checking
for $ac_word...
" >&6; }
13752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13753 $as_echo_n "(cached
) " >&6
13755 case $PKG_CONFIG in
13757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761 for as_dir in $PATH
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
13766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13768 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13775 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13780 if test -n "$PKG_CONFIG"; then
13781 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13782 $as_echo "$PKG_CONFIG" >&6; }
13784 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13785 $as_echo "no
" >&6; }
13790 if test "$PKG_CONFIG" = "no
" ; then
13793 PKG_CONFIG_MIN_VERSION=0.9.0
13794 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13795 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13796 $as_echo_n "checking
for m17n-flt...
" >&6; }
13798 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13799 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13800 $as_echo "yes" >&6; }
13803 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13804 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13805 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13806 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13807 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13809 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13810 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13811 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13812 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13813 $as_echo "$M17N_FLT_LIBS" >&6; }
13815 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13816 $as_echo "no
" >&6; }
13819 ## If we have a custom action on failure, don't print errors, but
13820 ## do set a variable so people can do so.
13821 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13828 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13829 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13833 if test $succeeded = yes; then
13839 if test "$HAVE_M17N_FLT" = "yes"; then
13841 cat >>confdefs.h <<\_ACEOF
13842 #define HAVE_M17N_FLT 1
13854 ### End of font-backend (under X11) section.
13865 ### Use -lXpm if available, unless `--with-xpm=no'.
13867 if test "${HAVE_X11}" = "yes"; then
13868 if test "${with_xpm}" != "no
"; then
13869 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13870 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13871 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13872 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13873 $as_echo_n "(cached
) " >&6
13875 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13876 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13878 # Is the header compilable?
13879 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13880 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13888 #include <X11/xpm.h>
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1 >conftest.err
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13910 $as_echo "$as_me: failed program was
:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_header_compiler=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13918 $as_echo "$ac_header_compiler" >&6; }
13920 # Is the header present?
13921 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13922 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <X11/xpm.h>
13931 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13948 ac_header_preproc=yes
13950 $as_echo "$as_me: failed program was
:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_preproc=no
13956 rm -f conftest.err conftest.$ac_ext
13957 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13958 $as_echo "$ac_header_preproc" >&6; }
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13964 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13966 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13967 ac_header_preproc=yes
13970 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13971 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13973 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13975 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13977 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13979 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13981 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13985 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13986 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13988 $as_echo_n "(cached
) " >&6
13990 ac_cv_header_X11_xpm_h=$ac_header_preproc
13992 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13993 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13996 if test $ac_cv_header_X11_xpm_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13998 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
13999 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14000 $as_echo_n "(cached
) " >&6
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lXpm -lX11 $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14017 char XpmReadFileToPixmap ();
14021 return XpmReadFileToPixmap ();
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest$ac_exeext
14047 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14049 $as_echo "$as_me: failed program was
:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14055 rm -rf conftest.dSYM
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14060 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14061 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14062 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14069 if test "${HAVE_XPM}" = "yes"; then
14070 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14071 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include "X11
/xpm.h
"
14079 #ifndef XpmReturnAllocPixels
14080 no_return_alloc_pixels
14084 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14085 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14093 if test "${HAVE_XPM}" = "yes"; then
14094 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14095 $as_echo "yes" >&6; }
14097 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14098 $as_echo "no
" >&6; }
14103 if test "${HAVE_XPM}" = "yes"; then
14105 cat >>confdefs.h <<\_ACEOF
14112 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14114 if test "${HAVE_X11}" = "yes"; then
14115 if test "${with_jpeg}" != "no
"; then
14116 if test "${ac_cv_header_jerror_h+set}" = set; then
14117 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14118 $as_echo_n "checking
for jerror.h...
" >&6; }
14119 if test "${ac_cv_header_jerror_h+set}" = set; then
14120 $as_echo_n "(cached
) " >&6
14122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14123 $as_echo "$ac_cv_header_jerror_h" >&6; }
14125 # Is the header compilable?
14126 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14127 $as_echo_n "checking jerror.h usability...
" >&6; }
14128 cat >conftest.$ac_ext <<_ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 $ac_includes_default
14135 #include <jerror.h>
14137 rm -f conftest.$ac_objext
14138 if { (ac_try="$ac_compile"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.$ac_objext; then
14155 ac_header_compiler=yes
14157 $as_echo "$as_me: failed program was
:" >&5
14158 sed 's/^/| /' conftest.$ac_ext >&5
14160 ac_header_compiler=no
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14165 $as_echo "$ac_header_compiler" >&6; }
14167 # Is the header present?
14168 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14169 $as_echo_n "checking jerror.h presence...
" >&6; }
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 #include <jerror.h>
14178 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14184 $as_echo "$ac_try_echo") >&5
14185 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14187 grep -v '^ *+' conftest.er1 >conftest.err
14189 cat conftest.err >&5
14190 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14191 (exit $ac_status); } >/dev/null && {
14192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14195 ac_header_preproc=yes
14197 $as_echo "$as_me: failed program was
:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14200 ac_header_preproc=no
14203 rm -f conftest.err conftest.$ac_ext
14204 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14205 $as_echo "$ac_header_preproc" >&6; }
14207 # So? What about this header?
14208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14210 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14211 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14212 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14213 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14214 ac_header_preproc=yes
14217 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14218 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14219 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14220 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14221 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14222 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14223 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14224 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14225 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14226 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14227 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14228 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14232 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14233 $as_echo_n "checking
for jerror.h...
" >&6; }
14234 if test "${ac_cv_header_jerror_h+set}" = set; then
14235 $as_echo_n "(cached
) " >&6
14237 ac_cv_header_jerror_h=$ac_header_preproc
14239 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14240 $as_echo "$ac_cv_header_jerror_h" >&6; }
14243 if test $ac_cv_header_jerror_h = yes; then
14244 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14245 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14246 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14247 $as_echo_n "(cached
) " >&6
14249 ac_check_lib_save_LIBS=$LIBS
14250 LIBS="-ljpeg $LIBS"
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14264 char jpeg_destroy_compress ();
14268 return jpeg_destroy_compress ();
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (ac_try="$ac_link"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14280 $as_echo "$ac_try_echo") >&5
14281 (eval "$ac_link") 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest$ac_exeext && {
14291 test "$cross_compiling" = yes ||
14292 $as_test_x conftest$ac_exeext
14294 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14296 $as_echo "$as_me: failed program was
:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14302 rm -rf conftest.dSYM
14303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14308 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14309 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14319 if test "${HAVE_JPEG}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_JPEG 1
14324 cat >conftest.$ac_ext <<_ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 #include <jpeglib.h>
14331 version=JPEG_LIB_VERSION
14334 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14335 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14336 cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_JPEG 1
14341 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14342 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14350 ### Use -lpng if available, unless `--with-png=no'.
14352 if test "${HAVE_X11}" = "yes"; then
14353 if test "${with_png}" != "no
"; then
14354 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14355 # in /usr/include/libpng.
14358 for ac_header in png.h libpng/png.h
14360 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14362 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14363 $as_echo_n "checking
for $ac_header...
" >&6; }
14364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14365 $as_echo_n "(cached
) " >&6
14367 ac_res=`eval 'as_val=${'$as_ac_Header'}
14368 $as_echo "$as_val"'`
14369 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14370 $as_echo "$ac_res" >&6; }
14372 # Is the header compilable?
14373 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14374 $as_echo_n "checking
$ac_header usability...
" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 #include <$ac_header>
14384 rm -f conftest.$ac_objext
14385 if { (ac_try="$ac_compile"
14386 case "(($ac_try" in
14387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388 *) ac_try_echo=$ac_try;;
14390 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14391 $as_echo "$ac_try_echo") >&5
14392 (eval "$ac_compile") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest.$ac_objext; then
14402 ac_header_compiler=yes
14404 $as_echo "$as_me: failed program was
:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_compiler=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14412 $as_echo "$ac_header_compiler" >&6; }
14414 # Is the header present?
14415 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14416 $as_echo_n "checking
$ac_header presence...
" >&6; }
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 <$ac_header>
14425 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14426 case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14430 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14431 $as_echo "$ac_try_echo") >&5
14432 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1 >conftest.err
14436 cat conftest.err >&5
14437 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14438 (exit $ac_status); } >/dev/null && {
14439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14442 ac_header_preproc=yes
14444 $as_echo "$as_me: failed program was
:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_header_preproc=no
14450 rm -f conftest.err conftest.$ac_ext
14451 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14452 $as_echo "$ac_header_preproc" >&6; }
14454 # So? What about this header?
14455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14457 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14458 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14459 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14461 ac_header_preproc=yes
14464 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14465 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14467 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14469 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14471 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14472 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14474 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14475 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14479 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14480 $as_echo_n "checking
for $ac_header...
" >&6; }
14481 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14482 $as_echo_n "(cached
) " >&6
14484 eval "$as_ac_Header=\
$ac_header_preproc"
14486 ac_res=`eval 'as_val=${'$as_ac_Header'}
14487 $as_echo "$as_val"'`
14488 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14489 $as_echo "$ac_res" >&6; }
14492 if test `eval 'as_val=${'$as_ac_Header'}
14493 $as_echo "$as_val"'` = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14502 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14503 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14504 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14505 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14506 $as_echo_n "(cached
) " >&6
14508 ac_check_lib_save_LIBS=$LIBS
14509 LIBS="-lpng -lz -lm $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14523 char png_get_channels ();
14527 return png_get_channels ();
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14539 $as_echo "$ac_try_echo") >&5
14540 (eval "$ac_link") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext && {
14550 test "$cross_compiling" = yes ||
14551 $as_test_x conftest$ac_exeext
14553 ac_cv_lib_png_png_get_channels=yes
14555 $as_echo "$as_me: failed program was
:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_cv_lib_png_png_get_channels=no
14561 rm -rf conftest.dSYM
14562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14566 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14567 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14568 if test $ac_cv_lib_png_png_get_channels = yes; then
14575 if test "${HAVE_PNG}" = "yes"; then
14577 cat >>confdefs.h <<\_ACEOF
14584 ### Use -ltiff if available, unless `--with-tiff=no'.
14586 if test "${HAVE_X11}" = "yes"; then
14587 if test "${with_tiff}" != "no
"; then
14588 if test "${ac_cv_header_tiffio_h+set}" = set; then
14589 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14590 $as_echo_n "checking
for tiffio.h...
" >&6; }
14591 if test "${ac_cv_header_tiffio_h+set}" = set; then
14592 $as_echo_n "(cached
) " >&6
14594 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14595 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14597 # Is the header compilable?
14598 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14599 $as_echo_n "checking tiffio.h usability...
" >&6; }
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 #include <tiffio.h>
14609 rm -f conftest.$ac_objext
14610 if { (ac_try="$ac_compile"
14611 case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14616 $as_echo "$ac_try_echo") >&5
14617 (eval "$ac_compile") 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
14626 } && test -s conftest.$ac_objext; then
14627 ac_header_compiler=yes
14629 $as_echo "$as_me: failed program was
:" >&5
14630 sed 's/^/| /' conftest.$ac_ext >&5
14632 ac_header_compiler=no
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14636 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14637 $as_echo "$ac_header_compiler" >&6; }
14639 # Is the header present?
14640 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14641 $as_echo_n "checking tiffio.h presence...
" >&6; }
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14648 #include <tiffio.h>
14650 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14656 $as_echo "$ac_try_echo") >&5
14657 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14659 grep -v '^ *+' conftest.er1 >conftest.err
14661 cat conftest.err >&5
14662 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14663 (exit $ac_status); } >/dev/null && {
14664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14665 test ! -s conftest.err
14667 ac_header_preproc=yes
14669 $as_echo "$as_me: failed program was
:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_header_preproc=no
14675 rm -f conftest.err conftest.$ac_ext
14676 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14677 $as_echo "$ac_header_preproc" >&6; }
14679 # So? What about this header?
14680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14682 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14683 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14684 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14685 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14686 ac_header_preproc=yes
14689 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14690 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14691 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14692 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14693 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14694 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14695 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14696 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14697 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14698 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14699 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14700 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14704 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14705 $as_echo_n "checking
for tiffio.h...
" >&6; }
14706 if test "${ac_cv_header_tiffio_h+set}" = set; then
14707 $as_echo_n "(cached
) " >&6
14709 ac_cv_header_tiffio_h=$ac_header_preproc
14711 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14712 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14715 if test $ac_cv_header_tiffio_h = yes; then
14717 # At least one tiff package requires the jpeg library.
14718 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14719 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14720 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14721 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14722 $as_echo_n "(cached
) " >&6
14724 ac_check_lib_save_LIBS=$LIBS
14725 LIBS="-ltiff $tifflibs $LIBS"
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14739 char TIFFGetVersion ();
14743 return TIFFGetVersion ();
14748 rm -f conftest.$ac_objext conftest$ac_exeext
14749 if { (ac_try="$ac_link"
14750 case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14755 $as_echo "$ac_try_echo") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext && {
14766 test "$cross_compiling" = yes ||
14767 $as_test_x conftest$ac_exeext
14769 ac_cv_lib_tiff_TIFFGetVersion=yes
14771 $as_echo "$as_me: failed program was
:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ac_cv_lib_tiff_TIFFGetVersion=no
14777 rm -rf conftest.dSYM
14778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14779 conftest$ac_exeext conftest.$ac_ext
14780 LIBS=$ac_check_lib_save_LIBS
14782 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14783 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14784 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14793 if test "${HAVE_TIFF}" = "yes"; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_TIFF 1
14802 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14804 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14805 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14806 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14807 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14808 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14809 $as_echo_n "(cached
) " >&6
14811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14812 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14814 # Is the header compilable?
14815 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14816 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 $ac_includes_default
14824 #include <gif_lib.h>
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14833 $as_echo "$ac_try_echo") >&5
14834 (eval "$ac_compile") 2>conftest.er1
14836 grep -v '^ *+' conftest.er1 >conftest.err
14838 cat conftest.err >&5
14839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14840 (exit $ac_status); } && {
14841 test -z "$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 } && test -s conftest.$ac_objext; then
14844 ac_header_compiler=yes
14846 $as_echo "$as_me: failed program was
:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_compiler=no
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14854 $as_echo "$ac_header_compiler" >&6; }
14856 # Is the header present?
14857 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14858 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <gif_lib.h>
14867 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14873 $as_echo "$ac_try_echo") >&5
14874 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14880 (exit $ac_status); } >/dev/null && {
14881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14882 test ! -s conftest.err
14884 ac_header_preproc=yes
14886 $as_echo "$as_me: failed program was
:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_header_preproc=no
14892 rm -f conftest.err conftest.$ac_ext
14893 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14894 $as_echo "$ac_header_preproc" >&6; }
14896 # So? What about this header?
14897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14899 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14900 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14901 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14902 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14903 ac_header_preproc=yes
14906 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14907 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14908 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14909 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14910 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14911 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14912 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14913 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14914 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14915 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14917 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14921 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14922 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14923 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14924 $as_echo_n "(cached
) " >&6
14926 ac_cv_header_gif_lib_h=$ac_header_preproc
14928 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14929 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14932 if test $ac_cv_header_gif_lib_h = yes; then
14933 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14934 # Earlier versions can crash Emacs.
14935 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14936 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
14937 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14938 $as_echo_n "(cached
) " >&6
14940 ac_check_lib_save_LIBS=$LIBS
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14955 char EGifPutExtensionLast ();
14959 return EGifPutExtensionLast ();
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (ac_try="$ac_link"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_link") 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext && {
14982 test "$cross_compiling" = yes ||
14983 $as_test_x conftest$ac_exeext
14985 ac_cv_lib_gif_EGifPutExtensionLast=yes
14987 $as_echo "$as_me: failed program was
:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_gif_EGifPutExtensionLast=no
14993 rm -rf conftest.dSYM
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14998 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14999 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15000 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15010 if test "$HAVE_GIF" = yes; then
15011 ac_gif_lib_name="-lgif"
15014 # If gif_lib.h but no libgif, try libungif.
15015 if test x"$try_libungif" = xyes; then
15016 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15017 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15018 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15019 $as_echo_n "(cached
) " >&6
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lungif $LIBS"
15023 cat >conftest.$ac_ext <<_ACEOF
15026 cat confdefs.h >>conftest.$ac_ext
15027 cat >>conftest.$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15036 char EGifPutExtensionLast ();
15040 return EGifPutExtensionLast ();
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_link") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1 >conftest.err
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext && {
15063 test "$cross_compiling" = yes ||
15064 $as_test_x conftest$ac_exeext
15066 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15068 $as_echo "$as_me: failed program was
:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_ungif_EGifPutExtensionLast=no
15074 rm -rf conftest.dSYM
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15079 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15080 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15081 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15086 if test "$HAVE_GIF" = yes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define LIBGIF -lungif
15092 ac_gif_lib_name="-lungif"
15096 if test "${HAVE_GIF}" = "yes"; then
15098 cat >>confdefs.h <<\_ACEOF
15105 if test "${HAVE_X11}" = "yes"; then
15108 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15109 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15110 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15111 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15112 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15113 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15114 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15115 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15116 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15117 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15119 if test "X
${MISSING}" != X; then
15120 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15122 Maybe some development libraries
/packages are missing?
15123 If you don
't want to link with them give
15125 as options to configure" >&5
15126 $as_echo "$as_me: error: The following required libraries were not found:
15128 Maybe some development libraries/packages are missing?
15129 If you don't want to link with them give
15131 as options to configure
" >&2;}
15132 { (exit 1); exit 1; }; }
15136 ### Use -lgpm if available, unless `--with-gpm=no'.
15138 if test "${with_gpm}" != "no
"; then
15139 if test "${ac_cv_header_gpm_h+set}" = set; then
15140 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15141 $as_echo_n "checking
for gpm.h...
" >&6; }
15142 if test "${ac_cv_header_gpm_h+set}" = set; then
15143 $as_echo_n "(cached
) " >&6
15145 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15146 $as_echo "$ac_cv_header_gpm_h" >&6; }
15148 # Is the header compilable?
15149 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15150 $as_echo_n "checking gpm.h usability...
" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 $ac_includes_default
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168 (eval "$ac_compile") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest.$ac_objext; then
15178 ac_header_compiler=yes
15180 $as_echo "$as_me: failed program was
:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_header_compiler=no
15186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15188 $as_echo "$ac_header_compiler" >&6; }
15190 # Is the header present?
15191 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15192 $as_echo_n "checking gpm.h presence...
" >&6; }
15193 cat >conftest.$ac_ext <<_ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15207 $as_echo "$ac_try_echo") >&5
15208 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15214 (exit $ac_status); } >/dev/null && {
15215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15218 ac_header_preproc=yes
15220 $as_echo "$as_me: failed program was
:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_header_preproc=no
15226 rm -f conftest.err conftest.$ac_ext
15227 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15228 $as_echo "$ac_header_preproc" >&6; }
15230 # So? What about this header?
15231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15233 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15234 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15235 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15236 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15237 ac_header_preproc=yes
15240 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15241 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15242 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15243 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15245 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15247 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15248 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15249 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15250 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15251 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15255 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15256 $as_echo_n "checking
for gpm.h...
" >&6; }
15257 if test "${ac_cv_header_gpm_h+set}" = set; then
15258 $as_echo_n "(cached
) " >&6
15260 ac_cv_header_gpm_h=$ac_header_preproc
15262 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15263 $as_echo "$ac_cv_header_gpm_h" >&6; }
15266 if test $ac_cv_header_gpm_h = yes; then
15267 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15268 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15269 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15270 $as_echo_n "(cached
) " >&6
15272 ac_check_lib_save_LIBS=$LIBS
15274 cat >conftest.$ac_ext <<_ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 /* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15291 return Gpm_Open ();
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15303 $as_echo "$ac_try_echo") >&5
15304 (eval "$ac_link") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15310 (exit $ac_status); } && {
15311 test -z "$ac_c_werror_flag" ||
15312 test ! -s conftest.err
15313 } && test -s conftest$ac_exeext && {
15314 test "$cross_compiling" = yes ||
15315 $as_test_x conftest$ac_exeext
15317 ac_cv_lib_gpm_Gpm_Open=yes
15319 $as_echo "$as_me: failed program was
:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_lib_gpm_Gpm_Open=no
15325 rm -rf conftest.dSYM
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15331 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15332 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15341 if test "${HAVE_GPM}" = "yes"; then
15343 cat >>confdefs.h <<\_ACEOF
15349 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15350 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15351 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15352 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15353 $as_echo_n "(cached
) " >&6
15355 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15356 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15358 # Is the header compilable?
15359 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15360 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 $ac_includes_default
15368 #include <malloc/malloc.h>
15370 rm -f conftest.$ac_objext
15371 if { (ac_try="$ac_compile"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15377 $as_echo "$ac_try_echo") >&5
15378 (eval "$ac_compile") 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15384 (exit $ac_status); } && {
15385 test -z "$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 } && test -s conftest.$ac_objext; then
15388 ac_header_compiler=yes
15390 $as_echo "$as_me: failed program was
:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_compiler=no
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15398 $as_echo "$ac_header_compiler" >&6; }
15400 # Is the header present?
15401 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15402 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15403 cat >conftest.$ac_ext <<_ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h. */
15409 #include <malloc/malloc.h>
15411 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15416 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15417 $as_echo "$ac_try_echo") >&5
15418 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15424 (exit $ac_status); } >/dev/null && {
15425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15426 test ! -s conftest.err
15428 ac_header_preproc=yes
15430 $as_echo "$as_me: failed program was
:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15433 ac_header_preproc=no
15436 rm -f conftest.err conftest.$ac_ext
15437 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15438 $as_echo "$ac_header_preproc" >&6; }
15440 # So? What about this header?
15441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15444 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15445 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15446 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15447 ac_header_preproc=yes
15450 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15451 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15452 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15453 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15454 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15455 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15456 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15457 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15458 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15459 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15460 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15461 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15465 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15466 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15467 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15468 $as_echo_n "(cached
) " >&6
15470 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15472 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15473 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15476 if test $ac_cv_header_malloc_malloc_h = yes; then
15478 cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_MALLOC_MALLOC_H 1
15486 ### Use NeXTstep API to implement GUI.
15487 if test "${HAVE_NS}" = "yes"; then
15489 cat >>confdefs.h <<\_ACEOF
15493 if test "${NS_IMPL_COCOA}" = "yes"; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define NS_IMPL_COCOA 1
15500 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15502 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15504 cat >>confdefs.h <<\_ACEOF
15505 #define NS_IMPL_GNUSTEP 1
15508 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15510 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15512 cat >>confdefs.h <<\_ACEOF
15513 #define NS_HAVE_NSINTEGER 1
15517 # We also have mouse menus.
15522 ### Use session management (-lSM -lICE) if available
15524 if test "${HAVE_X11}" = "yes"; then
15525 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15526 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15527 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15528 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15529 $as_echo_n "(cached
) " >&6
15531 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15532 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15534 # Is the header compilable?
15535 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15536 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15537 cat >conftest.$ac_ext <<_ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 $ac_includes_default
15544 #include <X11/SM/SMlib.h>
15546 rm -f conftest.$ac_objext
15547 if { (ac_try="$ac_compile"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15553 $as_echo "$ac_try_echo") >&5
15554 (eval "$ac_compile") 2>conftest.er1
15556 grep -v '^ *+' conftest.er1 >conftest.err
15558 cat conftest.err >&5
15559 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15560 (exit $ac_status); } && {
15561 test -z "$ac_c_werror_flag" ||
15562 test ! -s conftest.err
15563 } && test -s conftest.$ac_objext; then
15564 ac_header_compiler=yes
15566 $as_echo "$as_me: failed program was
:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 ac_header_compiler=no
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15574 $as_echo "$ac_header_compiler" >&6; }
15576 # Is the header present?
15577 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15578 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 #include <X11/SM/SMlib.h>
15587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15588 case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15593 $as_echo "$ac_try_echo") >&5
15594 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1 >conftest.err
15598 cat conftest.err >&5
15599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15600 (exit $ac_status); } >/dev/null && {
15601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15604 ac_header_preproc=yes
15606 $as_echo "$as_me: failed program was
:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_header_preproc=no
15612 rm -f conftest.err conftest.$ac_ext
15613 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15614 $as_echo "$ac_header_preproc" >&6; }
15616 # So? What about this header?
15617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15619 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15620 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15621 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15622 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15623 ac_header_preproc=yes
15626 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15627 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15628 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15629 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15630 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15631 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15632 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15633 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15634 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15635 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15636 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15637 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15641 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15642 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15643 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15644 $as_echo_n "(cached
) " >&6
15646 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15648 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15649 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15652 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15653 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15654 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15655 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15656 $as_echo_n "(cached
) " >&6
15658 ac_check_lib_save_LIBS=$LIBS
15659 LIBS="-lSM -lICE $LIBS"
15660 cat >conftest.$ac_ext <<_ACEOF
15663 cat confdefs.h >>conftest.$ac_ext
15664 cat >>conftest.$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15667 /* Override any GCC internal prototype to avoid an error.
15668 Use char because int might match the return type of a GCC
15669 builtin and then its argument prototype would still apply. */
15673 char SmcOpenConnection ();
15677 return SmcOpenConnection ();
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15689 $as_echo "$ac_try_echo") >&5
15690 (eval "$ac_link") 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext && {
15700 test "$cross_compiling" = yes ||
15701 $as_test_x conftest$ac_exeext
15703 ac_cv_lib_SM_SmcOpenConnection=yes
15705 $as_echo "$as_me: failed program was
:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_cv_lib_SM_SmcOpenConnection=no
15711 rm -rf conftest.dSYM
15712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15713 conftest$ac_exeext conftest.$ac_ext
15714 LIBS=$ac_check_lib_save_LIBS
15716 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15717 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15718 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15726 if test "${HAVE_X_SM}" = "yes"; then
15728 cat >>confdefs.h <<\_ACEOF
15729 #define HAVE_X_SM 1
15734 *) LIBS="-lSM -lICE $LIBS" ;;
15739 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15740 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15741 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15742 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15743 $as_echo_n "(cached
) " >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_link") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext && {
15778 test "$cross_compiling" = yes ||
15779 $as_test_x conftest$ac_exeext
15781 emacs_cv_netdb_declares_h_errno=yes
15783 $as_echo "$as_me: failed program was
:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 emacs_cv_netdb_declares_h_errno=no
15789 rm -rf conftest.dSYM
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15793 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15794 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15795 if test $emacs_cv_netdb_declares_h_errno = yes; then
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE_H_ERRNO 1
15803 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15804 # for constant arguments. Useless!
15805 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15806 $as_echo_n "checking
for working alloca.h...
" >&6; }
15807 if test "${ac_cv_working_alloca_h+set}" = set; then
15808 $as_echo_n "(cached
) " >&6
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 #include <alloca.h>
15820 char *p = (char *) alloca (2 * sizeof (int));
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15833 $as_echo "$ac_try_echo") >&5
15834 (eval "$ac_link") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest$ac_exeext && {
15844 test "$cross_compiling" = yes ||
15845 $as_test_x conftest$ac_exeext
15847 ac_cv_working_alloca_h=yes
15849 $as_echo "$as_me: failed program was
:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_working_alloca_h=no
15855 rm -rf conftest.dSYM
15856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15857 conftest$ac_exeext conftest.$ac_ext
15859 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15860 $as_echo "$ac_cv_working_alloca_h" >&6; }
15861 if test $ac_cv_working_alloca_h = yes; then
15863 cat >>confdefs.h <<\_ACEOF
15864 #define HAVE_ALLOCA_H 1
15869 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15870 $as_echo_n "checking
for alloca...
" >&6; }
15871 if test "${ac_cv_func_alloca_works+set}" = set; then
15872 $as_echo_n "(cached
) " >&6
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15881 # define alloca __builtin_alloca
15884 # include <malloc.h>
15885 # define alloca _alloca
15887 # ifdef HAVE_ALLOCA_H
15888 # include <alloca.h>
15893 # ifndef alloca /* predefined by HP cc +Olibcalls */
15904 char *p = (char *) alloca (1);
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15917 $as_echo "$ac_try_echo") >&5
15918 (eval "$ac_link") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15924 (exit $ac_status); } && {
15925 test -z "$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 } && test -s conftest$ac_exeext && {
15928 test "$cross_compiling" = yes ||
15929 $as_test_x conftest$ac_exeext
15931 ac_cv_func_alloca_works=yes
15933 $as_echo "$as_me: failed program was
:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15936 ac_cv_func_alloca_works=no
15939 rm -rf conftest.dSYM
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15944 $as_echo "$ac_cv_func_alloca_works" >&6; }
15946 if test $ac_cv_func_alloca_works = yes; then
15948 cat >>confdefs.h <<\_ACEOF
15949 #define HAVE_ALLOCA 1
15953 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15954 # that cause trouble. Some versions do not even contain alloca or
15955 # contain a buggy version. If you still want to use their alloca,
15956 # use ar to extract alloca.o from them instead of compiling alloca.c.
15958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15960 cat >>confdefs.h <<\_ACEOF
15965 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15966 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
15967 if test "${ac_cv_os_cray+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #if defined CRAY && ! defined CRAY2
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "webecray" >/dev/null 2>&1; then
15992 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15993 $as_echo "$ac_cv_os_cray" >&6; }
15994 if test $ac_cv_os_cray = yes; then
15995 for ac_func in _getb67 GETB67 getb67; do
15996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15998 $as_echo_n "checking for $ac_func... " >&6; }
15999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16000 $as_echo_n "(cached) " >&6
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16010 #define $ac_func innocuous_$ac_func
16012 /* System header to define __stub macros and hopefully few prototypes,
16013 which can conflict with char $ac_func (); below.
16014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16015 <limits.h> exists even on freestanding compilers. */
16018 # include <limits.h>
16020 # include <assert.h>
16025 /* Override any GCC internal prototype to avoid an error.
16026 Use char because int might match the return type of a GCC
16027 builtin and then its argument prototype would still apply. */
16032 /* The GNU C library defines this for functions which it implements
16033 to always fail with ENOSYS. Some functions are actually named
16034 something starting with __ and the normal name is an alias. */
16035 #if defined __stub_$ac_func || defined __stub___$ac_func
16042 return $ac_func ();
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16054 $as_echo "$ac_try_echo") >&5
16055 (eval "$ac_link") 2>conftest.er1
16057 grep -v '^
*+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest$ac_exeext && {
16065 test "$cross_compiling" = yes ||
16066 $as_test_x conftest$ac_exeext
16068 eval "$as_ac_var=yes"
16070 $as_echo "$as_me: failed program was:" >&5
16071 sed 's
/^
/|
/' conftest.$ac_ext >&5
16073 eval "$as_ac_var=no"
16076 rm -rf conftest.dSYM
16077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16078 conftest$ac_exeext conftest.$ac_ext
16080 ac_res=`eval 'as_val
=${'$as_ac_var'}
16081 $as_echo "$as_val"'`
16082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16083 $as_echo "$ac_res" >&6; }
16084 if test `eval 'as_val
=${'$as_ac_var'}
16085 $as_echo "$as_val"'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define CRAY_STACKSEG_END $ac_func
16097 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16098 $as_echo_n "checking stack direction for C alloca... " >&6; }
16099 if test "${ac_cv_c_stack_direction+set}" = set; then
16100 $as_echo_n "(cached) " >&6
16102 if test "$cross_compiling" = yes; then
16103 ac_cv_c_stack_direction=0
16105 cat >conftest.$ac_ext <<_ACEOF
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 $ac_includes_default
16113 find_stack_direction ()
16115 static char *addr = 0;
16120 return find_stack_direction ();
16123 return (&dummy > addr) ? 1 : -1;
16129 return find_stack_direction () < 0;
16132 rm -f conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_link") 2>&5
16142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16144 { (case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16149 $as_echo "$ac_try_echo") >&5
16150 (eval "$ac_try") 2>&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_c_stack_direction=1
16156 $as_echo "$as_me: program exited with status $ac_status" >&5
16157 $as_echo "$as_me: failed program was:" >&5
16158 sed 's
/^
/|
/' conftest.$ac_ext >&5
16160 ( exit $ac_status )
16161 ac_cv_c_stack_direction=-1
16163 rm -rf conftest.dSYM
16164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16169 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16170 $as_echo "$ac_cv_c_stack_direction" >&6; }
16172 cat >>confdefs.h <<_ACEOF
16173 #define STACK_DIRECTION $ac_cv_c_stack_direction
16180 if test x"$ac_cv_func_alloca_works" != xyes; then
16181 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16182 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16183 { (exit 1); exit 1; }; }
16186 # fmod, logb, and frexp are found in -lm on most systems.
16187 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16189 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16190 $as_echo_n "checking for sqrt in -lm... " >&6; }
16191 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16194 ac_check_lib_save_LIBS=$LIBS
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any GCC internal prototype to avoid an error.
16204 Use char because int might match the return type of a GCC
16205 builtin and then its argument prototype would still apply. */
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (ac_try="$ac_link"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16225 $as_echo "$ac_try_echo") >&5
16226 (eval "$ac_link") 2>conftest.er1
16228 grep -v '^
*+' conftest.er1 >conftest.err
16230 cat conftest.err >&5
16231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext && {
16236 test "$cross_compiling" = yes ||
16237 $as_test_x conftest$ac_exeext
16239 ac_cv_lib_m_sqrt=yes
16241 $as_echo "$as_me: failed program was:" >&5
16242 sed 's
/^
/|
/' conftest.$ac_ext >&5
16244 ac_cv_lib_m_sqrt=no
16247 rm -rf conftest.dSYM
16248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LIBS=$ac_check_lib_save_LIBS
16252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16253 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16254 if test $ac_cv_lib_m_sqrt = yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define HAVE_LIBM 1
16264 # Check for mail-locking functions in a "mail" library. Probably this should
16265 # have the same check as for liblockfile below.
16267 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16268 $as_echo_n "checking for maillock in -lmail... " >&6; }
16269 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16270 $as_echo_n "(cached) " >&6
16272 ac_check_lib_save_LIBS=$LIBS
16273 LIBS="-lmail $LIBS"
16274 cat >conftest.$ac_ext <<_ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16291 return maillock ();
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16303 $as_echo "$ac_try_echo") >&5
16304 (eval "$ac_link") 2>conftest.er1
16306 grep -v '^
*+' conftest.er1 >conftest.err
16308 cat conftest.err >&5
16309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } && {
16311 test -z "$ac_c_werror_flag" ||
16312 test ! -s conftest.err
16313 } && test -s conftest$ac_exeext && {
16314 test "$cross_compiling" = yes ||
16315 $as_test_x conftest$ac_exeext
16317 ac_cv_lib_mail_maillock=yes
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's
/^
/|
/' conftest.$ac_ext >&5
16322 ac_cv_lib_mail_maillock=no
16325 rm -rf conftest.dSYM
16326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16327 conftest$ac_exeext conftest.$ac_ext
16328 LIBS=$ac_check_lib_save_LIBS
16330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16331 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16332 if test $ac_cv_lib_mail_maillock = yes; then
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_LIBMAIL 1
16337 LIBS="-lmail $LIBS"
16342 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16343 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16344 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16345 $as_echo_n "(cached) " >&6
16347 ac_check_lib_save_LIBS=$LIBS
16348 LIBS="-llockfile $LIBS"
16349 cat >conftest.$ac_ext <<_ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16356 /* Override any GCC internal prototype to avoid an error.
16357 Use char because int might match the return type of a GCC
16358 builtin and then its argument prototype would still apply. */
16366 return maillock ();
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (ac_try="$ac_link"
16373 case "(($ac_try" in
16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16375 *) ac_try_echo=$ac_try;;
16377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16378 $as_echo "$ac_try_echo") >&5
16379 (eval "$ac_link") 2>conftest.er1
16381 grep -v '^
*+' conftest.er1 >conftest.err
16383 cat conftest.err >&5
16384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest$ac_exeext && {
16389 test "$cross_compiling" = yes ||
16390 $as_test_x conftest$ac_exeext
16392 ac_cv_lib_lockfile_maillock=yes
16394 $as_echo "$as_me: failed program was:" >&5
16395 sed 's
/^
/|
/' conftest.$ac_ext >&5
16397 ac_cv_lib_lockfile_maillock=no
16400 rm -rf conftest.dSYM
16401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16406 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16407 if test $ac_cv_lib_lockfile_maillock = yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_LIBLOCKFILE 1
16412 LIBS="-llockfile $LIBS"
16416 # If we have the shared liblockfile, assume we must use it for mail
16417 # locking (e.g. Debian). If we couldn't link against liblockfile
16418 # (no liblockfile.a installed), ensure that we don't need to.
16419 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16420 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16421 set dummy liblockfile.so
; ac_word
=$2
16422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16423 $as_echo_n "checking for $ac_word... " >&6; }
16424 if test "${ac_cv_prog_liblockfile+set}" = set; then
16425 $as_echo_n "(cached) " >&6
16427 if test -n "$liblockfile"; then
16428 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16431 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16432 for as_dir
in $as_dummy
16435 test -z "$as_dir" && as_dir
=.
16436 for ac_exec_ext
in '' $ac_executable_extensions; do
16437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16438 ac_cv_prog_liblockfile
="yes"
16439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16446 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16449 liblockfile
=$ac_cv_prog_liblockfile
16450 if test -n "$liblockfile"; then
16451 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16452 $as_echo "$liblockfile" >&6; }
16454 { $as_echo "$as_me:$LINENO: result: no" >&5
16455 $as_echo "no" >&6; }
16459 if test $ac_cv_prog_liblockfile = yes; then
16460 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16461 This probably means that movemail could lose mail.
16462 There may be a \`development' package to install containing liblockfile." >&5
16463 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16464 This probably means that movemail could lose mail.
16465 There may be a \`development' package to install containing liblockfile." >&2;}
16466 { (exit 1); exit 1; }; }
16471 for ac_func
in touchlock
16473 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16475 $as_echo_n "checking for $ac_func... " >&6; }
16476 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16477 $as_echo_n "(cached) " >&6
16479 cat >conftest.
$ac_ext <<_ACEOF
16482 cat confdefs.h
>>conftest.
$ac_ext
16483 cat >>conftest.
$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16487 #define $ac_func innocuous_$ac_func
16489 /* System header to define __stub macros and hopefully few prototypes,
16490 which can conflict with char $ac_func (); below.
16491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16492 <limits.h> exists even on freestanding compilers. */
16495 # include <limits.h>
16497 # include <assert.h>
16502 /* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
16509 /* The GNU C library defines this for functions which it implements
16510 to always fail with ENOSYS. Some functions are actually named
16511 something starting with __ and the normal name is an alias. */
16512 #if defined __stub_$ac_func || defined __stub___$ac_func
16519 return $ac_func ();
16524 rm -f conftest.
$ac_objext conftest
$ac_exeext
16525 if { (ac_try
="$ac_link"
16526 case "(($ac_try" in
16527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16531 $as_echo "$ac_try_echo") >&5
16532 (eval "$ac_link") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && {
16539 test -z "$ac_c_werror_flag" ||
16540 test ! -s conftest.err
16541 } && test -s conftest$ac_exeext && {
16542 test "$cross_compiling" = yes ||
16543 $as_test_x conftest$ac_exeext
16545 eval "$as_ac_var=yes"
16547 $as_echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 eval "$as_ac_var=no"
16553 rm -rf conftest.dSYM
16554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16555 conftest$ac_exeext conftest.$ac_ext
16557 ac_res=`eval 'as_val=${'$as_ac_var'}
16558 $as_echo "$as_val"'`
16559 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16560 $as_echo "$ac_res" >&6; }
16561 if test `eval 'as_val=${'$as_ac_var'}
16562 $as_echo "$as_val"'` = yes; then
16563 cat >>confdefs.h <<_ACEOF
16564 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16571 for ac_header in maillock.h
16573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16576 $as_echo_n "checking for $ac_header... " >&6; }
16577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16578 $as_echo_n "(cached) " >&6
16580 ac_res=`eval 'as_val=${'$as_ac_Header'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16583 $as_echo "$ac_res" >&6; }
16585 # Is the header compilable?
16586 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16587 $as_echo_n "checking $ac_header usability... " >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 $ac_includes_default
16595 #include <$ac_header>
16597 rm -f conftest.$ac_objext
16598 if { (ac_try="$ac_compile"
16599 case "(($ac_try" in
16600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16601 *) ac_try_echo
=$ac_try;;
16603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_compile") 2>conftest.er1
16607 grep -v '^ *+' conftest.er1
>conftest.err
16609 cat conftest.err
>&5
16610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } && {
16612 test -z "$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 } && test -s conftest.
$ac_objext; then
16615 ac_header_compiler
=yes
16617 $as_echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.
$ac_ext >&5
16620 ac_header_compiler
=no
16623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16624 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16625 $as_echo "$ac_header_compiler" >&6; }
16627 # Is the header present?
16628 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16629 $as_echo_n "checking $ac_header presence... " >&6; }
16630 cat >conftest.
$ac_ext <<_ACEOF
16633 cat confdefs.h
>>conftest.
$ac_ext
16634 cat >>conftest.
$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16636 #include <$ac_header>
16638 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16639 case "(($ac_try" in
16640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644 $as_echo "$ac_try_echo") >&5
16645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16647 grep -v '^ *+' conftest.er1 >conftest.err
16649 cat conftest.err >&5
16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } >/dev/null && {
16652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16655 ac_header_preproc=yes
16657 $as_echo "$as_me: failed program was:" >&5
16658 sed 's/^/| /' conftest.$ac_ext >&5
16660 ac_header_preproc=no
16663 rm -f conftest.err conftest.$ac_ext
16664 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16665 $as_echo "$ac_header_preproc" >&6; }
16667 # So? What about this header?
16668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16671 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16673 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16674 ac_header_preproc=yes
16677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16678 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16680 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16682 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16684 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16688 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16693 $as_echo_n "checking for $ac_header... " >&6; }
16694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16695 $as_echo_n "(cached) " >&6
16697 eval "$as_ac_Header=\$ac_header_preproc"
16699 ac_res=`eval 'as_val=${'$as_ac_Header'}
16700 $as_echo "$as_val"'`
16701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16702 $as_echo "$ac_res" >&6; }
16705 if test `eval 'as_val=${'$as_ac_Header'}
16706 $as_echo "$as_val"'` = yes; then
16707 cat >>confdefs.h <<_ACEOF
16708 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16787 for ac_func in gethostname getdomainname dup2 \
16788 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16789 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16790 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16791 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16792 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16793 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16794 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16795 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16796 cfmakeraw cfsetspeed
16798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16800 $as_echo_n "checking for $ac_func... " >&6; }
16801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16802 $as_echo_n "(cached) " >&6
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16812 #define $ac_func innocuous_$ac_func
16814 /* System header to define __stub macros and hopefully few prototypes,
16815 which can conflict with char $ac_func (); below.
16816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16817 <limits.h> exists even on freestanding compilers. */
16820 # include <limits.h>
16822 # include <assert.h>
16827 /* Override any GCC internal prototype to avoid an error.
16828 Use char because int might match the return type of a GCC
16829 builtin and then its argument prototype would still apply. */
16834 /* The GNU C library defines this for functions which it implements
16835 to always fail with ENOSYS. Some functions are actually named
16836 something starting with __ and the normal name is an alias. */
16837 #if defined __stub_$ac_func || defined __stub___$ac_func
16844 return $ac_func ();
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (ac_try="$ac_link"
16851 case "(($ac_try" in
16852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16853 *) ac_try_echo
=$ac_try;;
16855 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16856 $as_echo "$ac_try_echo") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1
>conftest.err
16861 cat conftest.err
>&5
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest
$ac_exeext && {
16867 test "$cross_compiling" = yes ||
16868 $as_test_x conftest
$ac_exeext
16870 eval "$as_ac_var=yes"
16872 $as_echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.
$ac_ext >&5
16875 eval "$as_ac_var=no"
16878 rm -rf conftest.dSYM
16879 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16880 conftest
$ac_exeext conftest.
$ac_ext
16882 ac_res
=`eval 'as_val=${'$as_ac_var'}
16883 $as_echo "$as_val"'`
16884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16885 $as_echo "$ac_res" >&6; }
16886 if test `eval 'as_val=${'$as_ac_var'}
16887 $as_echo "$as_val"'` = yes; then
16888 cat >>confdefs.h
<<_ACEOF
16889 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16897 for ac_header
in sys
/un.h
16899 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16900 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16901 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16902 $as_echo_n "checking for $ac_header... " >&6; }
16903 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16904 $as_echo_n "(cached) " >&6
16906 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16907 $as_echo "$as_val"'`
16908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16909 $as_echo "$ac_res" >&6; }
16911 # Is the header compilable?
16912 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16913 $as_echo_n "checking $ac_header usability... " >&6; }
16914 cat >conftest.
$ac_ext <<_ACEOF
16917 cat confdefs.h
>>conftest.
$ac_ext
16918 cat >>conftest.
$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 $ac_includes_default
16921 #include <$ac_header>
16923 rm -f conftest.
$ac_objext
16924 if { (ac_try
="$ac_compile"
16925 case "(($ac_try" in
16926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931 (eval "$ac_compile") 2>conftest.er1
16933 grep -v '^ *+' conftest.er1 >conftest.err
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest.$ac_objext; then
16941 ac_header_compiler=yes
16943 $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ac_header_compiler=no
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16951 $as_echo "$ac_header_compiler" >&6; }
16953 # Is the header present?
16954 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16955 $as_echo_n "checking $ac_header presence... " >&6; }
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16962 #include <$ac_header>
16964 if { (ac_try="$ac_cpp conftest.$ac_ext"
16965 case "(($ac_try" in
16966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16967 *) ac_try_echo
=$ac_try;;
16969 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16970 $as_echo "$ac_try_echo") >&5
16971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16973 grep -v '^ *+' conftest.er1
>conftest.err
16975 cat conftest.err
>&5
16976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } >/dev
/null
&& {
16978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16979 test ! -s conftest.err
16981 ac_header_preproc
=yes
16983 $as_echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.
$ac_ext >&5
16986 ac_header_preproc
=no
16989 rm -f conftest.err conftest.
$ac_ext
16990 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16991 $as_echo "$ac_header_preproc" >&6; }
16993 # So? What about this header?
16994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17000 ac_header_preproc
=yes
17003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17004 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17006 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17008 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17010 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17014 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17019 $as_echo_n "checking for $ac_header... " >&6; }
17020 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021 $as_echo_n "(cached) " >&6
17023 eval "$as_ac_Header=\$ac_header_preproc"
17025 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17026 $as_echo "$as_val"'`
17027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17028 $as_echo "$ac_res" >&6; }
17031 if test `eval 'as_val=${'$as_ac_Header'}
17032 $as_echo "$as_val"'` = yes; then
17033 cat >>confdefs.h
<<_ACEOF
17034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17046 for ac_header
in $ac_header_list
17048 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17049 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17051 $as_echo_n "checking for $ac_header... " >&6; }
17052 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17053 $as_echo_n "(cached) " >&6
17055 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17056 $as_echo "$as_val"'`
17057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17058 $as_echo "$ac_res" >&6; }
17060 # Is the header compilable?
17061 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17062 $as_echo_n "checking $ac_header usability... " >&6; }
17063 cat >conftest.
$ac_ext <<_ACEOF
17066 cat confdefs.h
>>conftest.
$ac_ext
17067 cat >>conftest.
$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17070 #include <$ac_header>
17072 rm -f conftest.
$ac_objext
17073 if { (ac_try
="$ac_compile"
17074 case "(($ac_try" in
17075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17079 $as_echo "$ac_try_echo") >&5
17080 (eval "$ac_compile") 2>conftest.er1
17082 grep -v '^ *+' conftest.er1 >conftest.err
17084 cat conftest.err >&5
17085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } && {
17087 test -z "$ac_c_werror_flag" ||
17088 test ! -s conftest.err
17089 } && test -s conftest.$ac_objext; then
17090 ac_header_compiler=yes
17092 $as_echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_header_compiler=no
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100 $as_echo "$ac_header_compiler" >&6; }
17102 # Is the header present?
17103 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17104 $as_echo_n "checking $ac_header presence... " >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <$ac_header>
17113 if { (ac_try="$ac_cpp conftest.$ac_ext"
17114 case "(($ac_try" in
17115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17116 *) ac_try_echo
=$ac_try;;
17118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17119 $as_echo "$ac_try_echo") >&5
17120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17122 grep -v '^ *+' conftest.er1
>conftest.err
17124 cat conftest.err
>&5
17125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } >/dev
/null
&& {
17127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17128 test ! -s conftest.err
17130 ac_header_preproc
=yes
17132 $as_echo "$as_me: failed program was:" >&5
17133 sed 's/^/| /' conftest.
$ac_ext >&5
17135 ac_header_preproc
=no
17138 rm -f conftest.err conftest.
$ac_ext
17139 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17140 $as_echo "$ac_header_preproc" >&6; }
17142 # So? What about this header?
17143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17146 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17148 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17149 ac_header_preproc
=yes
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17155 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17157 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17159 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17163 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17167 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17168 $as_echo_n "checking for $ac_header... " >&6; }
17169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17170 $as_echo_n "(cached) " >&6
17172 eval "$as_ac_Header=\$ac_header_preproc"
17174 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17175 $as_echo "$as_val"'`
17176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17177 $as_echo "$ac_res" >&6; }
17180 if test `eval 'as_val=${'$as_ac_Header'}
17181 $as_echo "$as_val"'` = yes; then
17182 cat >>confdefs.h
<<_ACEOF
17183 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17198 for ac_func
in $ac_func_list
17200 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17201 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17202 $as_echo_n "checking for $ac_func... " >&6; }
17203 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17204 $as_echo_n "(cached) " >&6
17206 cat >conftest.
$ac_ext <<_ACEOF
17209 cat confdefs.h
>>conftest.
$ac_ext
17210 cat >>conftest.
$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214 #define $ac_func innocuous_$ac_func
17216 /* System header to define __stub macros and hopefully few prototypes,
17217 which can conflict with char $ac_func (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
17222 # include <limits.h>
17224 # include <assert.h>
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined __stub_$ac_func || defined __stub___$ac_func
17246 return $ac_func ();
17251 rm -f conftest.
$ac_objext conftest
$ac_exeext
17252 if { (ac_try
="$ac_link"
17253 case "(($ac_try" in
17254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest$ac_exeext && {
17269 test "$cross_compiling" = yes ||
17270 $as_test_x conftest$ac_exeext
17272 eval "$as_ac_var=yes"
17274 $as_echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 eval "$as_ac_var=no"
17280 rm -rf conftest.dSYM
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17284 ac_res=`eval 'as_val=${'$as_ac_var'}
17285 $as_echo "$as_val"'`
17286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17287 $as_echo "$ac_res" >&6; }
17288 if test `eval 'as_val=${'$as_ac_var'}
17289 $as_echo "$as_val"'` = yes; then
17290 cat >>confdefs.h <<_ACEOF
17291 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17313 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17314 $as_echo_n "checking for working mktime... " >&6; }
17315 if test "${ac_cv_func_working_mktime+set}" = set; then
17316 $as_echo_n "(cached) " >&6
17318 if test "$cross_compiling" = yes; then
17319 ac_cv_func_working_mktime=no
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17327 /* Test program from Paul Eggert and Tony Leneis. */
17328 #ifdef TIME_WITH_SYS_TIME
17329 # include <sys/time.h>
17332 # ifdef HAVE_SYS_TIME_H
17333 # include <sys/time.h>
17339 #include <limits.h>
17340 #include <stdlib.h>
17342 #ifdef HAVE_UNISTD_H
17343 # include <unistd.h>
17347 # define alarm(X) /* empty */
17350 /* Work around redefinition to rpl_putenv by other config tests. */
17353 static time_t time_t_max;
17354 static time_t time_t_min;
17356 /* Values we'll use to set the TZ environment variable. */
17357 static char *tz_strings[] = {
17358 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17359 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17361 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17363 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17364 Based on a problem report from Andreas Jaeger. */
17366 spring_forward_gap ()
17368 /* glibc (up to about 1998-10-07) failed this test. */
17371 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17372 instead of "TZ=America/Vancouver" in order to detect the bug even
17373 on systems that don't support the Olson extension, or don't have the
17374 full zoneinfo tables installed. */
17375 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17384 return mktime (&tm) != (time_t) -1;
17392 return ! (lt = localtime (&now)) || mktime (lt) == now;
17399 return (mktime_test1 (now)
17400 && mktime_test1 ((time_t) (time_t_max - now))
17401 && mktime_test1 ((time_t) (time_t_min + now)));
17407 /* Based on code from Ariel Faigon. */
17417 return tm.tm_mon == 2 && tm.tm_mday == 31;
17426 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17427 now = mktime (&tm);
17428 if (now != (time_t) -1)
17430 struct tm *lt = localtime (&now);
17432 && lt->tm_year == tm.tm_year
17433 && lt->tm_mon == tm.tm_mon
17434 && lt->tm_mday == tm.tm_mday
17435 && lt->tm_hour == tm.tm_hour
17436 && lt->tm_min == tm.tm_min
17437 && lt->tm_sec == tm.tm_sec
17438 && lt->tm_yday == tm.tm_yday
17439 && lt->tm_wday == tm.tm_wday
17440 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17441 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17450 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17451 ignoring leap seconds. */
17452 unsigned long int answer = 2527315200UL;
17456 tm.tm_year = 2050 - 1900;
17459 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17462 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17463 instead of "TZ=America/Vancouver" in order to detect the bug even
17464 on systems that don't support the Olson extension, or don't have the
17465 full zoneinfo tables installed. */
17466 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17470 /* Check that the result is either a failure, or close enough
17471 to the correct answer that we can assume the discrepancy is
17472 due to leap seconds. */
17473 return (t == (time_t) -1
17474 || (0 < t && answer - 120 <= t && t <= answer + 120));
17483 /* This test makes some buggy mktime implementations loop.
17484 Give up after 60 seconds; a mktime slower than that
17485 isn't worth using anyway. */
17490 t = (time_t_max << 1) + 1;
17491 if (t <= time_t_max)
17495 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17497 delta = time_t_max / 997; /* a suitable prime number */
17498 for (i = 0; i < N_STRINGS; i++)
17501 putenv (tz_strings[i]);
17503 for (t = 0; t <= time_t_max - delta; t += delta)
17504 if (! mktime_test (t))
17506 if (! (mktime_test ((time_t) 1)
17507 && mktime_test ((time_t) (60 * 60))
17508 && mktime_test ((time_t) (60 * 60 * 24))))
17511 for (j = 1; ; j <<= 1)
17512 if (! bigtime_test (j))
17514 else if (INT_MAX / 2 < j)
17516 if (! bigtime_test (INT_MAX))
17519 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17522 rm -f conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17526 *) ac_try_echo
=$ac_try;;
17528 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_link") 2>&5
17532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17534 { (case "(($ac_try" in
17535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17539 $as_echo "$ac_try_echo") >&5
17540 (eval "$ac_try") 2>&5
17542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_func_working_mktime=yes
17546 $as_echo "$as_me: program exited with status $ac_status" >&5
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ( exit $ac_status )
17551 ac_cv_func_working_mktime=no
17553 rm -rf conftest.dSYM
17554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17560 $as_echo "$ac_cv_func_working_mktime" >&6; }
17561 if test $ac_cv_func_working_mktime = no; then
17562 case " $LIBOBJS " in
17563 *" mktime.$ac_objext "* ) ;;
17564 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17570 if test "$ac_cv_func_working_mktime" = no; then
17572 cat >>confdefs.h <<\_ACEOF
17573 #define BROKEN_MKTIME 1
17578 ac_have_func=no # yes means we've found a way to get the load average.
17580 # Make sure getloadavg.c is where it belongs, at configure-time.
17581 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17582 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17583 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17584 { (exit 1); exit 1; }; }
17588 # Check for getloadavg, but be sure not to touch the cache variable.
17589 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17590 $as_echo_n "checking for getloadavg... " >&6; }
17591 if test "${ac_cv_func_getloadavg+set}" = set; then
17592 $as_echo_n "(cached) " >&6
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17602 #define getloadavg innocuous_getloadavg
17604 /* System header to define __stub macros and hopefully few prototypes,
17605 which can conflict with char getloadavg (); below.
17606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17607 <limits.h> exists even on freestanding compilers. */
17610 # include <limits.h>
17612 # include <assert.h>
17617 /* Override any GCC internal prototype to avoid an error.
17618 Use char because int might match the return type of a GCC
17619 builtin and then its argument prototype would still apply. */
17623 char getloadavg ();
17624 /* The GNU C library defines this for functions which it implements
17625 to always fail with ENOSYS. Some functions are actually named
17626 something starting with __ and the normal name is an alias. */
17627 #if defined __stub_getloadavg || defined __stub___getloadavg
17634 return getloadavg ();
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17643 *) ac_try_echo
=$ac_try;;
17645 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17646 $as_echo "$ac_try_echo") >&5
17647 (eval "$ac_link") 2>conftest.er1
17649 grep -v '^ *+' conftest.er1
>conftest.err
17651 cat conftest.err
>&5
17652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } && {
17654 test -z "$ac_c_werror_flag" ||
17655 test ! -s conftest.err
17656 } && test -s conftest
$ac_exeext && {
17657 test "$cross_compiling" = yes ||
17658 $as_test_x conftest
$ac_exeext
17660 ac_cv_func_getloadavg
=yes
17662 $as_echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.
$ac_ext >&5
17665 ac_cv_func_getloadavg
=no
17668 rm -rf conftest.dSYM
17669 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17670 conftest
$ac_exeext conftest.
$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17673 $as_echo "$ac_cv_func_getloadavg" >&6; }
17674 if test $ac_cv_func_getloadavg = yes; then
17679 ) && ac_have_func
=yes
17681 # On HPUX9, an unprivileged user can get load averages through this function.
17683 for ac_func
in pstat_getdynamic
17685 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17687 $as_echo_n "checking for $ac_func... " >&6; }
17688 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17689 $as_echo_n "(cached) " >&6
17691 cat >conftest.
$ac_ext <<_ACEOF
17694 cat confdefs.h
>>conftest.
$ac_ext
17695 cat >>conftest.
$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17699 #define $ac_func innocuous_$ac_func
17701 /* System header to define __stub macros and hopefully few prototypes,
17702 which can conflict with char $ac_func (); below.
17703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17704 <limits.h> exists even on freestanding compilers. */
17707 # include <limits.h>
17709 # include <assert.h>
17714 /* Override any GCC internal prototype to avoid an error.
17715 Use char because int might match the return type of a GCC
17716 builtin and then its argument prototype would still apply. */
17721 /* The GNU C library defines this for functions which it implements
17722 to always fail with ENOSYS. Some functions are actually named
17723 something starting with __ and the normal name is an alias. */
17724 #if defined __stub_$ac_func || defined __stub___$ac_func
17731 return $ac_func ();
17736 rm -f conftest.
$ac_objext conftest
$ac_exeext
17737 if { (ac_try
="$ac_link"
17738 case "(($ac_try" in
17739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17743 $as_echo "$ac_try_echo") >&5
17744 (eval "$ac_link") 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && {
17751 test -z "$ac_c_werror_flag" ||
17752 test ! -s conftest.err
17753 } && test -s conftest$ac_exeext && {
17754 test "$cross_compiling" = yes ||
17755 $as_test_x conftest$ac_exeext
17757 eval "$as_ac_var=yes"
17759 $as_echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 eval "$as_ac_var=no"
17765 rm -rf conftest.dSYM
17766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17767 conftest$ac_exeext conftest.$ac_ext
17769 ac_res=`eval 'as_val=${'$as_ac_var'}
17770 $as_echo "$as_val"'`
17771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17772 $as_echo "$ac_res" >&6; }
17773 if test `eval 'as_val=${'$as_ac_var'}
17774 $as_echo "$as_val"'` = yes; then
17775 cat >>confdefs.h <<_ACEOF
17776 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17783 # Solaris has libkstat which does not require root.
17785 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17786 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17787 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17788 $as_echo_n "(cached) " >&6
17790 ac_check_lib_save_LIBS=$LIBS
17791 LIBS="-lkstat $LIBS"
17792 cat >conftest.$ac_ext <<_ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17799 /* Override any GCC internal prototype to avoid an error.
17800 Use char because int might match the return type of a GCC
17801 builtin and then its argument prototype would still apply. */
17805 char kstat_open ();
17809 return kstat_open ();
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17818 *) ac_try_echo
=$ac_try;;
17820 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17821 $as_echo "$ac_try_echo") >&5
17822 (eval "$ac_link") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1
>conftest.err
17826 cat conftest.err
>&5
17827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest
$ac_exeext && {
17832 test "$cross_compiling" = yes ||
17833 $as_test_x conftest
$ac_exeext
17835 ac_cv_lib_kstat_kstat_open
=yes
17837 $as_echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.
$ac_ext >&5
17840 ac_cv_lib_kstat_kstat_open
=no
17843 rm -rf conftest.dSYM
17844 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17845 conftest
$ac_exeext conftest.
$ac_ext
17846 LIBS
=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17849 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17850 if test $ac_cv_lib_kstat_kstat_open = yes; then
17851 cat >>confdefs.h
<<_ACEOF
17852 #define HAVE_LIBKSTAT 1
17855 LIBS
="-lkstat $LIBS"
17859 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17861 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17862 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17863 # to get the right answer into the cache.
17864 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17865 if test $ac_have_func = no
; then
17866 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17867 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17868 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17869 $as_echo_n "(cached) " >&6
17871 ac_check_lib_save_LIBS
=$LIBS
17873 cat >conftest.
$ac_ext <<_ACEOF
17876 cat confdefs.h
>>conftest.
$ac_ext
17877 cat >>conftest.
$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17880 /* Override any GCC internal prototype to avoid an error.
17881 Use char because int might match the return type of a GCC
17882 builtin and then its argument prototype would still apply. */
17890 return elf_begin ();
17895 rm -f conftest.
$ac_objext conftest
$ac_exeext
17896 if { (ac_try
="$ac_link"
17897 case "(($ac_try" in
17898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17902 $as_echo "$ac_try_echo") >&5
17903 (eval "$ac_link") 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest$ac_exeext && {
17913 test "$cross_compiling" = yes ||
17914 $as_test_x conftest$ac_exeext
17916 ac_cv_lib_elf_elf_begin=yes
17918 $as_echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17921 ac_cv_lib_elf_elf_begin=no
17924 rm -rf conftest.dSYM
17925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17926 conftest$ac_exeext conftest.$ac_ext
17927 LIBS=$ac_check_lib_save_LIBS
17929 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17930 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17931 if test $ac_cv_lib_elf_elf_begin = yes; then
17936 if test $ac_have_func = no; then
17937 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17938 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17939 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17940 $as_echo_n "(cached) " >&6
17942 ac_check_lib_save_LIBS=$LIBS
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17961 return kvm_open ();
17966 rm -f conftest.$ac_objext conftest$ac_exeext
17967 if { (ac_try="$ac_link"
17968 case "(($ac_try" in
17969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17970 *) ac_try_echo
=$ac_try;;
17972 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17973 $as_echo "$ac_try_echo") >&5
17974 (eval "$ac_link") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1
>conftest.err
17978 cat conftest.err
>&5
17979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest
$ac_exeext && {
17984 test "$cross_compiling" = yes ||
17985 $as_test_x conftest
$ac_exeext
17987 ac_cv_lib_kvm_kvm_open
=yes
17989 $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.
$ac_ext >&5
17992 ac_cv_lib_kvm_kvm_open
=no
17995 rm -rf conftest.dSYM
17996 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17997 conftest
$ac_exeext conftest.
$ac_ext
17998 LIBS
=$ac_check_lib_save_LIBS
18000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18001 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18002 if test $ac_cv_lib_kvm_kvm_open = yes; then
18006 # Check for the 4.4BSD definition of getloadavg.
18007 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18008 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18009 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18010 $as_echo_n "(cached) " >&6
18012 ac_check_lib_save_LIBS
=$LIBS
18013 LIBS
="-lutil $LIBS"
18014 cat >conftest.
$ac_ext <<_ACEOF
18017 cat confdefs.h
>>conftest.
$ac_ext
18018 cat >>conftest.
$ac_ext <<_ACEOF
18019 /* end confdefs.h. */
18021 /* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18027 char getloadavg ();
18031 return getloadavg ();
18036 rm -f conftest.
$ac_objext conftest
$ac_exeext
18037 if { (ac_try
="$ac_link"
18038 case "(($ac_try" in
18039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18043 $as_echo "$ac_try_echo") >&5
18044 (eval "$ac_link") 2>conftest.er1
18046 grep -v '^ *+' conftest.er1 >conftest.err
18048 cat conftest.err >&5
18049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest$ac_exeext && {
18054 test "$cross_compiling" = yes ||
18055 $as_test_x conftest$ac_exeext
18057 ac_cv_lib_util_getloadavg=yes
18059 $as_echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_cv_lib_util_getloadavg=no
18065 rm -rf conftest.dSYM
18066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18071 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18072 if test $ac_cv_lib_util_getloadavg = yes; then
18073 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18078 if test $ac_have_func = no; then
18079 # There is a commonly available library for RS/6000 AIX.
18080 # Since it is not a standard part of AIX, it might be installed locally.
18081 ac_getloadavg_LIBS=$LIBS
18082 LIBS="-L/usr/local/lib $LIBS"
18083 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18084 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18085 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18086 $as_echo_n "(cached) " >&6
18088 ac_check_lib_save_LIBS=$LIBS
18089 LIBS="-lgetloadavg $LIBS"
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18097 /* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
18103 char getloadavg ();
18107 return getloadavg ();
18112 rm -f conftest.$ac_objext conftest$ac_exeext
18113 if { (ac_try="$ac_link"
18114 case "(($ac_try" in
18115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18116 *) ac_try_echo
=$ac_try;;
18118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18119 $as_echo "$ac_try_echo") >&5
18120 (eval "$ac_link") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1
>conftest.err
18124 cat conftest.err
>&5
18125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest
$ac_exeext && {
18130 test "$cross_compiling" = yes ||
18131 $as_test_x conftest
$ac_exeext
18133 ac_cv_lib_getloadavg_getloadavg
=yes
18135 $as_echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.
$ac_ext >&5
18138 ac_cv_lib_getloadavg_getloadavg
=no
18141 rm -rf conftest.dSYM
18142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18143 conftest
$ac_exeext conftest.
$ac_ext
18144 LIBS
=$ac_check_lib_save_LIBS
18146 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18147 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18148 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18149 LIBS
="-lgetloadavg $LIBS"
18151 LIBS
=$ac_getloadavg_LIBS
18156 # Make sure it is really in the library, if we think we found it,
18157 # otherwise set up the replacement function.
18159 for ac_func
in getloadavg
18161 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 $as_echo_n "checking for $ac_func... " >&6; }
18164 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165 $as_echo_n "(cached) " >&6
18167 cat >conftest.
$ac_ext <<_ACEOF
18170 cat confdefs.h
>>conftest.
$ac_ext
18171 cat >>conftest.
$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define $ac_func innocuous_$ac_func
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char $ac_func (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18183 # include <limits.h>
18185 # include <assert.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. */
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18207 return $ac_func ();
18212 rm -f conftest.
$ac_objext conftest
$ac_exeext
18213 if { (ac_try
="$ac_link"
18214 case "(($ac_try" in
18215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18233 eval "$as_ac_var=yes"
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18245 ac_res=`eval 'as_val=${'$as_ac_var'}
18246 $as_echo "$as_val"'`
18247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18248 $as_echo "$ac_res" >&6; }
18249 if test `eval 'as_val=${'$as_ac_var'}
18250 $as_echo "$as_val"'` = yes; then
18251 cat >>confdefs.h <<_ACEOF
18252 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18256 case " $LIBOBJS " in
18257 *" getloadavg.$ac_objext "* ) ;;
18258 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18263 cat >>confdefs.h <<\_ACEOF
18264 #define C_GETLOADAVG 1
18267 # Figure out what our getloadavg.c needs.
18269 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18270 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18271 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18272 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18273 $as_echo_n "(cached) " >&6
18275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18276 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18278 # Is the header compilable?
18279 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18280 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18288 #include <sys/dg_sys_info.h>
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18294 *) ac_try_echo
=$ac_try;;
18296 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18297 $as_echo "$ac_try_echo") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18300 grep -v '^ *+' conftest.er1
>conftest.err
18302 cat conftest.err
>&5
18303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.
$ac_objext; then
18308 ac_header_compiler
=yes
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.
$ac_ext >&5
18313 ac_header_compiler
=no
18316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18318 $as_echo "$ac_header_compiler" >&6; }
18320 # Is the header present?
18321 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18322 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18323 cat >conftest.
$ac_ext <<_ACEOF
18326 cat confdefs.h
>>conftest.
$ac_ext
18327 cat >>conftest.
$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <sys/dg_sys_info.h>
18331 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18332 case "(($ac_try" in
18333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18337 $as_echo "$ac_try_echo") >&5
18338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } >/dev/null && {
18345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18348 ac_header_preproc=yes
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18353 ac_header_preproc=no
18356 rm -f conftest.err conftest.$ac_ext
18357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18358 $as_echo "$ac_header_preproc" >&6; }
18360 # So? What about this header?
18361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18363 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18364 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18365 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18366 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18367 ac_header_preproc=yes
18370 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18371 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18372 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18373 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18374 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18375 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18376 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18377 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18378 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18379 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18380 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18381 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18385 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18386 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18387 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18388 $as_echo_n "(cached) " >&6
18390 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18392 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18393 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18396 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18399 cat >>confdefs.h <<\_ACEOF
18404 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18405 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18406 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18407 $as_echo_n "(cached) " >&6
18409 ac_check_lib_save_LIBS=$LIBS
18411 cat >conftest.$ac_ext <<_ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18418 /* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18424 char dg_sys_info ();
18428 return dg_sys_info ();
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (ac_try="$ac_link"
18435 case "(($ac_try" in
18436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18437 *) ac_try_echo
=$ac_try;;
18439 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18440 $as_echo "$ac_try_echo") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1
>conftest.err
18445 cat conftest.err
>&5
18446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest
$ac_exeext && {
18451 test "$cross_compiling" = yes ||
18452 $as_test_x conftest
$ac_exeext
18454 ac_cv_lib_dgc_dg_sys_info
=yes
18456 $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.
$ac_ext >&5
18459 ac_cv_lib_dgc_dg_sys_info
=no
18462 rm -rf conftest.dSYM
18463 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18464 conftest
$ac_exeext conftest.
$ac_ext
18465 LIBS
=$ac_check_lib_save_LIBS
18467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18468 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18469 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18470 cat >>confdefs.h
<<_ACEOF
18471 #define HAVE_LIBDGC 1
18482 if test "${ac_cv_header_locale_h+set}" = set; then
18483 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18484 $as_echo_n "checking for locale.h... " >&6; }
18485 if test "${ac_cv_header_locale_h+set}" = set; then
18486 $as_echo_n "(cached) " >&6
18488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18489 $as_echo "$ac_cv_header_locale_h" >&6; }
18491 # Is the header compilable?
18492 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18493 $as_echo_n "checking locale.h usability... " >&6; }
18494 cat >conftest.
$ac_ext <<_ACEOF
18497 cat confdefs.h
>>conftest.
$ac_ext
18498 cat >>conftest.
$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 $ac_includes_default
18501 #include <locale.h>
18503 rm -f conftest.
$ac_objext
18504 if { (ac_try
="$ac_compile"
18505 case "(($ac_try" in
18506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18510 $as_echo "$ac_try_echo") >&5
18511 (eval "$ac_compile") 2>conftest.er1
18513 grep -v '^ *+' conftest.er1 >conftest.err
18515 cat conftest.err >&5
18516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } && {
18518 test -z "$ac_c_werror_flag" ||
18519 test ! -s conftest.err
18520 } && test -s conftest.$ac_objext; then
18521 ac_header_compiler=yes
18523 $as_echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 ac_header_compiler=no
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18531 $as_echo "$ac_header_compiler" >&6; }
18533 # Is the header present?
18534 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18535 $as_echo_n "checking locale.h presence... " >&6; }
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 #include <locale.h>
18544 if { (ac_try="$ac_cpp conftest.$ac_ext"
18545 case "(($ac_try" in
18546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18547 *) ac_try_echo
=$ac_try;;
18549 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18550 $as_echo "$ac_try_echo") >&5
18551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18553 grep -v '^ *+' conftest.er1
>conftest.err
18555 cat conftest.err
>&5
18556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } >/dev
/null
&& {
18558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18559 test ! -s conftest.err
18561 ac_header_preproc
=yes
18563 $as_echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.
$ac_ext >&5
18566 ac_header_preproc
=no
18569 rm -f conftest.err conftest.
$ac_ext
18570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18571 $as_echo "$ac_header_preproc" >&6; }
18573 # So? What about this header?
18574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18576 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18577 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18578 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18579 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18580 ac_header_preproc
=yes
18583 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18584 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18585 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18586 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18587 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18588 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18589 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18590 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18591 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18592 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18593 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18594 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18598 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18599 $as_echo_n "checking for locale.h... " >&6; }
18600 if test "${ac_cv_header_locale_h+set}" = set; then
18601 $as_echo_n "(cached) " >&6
18603 ac_cv_header_locale_h
=$ac_header_preproc
18605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18606 $as_echo "$ac_cv_header_locale_h" >&6; }
18612 for ac_func
in setlocale
18614 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 $as_echo_n "checking for $ac_func... " >&6; }
18617 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18618 $as_echo_n "(cached) " >&6
18620 cat >conftest.
$ac_ext <<_ACEOF
18623 cat confdefs.h
>>conftest.
$ac_ext
18624 cat >>conftest.
$ac_ext <<_ACEOF
18625 /* end confdefs.h. */
18626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18628 #define $ac_func innocuous_$ac_func
18630 /* System header to define __stub macros and hopefully few prototypes,
18631 which can conflict with char $ac_func (); below.
18632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18633 <limits.h> exists even on freestanding compilers. */
18636 # include <limits.h>
18638 # include <assert.h>
18643 /* Override any GCC internal prototype to avoid an error.
18644 Use char because int might match the return type of a GCC
18645 builtin and then its argument prototype would still apply. */
18650 /* The GNU C library defines this for functions which it implements
18651 to always fail with ENOSYS. Some functions are actually named
18652 something starting with __ and the normal name is an alias. */
18653 #if defined __stub_$ac_func || defined __stub___$ac_func
18660 return $ac_func ();
18665 rm -f conftest.
$ac_objext conftest
$ac_exeext
18666 if { (ac_try
="$ac_link"
18667 case "(($ac_try" in
18668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18672 $as_echo "$ac_try_echo") >&5
18673 (eval "$ac_link") 2>conftest.er1
18675 grep -v '^ *+' conftest.er1 >conftest.err
18677 cat conftest.err >&5
18678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } && {
18680 test -z "$ac_c_werror_flag" ||
18681 test ! -s conftest.err
18682 } && test -s conftest$ac_exeext && {
18683 test "$cross_compiling" = yes ||
18684 $as_test_x conftest$ac_exeext
18686 eval "$as_ac_var=yes"
18688 $as_echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 eval "$as_ac_var=no"
18694 rm -rf conftest.dSYM
18695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18696 conftest$ac_exeext conftest.$ac_ext
18698 ac_res=`eval 'as_val=${'$as_ac_var'}
18699 $as_echo "$as_val"'`
18700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18701 $as_echo "$ac_res" >&6; }
18702 if test `eval 'as_val=${'$as_ac_var'}
18703 $as_echo "$as_val"'` = yes; then
18704 cat >>confdefs.h <<_ACEOF
18705 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18712 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18713 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18714 # Irix 4.0.5F has the header but not the library.
18715 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18718 cat >>confdefs.h <<\_ACEOF
18724 if test $ac_have_func = no; then
18725 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18726 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18727 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18728 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18729 $as_echo_n "(cached) " >&6
18731 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18732 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18734 # Is the header compilable?
18735 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18736 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18737 cat >conftest.$ac_ext <<_ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 $ac_includes_default
18744 #include <inq_stats/cpustats.h>
18746 rm -f conftest.$ac_objext
18747 if { (ac_try="$ac_compile"
18748 case "(($ac_try" in
18749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18750 *) ac_try_echo
=$ac_try;;
18752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18753 $as_echo "$ac_try_echo") >&5
18754 (eval "$ac_compile") 2>conftest.er1
18756 grep -v '^ *+' conftest.er1
>conftest.err
18758 cat conftest.err
>&5
18759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } && {
18761 test -z "$ac_c_werror_flag" ||
18762 test ! -s conftest.err
18763 } && test -s conftest.
$ac_objext; then
18764 ac_header_compiler
=yes
18766 $as_echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.
$ac_ext >&5
18769 ac_header_compiler
=no
18772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18774 $as_echo "$ac_header_compiler" >&6; }
18776 # Is the header present?
18777 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18778 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18779 cat >conftest.
$ac_ext <<_ACEOF
18782 cat confdefs.h
>>conftest.
$ac_ext
18783 cat >>conftest.
$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include <inq_stats/cpustats.h>
18787 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18788 case "(($ac_try" in
18789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18790 *) ac_try_echo=$ac_try;;
18792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18793 $as_echo "$ac_try_echo") >&5
18794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } >/dev/null && {
18801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18804 ac_header_preproc=yes
18806 $as_echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 ac_header_preproc=no
18812 rm -f conftest.err conftest.$ac_ext
18813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18814 $as_echo "$ac_header_preproc" >&6; }
18816 # So? What about this header?
18817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18819 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18820 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18821 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18822 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18823 ac_header_preproc=yes
18826 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18827 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18828 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18829 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18830 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18831 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18832 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18833 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18834 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18835 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18836 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18837 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18841 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18842 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18843 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18844 $as_echo_n "(cached) " >&6
18846 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18849 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18852 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18855 cat >>confdefs.h <<\_ACEOF
18860 cat >>confdefs.h <<\_ACEOF
18869 if test $ac_have_func = no; then
18870 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18871 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18872 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18873 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18874 $as_echo_n "(cached) " >&6
18876 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18877 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18879 # Is the header compilable?
18880 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18881 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 $ac_includes_default
18889 #include <sys/cpustats.h>
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18895 *) ac_try_echo
=$ac_try;;
18897 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18898 $as_echo "$ac_try_echo") >&5
18899 (eval "$ac_compile") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1
>conftest.err
18903 cat conftest.err
>&5
18904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest.
$ac_objext; then
18909 ac_header_compiler
=yes
18911 $as_echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.
$ac_ext >&5
18914 ac_header_compiler
=no
18917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 $as_echo "$ac_header_compiler" >&6; }
18921 # Is the header present?
18922 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18923 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18924 cat >conftest.
$ac_ext <<_ACEOF
18927 cat confdefs.h
>>conftest.
$ac_ext
18928 cat >>conftest.
$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <sys/cpustats.h>
18932 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18933 case "(($ac_try" in
18934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18941 grep -v '^ *+' conftest.er1 >conftest.err
18943 cat conftest.err >&5
18944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); } >/dev/null && {
18946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18947 test ! -s conftest.err
18949 ac_header_preproc=yes
18951 $as_echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 ac_header_preproc=no
18957 rm -f conftest.err conftest.$ac_ext
18958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18959 $as_echo "$ac_header_preproc" >&6; }
18961 # So? What about this header?
18962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18964 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18965 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18966 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18967 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18968 ac_header_preproc=yes
18971 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18972 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18974 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18976 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18978 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18980 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18981 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18982 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18986 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18987 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18988 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18989 $as_echo_n "(cached) " >&6
18991 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18994 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18997 if test $ac_cv_header_sys_cpustats_h = yes; then
18998 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19007 if test $ac_have_func = no; then
19009 for ac_header in mach/mach.h
19011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19013 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19014 $as_echo_n "checking for $ac_header... " >&6; }
19015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19016 $as_echo_n "(cached) " >&6
19018 ac_res=`eval 'as_val=${'$as_ac_Header'}
19019 $as_echo "$as_val"'`
19020 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19021 $as_echo "$ac_res" >&6; }
19023 # Is the header compilable?
19024 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19025 $as_echo_n "checking $ac_header usability... " >&6; }
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 $ac_includes_default
19033 #include <$ac_header>
19035 rm -f conftest.$ac_objext
19036 if { (ac_try="$ac_compile"
19037 case "(($ac_try" in
19038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19039 *) ac_try_echo
=$ac_try;;
19041 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19042 $as_echo "$ac_try_echo") >&5
19043 (eval "$ac_compile") 2>conftest.er1
19045 grep -v '^ *+' conftest.er1
>conftest.err
19047 cat conftest.err
>&5
19048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest.
$ac_objext; then
19053 ac_header_compiler
=yes
19055 $as_echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.
$ac_ext >&5
19058 ac_header_compiler
=no
19061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19062 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19063 $as_echo "$ac_header_compiler" >&6; }
19065 # Is the header present?
19066 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19067 $as_echo_n "checking $ac_header presence... " >&6; }
19068 cat >conftest.
$ac_ext <<_ACEOF
19071 cat confdefs.h
>>conftest.
$ac_ext
19072 cat >>conftest.
$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 #include <$ac_header>
19076 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19077 case "(($ac_try" in
19078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19082 $as_echo "$ac_try_echo") >&5
19083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null && {
19090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19091 test ! -s conftest.err
19093 ac_header_preproc=yes
19095 $as_echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 ac_header_preproc=no
19101 rm -f conftest.err conftest.$ac_ext
19102 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19103 $as_echo "$ac_header_preproc" >&6; }
19105 # So? What about this header?
19106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19109 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19112 ac_header_preproc=yes
19115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19116 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19118 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19120 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19122 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19124 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19126 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19131 $as_echo_n "checking for $ac_header... " >&6; }
19132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19133 $as_echo_n "(cached) " >&6
19135 eval "$as_ac_Header=\$ac_header_preproc"
19137 ac_res=`eval 'as_val=${'$as_ac_Header'}
19138 $as_echo "$as_val"'`
19139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19140 $as_echo "$ac_res" >&6; }
19143 if test `eval 'as_val=${'$as_ac_Header'}
19144 $as_echo "$as_val"'` = yes; then
19145 cat >>confdefs.h <<_ACEOF
19146 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19156 for ac_header in nlist.h
19158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 $as_echo_n "checking for $ac_header... " >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163 $as_echo_n "(cached) " >&6
19165 ac_res=`eval 'as_val=${'$as_ac_Header'}
19166 $as_echo "$as_val"'`
19167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19168 $as_echo "$ac_res" >&6; }
19170 # Is the header compilable?
19171 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19172 $as_echo_n "checking $ac_header usability... " >&6; }
19173 cat >conftest.$ac_ext <<_ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19180 #include <$ac_header>
19182 rm -f conftest.$ac_objext
19183 if { (ac_try="$ac_compile"
19184 case "(($ac_try" in
19185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19186 *) ac_try_echo
=$ac_try;;
19188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19189 $as_echo "$ac_try_echo") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19192 grep -v '^ *+' conftest.er1
>conftest.err
19194 cat conftest.err
>&5
19195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.
$ac_objext; then
19200 ac_header_compiler
=yes
19202 $as_echo "$as_me: failed program was:" >&5
19203 sed 's/^/| /' conftest.
$ac_ext >&5
19205 ac_header_compiler
=no
19208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19209 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19210 $as_echo "$ac_header_compiler" >&6; }
19212 # Is the header present?
19213 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19214 $as_echo_n "checking $ac_header presence... " >&6; }
19215 cat >conftest.
$ac_ext <<_ACEOF
19218 cat confdefs.h
>>conftest.
$ac_ext
19219 cat >>conftest.
$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 #include <$ac_header>
19223 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19224 case "(($ac_try" in
19225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19226 *) ac_try_echo=$ac_try;;
19228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19229 $as_echo "$ac_try_echo") >&5
19230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } >/dev/null && {
19237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19240 ac_header_preproc=yes
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19245 ac_header_preproc=no
19248 rm -f conftest.err conftest.$ac_ext
19249 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19250 $as_echo "$ac_header_preproc" >&6; }
19252 # So? What about this header?
19253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19256 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19259 ac_header_preproc=yes
19262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19263 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19265 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19267 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19269 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19273 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19277 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19278 $as_echo_n "checking for $ac_header... " >&6; }
19279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19280 $as_echo_n "(cached) " >&6
19282 eval "$as_ac_Header=\$ac_header_preproc"
19284 ac_res=`eval 'as_val=${'$as_ac_Header'}
19285 $as_echo "$as_val"'`
19286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19287 $as_echo "$ac_res" >&6; }
19290 if test `eval 'as_val=${'$as_ac_Header'}
19291 $as_echo "$as_val"'` = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19295 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19296 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19297 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19298 $as_echo_n "(cached) " >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19311 static struct nlist ac_aggr;
19312 if (ac_aggr.n_un.n_name)
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19322 *) ac_try_echo
=$ac_try;;
19324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19325 $as_echo "$ac_try_echo") >&5
19326 (eval "$ac_compile") 2>conftest.er1
19328 grep -v '^ *+' conftest.er1
>conftest.err
19330 cat conftest.err
>&5
19331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } && {
19333 test -z "$ac_c_werror_flag" ||
19334 test ! -s conftest.err
19335 } && test -s conftest.
$ac_objext; then
19336 ac_cv_member_struct_nlist_n_un_n_name
=yes
19338 $as_echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.
$ac_ext >&5
19341 cat >conftest.
$ac_ext <<_ACEOF
19344 cat confdefs.h
>>conftest.
$ac_ext
19345 cat >>conftest.
$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19352 static struct nlist ac_aggr;
19353 if (sizeof ac_aggr.n_un.n_name)
19359 rm -f conftest.
$ac_objext
19360 if { (ac_try
="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367 (eval "$ac_compile") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest.$ac_objext; then
19377 ac_cv_member_struct_nlist_n_un_n_name=yes
19379 $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_member_struct_nlist_n_un_n_name=no
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19391 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19392 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19394 cat >>confdefs.h <<_ACEOF
19395 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19399 cat >>confdefs.h <<\_ACEOF
19400 #define NLIST_NAME_UNION 1
19414 # Some definitions of getloadavg require that the program be installed setgid.
19415 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19416 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19417 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19418 $as_echo_n "(cached) " >&6
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19427 #ifdef LDAV_PRIVILEGED
19428 Yowza Am I SETGID yet
19431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19432 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19433 ac_cv_func_getloadavg_setgid=yes
19435 ac_cv_func_getloadavg_setgid=no
19440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19441 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19442 if test $ac_cv_func_getloadavg_setgid = yes; then
19445 cat >>confdefs.h <<\_ACEOF
19446 #define GETLOADAVG_PRIVILEGED 1
19453 if test $ac_cv_func_getloadavg_setgid = yes; then
19454 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19455 $as_echo_n "checking group of /dev/kmem... " >&6; }
19456 if test "${ac_cv_group_kmem+set}" = set; then
19457 $as_echo_n "(cached) " >&6
19459 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19460 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19461 # If we got an error (system does not support symlinks), try without -L.
19462 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19463 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19464 |
sed -ne 's/[ ][ ]*/ /g;
19465 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19469 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19470 $as_echo "$ac_cv_group_kmem" >&6; }
19471 KMEM_GROUP=$ac_cv_group_kmem
19473 if test "x$ac_save_LIBS" = x; then
19474 GETLOADAVG_LIBS=$LIBS
19476 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19482 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19483 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19484 if test "${ac_cv_sys_largefile_source+set}" = set; then
19485 $as_echo_n "(cached) " >&6
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <sys/types.h> /* for off_t */
19499 int (*fp) (FILE *, off_t, int) = fseeko;
19500 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19505 rm -f conftest.$ac_objext conftest$ac_exeext
19506 if { (ac_try="$ac_link"
19507 case "(($ac_try" in
19508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19509 *) ac_try_echo
=$ac_try;;
19511 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19512 $as_echo "$ac_try_echo") >&5
19513 (eval "$ac_link") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1
>conftest.err
19517 cat conftest.err
>&5
19518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest
$ac_exeext && {
19523 test "$cross_compiling" = yes ||
19524 $as_test_x conftest
$ac_exeext
19526 ac_cv_sys_largefile_source
=no
; break
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.
$ac_ext >&5
19534 rm -rf conftest.dSYM
19535 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19536 conftest
$ac_exeext conftest.
$ac_ext
19537 cat >conftest.
$ac_ext <<_ACEOF
19540 cat confdefs.h
>>conftest.
$ac_ext
19541 cat >>conftest.
$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 #define _LARGEFILE_SOURCE 1
19544 #include <sys/types.h> /* for off_t */
19549 int (*fp) (FILE *, off_t, int) = fseeko;
19550 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19555 rm -f conftest.
$ac_objext conftest
$ac_exeext
19556 if { (ac_try
="$ac_link"
19557 case "(($ac_try" in
19558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19562 $as_echo "$ac_try_echo") >&5
19563 (eval "$ac_link") 2>conftest.er1
19565 grep -v '^ *+' conftest.er1 >conftest.err
19567 cat conftest.err >&5
19568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext && {
19573 test "$cross_compiling" = yes ||
19574 $as_test_x conftest$ac_exeext
19576 ac_cv_sys_largefile_source=1; break
19578 $as_echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19584 rm -rf conftest.dSYM
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 ac_cv_sys_largefile_source=unknown
19591 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19592 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19593 case $ac_cv_sys_largefile_source in #(
19596 cat >>confdefs.h <<_ACEOF
19597 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19603 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19604 # in glibc 2.1.3, but that breaks too many other things.
19605 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19606 if test $ac_cv_sys_largefile_source != unknown; then
19608 cat >>confdefs.h <<\_ACEOF
19609 #define HAVE_FSEEKO 1
19615 # Configure getopt.
19616 # getopt.m4 serial 10
19618 # The getopt module assume you want GNU getopt, with getopt_long etc,
19619 # rather than vanilla POSIX getopt. This means your your code should
19620 # always include <getopt.h> for the getopt prototypes.
19632 # Prerequisites of lib/getopt*.
19639 for ac_header in getopt.h
19641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19644 $as_echo_n "checking for $ac_header... " >&6; }
19645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19646 $as_echo_n "(cached) " >&6
19648 ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19651 $as_echo "$ac_res" >&6; }
19653 # Is the header compilable?
19654 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 $as_echo_n "checking $ac_header usability... " >&6; }
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19663 #include <$ac_header>
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19669 *) ac_try_echo
=$ac_try;;
19671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19672 $as_echo "$ac_try_echo") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19675 grep -v '^ *+' conftest.er1
>conftest.err
19677 cat conftest.err
>&5
19678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest.
$ac_objext; then
19683 ac_header_compiler
=yes
19685 $as_echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.
$ac_ext >&5
19688 ac_header_compiler
=no
19691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19692 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19693 $as_echo "$ac_header_compiler" >&6; }
19695 # Is the header present?
19696 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19697 $as_echo_n "checking $ac_header presence... " >&6; }
19698 cat >conftest.
$ac_ext <<_ACEOF
19701 cat confdefs.h
>>conftest.
$ac_ext
19702 cat >>conftest.
$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 #include <$ac_header>
19706 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19707 case "(($ac_try" in
19708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712 $as_echo "$ac_try_echo") >&5
19713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } >/dev/null && {
19720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19723 ac_header_preproc=yes
19725 $as_echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_header_preproc=no
19731 rm -f conftest.err conftest.$ac_ext
19732 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19733 $as_echo "$ac_header_preproc" >&6; }
19735 # So? What about this header?
19736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19739 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19742 ac_header_preproc=yes
19745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19746 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19748 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19750 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19752 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19754 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19756 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19761 $as_echo_n "checking for $ac_header... " >&6; }
19762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19763 $as_echo_n "(cached) " >&6
19765 eval "$as_ac_Header=\$ac_header_preproc"
19767 ac_res=`eval 'as_val=${'$as_ac_Header'}
19768 $as_echo "$as_val"'`
19769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19770 $as_echo "$ac_res" >&6; }
19773 if test `eval 'as_val=${'$as_ac_Header'}
19774 $as_echo "$as_val"'` = yes; then
19775 cat >>confdefs.h <<_ACEOF
19776 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19785 if test -z "$GETOPT_H"; then
19787 for ac_func in getopt_long_only
19789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19791 $as_echo_n "checking for $ac_func... " >&6; }
19792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19793 $as_echo_n "(cached) " >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19803 #define $ac_func innocuous_$ac_func
19805 /* System header to define __stub macros and hopefully few prototypes,
19806 which can conflict with char $ac_func (); below.
19807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19808 <limits.h> exists even on freestanding compilers. */
19811 # include <limits.h>
19813 # include <assert.h>
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined __stub_$ac_func || defined __stub___$ac_func
19835 return $ac_func ();
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19844 *) ac_try_echo
=$ac_try;;
19846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_link") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1
>conftest.err
19852 cat conftest.err
>&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && {
19855 test -z "$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 } && test -s conftest
$ac_exeext && {
19858 test "$cross_compiling" = yes ||
19859 $as_test_x conftest
$ac_exeext
19861 eval "$as_ac_var=yes"
19863 $as_echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.
$ac_ext >&5
19866 eval "$as_ac_var=no"
19869 rm -rf conftest.dSYM
19870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19871 conftest
$ac_exeext conftest.
$ac_ext
19873 ac_res
=`eval 'as_val=${'$as_ac_var'}
19874 $as_echo "$as_val"'`
19875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19876 $as_echo "$ac_res" >&6; }
19877 if test `eval 'as_val=${'$as_ac_var'}
19878 $as_echo "$as_val"'` = yes; then
19879 cat >>confdefs.h
<<_ACEOF
19880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19890 if test -z "$GETOPT_H"; then
19891 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19892 $as_echo_n "checking whether optreset is declared... " >&6; }
19893 if test "${ac_cv_have_decl_optreset+set}" = set; then
19894 $as_echo_n "(cached) " >&6
19896 cat >conftest.
$ac_ext <<_ACEOF
19899 cat confdefs.h
>>conftest.
$ac_ext
19900 cat >>conftest.
$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 #include <getopt.h>
19915 rm -f conftest.
$ac_objext
19916 if { (ac_try
="$ac_compile"
19917 case "(($ac_try" in
19918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19922 $as_echo "$ac_try_echo") >&5
19923 (eval "$ac_compile") 2>conftest.er1
19925 grep -v '^ *+' conftest.er1 >conftest.err
19927 cat conftest.err >&5
19928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && {
19930 test -z "$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19932 } && test -s conftest.$ac_objext; then
19933 ac_cv_have_decl_optreset=yes
19935 $as_echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_cv_have_decl_optreset=no
19941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19943 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19944 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19945 if test $ac_cv_have_decl_optreset = yes; then
19951 if test -z "$GETOPT_H"; then
19952 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19953 $as_echo_n "checking for working GNU getopt function... " >&6; }
19954 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19955 $as_echo_n "(cached) " >&6
19957 if test "$cross_compiling" = yes; then
19958 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19959 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19960 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19961 $as_echo_n "(cached) " >&6
19963 cat >conftest.$ac_ext <<_ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h. */
19969 #include <getopt.h>
19974 #ifndef getopt_clip
19975 (void) getopt_clip;
19982 rm -f conftest.$ac_objext
19983 if { (ac_try="$ac_compile"
19984 case "(($ac_try" in
19985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19986 *) ac_try_echo
=$ac_try;;
19988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19989 $as_echo "$ac_try_echo") >&5
19990 (eval "$ac_compile") 2>conftest.er1
19992 grep -v '^ *+' conftest.er1
>conftest.err
19994 cat conftest.err
>&5
19995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } && {
19997 test -z "$ac_c_werror_flag" ||
19998 test ! -s conftest.err
19999 } && test -s conftest.
$ac_objext; then
20000 ac_cv_have_decl_getopt_clip
=yes
20002 $as_echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.
$ac_ext >&5
20005 ac_cv_have_decl_getopt_clip
=no
20008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20010 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20011 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20012 if test $ac_cv_have_decl_getopt_clip = yes; then
20013 gl_cv_func_gnu_getopt
=no
20015 gl_cv_func_gnu_getopt
=yes
20019 cat >conftest.
$ac_ext <<_ACEOF
20022 cat confdefs.h
>>conftest.
$ac_ext
20023 cat >>conftest.
$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 #include <getopt.h>
20031 myargv[0] = "conftest";
20034 return getopt (2, myargv, "+a") != '?';
20040 rm -f conftest
$ac_exeext
20041 if { (ac_try
="$ac_link"
20042 case "(($ac_try" in
20043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_link") 2>&5
20050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20052 { (case "(($ac_try" in
20053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20054 *) ac_try_echo
=$ac_try;;
20056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20057 $as_echo "$ac_try_echo") >&5
20058 (eval "$ac_try") 2>&5
20060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; }; then
20062 gl_cv_func_gnu_getopt
=yes
20064 $as_echo "$as_me: program exited with status $ac_status" >&5
20065 $as_echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.
$ac_ext >&5
20068 ( exit $ac_status )
20069 gl_cv_func_gnu_getopt
=no
20071 rm -rf conftest.dSYM
20072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20077 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20078 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20079 if test "$gl_cv_func_gnu_getopt" = "no"; then
20086 if test -n "$GETOPT_H"; then
20091 cat >>confdefs.h
<<\_ACEOF
20092 #define __GETOPT_PREFIX rpl_
20098 GETOPTOBJS
='getopt.o getopt1.o'
20105 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20106 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20107 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20108 $as_echo_n "(cached) " >&6
20110 # Use it with a single arg.
20111 cat >conftest.
$ac_ext <<_ACEOF
20114 cat confdefs.h
>>conftest.
$ac_ext
20115 cat >>conftest.
$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 $ac_includes_default
20126 rm -f conftest.
$ac_objext
20127 if { (ac_try
="$ac_compile"
20128 case "(($ac_try" in
20129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20133 $as_echo "$ac_try_echo") >&5
20134 (eval "$ac_compile") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest.$ac_objext; then
20144 ac_cv_func_getpgrp_void=no
20146 $as_echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ac_cv_func_getpgrp_void=yes
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20155 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20156 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20157 if test $ac_cv_func_getpgrp_void = yes; then
20159 cat >>confdefs.h <<\_ACEOF
20160 #define GETPGRP_VOID 1
20167 for ac_func in strftime
20169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20171 $as_echo_n "checking for $ac_func... " >&6; }
20172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20173 $as_echo_n "(cached) " >&6
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20183 #define $ac_func innocuous_$ac_func
20185 /* System header to define __stub macros and hopefully few prototypes,
20186 which can conflict with char $ac_func (); below.
20187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20188 <limits.h> exists even on freestanding compilers. */
20191 # include <limits.h>
20193 # include <assert.h>
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20205 /* The GNU C library defines this for functions which it implements
20206 to always fail with ENOSYS. Some functions are actually named
20207 something starting with __ and the normal name is an alias. */
20208 #if defined __stub_$ac_func || defined __stub___$ac_func
20215 return $ac_func ();
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (ac_try="$ac_link"
20222 case "(($ac_try" in
20223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20224 *) ac_try_echo
=$ac_try;;
20226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20227 $as_echo "$ac_try_echo") >&5
20228 (eval "$ac_link") 2>conftest.er1
20230 grep -v '^ *+' conftest.er1
>conftest.err
20232 cat conftest.err
>&5
20233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest
$ac_exeext && {
20238 test "$cross_compiling" = yes ||
20239 $as_test_x conftest
$ac_exeext
20241 eval "$as_ac_var=yes"
20243 $as_echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.
$ac_ext >&5
20246 eval "$as_ac_var=no"
20249 rm -rf conftest.dSYM
20250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20251 conftest
$ac_exeext conftest.
$ac_ext
20253 ac_res
=`eval 'as_val=${'$as_ac_var'}
20254 $as_echo "$as_val"'`
20255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20256 $as_echo "$ac_res" >&6; }
20257 if test `eval 'as_val=${'$as_ac_var'}
20258 $as_echo "$as_val"'` = yes; then
20259 cat >>confdefs.h
<<_ACEOF
20260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 # strftime is in -lintl on SCO UNIX.
20265 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20266 $as_echo_n "checking for strftime in -lintl... " >&6; }
20267 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20268 $as_echo_n "(cached) " >&6
20270 ac_check_lib_save_LIBS
=$LIBS
20271 LIBS
="-lintl $LIBS"
20272 cat >conftest.
$ac_ext <<_ACEOF
20275 cat confdefs.h
>>conftest.
$ac_ext
20276 cat >>conftest.
$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any GCC internal prototype to avoid an error.
20280 Use char because int might match the return type of a GCC
20281 builtin and then its argument prototype would still apply. */
20289 return strftime ();
20294 rm -f conftest.
$ac_objext conftest
$ac_exeext
20295 if { (ac_try
="$ac_link"
20296 case "(($ac_try" in
20297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20301 $as_echo "$ac_try_echo") >&5
20302 (eval "$ac_link") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1 >conftest.err
20306 cat conftest.err >&5
20307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest$ac_exeext && {
20312 test "$cross_compiling" = yes ||
20313 $as_test_x conftest$ac_exeext
20315 ac_cv_lib_intl_strftime=yes
20317 $as_echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_intl_strftime=no
20323 rm -rf conftest.dSYM
20324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20325 conftest$ac_exeext conftest.$ac_ext
20326 LIBS=$ac_check_lib_save_LIBS
20328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20329 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20330 if test $ac_cv_lib_intl_strftime = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_STRFTIME 1
20335 LIBS="-lintl $LIBS"
20344 for ac_func in grantpt
20346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20347 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20348 $as_echo_n "checking for $ac_func... " >&6; }
20349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20350 $as_echo_n "(cached) " >&6
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20360 #define $ac_func innocuous_$ac_func
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func (); below.
20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20365 <limits.h> exists even on freestanding compilers. */
20368 # include <limits.h>
20370 # include <assert.h>
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20382 /* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385 #if defined __stub_$ac_func || defined __stub___$ac_func
20392 return $ac_func ();
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (ac_try="$ac_link"
20399 case "(($ac_try" in
20400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20401 *) ac_try_echo
=$ac_try;;
20403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20404 $as_echo "$ac_try_echo") >&5
20405 (eval "$ac_link") 2>conftest.er1
20407 grep -v '^ *+' conftest.er1
>conftest.err
20409 cat conftest.err
>&5
20410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest
$ac_exeext && {
20415 test "$cross_compiling" = yes ||
20416 $as_test_x conftest
$ac_exeext
20418 eval "$as_ac_var=yes"
20420 $as_echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.
$ac_ext >&5
20423 eval "$as_ac_var=no"
20426 rm -rf conftest.dSYM
20427 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20428 conftest
$ac_exeext conftest.
$ac_ext
20430 ac_res
=`eval 'as_val=${'$as_ac_var'}
20431 $as_echo "$as_val"'`
20432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20433 $as_echo "$ac_res" >&6; }
20434 if test `eval 'as_val=${'$as_ac_var'}
20435 $as_echo "$as_val"'` = yes; then
20436 cat >>confdefs.h
<<_ACEOF
20437 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20444 # PTY-related GNU extensions.
20446 for ac_func
in getpt
20448 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20450 $as_echo_n "checking for $ac_func... " >&6; }
20451 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20452 $as_echo_n "(cached) " >&6
20454 cat >conftest.
$ac_ext <<_ACEOF
20457 cat confdefs.h
>>conftest.
$ac_ext
20458 cat >>conftest.
$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20462 #define $ac_func innocuous_$ac_func
20464 /* System header to define __stub macros and hopefully few prototypes,
20465 which can conflict with char $ac_func (); below.
20466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20467 <limits.h> exists even on freestanding compilers. */
20470 # include <limits.h>
20472 # include <assert.h>
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20484 /* The GNU C library defines this for functions which it implements
20485 to always fail with ENOSYS. Some functions are actually named
20486 something starting with __ and the normal name is an alias. */
20487 #if defined __stub_$ac_func || defined __stub___$ac_func
20494 return $ac_func ();
20499 rm -f conftest.
$ac_objext conftest
$ac_exeext
20500 if { (ac_try
="$ac_link"
20501 case "(($ac_try" in
20502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20506 $as_echo "$ac_try_echo") >&5
20507 (eval "$ac_link") 2>conftest.er1
20509 grep -v '^ *+' conftest.er1 >conftest.err
20511 cat conftest.err >&5
20512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); } && {
20514 test -z "$ac_c_werror_flag" ||
20515 test ! -s conftest.err
20516 } && test -s conftest$ac_exeext && {
20517 test "$cross_compiling" = yes ||
20518 $as_test_x conftest$ac_exeext
20520 eval "$as_ac_var=yes"
20522 $as_echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20525 eval "$as_ac_var=no"
20528 rm -rf conftest.dSYM
20529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20530 conftest$ac_exeext conftest.$ac_ext
20532 ac_res=`eval 'as_val=${'$as_ac_var'}
20533 $as_echo "$as_val"'`
20534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20535 $as_echo "$ac_res" >&6; }
20536 if test `eval 'as_val=${'$as_ac_var'}
20537 $as_echo "$as_val"'` = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20546 # Check this now, so that we will NOT find the above functions in ncurses.
20547 # That is because we have not set up to link ncurses in lib-src.
20548 # It's better to believe a function is not available
20549 # than to expect to find it in ncurses.
20551 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20552 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20553 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20554 $as_echo_n "(cached) " >&6
20556 ac_check_lib_save_LIBS=$LIBS
20557 LIBS="-lncurses $LIBS"
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20565 /* Override any GCC internal prototype to avoid an error.
20566 Use char because int might match the return type of a GCC
20567 builtin and then its argument prototype would still apply. */
20580 rm -f conftest.$ac_objext conftest$ac_exeext
20581 if { (ac_try="$ac_link"
20582 case "(($ac_try" in
20583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20584 *) ac_try_echo
=$ac_try;;
20586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20587 $as_echo "$ac_try_echo") >&5
20588 (eval "$ac_link") 2>conftest.er1
20590 grep -v '^ *+' conftest.er1
>conftest.err
20592 cat conftest.err
>&5
20593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } && {
20595 test -z "$ac_c_werror_flag" ||
20596 test ! -s conftest.err
20597 } && test -s conftest
$ac_exeext && {
20598 test "$cross_compiling" = yes ||
20599 $as_test_x conftest
$ac_exeext
20601 ac_cv_lib_ncurses_tparm
=yes
20603 $as_echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.
$ac_ext >&5
20606 ac_cv_lib_ncurses_tparm
=no
20609 rm -rf conftest.dSYM
20610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20611 conftest
$ac_exeext conftest.
$ac_ext
20612 LIBS
=$ac_check_lib_save_LIBS
20614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20615 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20616 if test $ac_cv_lib_ncurses_tparm = yes; then
20617 cat >>confdefs.h
<<_ACEOF
20618 #define HAVE_LIBNCURSES 1
20621 LIBS
="-lncurses $LIBS"
20626 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20629 cat >conftest.
$ac_ext <<_ACEOF
20632 cat confdefs.h
>>conftest.
$ac_ext
20633 cat >>conftest.
$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <netinet/in.h>
20636 #include <arpa/nameser.h>
20637 #include <resolv.h>
20646 rm -f conftest.
$ac_objext conftest
$ac_exeext
20647 if { (ac_try
="$ac_link"
20648 case "(($ac_try" in
20649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654 (eval "$ac_link") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext && {
20664 test "$cross_compiling" = yes ||
20665 $as_test_x conftest$ac_exeext
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20675 rm -rf conftest.dSYM
20676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20678 if test "$have_res_init" = no; then
20680 LIBS="$LIBS -lresolv"
20681 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20682 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 #include <netinet/in.h>
20690 #include <arpa/nameser.h>
20691 #include <resolv.h>
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20704 *) ac_try_echo
=$ac_try;;
20706 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20707 $as_echo "$ac_try_echo") >&5
20708 (eval "$ac_link") 2>conftest.er1
20710 grep -v '^ *+' conftest.er1
>conftest.err
20712 cat conftest.err
>&5
20713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest
$ac_exeext && {
20718 test "$cross_compiling" = yes ||
20719 $as_test_x conftest
$ac_exeext
20723 $as_echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.
$ac_ext >&5
20729 rm -rf conftest.dSYM
20730 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20731 conftest
$ac_exeext conftest.
$ac_ext
20732 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20733 $as_echo "$have_res_init" >&6; }
20734 if test "$have_res_init" = yes ; then
20740 if test "$have_res_init" = yes; then
20742 cat >>confdefs.h
<<\_ACEOF
20743 #define HAVE_RES_INIT 1
20748 # Do we need the Hesiod library to provide the support routines?
20749 if test "$with_hesiod" != no
; then
20750 # Don't set $LIBS here -- see comments above.
20751 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20752 $as_echo_n "checking for res_send... " >&6; }
20753 if test "${ac_cv_func_res_send+set}" = set; then
20754 $as_echo_n "(cached) " >&6
20756 cat >conftest.
$ac_ext <<_ACEOF
20759 cat confdefs.h
>>conftest.
$ac_ext
20760 cat >>conftest.
$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20764 #define res_send innocuous_res_send
20766 /* System header to define __stub macros and hopefully few prototypes,
20767 which can conflict with char res_send (); below.
20768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20769 <limits.h> exists even on freestanding compilers. */
20772 # include <limits.h>
20774 # include <assert.h>
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20786 /* The GNU C library defines this for functions which it implements
20787 to always fail with ENOSYS. Some functions are actually named
20788 something starting with __ and the normal name is an alias. */
20789 #if defined __stub_res_send || defined __stub___res_send
20796 return res_send ();
20801 rm -f conftest.
$ac_objext conftest
$ac_exeext
20802 if { (ac_try
="$ac_link"
20803 case "(($ac_try" in
20804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20808 $as_echo "$ac_try_echo") >&5
20809 (eval "$ac_link") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } && {
20816 test -z "$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20818 } && test -s conftest$ac_exeext && {
20819 test "$cross_compiling" = yes ||
20820 $as_test_x conftest$ac_exeext
20822 ac_cv_func_res_send=yes
20824 $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_cv_func_res_send=no
20830 rm -rf conftest.dSYM
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20834 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20835 $as_echo "$ac_cv_func_res_send" >&6; }
20836 if test $ac_cv_func_res_send = yes; then
20839 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20840 $as_echo_n "checking for __res_send... " >&6; }
20841 if test "${ac_cv_func___res_send+set}" = set; then
20842 $as_echo_n "(cached) " >&6
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20852 #define __res_send innocuous___res_send
20854 /* System header to define __stub macros and hopefully few prototypes,
20855 which can conflict with char __res_send (); below.
20856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20857 <limits.h> exists even on freestanding compilers. */
20860 # include <limits.h>
20862 # include <assert.h>
20867 /* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20873 char __res_send ();
20874 /* The GNU C library defines this for functions which it implements
20875 to always fail with ENOSYS. Some functions are actually named
20876 something starting with __ and the normal name is an alias. */
20877 #if defined __stub___res_send || defined __stub_____res_send
20884 return __res_send ();
20889 rm -f conftest.$ac_objext conftest$ac_exeext
20890 if { (ac_try="$ac_link"
20891 case "(($ac_try" in
20892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20893 *) ac_try_echo
=$ac_try;;
20895 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20896 $as_echo "$ac_try_echo") >&5
20897 (eval "$ac_link") 2>conftest.er1
20899 grep -v '^ *+' conftest.er1
>conftest.err
20901 cat conftest.err
>&5
20902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest
$ac_exeext && {
20907 test "$cross_compiling" = yes ||
20908 $as_test_x conftest
$ac_exeext
20910 ac_cv_func___res_send
=yes
20912 $as_echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.
$ac_ext >&5
20915 ac_cv_func___res_send
=no
20918 rm -rf conftest.dSYM
20919 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20920 conftest
$ac_exeext conftest.
$ac_ext
20922 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20923 $as_echo "$ac_cv_func___res_send" >&6; }
20924 if test $ac_cv_func___res_send = yes; then
20927 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20928 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20929 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20930 $as_echo_n "(cached) " >&6
20932 ac_check_lib_save_LIBS
=$LIBS
20933 LIBS
="-lresolv $LIBS"
20934 cat >conftest.
$ac_ext <<_ACEOF
20937 cat confdefs.h
>>conftest.
$ac_ext
20938 cat >>conftest.
$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20941 /* Override any GCC internal prototype to avoid an error.
20942 Use char because int might match the return type of a GCC
20943 builtin and then its argument prototype would still apply. */
20951 return res_send ();
20956 rm -f conftest.
$ac_objext conftest
$ac_exeext
20957 if { (ac_try
="$ac_link"
20958 case "(($ac_try" in
20959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_link") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext && {
20974 test "$cross_compiling" = yes ||
20975 $as_test_x conftest$ac_exeext
20977 ac_cv_lib_resolv_res_send=yes
20979 $as_echo "$as_me: failed program was:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 ac_cv_lib_resolv_res_send=no
20985 rm -rf conftest.dSYM
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987 conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20990 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20991 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20992 if test $ac_cv_lib_resolv_res_send = yes; then
20995 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20996 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20997 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20998 $as_echo_n "(cached) " >&6
21000 ac_check_lib_save_LIBS=$LIBS
21001 LIBS="-lresolv $LIBS"
21002 cat >conftest.$ac_ext <<_ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21009 /* Override any GCC internal prototype to avoid an error.
21010 Use char because int might match the return type of a GCC
21011 builtin and then its argument prototype would still apply. */
21015 char __res_send ();
21019 return __res_send ();
21024 rm -f conftest.$ac_objext conftest$ac_exeext
21025 if { (ac_try="$ac_link"
21026 case "(($ac_try" in
21027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21028 *) ac_try_echo
=$ac_try;;
21030 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21031 $as_echo "$ac_try_echo") >&5
21032 (eval "$ac_link") 2>conftest.er1
21034 grep -v '^ *+' conftest.er1
>conftest.err
21036 cat conftest.err
>&5
21037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } && {
21039 test -z "$ac_c_werror_flag" ||
21040 test ! -s conftest.err
21041 } && test -s conftest
$ac_exeext && {
21042 test "$cross_compiling" = yes ||
21043 $as_test_x conftest
$ac_exeext
21045 ac_cv_lib_resolv___res_send
=yes
21047 $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.
$ac_ext >&5
21050 ac_cv_lib_resolv___res_send
=no
21053 rm -rf conftest.dSYM
21054 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21055 conftest
$ac_exeext conftest.
$ac_ext
21056 LIBS
=$ac_check_lib_save_LIBS
21058 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21059 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21060 if test $ac_cv_lib_resolv___res_send = yes; then
21070 if test "$resolv" = yes ; then
21075 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21076 $as_echo_n "checking for hes_getmailhost... " >&6; }
21077 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21078 $as_echo_n "(cached) " >&6
21080 cat >conftest.
$ac_ext <<_ACEOF
21083 cat confdefs.h
>>conftest.
$ac_ext
21084 cat >>conftest.
$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21088 #define hes_getmailhost innocuous_hes_getmailhost
21090 /* System header to define __stub macros and hopefully few prototypes,
21091 which can conflict with char hes_getmailhost (); below.
21092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21093 <limits.h> exists even on freestanding compilers. */
21096 # include <limits.h>
21098 # include <assert.h>
21101 #undef hes_getmailhost
21103 /* Override any GCC internal prototype to avoid an error.
21104 Use char because int might match the return type of a GCC
21105 builtin and then its argument prototype would still apply. */
21109 char hes_getmailhost ();
21110 /* The GNU C library defines this for functions which it implements
21111 to always fail with ENOSYS. Some functions are actually named
21112 something starting with __ and the normal name is an alias. */
21113 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21120 return hes_getmailhost ();
21125 rm -f conftest.
$ac_objext conftest
$ac_exeext
21126 if { (ac_try
="$ac_link"
21127 case "(($ac_try" in
21128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21146 ac_cv_func_hes_getmailhost=yes
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_cv_func_hes_getmailhost=no
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21159 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21160 if test $ac_cv_func_hes_getmailhost = yes; then
21163 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21164 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21165 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21166 $as_echo_n "(cached) " >&6
21168 ac_check_lib_save_LIBS=$LIBS
21169 LIBS="-lhesiod $RESOLVLIB $LIBS"
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21177 /* Override any GCC internal prototype to avoid an error.
21178 Use char because int might match the return type of a GCC
21179 builtin and then its argument prototype would still apply. */
21183 char hes_getmailhost ();
21187 return hes_getmailhost ();
21192 rm -f conftest.$ac_objext conftest$ac_exeext
21193 if { (ac_try="$ac_link"
21194 case "(($ac_try" in
21195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21196 *) ac_try_echo
=$ac_try;;
21198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21199 $as_echo "$ac_try_echo") >&5
21200 (eval "$ac_link") 2>conftest.er1
21202 grep -v '^ *+' conftest.er1
>conftest.err
21204 cat conftest.err
>&5
21205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } && {
21207 test -z "$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 } && test -s conftest
$ac_exeext && {
21210 test "$cross_compiling" = yes ||
21211 $as_test_x conftest
$ac_exeext
21213 ac_cv_lib_hesiod_hes_getmailhost
=yes
21215 $as_echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.
$ac_ext >&5
21218 ac_cv_lib_hesiod_hes_getmailhost
=no
21221 rm -rf conftest.dSYM
21222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21223 conftest
$ac_exeext conftest.
$ac_ext
21224 LIBS
=$ac_check_lib_save_LIBS
21226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21227 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21228 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21230 cat >>confdefs.h
<<\_ACEOF
21231 #define HAVE_LIBHESIOD 1
21242 # Do we need libresolv (due to res_init or Hesiod)?
21243 if test "$resolv" = yes ; then
21245 cat >>confdefs.h
<<\_ACEOF
21246 #define HAVE_LIBRESOLV 1
21251 # These tell us which Kerberos-related libraries to use.
21252 if test "${with_kerberos}" != no
; then
21254 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21255 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21256 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21257 $as_echo_n "(cached) " >&6
21259 ac_check_lib_save_LIBS
=$LIBS
21260 LIBS
="-lcom_err $LIBS"
21261 cat >conftest.
$ac_ext <<_ACEOF
21264 cat confdefs.h
>>conftest.
$ac_ext
21265 cat >>conftest.
$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21268 /* Override any GCC internal prototype to avoid an error.
21269 Use char because int might match the return type of a GCC
21270 builtin and then its argument prototype would still apply. */
21283 rm -f conftest.
$ac_objext conftest
$ac_exeext
21284 if { (ac_try
="$ac_link"
21285 case "(($ac_try" in
21286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21290 $as_echo "$ac_try_echo") >&5
21291 (eval "$ac_link") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest$ac_exeext && {
21301 test "$cross_compiling" = yes ||
21302 $as_test_x conftest$ac_exeext
21304 ac_cv_lib_com_err_com_err=yes
21306 $as_echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_lib_com_err_com_err=no
21312 rm -rf conftest.dSYM
21313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21314 conftest$ac_exeext conftest.$ac_ext
21315 LIBS=$ac_check_lib_save_LIBS
21317 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21318 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21319 if test $ac_cv_lib_com_err_com_err = yes; then
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_LIBCOM_ERR 1
21324 LIBS="-lcom_err $LIBS"
21329 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21330 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21331 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21332 $as_echo_n "(cached) " >&6
21334 ac_check_lib_save_LIBS=$LIBS
21335 LIBS="-lk5crypto $LIBS"
21336 cat >conftest.$ac_ext <<_ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21343 /* Override any GCC internal prototype to avoid an error.
21344 Use char because int might match the return type of a GCC
21345 builtin and then its argument prototype would still apply. */
21349 char mit_des_cbc_encrypt ();
21353 return mit_des_cbc_encrypt ();
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (ac_try="$ac_link"
21360 case "(($ac_try" in
21361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21362 *) ac_try_echo
=$ac_try;;
21364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21365 $as_echo "$ac_try_echo") >&5
21366 (eval "$ac_link") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1
>conftest.err
21370 cat conftest.err
>&5
21371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest
$ac_exeext && {
21376 test "$cross_compiling" = yes ||
21377 $as_test_x conftest
$ac_exeext
21379 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21381 $as_echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.
$ac_ext >&5
21384 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21387 rm -rf conftest.dSYM
21388 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21389 conftest
$ac_exeext conftest.
$ac_ext
21390 LIBS
=$ac_check_lib_save_LIBS
21392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21393 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21394 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21395 cat >>confdefs.h
<<_ACEOF
21396 #define HAVE_LIBK5CRYPTO 1
21399 LIBS
="-lk5crypto $LIBS"
21404 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21405 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21406 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21407 $as_echo_n "(cached) " >&6
21409 ac_check_lib_save_LIBS
=$LIBS
21410 LIBS
="-lcrypto $LIBS"
21411 cat >conftest.
$ac_ext <<_ACEOF
21414 cat confdefs.h
>>conftest.
$ac_ext
21415 cat >>conftest.
$ac_ext <<_ACEOF
21416 /* end confdefs.h. */
21418 /* Override any GCC internal prototype to avoid an error.
21419 Use char because int might match the return type of a GCC
21420 builtin and then its argument prototype would still apply. */
21424 char mit_des_cbc_encrypt ();
21428 return mit_des_cbc_encrypt ();
21433 rm -f conftest.
$ac_objext conftest
$ac_exeext
21434 if { (ac_try
="$ac_link"
21435 case "(($ac_try" in
21436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21437 *) ac_try_echo=$ac_try;;
21439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21440 $as_echo "$ac_try_echo") >&5
21441 (eval "$ac_link") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest$ac_exeext && {
21451 test "$cross_compiling" = yes ||
21452 $as_test_x conftest$ac_exeext
21454 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21456 $as_echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21459 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21462 rm -rf conftest.dSYM
21463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21464 conftest$ac_exeext conftest.$ac_ext
21465 LIBS=$ac_check_lib_save_LIBS
21467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21468 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21469 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define HAVE_LIBCRYPTO 1
21474 LIBS="-lcrypto $LIBS"
21479 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21480 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21481 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21482 $as_echo_n "(cached) " >&6
21484 ac_check_lib_save_LIBS=$LIBS
21485 LIBS="-lkrb5 $LIBS"
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 /* Override any GCC internal prototype to avoid an error.
21494 Use char because int might match the return type of a GCC
21495 builtin and then its argument prototype would still apply. */
21499 char krb5_init_context ();
21503 return krb5_init_context ();
21508 rm -f conftest.$ac_objext conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21512 *) ac_try_echo
=$ac_try;;
21514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21515 $as_echo "$ac_try_echo") >&5
21516 (eval "$ac_link") 2>conftest.er1
21518 grep -v '^ *+' conftest.er1
>conftest.err
21520 cat conftest.err
>&5
21521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } && {
21523 test -z "$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 } && test -s conftest
$ac_exeext && {
21526 test "$cross_compiling" = yes ||
21527 $as_test_x conftest
$ac_exeext
21529 ac_cv_lib_krb5_krb5_init_context
=yes
21531 $as_echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.
$ac_ext >&5
21534 ac_cv_lib_krb5_krb5_init_context
=no
21537 rm -rf conftest.dSYM
21538 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21539 conftest
$ac_exeext conftest.
$ac_ext
21540 LIBS
=$ac_check_lib_save_LIBS
21542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21543 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21544 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21545 cat >>confdefs.h
<<_ACEOF
21546 #define HAVE_LIBKRB5 1
21549 LIBS
="-lkrb5 $LIBS"
21553 if test "${with_kerberos5}" = no
; then
21555 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21556 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21557 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21558 $as_echo_n "(cached) " >&6
21560 ac_check_lib_save_LIBS
=$LIBS
21561 LIBS
="-ldes425 $LIBS"
21562 cat >conftest.
$ac_ext <<_ACEOF
21565 cat confdefs.h
>>conftest.
$ac_ext
21566 cat >>conftest.
$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21569 /* Override any GCC internal prototype to avoid an error.
21570 Use char because int might match the return type of a GCC
21571 builtin and then its argument prototype would still apply. */
21575 char des_cbc_encrypt ();
21579 return des_cbc_encrypt ();
21584 rm -f conftest.
$ac_objext conftest
$ac_exeext
21585 if { (ac_try
="$ac_link"
21586 case "(($ac_try" in
21587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21591 $as_echo "$ac_try_echo") >&5
21592 (eval "$ac_link") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest$ac_exeext && {
21602 test "$cross_compiling" = yes ||
21603 $as_test_x conftest$ac_exeext
21605 ac_cv_lib_des425_des_cbc_encrypt=yes
21607 $as_echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_cv_lib_des425_des_cbc_encrypt=no
21613 rm -rf conftest.dSYM
21614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21615 conftest$ac_exeext conftest.$ac_ext
21616 LIBS=$ac_check_lib_save_LIBS
21618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21619 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21620 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21621 cat >>confdefs.h <<_ACEOF
21622 #define HAVE_LIBDES425 1
21625 LIBS="-ldes425 $LIBS"
21629 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21630 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21631 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21632 $as_echo_n "(cached) " >&6
21634 ac_check_lib_save_LIBS=$LIBS
21636 cat >conftest.$ac_ext <<_ACEOF
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21643 /* Override any GCC internal prototype to avoid an error.
21644 Use char because int might match the return type of a GCC
21645 builtin and then its argument prototype would still apply. */
21649 char des_cbc_encrypt ();
21653 return des_cbc_encrypt ();
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (ac_try="$ac_link"
21660 case "(($ac_try" in
21661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21662 *) ac_try_echo
=$ac_try;;
21664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21665 $as_echo "$ac_try_echo") >&5
21666 (eval "$ac_link") 2>conftest.er1
21668 grep -v '^ *+' conftest.er1
>conftest.err
21670 cat conftest.err
>&5
21671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest
$ac_exeext && {
21676 test "$cross_compiling" = yes ||
21677 $as_test_x conftest
$ac_exeext
21679 ac_cv_lib_des_des_cbc_encrypt
=yes
21681 $as_echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.
$ac_ext >&5
21684 ac_cv_lib_des_des_cbc_encrypt
=no
21687 rm -rf conftest.dSYM
21688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21689 conftest
$ac_exeext conftest.
$ac_ext
21690 LIBS
=$ac_check_lib_save_LIBS
21692 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21693 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21694 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21695 cat >>confdefs.h
<<_ACEOF
21696 #define HAVE_LIBDES 1
21706 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21707 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21708 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21709 $as_echo_n "(cached) " >&6
21711 ac_check_lib_save_LIBS
=$LIBS
21712 LIBS
="-lkrb4 $LIBS"
21713 cat >conftest.
$ac_ext <<_ACEOF
21716 cat confdefs.h
>>conftest.
$ac_ext
21717 cat >>conftest.
$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21720 /* Override any GCC internal prototype to avoid an error.
21721 Use char because int might match the return type of a GCC
21722 builtin and then its argument prototype would still apply. */
21726 char krb_get_cred ();
21730 return krb_get_cred ();
21735 rm -f conftest.
$ac_objext conftest
$ac_exeext
21736 if { (ac_try
="$ac_link"
21737 case "(($ac_try" in
21738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21739 *) ac_try_echo=$ac_try;;
21741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21742 $as_echo "$ac_try_echo") >&5
21743 (eval "$ac_link") 2>conftest.er1
21745 grep -v '^ *+' conftest.er1 >conftest.err
21747 cat conftest.err >&5
21748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } && {
21750 test -z "$ac_c_werror_flag" ||
21751 test ! -s conftest.err
21752 } && test -s conftest$ac_exeext && {
21753 test "$cross_compiling" = yes ||
21754 $as_test_x conftest$ac_exeext
21756 ac_cv_lib_krb4_krb_get_cred=yes
21758 $as_echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_cv_lib_krb4_krb_get_cred=no
21764 rm -rf conftest.dSYM
21765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21766 conftest$ac_exeext conftest.$ac_ext
21767 LIBS=$ac_check_lib_save_LIBS
21769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21770 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21771 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21772 cat >>confdefs.h <<_ACEOF
21773 #define HAVE_LIBKRB4 1
21776 LIBS="-lkrb4 $LIBS"
21780 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21781 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21782 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21783 $as_echo_n "(cached) " >&6
21785 ac_check_lib_save_LIBS=$LIBS
21787 cat >conftest.$ac_ext <<_ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21794 /* Override any GCC internal prototype to avoid an error.
21795 Use char because int might match the return type of a GCC
21796 builtin and then its argument prototype would still apply. */
21800 char krb_get_cred ();
21804 return krb_get_cred ();
21809 rm -f conftest.$ac_objext conftest$ac_exeext
21810 if { (ac_try="$ac_link"
21811 case "(($ac_try" in
21812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21813 *) ac_try_echo
=$ac_try;;
21815 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21816 $as_echo "$ac_try_echo") >&5
21817 (eval "$ac_link") 2>conftest.er1
21819 grep -v '^ *+' conftest.er1
>conftest.err
21821 cat conftest.err
>&5
21822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823 (exit $ac_status); } && {
21824 test -z "$ac_c_werror_flag" ||
21825 test ! -s conftest.err
21826 } && test -s conftest
$ac_exeext && {
21827 test "$cross_compiling" = yes ||
21828 $as_test_x conftest
$ac_exeext
21830 ac_cv_lib_krb_krb_get_cred
=yes
21832 $as_echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.
$ac_ext >&5
21835 ac_cv_lib_krb_krb_get_cred
=no
21838 rm -rf conftest.dSYM
21839 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21840 conftest
$ac_exeext conftest.
$ac_ext
21841 LIBS
=$ac_check_lib_save_LIBS
21843 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21844 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21845 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21846 cat >>confdefs.h
<<_ACEOF
21847 #define HAVE_LIBKRB 1
21858 if test "${with_kerberos5}" != no
; then
21860 for ac_header
in krb5.h
21862 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 $as_echo_n "checking for $ac_header... " >&6; }
21866 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867 $as_echo_n "(cached) " >&6
21869 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21870 $as_echo "$as_val"'`
21871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21872 $as_echo "$ac_res" >&6; }
21874 # Is the header compilable?
21875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21876 $as_echo_n "checking $ac_header usability... " >&6; }
21877 cat >conftest.
$ac_ext <<_ACEOF
21880 cat confdefs.h
>>conftest.
$ac_ext
21881 cat >>conftest.
$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 $ac_includes_default
21884 #include <$ac_header>
21886 rm -f conftest.
$ac_objext
21887 if { (ac_try
="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21893 $as_echo "$ac_try_echo") >&5
21894 (eval "$ac_compile") 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } && {
21901 test -z "$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 } && test -s conftest.$ac_objext; then
21904 ac_header_compiler=yes
21906 $as_echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21909 ac_header_compiler=no
21912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21914 $as_echo "$ac_header_compiler" >&6; }
21916 # Is the header present?
21917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21918 $as_echo_n "checking $ac_header presence... " >&6; }
21919 cat >conftest.$ac_ext <<_ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 #include <$ac_header>
21927 if { (ac_try="$ac_cpp conftest.$ac_ext"
21928 case "(($ac_try" in
21929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21930 *) ac_try_echo
=$ac_try;;
21932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21933 $as_echo "$ac_try_echo") >&5
21934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1
>conftest.err
21938 cat conftest.err
>&5
21939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } >/dev
/null
&& {
21941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21944 ac_header_preproc
=yes
21946 $as_echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.
$ac_ext >&5
21949 ac_header_preproc
=no
21952 rm -f conftest.err conftest.
$ac_ext
21953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21954 $as_echo "$ac_header_preproc" >&6; }
21956 # So? What about this header?
21957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21963 ac_header_preproc
=yes
21966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 $as_echo_n "checking for $ac_header... " >&6; }
21983 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 $as_echo_n "(cached) " >&6
21986 eval "$as_ac_Header=\$ac_header_preproc"
21988 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21989 $as_echo "$as_val"'`
21990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21991 $as_echo "$ac_res" >&6; }
21994 if test `eval 'as_val=${'$as_ac_Header'}
21995 $as_echo "$as_val"'` = yes; then
21996 cat >>confdefs.h
<<_ACEOF
21997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21999 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22000 $as_echo_n "checking for krb5_error.text... " >&6; }
22001 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22002 $as_echo_n "(cached) " >&6
22004 cat >conftest.
$ac_ext <<_ACEOF
22007 cat confdefs.h
>>conftest.
$ac_ext
22008 cat >>conftest.
$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22015 static krb5_error ac_aggr;
22022 rm -f conftest.
$ac_objext
22023 if { (ac_try
="$ac_compile"
22024 case "(($ac_try" in
22025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22029 $as_echo "$ac_try_echo") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_cv_member_krb5_error_text=yes
22042 $as_echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 cat >conftest.$ac_ext <<_ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22056 static krb5_error ac_aggr;
22057 if (sizeof ac_aggr.text)
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22067 *) ac_try_echo
=$ac_try;;
22069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_compile") 2>conftest.er1
22073 grep -v '^ *+' conftest.er1
>conftest.err
22075 cat conftest.err
>&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest.
$ac_objext; then
22081 ac_cv_member_krb5_error_text
=yes
22083 $as_echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.
$ac_ext >&5
22086 ac_cv_member_krb5_error_text
=no
22089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22094 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22095 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22096 if test $ac_cv_member_krb5_error_text = yes; then
22098 cat >>confdefs.h
<<_ACEOF
22099 #define HAVE_KRB5_ERROR_TEXT 1
22104 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22105 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22106 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22107 $as_echo_n "(cached) " >&6
22109 cat >conftest.
$ac_ext <<_ACEOF
22112 cat confdefs.h
>>conftest.
$ac_ext
22113 cat >>conftest.
$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22120 static krb5_error ac_aggr;
22121 if (ac_aggr.e_text)
22127 rm -f conftest.
$ac_objext
22128 if { (ac_try
="$ac_compile"
22129 case "(($ac_try" in
22130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22134 $as_echo "$ac_try_echo") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest.$ac_objext; then
22145 ac_cv_member_krb5_error_e_text=yes
22147 $as_echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 cat >conftest.$ac_ext <<_ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h. */
22161 static krb5_error ac_aggr;
22162 if (sizeof ac_aggr.e_text)
22168 rm -f conftest.$ac_objext
22169 if { (ac_try="$ac_compile"
22170 case "(($ac_try" in
22171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22172 *) ac_try_echo
=$ac_try;;
22174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22175 $as_echo "$ac_try_echo") >&5
22176 (eval "$ac_compile") 2>conftest.er1
22178 grep -v '^ *+' conftest.er1
>conftest.err
22180 cat conftest.err
>&5
22181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182 (exit $ac_status); } && {
22183 test -z "$ac_c_werror_flag" ||
22184 test ! -s conftest.err
22185 } && test -s conftest.
$ac_objext; then
22186 ac_cv_member_krb5_error_e_text
=yes
22188 $as_echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.
$ac_ext >&5
22191 ac_cv_member_krb5_error_e_text
=no
22194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22199 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22200 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22201 if test $ac_cv_member_krb5_error_e_text = yes; then
22203 cat >>confdefs.h
<<_ACEOF
22204 #define HAVE_KRB5_ERROR_E_TEXT 1
22216 for ac_header
in des.h
22218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22221 $as_echo_n "checking for $ac_header... " >&6; }
22222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22223 $as_echo_n "(cached) " >&6
22225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22226 $as_echo "$as_val"'`
22227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22228 $as_echo "$ac_res" >&6; }
22230 # Is the header compilable?
22231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22232 $as_echo_n "checking $ac_header usability... " >&6; }
22233 cat >conftest.
$ac_ext <<_ACEOF
22236 cat confdefs.h
>>conftest.
$ac_ext
22237 cat >>conftest.
$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22239 $ac_includes_default
22240 #include <$ac_header>
22242 rm -f conftest.
$ac_objext
22243 if { (ac_try
="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22249 $as_echo "$ac_try_echo") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_header_compiler=yes
22262 $as_echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_header_compiler=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270 $as_echo "$ac_header_compiler" >&6; }
22272 # Is the header present?
22273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22274 $as_echo_n "checking $ac_header presence... " >&6; }
22275 cat >conftest.$ac_ext <<_ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h. */
22281 #include <$ac_header>
22283 if { (ac_try="$ac_cpp conftest.$ac_ext"
22284 case "(($ac_try" in
22285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22286 *) ac_try_echo
=$ac_try;;
22288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22289 $as_echo "$ac_try_echo") >&5
22290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1
>conftest.err
22294 cat conftest.err
>&5
22295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } >/dev
/null
&& {
22297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22300 ac_header_preproc
=yes
22302 $as_echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.
$ac_ext >&5
22305 ac_header_preproc
=no
22308 rm -f conftest.err conftest.
$ac_ext
22309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22310 $as_echo "$ac_header_preproc" >&6; }
22312 # So? What about this header?
22313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22319 ac_header_preproc
=yes
22322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22338 $as_echo_n "checking for $ac_header... " >&6; }
22339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22340 $as_echo_n "(cached) " >&6
22342 eval "$as_ac_Header=\$ac_header_preproc"
22344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22345 $as_echo "$as_val"'`
22346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22347 $as_echo "$ac_res" >&6; }
22350 if test `eval 'as_val=${'$as_ac_Header'}
22351 $as_echo "$as_val"'` = yes; then
22352 cat >>confdefs.h
<<_ACEOF
22353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22358 for ac_header
in kerberosIV
/des.h
22360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22361 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22363 $as_echo_n "checking for $ac_header... " >&6; }
22364 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22365 $as_echo_n "(cached) " >&6
22367 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22368 $as_echo "$as_val"'`
22369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22370 $as_echo "$ac_res" >&6; }
22372 # Is the header compilable?
22373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22374 $as_echo_n "checking $ac_header usability... " >&6; }
22375 cat >conftest.
$ac_ext <<_ACEOF
22378 cat confdefs.h
>>conftest.
$ac_ext
22379 cat >>conftest.
$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 $ac_includes_default
22382 #include <$ac_header>
22384 rm -f conftest.
$ac_objext
22385 if { (ac_try
="$ac_compile"
22386 case "(($ac_try" in
22387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22391 $as_echo "$ac_try_echo") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22394 grep -v '^ *+' conftest.er1 >conftest.err
22396 cat conftest.err >&5
22397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_header_compiler=yes
22404 $as_echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_header_compiler=no
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22412 $as_echo "$ac_header_compiler" >&6; }
22414 # Is the header present?
22415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22416 $as_echo_n "checking $ac_header presence... " >&6; }
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <$ac_header>
22425 if { (ac_try="$ac_cpp conftest.$ac_ext"
22426 case "(($ac_try" in
22427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22428 *) ac_try_echo
=$ac_try;;
22430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22431 $as_echo "$ac_try_echo") >&5
22432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22434 grep -v '^ *+' conftest.er1
>conftest.err
22436 cat conftest.err
>&5
22437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } >/dev
/null
&& {
22439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22442 ac_header_preproc
=yes
22444 $as_echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.
$ac_ext >&5
22447 ac_header_preproc
=no
22450 rm -f conftest.err conftest.
$ac_ext
22451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22452 $as_echo "$ac_header_preproc" >&6; }
22454 # So? What about this header?
22455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22461 ac_header_preproc
=yes
22464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22480 $as_echo_n "checking for $ac_header... " >&6; }
22481 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22482 $as_echo_n "(cached) " >&6
22484 eval "$as_ac_Header=\$ac_header_preproc"
22486 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22487 $as_echo "$as_val"'`
22488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22489 $as_echo "$ac_res" >&6; }
22492 if test `eval 'as_val=${'$as_ac_Header'}
22493 $as_echo "$as_val"'` = yes; then
22494 cat >>confdefs.h
<<_ACEOF
22495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22500 for ac_header
in kerberos
/des.h
22502 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22505 $as_echo_n "checking for $ac_header... " >&6; }
22506 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22507 $as_echo_n "(cached) " >&6
22509 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22510 $as_echo "$as_val"'`
22511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22512 $as_echo "$ac_res" >&6; }
22514 # Is the header compilable?
22515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22516 $as_echo_n "checking $ac_header usability... " >&6; }
22517 cat >conftest.
$ac_ext <<_ACEOF
22520 cat confdefs.h
>>conftest.
$ac_ext
22521 cat >>conftest.
$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 $ac_includes_default
22524 #include <$ac_header>
22526 rm -f conftest.
$ac_objext
22527 if { (ac_try
="$ac_compile"
22528 case "(($ac_try" in
22529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22530 *) ac_try_echo=$ac_try;;
22532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22533 $as_echo "$ac_try_echo") >&5
22534 (eval "$ac_compile") 2>conftest.er1
22536 grep -v '^ *+' conftest.er1 >conftest.err
22538 cat conftest.err >&5
22539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); } && {
22541 test -z "$ac_c_werror_flag" ||
22542 test ! -s conftest.err
22543 } && test -s conftest.$ac_objext; then
22544 ac_header_compiler=yes
22546 $as_echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 ac_header_compiler=no
22552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22554 $as_echo "$ac_header_compiler" >&6; }
22556 # Is the header present?
22557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22558 $as_echo_n "checking $ac_header presence... " >&6; }
22559 cat >conftest.$ac_ext <<_ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 #include <$ac_header>
22567 if { (ac_try="$ac_cpp conftest.$ac_ext"
22568 case "(($ac_try" in
22569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22570 *) ac_try_echo
=$ac_try;;
22572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1
>conftest.err
22578 cat conftest.err
>&5
22579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } >/dev
/null
&& {
22581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22584 ac_header_preproc
=yes
22586 $as_echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.
$ac_ext >&5
22589 ac_header_preproc
=no
22592 rm -f conftest.err conftest.
$ac_ext
22593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22594 $as_echo "$ac_header_preproc" >&6; }
22596 # So? What about this header?
22597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22603 ac_header_preproc
=yes
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22622 $as_echo_n "checking for $ac_header... " >&6; }
22623 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22624 $as_echo_n "(cached) " >&6
22626 eval "$as_ac_Header=\$ac_header_preproc"
22628 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22629 $as_echo "$as_val"'`
22630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22631 $as_echo "$ac_res" >&6; }
22634 if test `eval 'as_val=${'$as_ac_Header'}
22635 $as_echo "$as_val"'` = yes; then
22636 cat >>confdefs.h
<<_ACEOF
22637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22653 for ac_header
in krb.h
22655 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22658 $as_echo_n "checking for $ac_header... " >&6; }
22659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22660 $as_echo_n "(cached) " >&6
22662 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22663 $as_echo "$as_val"'`
22664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22665 $as_echo "$ac_res" >&6; }
22667 # Is the header compilable?
22668 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22669 $as_echo_n "checking $ac_header usability... " >&6; }
22670 cat >conftest.
$ac_ext <<_ACEOF
22673 cat confdefs.h
>>conftest.
$ac_ext
22674 cat >>conftest.
$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22677 #include <$ac_header>
22679 rm -f conftest.
$ac_objext
22680 if { (ac_try
="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687 (eval "$ac_compile") 2>conftest.er1
22689 grep -v '^ *+' conftest.er1 >conftest.err
22691 cat conftest.err >&5
22692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693 (exit $ac_status); } && {
22694 test -z "$ac_c_werror_flag" ||
22695 test ! -s conftest.err
22696 } && test -s conftest.$ac_objext; then
22697 ac_header_compiler=yes
22699 $as_echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22702 ac_header_compiler=no
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22707 $as_echo "$ac_header_compiler" >&6; }
22709 # Is the header present?
22710 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22711 $as_echo_n "checking $ac_header presence... " >&6; }
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 #include <$ac_header>
22720 if { (ac_try="$ac_cpp conftest.$ac_ext"
22721 case "(($ac_try" in
22722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22723 *) ac_try_echo
=$ac_try;;
22725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22726 $as_echo "$ac_try_echo") >&5
22727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22729 grep -v '^ *+' conftest.er1
>conftest.err
22731 cat conftest.err
>&5
22732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } >/dev
/null
&& {
22734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22737 ac_header_preproc
=yes
22739 $as_echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.
$ac_ext >&5
22742 ac_header_preproc
=no
22745 rm -f conftest.err conftest.
$ac_ext
22746 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22747 $as_echo "$ac_header_preproc" >&6; }
22749 # So? What about this header?
22750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22753 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22756 ac_header_preproc
=yes
22759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22760 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22762 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22764 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22766 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22770 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22775 $as_echo_n "checking for $ac_header... " >&6; }
22776 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22777 $as_echo_n "(cached) " >&6
22779 eval "$as_ac_Header=\$ac_header_preproc"
22781 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22782 $as_echo "$as_val"'`
22783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22784 $as_echo "$ac_res" >&6; }
22787 if test `eval 'as_val=${'$as_ac_Header'}
22788 $as_echo "$as_val"'` = yes; then
22789 cat >>confdefs.h
<<_ACEOF
22790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22795 for ac_header
in kerberosIV
/krb.h
22797 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22798 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22800 $as_echo_n "checking for $ac_header... " >&6; }
22801 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22802 $as_echo_n "(cached) " >&6
22804 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22805 $as_echo "$as_val"'`
22806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22807 $as_echo "$ac_res" >&6; }
22809 # Is the header compilable?
22810 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22811 $as_echo_n "checking $ac_header usability... " >&6; }
22812 cat >conftest.
$ac_ext <<_ACEOF
22815 cat confdefs.h
>>conftest.
$ac_ext
22816 cat >>conftest.
$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 $ac_includes_default
22819 #include <$ac_header>
22821 rm -f conftest.
$ac_objext
22822 if { (ac_try
="$ac_compile"
22823 case "(($ac_try" in
22824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22828 $as_echo "$ac_try_echo") >&5
22829 (eval "$ac_compile") 2>conftest.er1
22831 grep -v '^ *+' conftest.er1 >conftest.err
22833 cat conftest.err >&5
22834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest.$ac_objext; then
22839 ac_header_compiler=yes
22841 $as_echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 ac_header_compiler=no
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22849 $as_echo "$ac_header_compiler" >&6; }
22851 # Is the header present?
22852 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22853 $as_echo_n "checking $ac_header presence... " >&6; }
22854 cat >conftest.$ac_ext <<_ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 #include <$ac_header>
22862 if { (ac_try="$ac_cpp conftest.$ac_ext"
22863 case "(($ac_try" in
22864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22865 *) ac_try_echo
=$ac_try;;
22867 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22868 $as_echo "$ac_try_echo") >&5
22869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22871 grep -v '^ *+' conftest.er1
>conftest.err
22873 cat conftest.err
>&5
22874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } >/dev
/null
&& {
22876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22879 ac_header_preproc
=yes
22881 $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.
$ac_ext >&5
22884 ac_header_preproc
=no
22887 rm -f conftest.err conftest.
$ac_ext
22888 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22889 $as_echo "$ac_header_preproc" >&6; }
22891 # So? What about this header?
22892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22895 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22897 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22898 ac_header_preproc
=yes
22901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22902 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22904 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22906 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22908 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22910 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22912 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22917 $as_echo_n "checking for $ac_header... " >&6; }
22918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22919 $as_echo_n "(cached) " >&6
22921 eval "$as_ac_Header=\$ac_header_preproc"
22923 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22924 $as_echo "$as_val"'`
22925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22926 $as_echo "$ac_res" >&6; }
22929 if test `eval 'as_val=${'$as_ac_Header'}
22930 $as_echo "$as_val"'` = yes; then
22931 cat >>confdefs.h
<<_ACEOF
22932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22937 for ac_header
in kerberos
/krb.h
22939 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22940 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22942 $as_echo_n "checking for $ac_header... " >&6; }
22943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22944 $as_echo_n "(cached) " >&6
22946 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22947 $as_echo "$as_val"'`
22948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22949 $as_echo "$ac_res" >&6; }
22951 # Is the header compilable?
22952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22953 $as_echo_n "checking $ac_header usability... " >&6; }
22954 cat >conftest.
$ac_ext <<_ACEOF
22957 cat confdefs.h
>>conftest.
$ac_ext
22958 cat >>conftest.
$ac_ext <<_ACEOF
22959 /* end confdefs.h. */
22960 $ac_includes_default
22961 #include <$ac_header>
22963 rm -f conftest.
$ac_objext
22964 if { (ac_try
="$ac_compile"
22965 case "(($ac_try" in
22966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22970 $as_echo "$ac_try_echo") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_header_compiler=yes
22983 $as_echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_header_compiler=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22991 $as_echo "$ac_header_compiler" >&6; }
22993 # Is the header present?
22994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22995 $as_echo_n "checking $ac_header presence... " >&6; }
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23002 #include <$ac_header>
23004 if { (ac_try="$ac_cpp conftest.$ac_ext"
23005 case "(($ac_try" in
23006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23007 *) ac_try_echo
=$ac_try;;
23009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23010 $as_echo "$ac_try_echo") >&5
23011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1
>conftest.err
23015 cat conftest.err
>&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } >/dev
/null
&& {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23021 ac_header_preproc
=yes
23023 $as_echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.
$ac_ext >&5
23026 ac_header_preproc
=no
23029 rm -f conftest.err conftest.
$ac_ext
23030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23031 $as_echo "$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23040 ac_header_preproc
=yes
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23059 $as_echo_n "checking for $ac_header... " >&6; }
23060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061 $as_echo_n "(cached) " >&6
23063 eval "$as_ac_Header=\$ac_header_preproc"
23065 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23066 $as_echo "$as_val"'`
23067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23068 $as_echo "$ac_res" >&6; }
23071 if test `eval 'as_val=${'$as_ac_Header'}
23072 $as_echo "$as_val"'` = yes; then
23073 cat >>confdefs.h
<<_ACEOF
23074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23091 for ac_header
in com_err.h
23093 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23094 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23096 $as_echo_n "checking for $ac_header... " >&6; }
23097 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached) " >&6
23100 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23101 $as_echo "$as_val"'`
23102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23103 $as_echo "$ac_res" >&6; }
23105 # Is the header compilable?
23106 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23107 $as_echo_n "checking $ac_header usability... " >&6; }
23108 cat >conftest.
$ac_ext <<_ACEOF
23111 cat confdefs.h
>>conftest.
$ac_ext
23112 cat >>conftest.
$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 $ac_includes_default
23115 #include <$ac_header>
23117 rm -f conftest.
$ac_objext
23118 if { (ac_try
="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_header_compiler=yes
23137 $as_echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_compiler=no
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23145 $as_echo "$ac_header_compiler" >&6; }
23147 # Is the header present?
23148 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23149 $as_echo_n "checking $ac_header presence... " >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23156 #include <$ac_header>
23158 if { (ac_try="$ac_cpp conftest.$ac_ext"
23159 case "(($ac_try" in
23160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23161 *) ac_try_echo
=$ac_try;;
23163 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23164 $as_echo "$ac_try_echo") >&5
23165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23167 grep -v '^ *+' conftest.er1
>conftest.err
23169 cat conftest.err
>&5
23170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev
/null
&& {
23172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23175 ac_header_preproc
=yes
23177 $as_echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.
$ac_ext >&5
23180 ac_header_preproc
=no
23183 rm -f conftest.err conftest.
$ac_ext
23184 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23185 $as_echo "$ac_header_preproc" >&6; }
23187 # So? What about this header?
23188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23194 ac_header_preproc
=yes
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23208 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23212 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23213 $as_echo_n "checking for $ac_header... " >&6; }
23214 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23215 $as_echo_n "(cached) " >&6
23217 eval "$as_ac_Header=\$ac_header_preproc"
23219 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23220 $as_echo "$as_val"'`
23221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23225 if test `eval 'as_val=${'$as_ac_Header'}
23226 $as_echo "$as_val"'` = yes; then
23227 cat >>confdefs.h
<<_ACEOF
23228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23237 # Solaris requires -lintl if you want strerror (which calls dgettext)
23238 # to return localized messages.
23240 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23241 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23242 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23243 $as_echo_n "(cached) " >&6
23245 ac_check_lib_save_LIBS
=$LIBS
23246 LIBS
="-lintl $LIBS"
23247 cat >conftest.
$ac_ext <<_ACEOF
23250 cat confdefs.h
>>conftest.
$ac_ext
23251 cat >>conftest.
$ac_ext <<_ACEOF
23252 /* end confdefs.h. */
23254 /* Override any GCC internal prototype to avoid an error.
23255 Use char because int might match the return type of a GCC
23256 builtin and then its argument prototype would still apply. */
23264 return dgettext ();
23269 rm -f conftest.
$ac_objext conftest
$ac_exeext
23270 if { (ac_try
="$ac_link"
23271 case "(($ac_try" in
23272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23273 *) ac_try_echo=$ac_try;;
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277 (eval "$ac_link") 2>conftest.er1
23279 grep -v '^ *+' conftest.er1 >conftest.err
23281 cat conftest.err >&5
23282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && {
23284 test -z "$ac_c_werror_flag" ||
23285 test ! -s conftest.err
23286 } && test -s conftest$ac_exeext && {
23287 test "$cross_compiling" = yes ||
23288 $as_test_x conftest$ac_exeext
23290 ac_cv_lib_intl_dgettext=yes
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 ac_cv_lib_intl_dgettext=no
23298 rm -rf conftest.dSYM
23299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23300 conftest$ac_exeext conftest.$ac_ext
23301 LIBS=$ac_check_lib_save_LIBS
23303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23304 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23305 if test $ac_cv_lib_intl_dgettext = yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define HAVE_LIBINTL 1
23310 LIBS="-lintl $LIBS"
23315 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23316 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23317 if test "${emacs_cv_localtime_cache+set}" = set; then
23318 $as_echo_n "(cached) " >&6
23320 if test x$ac_cv_func_tzset = xyes; then
23321 if test "$cross_compiling" = yes; then
23322 # If we have tzset, assume the worst when cross-compiling.
23323 emacs_cv_localtime_cache=yes
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23332 extern char **environ;
23336 for (to = from = environ; (*to = *from); from++)
23337 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23340 char TZ_GMT0[] = "TZ=GMT0";
23341 char TZ_PST8[] = "TZ=PST8";
23344 time_t now = time ((time_t *) 0);
23345 int hour_GMT0, hour_unset;
23346 if (putenv (TZ_GMT0) != 0)
23348 hour_GMT0 = localtime (&now)->tm_hour;
23350 hour_unset = localtime (&now)->tm_hour;
23351 if (putenv (TZ_PST8) != 0)
23353 if (localtime (&now)->tm_hour == hour_GMT0)
23356 if (localtime (&now)->tm_hour != hour_unset)
23361 rm -f conftest$ac_exeext
23362 if { (ac_try="$ac_link"
23363 case "(($ac_try" in
23364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23365 *) ac_try_echo
=$ac_try;;
23367 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23368 $as_echo "$ac_try_echo") >&5
23369 (eval "$ac_link") 2>&5
23371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23373 { (case "(($ac_try" in
23374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23378 $as_echo "$ac_try_echo") >&5
23379 (eval "$ac_try") 2>&5
23381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); }; }; then
23383 emacs_cv_localtime_cache=no
23385 $as_echo "$as_me: program exited with status $ac_status" >&5
23386 $as_echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ( exit $ac_status )
23390 emacs_cv_localtime_cache=yes
23392 rm -rf conftest.dSYM
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23398 # If we lack tzset, report that localtime does not cache TZ,
23399 # since we can't invalidate the cache if we don't have tzset.
23400 emacs_cv_localtime_cache=no
23403 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23404 $as_echo "$emacs_cv_localtime_cache" >&6; }
23405 if test $emacs_cv_localtime_cache = yes; then
23407 cat >>confdefs.h <<\_ACEOF
23408 #define LOCALTIME_CACHE 1
23413 if test "x$HAVE_TIMEVAL" = xyes; then
23415 for ac_func in gettimeofday
23417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23419 $as_echo_n "checking for $ac_func... " >&6; }
23420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23421 $as_echo_n "(cached) " >&6
23423 cat >conftest.$ac_ext <<_ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23431 #define $ac_func innocuous_$ac_func
23433 /* System header to define __stub macros and hopefully few prototypes,
23434 which can conflict with char $ac_func (); below.
23435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23436 <limits.h> exists even on freestanding compilers. */
23439 # include <limits.h>
23441 # include <assert.h>
23446 /* Override any GCC internal prototype to avoid an error.
23447 Use char because int might match the return type of a GCC
23448 builtin and then its argument prototype would still apply. */
23453 /* The GNU C library defines this for functions which it implements
23454 to always fail with ENOSYS. Some functions are actually named
23455 something starting with __ and the normal name is an alias. */
23456 #if defined __stub_$ac_func || defined __stub___$ac_func
23463 return $ac_func ();
23468 rm -f conftest.$ac_objext conftest$ac_exeext
23469 if { (ac_try="$ac_link"
23470 case "(($ac_try" in
23471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23472 *) ac_try_echo
=$ac_try;;
23474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_link") 2>conftest.er1
23478 grep -v '^ *+' conftest.er1
>conftest.err
23480 cat conftest.err
>&5
23481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest
$ac_exeext && {
23486 test "$cross_compiling" = yes ||
23487 $as_test_x conftest
$ac_exeext
23489 eval "$as_ac_var=yes"
23491 $as_echo "$as_me: failed program was:" >&5
23492 sed 's/^/| /' conftest.
$ac_ext >&5
23494 eval "$as_ac_var=no"
23497 rm -rf conftest.dSYM
23498 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23499 conftest
$ac_exeext conftest.
$ac_ext
23501 ac_res
=`eval 'as_val=${'$as_ac_var'}
23502 $as_echo "$as_val"'`
23503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23504 $as_echo "$ac_res" >&6; }
23505 if test `eval 'as_val=${'$as_ac_var'}
23506 $as_echo "$as_val"'` = yes; then
23507 cat >>confdefs.h
<<_ACEOF
23508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23514 if test $ac_cv_func_gettimeofday = yes; then
23515 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23516 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23517 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23518 $as_echo_n "(cached) " >&6
23520 cat >conftest.
$ac_ext <<_ACEOF
23523 cat confdefs.h
>>conftest.
$ac_ext
23524 cat >>conftest.
$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23527 #ifdef TIME_WITH_SYS_TIME
23528 #include <sys/time.h>
23531 #ifdef HAVE_SYS_TIME_H
23532 #include <sys/time.h>
23540 struct timeval time;
23541 gettimeofday (&time, 0);
23546 rm -f conftest.
$ac_objext
23547 if { (ac_try
="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23553 $as_echo "$ac_try_echo") >&5
23554 (eval "$ac_compile") 2>conftest.er1
23556 grep -v '^ *+' conftest.er1 >conftest.err
23558 cat conftest.err >&5
23559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); } && {
23561 test -z "$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 } && test -s conftest.$ac_objext; then
23564 emacs_cv_gettimeofday_two_arguments=yes
23566 $as_echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 emacs_cv_gettimeofday_two_arguments=no
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23575 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23576 if test $emacs_cv_gettimeofday_two_arguments = no; then
23578 cat >>confdefs.h <<\_ACEOF
23579 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23587 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23588 $as_echo_n "checking for socket... " >&6; }
23589 if test "${ac_cv_func_socket+set}" = set; then
23590 $as_echo_n "(cached) " >&6
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23598 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23600 #define socket innocuous_socket
23602 /* System header to define __stub macros and hopefully few prototypes,
23603 which can conflict with char socket (); below.
23604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23605 <limits.h> exists even on freestanding compilers. */
23608 # include <limits.h>
23610 # include <assert.h>
23615 /* Override any GCC internal prototype to avoid an error.
23616 Use char because int might match the return type of a GCC
23617 builtin and then its argument prototype would still apply. */
23622 /* The GNU C library defines this for functions which it implements
23623 to always fail with ENOSYS. Some functions are actually named
23624 something starting with __ and the normal name is an alias. */
23625 #if defined __stub_socket || defined __stub___socket
23637 rm -f conftest.$ac_objext conftest$ac_exeext
23638 if { (ac_try="$ac_link"
23639 case "(($ac_try" in
23640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23641 *) ac_try_echo
=$ac_try;;
23643 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23644 $as_echo "$ac_try_echo") >&5
23645 (eval "$ac_link") 2>conftest.er1
23647 grep -v '^ *+' conftest.er1
>conftest.err
23649 cat conftest.err
>&5
23650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651 (exit $ac_status); } && {
23652 test -z "$ac_c_werror_flag" ||
23653 test ! -s conftest.err
23654 } && test -s conftest
$ac_exeext && {
23655 test "$cross_compiling" = yes ||
23656 $as_test_x conftest
$ac_exeext
23658 ac_cv_func_socket
=yes
23660 $as_echo "$as_me: failed program was:" >&5
23661 sed 's/^/| /' conftest.
$ac_ext >&5
23663 ac_cv_func_socket
=no
23666 rm -rf conftest.dSYM
23667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23668 conftest
$ac_exeext conftest.
$ac_ext
23670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23671 $as_echo "$ac_cv_func_socket" >&6; }
23672 if test $ac_cv_func_socket = yes; then
23678 if test $ok_so_far = yes; then
23679 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23680 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23681 $as_echo_n "checking for netinet/in.h... " >&6; }
23682 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23683 $as_echo_n "(cached) " >&6
23685 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23686 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23688 # Is the header compilable?
23689 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23690 $as_echo_n "checking netinet/in.h usability... " >&6; }
23691 cat >conftest.
$ac_ext <<_ACEOF
23694 cat confdefs.h
>>conftest.
$ac_ext
23695 cat >>conftest.
$ac_ext <<_ACEOF
23696 /* end confdefs.h. */
23697 $ac_includes_default
23698 #include <netinet/in.h>
23700 rm -f conftest.
$ac_objext
23701 if { (ac_try
="$ac_compile"
23702 case "(($ac_try" in
23703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23707 $as_echo "$ac_try_echo") >&5
23708 (eval "$ac_compile") 2>conftest.er1
23710 grep -v '^ *+' conftest.er1 >conftest.err
23712 cat conftest.err >&5
23713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } && {
23715 test -z "$ac_c_werror_flag" ||
23716 test ! -s conftest.err
23717 } && test -s conftest.$ac_objext; then
23718 ac_header_compiler=yes
23720 $as_echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23723 ac_header_compiler=no
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23728 $as_echo "$ac_header_compiler" >&6; }
23730 # Is the header present?
23731 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23732 $as_echo_n "checking netinet/in.h presence... " >&6; }
23733 cat >conftest.$ac_ext <<_ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23739 #include <netinet/in.h>
23741 if { (ac_try="$ac_cpp conftest.$ac_ext"
23742 case "(($ac_try" in
23743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23744 *) ac_try_echo
=$ac_try;;
23746 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23747 $as_echo "$ac_try_echo") >&5
23748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23750 grep -v '^ *+' conftest.er1
>conftest.err
23752 cat conftest.err
>&5
23753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } >/dev
/null
&& {
23755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23756 test ! -s conftest.err
23758 ac_header_preproc
=yes
23760 $as_echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.
$ac_ext >&5
23763 ac_header_preproc
=no
23766 rm -f conftest.err conftest.
$ac_ext
23767 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23768 $as_echo "$ac_header_preproc" >&6; }
23770 # So? What about this header?
23771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23773 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23774 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23776 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23777 ac_header_preproc
=yes
23780 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23781 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23782 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23783 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23784 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23785 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23786 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23787 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23788 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23789 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23790 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23791 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23795 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23796 $as_echo_n "checking for netinet/in.h... " >&6; }
23797 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23798 $as_echo_n "(cached) " >&6
23800 ac_cv_header_netinet_in_h
=$ac_header_preproc
23802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23803 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23806 if test $ac_cv_header_netinet_in_h = yes; then
23814 if test $ok_so_far = yes; then
23815 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23816 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23817 $as_echo_n "checking for arpa/inet.h... " >&6; }
23818 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23819 $as_echo_n "(cached) " >&6
23821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23822 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23824 # Is the header compilable?
23825 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23826 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23827 cat >conftest.
$ac_ext <<_ACEOF
23830 cat confdefs.h
>>conftest.
$ac_ext
23831 cat >>conftest.
$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23833 $ac_includes_default
23834 #include <arpa/inet.h>
23836 rm -f conftest.
$ac_objext
23837 if { (ac_try
="$ac_compile"
23838 case "(($ac_try" in
23839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23840 *) ac_try_echo=$ac_try;;
23842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23843 $as_echo "$ac_try_echo") >&5
23844 (eval "$ac_compile") 2>conftest.er1
23846 grep -v '^ *+' conftest.er1 >conftest.err
23848 cat conftest.err >&5
23849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); } && {
23851 test -z "$ac_c_werror_flag" ||
23852 test ! -s conftest.err
23853 } && test -s conftest.$ac_objext; then
23854 ac_header_compiler=yes
23856 $as_echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 ac_header_compiler=no
23862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23864 $as_echo "$ac_header_compiler" >&6; }
23866 # Is the header present?
23867 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23868 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23869 cat >conftest.$ac_ext <<_ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875 #include <arpa/inet.h>
23877 if { (ac_try="$ac_cpp conftest.$ac_ext"
23878 case "(($ac_try" in
23879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23880 *) ac_try_echo
=$ac_try;;
23882 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23883 $as_echo "$ac_try_echo") >&5
23884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23886 grep -v '^ *+' conftest.er1
>conftest.err
23888 cat conftest.err
>&5
23889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } >/dev
/null
&& {
23891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23894 ac_header_preproc
=yes
23896 $as_echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.
$ac_ext >&5
23899 ac_header_preproc
=no
23902 rm -f conftest.err conftest.
$ac_ext
23903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23904 $as_echo "$ac_header_preproc" >&6; }
23906 # So? What about this header?
23907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23909 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23910 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23912 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23913 ac_header_preproc
=yes
23916 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23917 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23919 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23921 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23923 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23925 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23927 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23931 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23932 $as_echo_n "checking for arpa/inet.h... " >&6; }
23933 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23934 $as_echo_n "(cached) " >&6
23936 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23939 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23942 if test $ac_cv_header_arpa_inet_h = yes; then
23950 if test $ok_so_far = yes; then
23952 cat >>confdefs.h
<<\_ACEOF
23953 #define HAVE_INET_SOCKETS 1
23959 for ac_header
in sys
/ioctl.h
23961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23964 $as_echo_n "checking for $ac_header... " >&6; }
23965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23966 $as_echo_n "(cached) " >&6
23968 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23969 $as_echo "$as_val"'`
23970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23971 $as_echo "$ac_res" >&6; }
23973 # Is the header compilable?
23974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23975 $as_echo_n "checking $ac_header usability... " >&6; }
23976 cat >conftest.
$ac_ext <<_ACEOF
23979 cat confdefs.h
>>conftest.
$ac_ext
23980 cat >>conftest.
$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 #include <$ac_header>
23985 rm -f conftest.
$ac_objext
23986 if { (ac_try
="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23995 grep -v '^ *+' conftest.er1 >conftest.err
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_header_compiler=yes
24005 $as_echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 ac_header_compiler=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24013 $as_echo "$ac_header_compiler" >&6; }
24015 # Is the header present?
24016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24017 $as_echo_n "checking $ac_header presence... " >&6; }
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <$ac_header>
24026 if { (ac_try="$ac_cpp conftest.$ac_ext"
24027 case "(($ac_try" in
24028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24029 *) ac_try_echo
=$ac_try;;
24031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24032 $as_echo "$ac_try_echo") >&5
24033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1
>conftest.err
24037 cat conftest.err
>&5
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } >/dev
/null
&& {
24040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24043 ac_header_preproc
=yes
24045 $as_echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.
$ac_ext >&5
24048 ac_header_preproc
=no
24051 rm -f conftest.err conftest.
$ac_ext
24052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24053 $as_echo "$ac_header_preproc" >&6; }
24055 # So? What about this header?
24056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24062 ac_header_preproc
=yes
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24081 $as_echo_n "checking for $ac_header... " >&6; }
24082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24083 $as_echo_n "(cached) " >&6
24085 eval "$as_ac_Header=\$ac_header_preproc"
24087 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'`
24089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24090 $as_echo "$ac_res" >&6; }
24093 if test `eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'` = yes; then
24095 cat >>confdefs.h
<<_ACEOF
24096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24104 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24106 cat >>confdefs.h
<<\_ACEOF
24107 #define HAVE_AIX_SMT_EXP 1
24112 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24113 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24114 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24115 { $as_echo "$as_me:$LINENO: result: yes" >&5
24116 $as_echo "yes" >&6; }
24118 cat >>confdefs.h
<<\_ACEOF
24119 #define HAVE_DEV_PTMX 1
24123 { $as_echo "$as_me:$LINENO: result: no" >&5
24124 $as_echo "no" >&6; }
24127 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24128 $as_echo_n "checking for pid_t... " >&6; }
24129 if test "${ac_cv_type_pid_t+set}" = set; then
24130 $as_echo_n "(cached) " >&6
24132 ac_cv_type_pid_t
=no
24133 cat >conftest.
$ac_ext <<_ACEOF
24136 cat confdefs.h
>>conftest.
$ac_ext
24137 cat >>conftest.
$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24143 if (sizeof (pid_t))
24149 rm -f conftest.
$ac_objext
24150 if { (ac_try
="$ac_compile"
24151 case "(($ac_try" in
24152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24156 $as_echo "$ac_try_echo") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24159 grep -v '^ *+' conftest.er1 >conftest.err
24161 cat conftest.err >&5
24162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest.$ac_objext; then
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24173 $ac_includes_default
24177 if (sizeof ((pid_t)))
24183 rm -f conftest.$ac_objext
24184 if { (ac_try="$ac_compile"
24185 case "(($ac_try" in
24186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24187 *) ac_try_echo
=$ac_try;;
24189 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24190 $as_echo "$ac_try_echo") >&5
24191 (eval "$ac_compile") 2>conftest.er1
24193 grep -v '^ *+' conftest.er1
>conftest.err
24195 cat conftest.err
>&5
24196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); } && {
24198 test -z "$ac_c_werror_flag" ||
24199 test ! -s conftest.err
24200 } && test -s conftest.
$ac_objext; then
24203 $as_echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.
$ac_ext >&5
24206 ac_cv_type_pid_t
=yes
24209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24211 $as_echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.
$ac_ext >&5
24217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24219 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24220 $as_echo "$ac_cv_type_pid_t" >&6; }
24221 if test $ac_cv_type_pid_t = yes; then
24225 cat >>confdefs.h
<<_ACEOF
24232 for ac_header
in vfork.h
24234 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24235 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24237 $as_echo_n "checking for $ac_header... " >&6; }
24238 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24239 $as_echo_n "(cached) " >&6
24241 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24242 $as_echo "$as_val"'`
24243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24244 $as_echo "$ac_res" >&6; }
24246 # Is the header compilable?
24247 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24248 $as_echo_n "checking $ac_header usability... " >&6; }
24249 cat >conftest.
$ac_ext <<_ACEOF
24252 cat confdefs.h
>>conftest.
$ac_ext
24253 cat >>conftest.
$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24255 $ac_includes_default
24256 #include <$ac_header>
24258 rm -f conftest.
$ac_objext
24259 if { (ac_try
="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24265 $as_echo "$ac_try_echo") >&5
24266 (eval "$ac_compile") 2>conftest.er1
24268 grep -v '^ *+' conftest.er1 >conftest.err
24270 cat conftest.err >&5
24271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } && {
24273 test -z "$ac_c_werror_flag" ||
24274 test ! -s conftest.err
24275 } && test -s conftest.$ac_objext; then
24276 ac_header_compiler=yes
24278 $as_echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281 ac_header_compiler=no
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24286 $as_echo "$ac_header_compiler" >&6; }
24288 # Is the header present?
24289 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24290 $as_echo_n "checking $ac_header presence... " >&6; }
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 #include <$ac_header>
24299 if { (ac_try="$ac_cpp conftest.$ac_ext"
24300 case "(($ac_try" in
24301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24302 *) ac_try_echo
=$ac_try;;
24304 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24308 grep -v '^ *+' conftest.er1
>conftest.err
24310 cat conftest.err
>&5
24311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); } >/dev
/null
&& {
24313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24314 test ! -s conftest.err
24316 ac_header_preproc
=yes
24318 $as_echo "$as_me: failed program was:" >&5
24319 sed 's/^/| /' conftest.
$ac_ext >&5
24321 ac_header_preproc
=no
24324 rm -f conftest.err conftest.
$ac_ext
24325 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24326 $as_echo "$ac_header_preproc" >&6; }
24328 # So? What about this header?
24329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24332 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24334 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24335 ac_header_preproc
=yes
24338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24339 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24341 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24343 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24345 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24349 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24353 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24354 $as_echo_n "checking for $ac_header... " >&6; }
24355 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24356 $as_echo_n "(cached) " >&6
24358 eval "$as_ac_Header=\$ac_header_preproc"
24360 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24361 $as_echo "$as_val"'`
24362 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24363 $as_echo "$ac_res" >&6; }
24366 if test `eval 'as_val=${'$as_ac_Header'}
24367 $as_echo "$as_val"'` = yes; then
24368 cat >>confdefs.h
<<_ACEOF
24369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24378 for ac_func
in fork vfork
24380 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24382 $as_echo_n "checking for $ac_func... " >&6; }
24383 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24384 $as_echo_n "(cached) " >&6
24386 cat >conftest.
$ac_ext <<_ACEOF
24389 cat confdefs.h
>>conftest.
$ac_ext
24390 cat >>conftest.
$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24394 #define $ac_func innocuous_$ac_func
24396 /* System header to define __stub macros and hopefully few prototypes,
24397 which can conflict with char $ac_func (); below.
24398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24399 <limits.h> exists even on freestanding compilers. */
24402 # include <limits.h>
24404 # include <assert.h>
24409 /* Override any GCC internal prototype to avoid an error.
24410 Use char because int might match the return type of a GCC
24411 builtin and then its argument prototype would still apply. */
24416 /* The GNU C library defines this for functions which it implements
24417 to always fail with ENOSYS. Some functions are actually named
24418 something starting with __ and the normal name is an alias. */
24419 #if defined __stub_$ac_func || defined __stub___$ac_func
24426 return $ac_func ();
24431 rm -f conftest.
$ac_objext conftest
$ac_exeext
24432 if { (ac_try
="$ac_link"
24433 case "(($ac_try" in
24434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24435 *) ac_try_echo=$ac_try;;
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438 $as_echo "$ac_try_echo") >&5
24439 (eval "$ac_link") 2>conftest.er1
24441 grep -v '^ *+' conftest.er1 >conftest.err
24443 cat conftest.err >&5
24444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); } && {
24446 test -z "$ac_c_werror_flag" ||
24447 test ! -s conftest.err
24448 } && test -s conftest$ac_exeext && {
24449 test "$cross_compiling" = yes ||
24450 $as_test_x conftest$ac_exeext
24452 eval "$as_ac_var=yes"
24454 $as_echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24457 eval "$as_ac_var=no"
24460 rm -rf conftest.dSYM
24461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24462 conftest$ac_exeext conftest.$ac_ext
24464 ac_res=`eval 'as_val=${'$as_ac_var'}
24465 $as_echo "$as_val"'`
24466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24467 $as_echo "$ac_res" >&6; }
24468 if test `eval 'as_val=${'$as_ac_var'}
24469 $as_echo "$as_val"'` = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24477 if test "x$ac_cv_func_fork" = xyes; then
24478 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24479 $as_echo_n "checking for working fork... " >&6; }
24480 if test "${ac_cv_func_fork_works+set}" = set; then
24481 $as_echo_n "(cached) " >&6
24483 if test "$cross_compiling" = yes; then
24484 ac_cv_func_fork_works=cross
24486 cat >conftest.$ac_ext <<_ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24497 /* By Ruediger Kuhlmann. */
24498 return fork () < 0;
24504 rm -f conftest$ac_exeext
24505 if { (ac_try="$ac_link"
24506 case "(($ac_try" in
24507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24508 *) ac_try_echo
=$ac_try;;
24510 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24511 $as_echo "$ac_try_echo") >&5
24512 (eval "$ac_link") 2>&5
24514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24516 { (case "(($ac_try" in
24517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24521 $as_echo "$ac_try_echo") >&5
24522 (eval "$ac_try") 2>&5
24524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); }; }; then
24526 ac_cv_func_fork_works=yes
24528 $as_echo "$as_me: program exited with status $ac_status" >&5
24529 $as_echo "$as_me: failed program was:" >&5
24530 sed 's/^/| /' conftest.$ac_ext >&5
24532 ( exit $ac_status )
24533 ac_cv_func_fork_works=no
24535 rm -rf conftest.dSYM
24536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24541 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24542 $as_echo "$ac_cv_func_fork_works" >&6; }
24545 ac_cv_func_fork_works=$ac_cv_func_fork
24547 if test "x$ac_cv_func_fork_works" = xcross; then
24549 *-*-amigaos* | *-*-msdosdjgpp*)
24550 # Override, as these systems have only a dummy fork() stub
24551 ac_cv_func_fork_works=no
24554 ac_cv_func_fork_works=yes
24557 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24558 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24560 ac_cv_func_vfork_works=$ac_cv_func_vfork
24561 if test "x$ac_cv_func_vfork" = xyes; then
24562 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24563 $as_echo_n "checking for working vfork... " >&6; }
24564 if test "${ac_cv_func_vfork_works+set}" = set; then
24565 $as_echo_n "(cached) " >&6
24567 if test "$cross_compiling" = yes; then
24568 ac_cv_func_vfork_works=cross
24570 cat >conftest.$ac_ext <<_ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 /* Thanks to Paul Eggert for this test. */
24577 $ac_includes_default
24578 #include <sys/wait.h>
24579 #ifdef HAVE_VFORK_H
24580 # include <vfork.h>
24582 /* On some sparc systems, changes by the child to local and incoming
24583 argument registers are propagated back to the parent. The compiler
24584 is told about this with #include <vfork.h>, but some compilers
24585 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24586 static variable whose address is put into a register that is
24587 clobbered by the vfork. */
24590 sparc_address_test (int arg)
24592 sparc_address_test (arg) int arg;
24595 static pid_t child;
24613 pid_t parent = getpid ();
24616 sparc_address_test (0);
24621 /* Here is another test for sparc vfork register problems. This
24622 test uses lots of local variables, at least as many local
24623 variables as main has allocated so far including compiler
24624 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24625 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24626 reuse the register of parent for one of the local variables,
24627 since it will think that parent can't possibly be used any more
24628 in this routine. Assigning to the local variable will thus
24629 munge parent in the parent process. */
24631 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24632 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24633 /* Convince the compiler that p..p7 are live; otherwise, it might
24634 use the same hardware register for all 8 local variables. */
24635 if (p != p1 || p != p2 || p != p3 || p != p4
24636 || p != p5 || p != p6 || p != p7)
24639 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24640 from child file descriptors. If the child closes a descriptor
24641 before it execs or exits, this munges the parent's descriptor
24642 as well. Test for this by closing stdout in the child. */
24643 _exit(close(fileno(stdout)) != 0);
24648 while (wait(&status) != child)
24651 /* Was there some problem with vforking? */
24654 /* Did the child fail? (This shouldn't happen.) */
24657 /* Did the vfork/compiler bug occur? */
24658 || parent != getpid()
24660 /* Did the file descriptor bug occur? */
24661 || fstat(fileno(stdout), &st) != 0
24666 rm -f conftest$ac_exeext
24667 if { (ac_try="$ac_link"
24668 case "(($ac_try" in
24669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24670 *) ac_try_echo
=$ac_try;;
24672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24673 $as_echo "$ac_try_echo") >&5
24674 (eval "$ac_link") 2>&5
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24678 { (case "(($ac_try" in
24679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24680 *) ac_try_echo=$ac_try;;
24682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24683 $as_echo "$ac_try_echo") >&5
24684 (eval "$ac_try") 2>&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24688 ac_cv_func_vfork_works=yes
24690 $as_echo "$as_me: program exited with status $ac_status" >&5
24691 $as_echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ( exit $ac_status )
24695 ac_cv_func_vfork_works=no
24697 rm -rf conftest.dSYM
24698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24703 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24704 $as_echo "$ac_cv_func_vfork_works" >&6; }
24707 if test "x$ac_cv_func_fork_works" = xcross; then
24708 ac_cv_func_vfork_works=$ac_cv_func_vfork
24709 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24710 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24713 if test "x$ac_cv_func_vfork_works" = xyes; then
24715 cat >>confdefs.h <<\_ACEOF
24716 #define HAVE_WORKING_VFORK 1
24721 cat >>confdefs.h <<\_ACEOF
24726 if test "x$ac_cv_func_fork_works" = xyes; then
24728 cat >>confdefs.h <<\_ACEOF
24729 #define HAVE_WORKING_FORK 1
24735 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24736 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24737 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24738 $as_echo_n "(cached) " >&6
24740 cat >conftest.$ac_ext <<_ACEOF
24743 cat confdefs.h >>conftest.$ac_ext
24744 cat >>conftest.$ac_ext <<_ACEOF
24745 /* end confdefs.h. */
24746 #include <langinfo.h>
24750 char* cs = nl_langinfo(CODESET);
24755 rm -f conftest.$ac_objext conftest$ac_exeext
24756 if { (ac_try="$ac_link"
24757 case "(($ac_try" in
24758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24759 *) ac_try_echo
=$ac_try;;
24761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24762 $as_echo "$ac_try_echo") >&5
24763 (eval "$ac_link") 2>conftest.er1
24765 grep -v '^ *+' conftest.er1
>conftest.err
24767 cat conftest.err
>&5
24768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && {
24770 test -z "$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24772 } && test -s conftest
$ac_exeext && {
24773 test "$cross_compiling" = yes ||
24774 $as_test_x conftest
$ac_exeext
24776 emacs_cv_langinfo_codeset
=yes
24778 $as_echo "$as_me: failed program was:" >&5
24779 sed 's/^/| /' conftest.
$ac_ext >&5
24781 emacs_cv_langinfo_codeset
=no
24784 rm -rf conftest.dSYM
24785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24786 conftest
$ac_exeext conftest.
$ac_ext
24789 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24790 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24791 if test $emacs_cv_langinfo_codeset = yes; then
24793 cat >>confdefs.h
<<\_ACEOF
24794 #define HAVE_LANGINFO_CODESET 1
24799 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24800 $as_echo_n "checking for size_t... " >&6; }
24801 if test "${ac_cv_type_size_t+set}" = set; then
24802 $as_echo_n "(cached) " >&6
24804 ac_cv_type_size_t
=no
24805 cat >conftest.
$ac_ext <<_ACEOF
24808 cat confdefs.h
>>conftest.
$ac_ext
24809 cat >>conftest.
$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 $ac_includes_default
24815 if (sizeof (size_t))
24821 rm -f conftest.
$ac_objext
24822 if { (ac_try
="$ac_compile"
24823 case "(($ac_try" in
24824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24828 $as_echo "$ac_try_echo") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest.$ac_objext; then
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 $ac_includes_default
24849 if (sizeof ((size_t)))
24855 rm -f conftest.$ac_objext
24856 if { (ac_try="$ac_compile"
24857 case "(($ac_try" in
24858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24859 *) ac_try_echo
=$ac_try;;
24861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24862 $as_echo "$ac_try_echo") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24865 grep -v '^ *+' conftest.er1
>conftest.err
24867 cat conftest.err
>&5
24868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } && {
24870 test -z "$ac_c_werror_flag" ||
24871 test ! -s conftest.err
24872 } && test -s conftest.
$ac_objext; then
24875 $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.
$ac_ext >&5
24878 ac_cv_type_size_t
=yes
24881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24883 $as_echo "$as_me: failed program was:" >&5
24884 sed 's/^/| /' conftest.
$ac_ext >&5
24889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24892 $as_echo "$ac_cv_type_size_t" >&6; }
24893 if test $ac_cv_type_size_t = yes; then
24895 cat >>confdefs.h
<<_ACEOF
24896 #define HAVE_SIZE_T 1
24903 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24904 $as_echo_n "checking for mbstate_t... " >&6; }
24905 if test "${ac_cv_type_mbstate_t+set}" = set; then
24906 $as_echo_n "(cached) " >&6
24908 cat >conftest.
$ac_ext <<_ACEOF
24911 cat confdefs.h
>>conftest.
$ac_ext
24912 cat >>conftest.
$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24914 $ac_includes_default
24915 # include <wchar.h>
24919 mbstate_t x; return sizeof x;
24924 rm -f conftest.
$ac_objext
24925 if { (ac_try
="$ac_compile"
24926 case "(($ac_try" in
24927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24928 *) ac_try_echo=$ac_try;;
24930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24931 $as_echo "$ac_try_echo") >&5
24932 (eval "$ac_compile") 2>conftest.er1
24934 grep -v '^ *+' conftest.er1 >conftest.err
24936 cat conftest.err >&5
24937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest.$ac_objext; then
24942 ac_cv_type_mbstate_t=yes
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.$ac_ext >&5
24947 ac_cv_type_mbstate_t=no
24950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24953 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24954 if test $ac_cv_type_mbstate_t = yes; then
24956 cat >>confdefs.h <<\_ACEOF
24957 #define HAVE_MBSTATE_T 1
24962 cat >>confdefs.h <<\_ACEOF
24963 #define mbstate_t int
24968 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24969 $as_echo_n "checking for C restrict keyword... " >&6; }
24970 if test "${emacs_cv_c_restrict+set}" = set; then
24971 $as_echo_n "(cached) " >&6
24973 cat >conftest.$ac_ext <<_ACEOF
24976 cat confdefs.h >>conftest.$ac_ext
24977 cat >>conftest.$ac_ext <<_ACEOF
24978 /* end confdefs.h. */
24979 void fred (int *restrict x);
24988 rm -f conftest.$ac_objext
24989 if { (ac_try="$ac_compile"
24990 case "(($ac_try" in
24991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24992 *) ac_try_echo
=$ac_try;;
24994 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24995 $as_echo "$ac_try_echo") >&5
24996 (eval "$ac_compile") 2>conftest.er1
24998 grep -v '^ *+' conftest.er1
>conftest.err
25000 cat conftest.err
>&5
25001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } && {
25003 test -z "$ac_c_werror_flag" ||
25004 test ! -s conftest.err
25005 } && test -s conftest.
$ac_objext; then
25006 emacs_cv_c_restrict
=yes
25008 $as_echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.
$ac_ext >&5
25011 cat >conftest.
$ac_ext <<_ACEOF
25014 cat confdefs.h
>>conftest.
$ac_ext
25015 cat >>conftest.
$ac_ext <<_ACEOF
25016 /* end confdefs.h. */
25017 void fred (int *__restrict x);
25026 rm -f conftest.
$ac_objext
25027 if { (ac_try
="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25044 emacs_cv_c_restrict=__restrict
25046 $as_echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25049 emacs_cv_c_restrict=no
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25058 $as_echo "$emacs_cv_c_restrict" >&6; }
25059 case "$emacs_cv_c_restrict" in
25060 yes) emacs_restrict=restrict;;
25061 no) emacs_restrict="";;
25062 *) emacs_restrict="$emacs_cv_c_restrict";;
25064 if test "$emacs_restrict" != __restrict; then
25066 cat >>confdefs.h <<_ACEOF
25067 #define __restrict $emacs_restrict
25072 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25073 $as_echo_n "checking for C restricted array declarations... " >&6; }
25074 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25075 $as_echo_n "(cached) " >&6
25077 cat >conftest.$ac_ext <<_ACEOF
25080 cat confdefs.h >>conftest.$ac_ext
25081 cat >>conftest.$ac_ext <<_ACEOF
25082 /* end confdefs.h. */
25083 void fred (int x[__restrict]);
25092 rm -f conftest.$ac_objext
25093 if { (ac_try="$ac_compile"
25094 case "(($ac_try" in
25095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25096 *) ac_try_echo
=$ac_try;;
25098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25099 $as_echo "$ac_try_echo") >&5
25100 (eval "$ac_compile") 2>conftest.er1
25102 grep -v '^ *+' conftest.er1
>conftest.err
25104 cat conftest.err
>&5
25105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); } && {
25107 test -z "$ac_c_werror_flag" ||
25108 test ! -s conftest.err
25109 } && test -s conftest.
$ac_objext; then
25110 emacs_cv_c_restrict_arr
=yes
25112 $as_echo "$as_me: failed program was:" >&5
25113 sed 's/^/| /' conftest.
$ac_ext >&5
25115 emacs_cv_c_restrict_arr
=no
25118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25120 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25121 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25122 if test "$emacs_cv_c_restrict_arr" = yes; then
25124 cat >>confdefs.h
<<\_ACEOF
25125 #define __restrict_arr __restrict
25132 # Set up the CFLAGS for real compilation, so we can substitute it.
25133 CFLAGS
="$REAL_CFLAGS"
25134 CPPFLAGS
="$REAL_CPPFLAGS"
25136 #### Find out which version of Emacs this is.
25137 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25138 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25139 if test x
"${version}" = x
; then
25140 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25141 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25142 { (exit 1); exit 1; }; }
25145 ### Specify what sort of things we'll be editing into Makefile and config.h.
25146 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25190 cat >>confdefs.h
<<_ACEOF
25191 #define EMACS_CONFIGURATION "${canonical}"
25195 cat >>confdefs.h
<<_ACEOF
25196 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25200 cat >>confdefs.h
<<_ACEOF
25201 #define config_machfile "${machfile}"
25205 cat >>confdefs.h
<<_ACEOF
25206 #define config_opsysfile "${opsysfile}"
25210 cat >>confdefs.h
<<_ACEOF
25211 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25215 cat >>confdefs.h
<<_ACEOF
25216 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25220 cat >>confdefs.h
<<_ACEOF
25221 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25225 cat >>confdefs.h
<<_ACEOF
25226 #define UNEXEC_SRC ${UNEXEC_SRC}
25230 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25232 cat >>confdefs.h
<<\_ACEOF
25233 #define HAVE_X_WINDOWS 1
25237 if test "${USE_X_TOOLKIT}" != "none" ; then
25239 cat >>confdefs.h
<<\_ACEOF
25240 #define USE_X_TOOLKIT 1
25243 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25245 cat >>confdefs.h
<<\_ACEOF
25246 #define USE_LUCID 1
25249 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25251 cat >>confdefs.h
<<\_ACEOF
25252 #define USE_MOTIF 1
25257 if test "${HAVE_X11}" = "yes" ; then
25259 cat >>confdefs.h
<<\_ACEOF
25264 if test "${HAVE_MENUS}" = "yes" ; then
25266 cat >>confdefs.h
<<\_ACEOF
25267 #define HAVE_MENUS 1
25271 if test "${GNU_MALLOC}" = "yes" ; then
25273 cat >>confdefs.h
<<\_ACEOF
25274 #define GNU_MALLOC 1
25278 if test "${REL_ALLOC}" = "yes" ; then
25280 cat >>confdefs.h
<<\_ACEOF
25281 #define REL_ALLOC 1
25291 #### Report on what we decided to do.
25292 #### Report GTK as a toolkit, even if it doesn't use Xt.
25293 #### It makes printing result more understandable as using GTK sets
25294 #### toolkit_scroll_bars to yes by default.
25295 if test "${HAVE_GTK}" = "yes"; then
25300 Configured for \`${canonical}'.
25302 Where should the build process find the source code? ${srcdir}
25303 What operating system and machine description files should Emacs use?
25304 \`${opsysfile}' and \`${machfile}'
25305 What compiler should emacs be built with? ${CC} ${CFLAGS}
25306 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25307 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25308 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25309 What window system should Emacs use? ${window_system}
25310 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25312 if test -n "${x_includes}"; then
25313 echo " Where do we find X Windows header files? ${x_includes}"
25315 echo " Where do we find X Windows header files? Standard dirs"
25317 if test -n "${x_libraries}"; then
25318 echo " Where do we find X Windows libraries? ${x_libraries}"
25320 echo " Where do we find X Windows libraries? Standard dirs"
25323 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25324 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25325 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25326 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25327 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25328 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25329 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25330 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25331 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25333 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25334 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25335 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25336 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25338 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25341 if test $USE_XASSERTS = yes; then
25342 echo " Compiling with asserts turned on."
25343 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25348 if test "$USE_X_TOOLKIT" = GTK
; then
25349 case "$canonical" in
25351 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25352 will probably get a crash on startup. If this happens, please use another
25353 toolkit for Emacs. See etc/PROBLEMS for more information."
25358 if test "$HAVE_NS" = "yes"; then
25360 echo "You must run \"make install\" in order to test the built application.
25361 The installed application will go to nextstep/Emacs.app and can be
25362 run or moved from there."
25363 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25364 echo "The application will be fully self-contained."
25366 echo "The lisp resources for the application will be installed under ${prefix}.
25367 You may need to run \"make install\" with sudo. The application will fail
25368 to run if these resources are not installed."
25373 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25374 echo "D-Bus integration has been tested for GNU/Linux only."
25379 # Remove any trailing slashes in these variables.
25380 test "${prefix}" != NONE
&&
25381 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25382 test "${exec_prefix}" != NONE
&&
25383 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25385 # Now get this: Some word that is part of the ${srcdir} directory name
25386 # or the ${configuration} value might, just might, happen to be an
25387 # identifier like `sun4' or `i386' or something, and be predefined by
25388 # the C preprocessor to some helpful value like 1, or maybe the empty
25389 # string. Needless to say consequent macro substitutions are less
25390 # than conducive to the makefile finding the correct directory.
25391 cpp_undefs
="`echo $srcdir $configuration $canonical |
25392 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25393 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25395 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25396 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25397 ## from Makefile.c can correctly provide the arg `-traditional' to the
25400 cat >conftest.
$ac_ext <<_ACEOF
25403 cat confdefs.h
>>conftest.
$ac_ext
25404 cat >>conftest.
$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25409 $EGREP "yes..yes" >/dev
/null
2>&1; then
25410 CPP_NEED_TRADITIONAL
=no
25412 CPP_NEED_TRADITIONAL
=yes
25417 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"
25419 ac_config_commands
="$ac_config_commands default"
25421 cat >confcache
<<\_ACEOF
25422 # This file is a shell script that caches the results of configure
25423 # tests run on this system so they can be shared between configure
25424 # scripts and configure runs, see configure's option --config-cache.
25425 # It is not useful on other systems. If it contains results you don't
25426 # want to keep, you may remove or edit it.
25428 # config.status only pays attention to the cache file if you give it
25429 # the --recheck option to rerun configure.
25431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25433 # following values.
25437 # The following way of writing the cache mishandles newlines in values,
25438 # but we know of no workaround that is simple, portable, and efficient.
25439 # So, we kill variables containing newlines.
25440 # Ultrix sh set writes to stderr and can't be redirected directly,
25441 # and sets the high bit in the cache file unless we assign to the vars.
25443 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25444 eval ac_val
=\$
$ac_var
25448 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25449 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25452 _ | IFS | as_nl
) ;; #(
25453 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25454 *) $as_unset $ac_var ;;
25460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25461 *${as_nl}ac_space
=\
*)
25462 # `set' does not quote correctly, so add quotes (double-quote
25463 # substitution turns \\\\ into \\, and sed turns \\ into \).
25466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25469 # `set' quotes correctly as required by POSIX, so do not add quotes.
25470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25483 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25484 if test -w "$cache_file"; then
25485 test "x$cache_file" != "x/dev/null" &&
25486 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25487 $as_echo "$as_me: updating cache $cache_file" >&6;}
25488 cat confcache
>$cache_file
25490 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25496 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25497 # Let make expand exec_prefix.
25498 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25500 DEFS
=-DHAVE_CONFIG_H
25504 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25505 # 1. Remove the extension, and $U if already installed.
25506 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25507 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25509 # will be set to the directory where LIBOBJS objects are built.
25510 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25511 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25513 LIBOBJS
=$ac_libobjs
25515 LTLIBOBJS
=$ac_ltlibobjs
25519 : ${CONFIG_STATUS=./config.status}
25521 ac_clean_files_save
=$ac_clean_files
25522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25523 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25525 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25527 # Generated by $as_me.
25528 # Run this file to recreate the current configuration.
25529 # Compiler output produced by configure, useful for debugging
25530 # configure, is in config.log if it exists.
25533 ac_cs_recheck=false
25535 SHELL=\${CONFIG_SHELL-$SHELL}
25538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25539 ## --------------------- ##
25540 ## M4sh Initialization. ##
25541 ## --------------------- ##
25543 # Be more Bourne compatible
25544 DUALCASE
=1; export DUALCASE
# for MKS sh
25545 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25549 # is contrary to our usage. Disable this feature.
25550 alias -g '${1+"$@"}'='"$@"'
25551 setopt NO_GLOB_SUBST
25553 case `(set -o) 2>/dev/null` in
25554 *posix
*) set -o posix
;;
25563 # Avoid depending upon Character Ranges.
25564 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25565 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25566 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25567 as_cr_digits
='0123456789'
25568 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25574 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25577 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25578 as_echo='printf %s
\n'
25579 as_echo_n='printf %s
'
25581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25582 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25583 as_echo_n='/usr
/ucb
/echo -n'
25585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25586 as_echo_n_body='eval
25590 expr "X$arg" : "X\\(.*\\)$as_nl";
25591 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25593 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25595 export as_echo_n_body
25596 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25598 export as_echo_body
25599 as_echo='sh
-c $as_echo_body as_echo
'
25602 # The user is always right.
25603 if test "${PATH_SEPARATOR+set}" != set; then
25605 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25606 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25611 # Support unset when possible.
25612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25620 # We need space, tab and new line, in precisely that order. Quoting is
25621 # there to prevent editors from complaining about space-tab.
25622 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25623 # splitting by setting IFS to empty value.)
25626 # Find who we are. Look in the path if we contain no directory separator.
25628 *[\\/]* ) as_myself=$0 ;;
25629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25630 for as_dir in $PATH
25633 test -z "$as_dir" && as_dir=.
25634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25640 # We did not find ourselves, most probably we were run as `sh COMMAND'
25641 # in which case we are not to be found in the path.
25642 if test "x$as_myself" = x
; then
25645 if test ! -f "$as_myself"; then
25646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25647 { (exit 1); exit 1; }
25650 # Work around bugs in pre-3.0 UWIN ksh.
25651 for as_var
in ENV MAIL MAILPATH
25652 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25664 # Required to use basename.
25665 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25666 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25672 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25673 as_basename
=basename
25679 # Name of the executable.
25680 as_me
=`$as_basename -- "$0" ||
25681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25682 X"$0" : 'X\(//\)$' \| \
25683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25685 sed '/^.*\/\([^/][^/]*\)\/*$/{
25704 as_lineno_1
=$LINENO
25705 as_lineno_2
=$LINENO
25706 test "x$as_lineno_1" != "x$as_lineno_2" &&
25707 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25710 # uniformly replaced by the line number. The first 'sed' inserts a
25711 # line-number line after each line using $LINENO; the second 'sed'
25712 # does the real work. The second script uses 'N' to pair each
25713 # line-number line with the line containing $LINENO, and appends
25714 # trailing '-' during substitution so that $LINENO is not a special
25715 # case at line end.
25716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25717 # scripts with optimization help from Paolo Bonzini. Blame Lee
25718 # E. McMahon (1931-1989) for sed's syntax. :-)
25730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25733 ' >$as_me.lineno
&&
25734 chmod +x
"$as_me.lineno" ||
25735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25736 { (exit 1); exit 1; }; }
25738 # Don't try to exec as it changes $[0], causing all sort of problems
25739 # (the dirname of $[0] is not the place where we might find the
25740 # original and so on. Autoconf is especially sensitive to this).
25741 .
"./$as_me.lineno"
25742 # Exit status is that of the last command.
25747 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25753 ECHO_C
= ECHO_N
= ECHO_T
=
25754 case `echo -n x` in
25756 case `echo 'x\c'` in
25757 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25763 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25764 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25770 rm -f conf$$ conf$$.exe conf$$.
file
25771 if test -d conf$$.dir
; then
25772 rm -f conf$$.dir
/conf$$.
file
25775 mkdir conf$$.dir
2>/dev
/null
25777 if (echo >conf$$.
file) 2>/dev
/null
; then
25778 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25780 # ... but there are two gotchas:
25781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25783 # In both cases, we have to default to `cp -p'.
25784 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25786 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25794 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25795 rmdir conf$$.dir
2>/dev
/null
25797 if mkdir
-p .
2>/dev
/null
; then
25800 test -d .
/-p && rmdir .
/-p
25804 if test -x / >/dev
/null
2>&1; then
25805 as_test_x
='test -x'
25807 if ls -dL / >/dev
/null
2>&1; then
25814 if test -d "$1"; then
25820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25821 ???[sx]*):;;*)false;;esac;fi
25825 as_executable_p
=$as_test_x
25827 # Sed expression to map a string onto a valid CPP name.
25828 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25830 # Sed expression to map a string onto a valid variable name.
25831 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25836 # Save the log message, to keep $[0] and so on meaningful, and to
25837 # report actual input values of CONFIG_FILES etc. instead of their
25838 # values after options handling.
25840 This file was extended by emacs $as_me 23.0.92, which was
25841 generated by GNU Autoconf 2.62. Invocation command line was
25843 CONFIG_FILES = $CONFIG_FILES
25844 CONFIG_HEADERS = $CONFIG_HEADERS
25845 CONFIG_LINKS = $CONFIG_LINKS
25846 CONFIG_COMMANDS = $CONFIG_COMMANDS
25849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25855 # Files that config.status was made for.
25856 config_files="$ac_config_files"
25857 config_headers="$ac_config_headers"
25858 config_commands="$ac_config_commands"
25862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25864 \`$as_me' instantiates files from templates according to the
25865 current configuration.
25867 Usage: $0 [OPTIONS] [FILE]...
25869 -h, --help print this help, then exit
25870 -V, --version print version number and configuration settings, then exit
25871 -q, --quiet do not print progress messages
25872 -d, --debug don't remove temporary files
25873 --recheck update $as_me by reconfiguring in the same conditions
25874 --file=FILE[:TEMPLATE]
25875 instantiate the configuration file FILE
25876 --header=FILE[:TEMPLATE]
25877 instantiate the configuration header FILE
25879 Configuration files:
25882 Configuration headers:
25885 Configuration commands:
25888 Report bugs to <bug-autoconf@gnu.org>."
25891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25893 emacs config.status 23.0.92
25894 configured by $0, generated by GNU Autoconf 2.62,
25895 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25897 Copyright (C) 2008 Free Software Foundation, Inc.
25898 This config.status script is free software; the Free Software Foundation
25899 gives unlimited permission to copy, distribute and modify it."
25904 test -n "\$AWK" || AWK=awk
25907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25908 # The default lists apply if the user does not specify any file.
25914 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25915 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25926 # Handling of the options.
25927 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25929 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25930 $as_echo "$ac_cs_version"; exit ;;
25931 --debug |
--debu |
--deb |
--de |
--d |
-d )
25933 --file |
--fil |
--fi |
--f )
25936 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25938 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
25939 ac_need_defaults
=false
;;
25940 --header |
--heade |
--head |
--hea )
25943 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25945 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
25946 ac_need_defaults
=false
;;
25948 # Conflict between --help and --header
25949 { $as_echo "$as_me: error: ambiguous option: $1
25950 Try \`$0 --help' for more information." >&2
25951 { (exit 1); exit 1; }; };;
25952 --help |
--hel |
-h )
25953 $as_echo "$ac_cs_usage"; exit ;;
25954 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25955 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25958 # This is an error.
25959 -*) { $as_echo "$as_me: error: unrecognized option: $1
25960 Try \`$0 --help' for more information." >&2
25961 { (exit 1); exit 1; }; } ;;
25963 *) ac_config_targets
="$ac_config_targets $1"
25964 ac_need_defaults
=false
;;
25970 ac_configure_extra_args
=
25972 if $ac_cs_silent; then
25974 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25979 if \$ac_cs_recheck; then
25980 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25982 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25983 CONFIG_SHELL='$SHELL'
25984 export CONFIG_SHELL
25989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25994 ## Running $as_me. ##
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26004 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26010 # Handling of arguments.
26011 for ac_config_target
in $ac_config_targets
26013 case $ac_config_target in
26014 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26015 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26016 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26017 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26018 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26019 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26020 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26021 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26022 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26023 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26024 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26025 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26026 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26028 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26029 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26030 { (exit 1); exit 1; }; };;
26035 # If the user did not use the arguments to specify the items to instantiate,
26036 # then the envvar interface is used. Set only those that are not.
26037 # We use the long form for the default assignment because of an extremely
26038 # bizarre bug on SunOS 4.1.3.
26039 if $ac_need_defaults; then
26040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26045 # Have a temporary directory for convenience. Make it in the build tree
26046 # simply because there is no reason against having it here, and in addition,
26047 # creating and moving files from /tmp can sometimes cause problems.
26048 # Hook for its removal unless debugging.
26049 # Note that there is a small window in which the directory will not be cleaned:
26050 # after its creation but before its name has been assigned to `$tmp'.
26054 trap 'exit_status=$?
26055 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26057 trap '{ (exit 1); exit 1; }' 1 2 13 15
26059 # Create a (secure) tmp directory for tmp files.
26062 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26063 test -n "$tmp" && test -d "$tmp"
26066 tmp
=.
/conf$$
-$RANDOM
26067 (umask 077 && mkdir
"$tmp")
26070 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26071 { (exit 1); exit 1; }
26074 # Set up the scripts for CONFIG_FILES section.
26075 # No need to generate them if there are no CONFIG_FILES.
26076 # This happens for instance with `./config.status config.h'.
26077 if test -n "$CONFIG_FILES"; then
26081 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26082 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26085 ac_cs_awk_cr
=$ac_cr
26088 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26093 echo "cat >conf$$subs.awk <<_ACEOF" &&
26094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26096 } >conf$$subs.sh ||
26097 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26098 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26099 { (exit 1); exit 1; }; }
26100 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26102 for ac_last_try in false false false false false :; do
26103 . ./conf$$subs.sh ||
26104 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26105 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26106 { (exit 1); exit 1; }; }
26108 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26110 elif $ac_last_try; then
26111 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26112 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26113 { (exit 1); exit 1; }; }
26115 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26118 rm -f conf$$subs.sh
26120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26121 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26125 s/^/S["/; s
/!.
*/"]=/
26135 s/\(.\{148\}\).*/\1/
26137 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26142 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26149 s/\(.\{148\}\).*/\1/
26151 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26155 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26160 ' <conf$$subs.awk | sed '
26165 ' >>$CONFIG_STATUS || ac_write_fail=1
26166 rm -f conf$$subs.awk
26167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26169 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26170 for (key in S) S_is_set[key] = 1
26176 nfields = split(line, field, "@
")
26178 len = length(field[1])
26179 for (i = 2; i < nfields; i++) {
26181 keylen = length(key)
26182 if (S_is_set[key]) {
26184 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26185 len += length(value) + length(field[++i])
26196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26197 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26198 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26201 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26202 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26203 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26204 { (exit 1); exit 1; }; }
26207 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26208 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26209 # trailing colons and then remove the whole line if VPATH becomes empty
26210 # (actually we leave an empty line to preserve line numbers).
26211 if test "x
$srcdir" = x.; then
26212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26213 s/:*\$(srcdir):*/:/
26214 s/:*\${srcdir}:*/:/
26216 s/^\([^=]*=[ ]*\):*/\1/
26222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26223 fi # test -n "$CONFIG_FILES"
26225 # Set up the scripts for CONFIG_HEADERS section.
26226 # No need to generate them if there are no CONFIG_HEADERS.
26227 # This happens for instance with `./config.status Makefile'.
26228 if test -n "$CONFIG_HEADERS"; then
26229 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26233 # Transform confdefs.h into an awk script `defines.awk', embedded as
26234 # here-document in config.status, that substitutes the proper values into
26235 # config.h.in to produce config.h.
26237 # Create a delimiter string that does not exist in confdefs.h, to ease
26238 # handling of long lines.
26240 for ac_last_try in false false :; do
26241 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26242 if test -z "$ac_t"; then
26244 elif $ac_last_try; then
26245 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26246 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26247 { (exit 1); exit 1; }; }
26249 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26253 # For the awk script, D is an array of macro values keyed by name,
26254 # likewise P contains macro parameters if any. Preserve backslash
26255 # newline sequences.
26257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26259 s/.\{148\}/&'"$ac_delim"'/g
26262 s/^[ ]*#[ ]*define[ ][ ]*/ /
26269 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26271 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26276 D["\
1"]=" \
3\\\\\\n
"\\/p
26278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26283 s/.\{148\}/&'"$ac_delim"'/g
26288 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26291 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26293 ' <confdefs.h | sed '
26294 s/'"$ac_delim"'/"\\\
26295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26298 for (key in D) D_is_set[key] = 1
26301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26303 split(line, arg, " ")
26304 if (arg[1] == "#") {
26308 defundef
= substr
(arg
[1], 2)
26311 split(mac1
, mac2
, "(") #)
26313 if (D_is_set
[macro
]) {
26314 # Preserve the white space surrounding the "#".
26315 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26316 print prefix
"define", macro P
[macro
] D
[macro
]
26319 # Replace #undef with comments. This is necessary, for example,
26320 # in the case of _POSIX_SOURCE, which is predefined and required
26321 # on some systems where configure will not decide to define it.
26322 if (defundef
== "undef") {
26323 print
"/*", line
, "*/"
26331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26332 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26333 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26334 { (exit 1); exit 1; }; }
26335 fi # test -n "$CONFIG_HEADERS"
26338 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26343 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26345 case $ac_mode$ac_tag in
26347 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26348 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26349 { (exit 1); exit 1; }; };;
26350 :[FH
]-) ac_tag
=-:-;;
26351 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26368 -) ac_f
="$tmp/stdin";;
26369 *) # Look for the file first in the build tree, then in the source tree
26370 # (if the path is not absolute). The absolute path cannot be DOS-style,
26371 # because $ac_f cannot contain `:'.
26375 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26377 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26378 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26379 { (exit 1); exit 1; }; };;
26381 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26382 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26385 # Let's still pretend it is `configure' which instantiates (i.e., don't
26386 # use $as_me), people would be surprised to read:
26387 # /* config.h. Generated by config.status. */
26388 configure_input
='Generated from '`
26389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26391 if test x
"$ac_file" != x-
; then
26392 configure_input
="$ac_file. $configure_input"
26393 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26394 $as_echo "$as_me: creating $ac_file" >&6;}
26396 # Neutralize special characters interpreted by sed in replacement strings.
26397 case $configure_input in #(
26398 *\
&* |
*\|
* |
*\\* )
26399 ac_sed_conf_input
=`$as_echo "$configure_input" |
26400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26401 *) ac_sed_conf_input
=$configure_input;;
26405 *:-:* |
*:-) cat >"$tmp/stdin" \
26406 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26407 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26408 { (exit 1); exit 1; }; } ;;
26413 ac_dir
=`$as_dirname -- "$ac_file" ||
26414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26415 X"$ac_file" : 'X\(//\)[^/]' \| \
26416 X"$ac_file" : 'X\(//\)$' \| \
26417 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26418 $as_echo X"$ac_file" |
26419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26423 /^X\(\/\/\)[^/].*/{
26438 -*) as_dir
=.
/$as_dir;;
26440 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26444 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26445 *) as_qdir
=$as_dir;;
26447 as_dirs
="'$as_qdir' $as_dirs"
26448 as_dir
=`$as_dirname -- "$as_dir" ||
26449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26450 X"$as_dir" : 'X\(//\)[^/]' \| \
26451 X"$as_dir" : 'X\(//\)$' \| \
26452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26453 $as_echo X"$as_dir" |
26454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26458 /^X\(\/\/\)[^/].*/{
26471 test -d "$as_dir" && break
26473 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26474 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26475 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26476 { (exit 1); exit 1; }; }; }
26480 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26482 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26483 # A ".." for each directory in $ac_dir_suffix.
26484 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26485 case $ac_top_builddir_sub in
26486 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26487 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26490 ac_abs_top_builddir
=$ac_pwd
26491 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26492 # for backward compatibility:
26493 ac_top_builddir
=$ac_top_build_prefix
26496 .
) # We are building in place.
26498 ac_top_srcdir
=$ac_top_builddir_sub
26499 ac_abs_top_srcdir
=$ac_pwd ;;
26500 [\\/]* | ?
:[\\/]* ) # Absolute name.
26501 ac_srcdir
=$srcdir$ac_dir_suffix;
26502 ac_top_srcdir
=$srcdir
26503 ac_abs_top_srcdir
=$srcdir ;;
26504 *) # Relative name.
26505 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26506 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26507 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26509 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26519 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26520 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26525 # If the template does not know about datarootdir, expand it.
26526 # FIXME: This hack should be removed a few years after 2.60.
26527 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26541 *datarootdir
*) ac_datarootdir_seen
=yes;;
26542 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26543 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26544 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26547 ac_datarootdir_hack='
26548 s&@datadir@&$datadir&g
26549 s&@docdir@&$docdir&g
26550 s&@infodir@&$infodir&g
26551 s&@localedir@&$localedir&g
26552 s&@mandir@&$mandir&g
26553 s&\\\${datarootdir}&$datarootdir&g' ;;
26557 # Neutralize VPATH when `$srcdir' = `.'.
26558 # Shell code in configure.ac might set extrasub.
26559 # FIXME: do we really want to maintain this feature?
26560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26561 ac_sed_extra="$ac_vpsub
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26566 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26567 s|@configure_input@|
$ac_sed_conf_input|
;t t
26568 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26569 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26570 s
&@srcdir@
&$ac_srcdir&;t t
26571 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26572 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26573 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26574 s
&@builddir@
&$ac_builddir&;t t
26575 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26576 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26577 s
&@INSTALL@
&$ac_INSTALL&;t t
26578 $ac_datarootdir_hack
26580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26581 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26582 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26583 { (exit 1); exit 1; }; }
26585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26588 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26589 which seems to be undefined. Please make sure it is defined." >&5
26590 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26591 which seems to be undefined. Please make sure it is defined." >&2;}
26595 -) cat "$tmp/out" && rm -f "$tmp/out";;
26596 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26598 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26599 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26600 { (exit 1); exit 1; }; }
26606 if test x"$ac_file" != x-; then
26608 $as_echo "/* $configure_input */" \
26609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26610 } >"$tmp/config.h" \
26611 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26612 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26613 { (exit 1); exit 1; }; }
26614 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26615 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26616 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26619 mv "$tmp/config.h" "$ac_file" \
26620 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26621 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26622 { (exit 1); exit 1; }; }
26625 $as_echo "/* $configure_input */" \
26626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26627 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26628 $as_echo "$as_me: error: could not create -" >&2;}
26629 { (exit 1); exit 1; }; }
26633 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26634 $as_echo "$as_me: executing $ac_file commands" >&6;}
26639 case $ac_file$ac_mode in
26642 ### Make the necessary directories, if they don't exist.
26643 for dir
in etc lisp
; do
26644 test -d ${dir} || mkdir
${dir}
26647 # Build src/Makefile from ${srcdir}/src/Makefile.c
26648 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26649 # This must be done after src/config.h is built, since we rely on that file.
26651 echo creating src
/epaths.h
26652 ${MAKE-make} epaths-force
26654 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26655 # `..' to `. .' unless invoked with -traditional
26657 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26658 CPPFLAGS
="$CPPFLAGS -traditional"
26661 echo creating lib-src
/Makefile
26663 rm -f junk.c junk1.c junk2.c
26664 sed -e '/start of cpp stuff/q' \
26665 < Makefile.c
> junk1.c
26666 sed -e '1,/start of cpp stuff/d'\
26667 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26668 < Makefile.c
> junk.c
26669 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26670 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26671 cat junk1.c junk2.c
> Makefile.new
26672 rm -f junk.c junk1.c junk2.c
26673 chmod 444 Makefile.new
26674 mv -f Makefile.new Makefile
26677 echo creating src
/Makefile
26679 rm -f junk.c junk1.c junk2.c
26680 sed -e '/start of cpp stuff/q' \
26681 < Makefile.c
> junk1.c
26682 sed -e '1,/start of cpp stuff/d'\
26683 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26684 < Makefile.c
> junk.c
26685 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26686 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26687 cat junk1.c junk2.c
> Makefile.new
26688 rm -f junk.c junk1.c junk2.c
26689 chmod 444 Makefile.new
26690 mv -f Makefile.new Makefile
26693 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26694 echo creating src
/.gdbinit
26695 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26704 { (exit 0); exit 0; }
26706 chmod +x
$CONFIG_STATUS
26707 ac_clean_files
=$ac_clean_files_save
26709 test $ac_write_fail = 0 ||
26710 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26711 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26712 { (exit 1); exit 1; }; }
26715 # configure is writing to config.log, and then calls config.status.
26716 # config.status does its own redirection, appending to config.log.
26717 # Unfortunately, on DOS this fails, as config.log is still kept open
26718 # by configure, so config.status won't be able to write to it; its
26719 # output is simply discarded. So we exec the FD to /dev/null,
26720 # effectively closing config.log, so it can be properly (re)opened and
26721 # appended to by config.status. When coming back to configure, we
26722 # need to make the FD available again.
26723 if test "$no_create" != yes; then
26725 ac_config_status_args
=
26726 test "$silent" = yes &&
26727 ac_config_status_args
="$ac_config_status_args --quiet"
26729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26732 # would make configure fail if this is the last instruction.
26733 $ac_cs_success ||
{ (exit 1); exit 1; }
26735 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26736 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26737 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}