2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 23.0.91.
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.91'
598 PACKAGE_STRING
='emacs 23.0.91'
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
641 ac_subst_vars
='LTLIBOBJS
642 LIB_SRC_EXTRA_INSTALLABLES
644 GNUSTEP_SYSTEM_LIBRARIES
645 GNUSTEP_SYSTEM_HEADERS
664 x_default_search_path
758 program_transform_name
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.91 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.91:";;
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.91
1576 generated by GNU Autoconf 2.63
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.91, which was
1590 generated by GNU Autoconf 2.63. 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
: in \
`$ac_pwd':" >&5
1921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1922 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1925 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1926 { (exit 1); exit 1; }; }
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1960 ac_config_headers="$ac_config_headers src
/config.h
:src
/config.
in"
1964 test "$program_prefix" != NONE &&
1965 program_transform_name="s
&^
&$program_prefix&;$program_transform_name"
1966 # Use a double $ so make ignores it.
1967 test "$program_suffix" != NONE &&
1968 program_transform_name="s
&\$
&$program_suffix&;$program_transform_name"
1969 # Double any \ or $.
1970 # By default was `s,x,x', remove it if useless.
1971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1975 lispdir='${datadir}/emacs/${version}/lisp'
1976 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1977 '${datadir}/emacs/site-lisp'
1978 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1979 etcdir='${datadir}/emacs/${version}/etc'
1980 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1981 docdir='${datadir}/emacs/${version}/etc'
1982 gamedir='${localstatedir}/games/emacs'
1989 # Check whether --with-pop was given.
1990 if test "${with_pop+set}" = set; then
1996 if test "$with_pop" = yes; then
1997 cat >>confdefs.h <<\_ACEOF
1998 #define MAIL_USE_POP 1
2005 # Check whether --with-kerberos was given.
2006 if test "${with_kerberos+set}" = set; then
2007 withval=$with_kerberos;
2012 if test "$with_kerberos" != no; then
2013 cat >>confdefs.h <<\_ACEOF
2021 # Check whether --with-kerberos5 was given.
2022 if test "${with_kerberos5+set}" = set; then
2023 withval=$with_kerberos5;
2028 if test "${with_kerberos5}" != no; then
2029 if test "${with_kerberos}" = no; then
2031 cat >>confdefs.h <<\_ACEOF
2037 cat >>confdefs.h <<\_ACEOF
2044 # Check whether --with-hesiod was given.
2045 if test "${with_hesiod+set}" = set; then
2046 withval=$with_hesiod;
2051 if test "$with_hesiod" != no; then
2053 cat >>confdefs.h <<\_ACEOF
2060 # Check whether --with-sound was given.
2061 if test "${with_sound+set}" = set; then
2062 withval=$with_sound;
2069 # Check whether --with-sync-input was given.
2070 if test "${with_sync_input+set}" = set; then
2071 withval=$with_sync_input;
2076 if test "$with_sync_input" = yes; then
2078 cat >>confdefs.h <<\_ACEOF
2079 #define SYNC_INPUT 1
2085 # Check whether --with-x-toolkit was given.
2086 if test "${with_x_toolkit+set}" = set; then
2087 withval=$with_x_toolkit; case "${withval}" in
2088 y | ye | yes ) val=gtk ;;
2090 l | lu | luc | luci | lucid ) val=lucid ;;
2091 a | at | ath | athe | athen | athena ) val=athena ;;
2092 m | mo | mot | moti | motif ) val=motif ;;
2093 g | gt | gtk ) val=gtk ;;
2095 { { $as_echo "$as_me:$LINENO: error
: \
`--with-x-toolkit=$withval' is invalid;
2096 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2097 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&5
2098 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid
;
2099 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2100 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&2;}
2101 { (exit 1); exit 1; }; }
2110 # Check whether --with-xpm was given.
2111 if test "${with_xpm+set}" = set; then
2118 # Check whether --with-jpeg was given.
2119 if test "${with_jpeg+set}" = set; then
2126 # Check whether --with-tiff was given.
2127 if test "${with_tiff+set}" = set; then
2134 # Check whether --with-gif was given.
2135 if test "${with_gif+set}" = set; then
2142 # Check whether --with-png was given.
2143 if test "${with_png+set}" = set; then
2150 # Check whether --with-rsvg was given.
2151 if test "${with_rsvg+set}" = set; then
2159 # Check whether --with-freetype was given.
2160 if test "${with_freetype+set}" = set; then
2161 withval=$with_freetype;
2167 # Check whether --with-xft was given.
2168 if test "${with_xft+set}" = set; then
2175 # Check whether --with-libotf was given.
2176 if test "${with_libotf+set}" = set; then
2177 withval=$with_libotf;
2183 # Check whether --with-m17n-flt was given.
2184 if test "${with_m17n_flt+set}" = set; then
2185 withval=$with_m17n_flt;
2192 # Check whether --with-toolkit-scroll-bars was given.
2193 if test "${with_toolkit_scroll_bars+set}" = set; then
2194 withval=$with_toolkit_scroll_bars;
2196 with_toolkit_scroll_bars=yes
2200 # Check whether --with-xaw3d was given.
2201 if test "${with_xaw3d+set}" = set; then
2202 withval=$with_xaw3d;
2208 # Check whether --with-xim was given.
2209 if test "${with_xim+set}" = set; then
2216 # Check whether --with-ns was given.
2217 if test "${with_ns+set}" = set; then
2225 # Check whether --with-gpm was given.
2226 if test "${with_gpm+set}" = set; then
2233 # Check whether --with-dbus was given.
2234 if test "${with_dbus+set}" = set; then
2241 ## For the times when you want to build Emacs but don't have
2242 ## a suitable makeinfo, and can live without the manuals.
2244 # Check whether --with-makeinfo was given.
2245 if test "${with_makeinfo+set}" = set; then
2246 withval=$with_makeinfo;
2253 # Check whether --with-gtk was given.
2254 if test "${with_gtk+set}" = set; then
2255 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2256 specify a toolkit.
" >&5
2257 $as_echo "$as_me: error
: --with-gtk has been removed. Use
--with-x-toolkit to
2258 specify a toolkit.
" >&2;}
2259 { (exit 1); exit 1; }; }
2264 # Check whether --with-gcc was given.
2265 if test "${with_gcc+set}" = set; then
2266 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error
: --with-gcc has been removed. Set the \
`CC' environment
2267 variable to specify a compiler." >&5
2268 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC
' environment
2269 variable to specify a compiler." >&2;}
2270 { (exit 1); exit 1; }; }
2275 # Check whether --with-pkg-config-prog was given.
2276 if test "${with_pkg_config_prog+set}" = set; then
2277 withval=$with_pkg_config_prog;
2280 if test "X${with_pkg_config_prog}" != X; then
2281 if test "${with_pkg_config_prog}" != yes; then
2282 PKG_CONFIG="${with_pkg_config_prog}"
2287 # Check whether --with-gnustep-conf was given.
2288 if test "${with_gnustep_conf+set}" = set; then
2289 withval=$with_gnustep_conf;
2292 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2293 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2294 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2295 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2297 # Check whether --enable-ns-self-contained was given.
2298 if test "${enable_ns_self_contained+set}" = set; then
2299 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2301 EN_NS_SELF_CONTAINED=yes
2305 # Check whether --enable-asserts was given.
2306 if test "${enable_asserts+set}" = set; then
2307 enableval=$enable_asserts; USE_XASSERTS=$enableval
2313 # Check whether --enable-maintainer-mode was given.
2314 if test "${enable_maintainer_mode+set}" = set; then
2315 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2317 USE_MAINTAINER_MODE=no
2320 if test $USE_MAINTAINER_MODE = yes; then
2327 # Check whether --enable-locallisppath was given.
2328 if test "${enable_locallisppath+set}" = set; then
2329 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2331 elif test "${enableval}" != "yes"; then
2332 locallisppath=${enableval}
2337 #### Make srcdir absolute, if it isn't already. It
's important to
2338 #### avoid running the path through pwd unnecessarily, since pwd can
2339 #### give you automounter prefixes, which can go away. We do all this
2340 #### so Emacs can find its files when run uninstalled.
2341 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2346 ## We may be able to use the $PWD environment variable to make this
2347 ## absolute. But sometimes PWD is inaccurate.
2348 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2349 ## but that tested only for a well-formed and valid PWD,
2350 ## it did not object when PWD was well-formed and valid but just wrong.
2351 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2355 srcdir
="`(cd ${srcdir}; pwd)`"
2358 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2361 #### Check if the source directory already has a configured system in it.
2362 if test `pwd` != `(cd ${srcdir} && pwd)` \
2363 && test -f "${srcdir}/src/config.h" ; then
2364 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2365 as a build directory right now; it has been configured in its own
2366 right. To configure in another directory as well, you MUST
2367 use GNU make. If you do not have GNU make, then you must
2368 now do \`make distclean' in ${srcdir},
2369 and then run $0 again." >&5
2370 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2371 as a build directory right now; it has been configured in its own
2372 right. To configure in another directory as well, you MUST
2373 use GNU make. If you do not have GNU make, then you must
2374 now do \`make distclean' in ${srcdir},
2375 and then run $0 again." >&2;}
2378 #### Given the configuration name, set machfile and opsysfile to the
2379 #### names of the m/*.h and s/*.h files we should use.
2381 ### Canonicalize the configuration name.
2384 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2387 ac_install_sh
="$ac_aux_dir/install-sh -c"
2389 elif test -f "$ac_dir/install.sh"; then
2391 ac_install_sh
="$ac_aux_dir/install.sh -c"
2393 elif test -f "$ac_dir/shtool"; then
2395 ac_install_sh
="$ac_aux_dir/shtool install -c"
2399 if test -z "$ac_aux_dir"; then
2400 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2401 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2402 { (exit 1); exit 1; }; }
2405 # These three variables are undocumented and unsupported,
2406 # and are intended to be withdrawn in a future Autoconf release.
2407 # They can cause serious problems if a builder's source tree is in a directory
2408 # whose full name contains unusual characters.
2409 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2410 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2411 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2414 # Make sure we can run config.sub.
2415 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2416 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2417 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2418 { (exit 1); exit 1; }; }
2420 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if test "${ac_cv_build+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2425 ac_build_alias
=$build_alias
2426 test "x$ac_build_alias" = x
&&
2427 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x
&&
2429 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2430 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2431 { (exit 1); exit 1; }; }
2432 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2434 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2435 { (exit 1); exit 1; }; }
2438 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2439 $as_echo "$ac_cv_build" >&6; }
2440 case $ac_cv_build in
2442 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2443 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2444 { (exit 1); exit 1; }; };;
2447 ac_save_IFS
=$IFS; IFS
='-'
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2457 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2460 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2461 $as_echo_n "checking host system type... " >&6; }
2462 if test "${ac_cv_host+set}" = set; then
2463 $as_echo_n "(cached) " >&6
2465 if test "x$host_alias" = x
; then
2466 ac_cv_host
=$ac_cv_build
2468 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2470 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2471 { (exit 1); exit 1; }; }
2475 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2479 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2480 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2481 { (exit 1); exit 1; }; };;
2484 ac_save_IFS
=$IFS; IFS
='-'
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2494 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2498 configuration
=${host_alias-${build_alias-$host}}
2502 ### If you add support for a new configuration, add code to this
2503 ### switch statement to recognize your configuration name and select
2504 ### the appropriate operating system and machine description files.
2506 ### You would hope that you could choose an m/*.h file pretty much
2507 ### based on the machine portion of the configuration name, and an s-
2508 ### file based on the operating system portion. However, it turns out
2509 ### that each m/*.h file is pretty manufacturer-specific - for
2510 ### example mips.h is MIPS
2511 ### So we basically have to have a special case for each
2512 ### configuration name.
2514 ### As far as handling version numbers on operating systems is
2515 ### concerned, make sure things will fail in a fixable way. If
2516 ### /etc/MACHINES doesn't say anything about version numbers, be
2517 ### prepared to handle anything reasonably. If version numbers
2518 ### matter, be sure /etc/MACHINES says something about it.
2520 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2521 ### "System V Release 4"; he writes, "The old convention encouraged
2522 ### confusion between `system' and `release' levels'."
2524 machine
='' opsys
='' unported
=no
2525 case "${canonical}" in
2530 case "${canonical}" in
2531 alpha
*-*-freebsd*) machine
=alpha
;;
2532 arm
*-*-freebsd*) machine
=arm
;;
2533 ia64-
*-freebsd*) machine
=ia64
;;
2534 sparc-
*-freebsd*) machine
=sparc
;;
2535 sparc64-
*-freebsd*) machine
=sparc
;;
2536 powerpc-
*-freebsd*) machine
=macppc
;;
2537 i
[3456]86-*-freebsd*) machine
=intel386
;;
2538 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2542 ## FreeBSD kernel + glibc based userland
2545 case "${canonical}" in
2546 alpha
*-*-kfreebsd*) machine
=alpha
;;
2547 ia64-
*-kfreebsd*) machine
=ia64
;;
2548 sparc-
*-kfreebsd*) machine
=sparc
;;
2549 sparc64-
*-kfreebsd*) machine
=sparc
;;
2550 powerpc-
*-kfreebsd*) machine
=macppc
;;
2551 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2552 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2559 if test -f /usr
/lib
/crti.o
; then
2561 cat >>confdefs.h
<<\_ACEOF
2562 #define HAVE_CRTIN /**/
2567 case "${canonical}" in
2568 alpha
*-*-netbsd*) machine
=alpha
;;
2569 i
[3456]86-*-netbsd*) machine
=intel386
;;
2570 powerpc-
*-netbsd*) machine
=macppc
;;
2571 sparc
*-*-netbsd*) machine
=sparc
;;
2572 vax-
*-netbsd*) machine
=vax
;;
2573 arm-
*-netbsd*) machine
=arm
;;
2574 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2575 hppa-
*-netbsd*) machine
=hp800
;;
2576 m68k-
*-netbsd*) machine
=m68k
;;
2583 case "${canonical}" in
2584 alpha
*-*-openbsd*) machine
=alpha
;;
2585 arm-
*-openbsd*) machine
=arm
;;
2586 i386-
*-openbsd*) machine
=intel386
;;
2587 powerpc-
*-openbsd*) machine
=macppc
;;
2588 sparc
*-*-openbsd*) machine
=sparc
;;
2589 vax-
*-openbsd*) machine
=vax
;;
2590 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2591 hppa-
*-openbsd*) machine
=hp800
;;
2598 case "${canonical}" in
2599 i
[3456]86-*-lynxos*) machine
=intel386
;;
2600 powerpc-
*-lynxos*) machine
=powerpc
;;
2604 alpha
*-*-linux-gnu* )
2605 machine
=alpha opsys
=gnu-linux
2609 machine
=arm opsys
=gnu-linux
2612 ## Apple Darwin / Mac OS X
2614 case "${canonical}" in
2615 i
[3456]86-* ) machine
=intel386
;;
2616 powerpc-
* ) machine
=macppc
;;
2620 # Define CPP as follows to make autoconf work correctly.
2621 CPP
="${CC-cc} -E -no-cpp-precomp"
2622 # Use fink packages if available.
2623 if test -d /sw
/include
&& test -d /sw
/lib
; then
2624 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2625 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2626 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2630 ## HP 9000 series 700 and 800, running HP/UX
2631 hppa
*-hp-hpux10.2
* )
2632 machine
=hp800 opsys
=hpux10-20
2634 hppa
*-hp-hpux1[1-9]* )
2635 machine
=hp800 opsys
=hpux11
2636 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2639 hppa
*-*-linux-gnu* )
2640 machine
=hp800 opsys
=gnu-linux
2645 machine
=ibms390 opsys
=gnu-linux
2647 s390x-
*-linux-gnu* )
2648 machine
=ibms390x opsys
=gnu-linux
2650 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2651 machine
=ibmrs6000 opsys
=aix4-2
2653 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2654 machine
=ibmrs6000 opsys
=aix4-2
2656 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2657 machine
=ibmrs6000 opsys
=aix4-2
2659 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2660 machine
=ibmrs6000 opsys
=aix4-2
2663 ## Macintosh PowerPC
2664 powerpc
*-*-linux-gnu* )
2665 machine
=macppc opsys
=gnu-linux
2668 ## Silicon Graphics machines
2671 machine
=iris4d opsys
=irix6-5
2672 # Without defining _LANGUAGE_C, things get masked out in the headers
2673 # so that, for instance, grepping for `free' in stdlib.h fails and
2674 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2675 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2676 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2680 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2681 machine
=sparc opsys
=gnu-linux
2685 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2686 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2687 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2688 case "${canonical}" in
2689 i
[3456]86-*-* ) machine
=intel386
;;
2690 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2691 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2692 sparc
* ) machine
=sparc
;;
2695 case "${canonical}" in
2696 *-sunos5.3
* |
*-solaris2.3
* )
2698 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2700 *-sunos5.4
* |
*-solaris2.4
* )
2702 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 *-sunos5.5
* |
*-solaris2.5
* )
2707 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2710 *-sunos5.6
* |
*-solaris2.6
* )
2712 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2715 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2717 emacs_check_sunpro_c
=yes
2718 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2720 *-sunos5* |
*-solaris* )
2722 emacs_check_sunpro_c
=yes
2723 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2726 ## Watch out for a compiler that we know will not work.
2727 case "${canonical}" in
2728 *-solaris* |
*-sunos5* )
2729 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2730 ## /usr/ucb/cc doesn't work;
2731 ## we should find some other compiler that does work.
2742 case "${canonical}" in
2743 *-vms* ) opsys
=vms
;;
2750 machine
=ia64 opsys
=gnu-linux
2753 ## Intel 386 machines where we don't care about the manufacturer
2756 case "${canonical}" in
2757 *-cygwin ) opsys
=cygwin
;;
2758 *-darwin* ) opsys
=darwin
2759 CPP
="${CC-cc} -E -no-cpp-precomp"
2761 *-linux-gnu* ) opsys
=gnu-linux
;;
2762 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2763 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2764 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2765 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2769 ## m68k Linux-based GNU system
2771 machine
=m68k opsys
=gnu-linux
2774 ## Mips Linux-based GNU system
2775 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2776 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2777 machine
=mips opsys
=gnu-linux
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-
*-linux-gnu* )
2782 machine
=amdx86-64 opsys
=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa
*-*-linux-gnu* )
2787 machine
=xtensa opsys
=gnu-linux
2790 ## SuperH Linux-based GNU system
2791 sh
[34]*-*-linux-gnu* )
2792 machine
=sh3 opsys
=gnu-linux
2800 ### If the code above didn't choose an operating system, just choose
2801 ### an operating system based on the configuration name. You really
2802 ### only want to use this when you have no idea what the right
2803 ### operating system is; if you know what operating systems a machine
2804 ### runs, it's cleaner to make it explicit in the case statement
2806 if test x
"${opsys}" = x
; then
2807 case "${canonical}" in
2808 *-gnu* ) opsys
=gnu
;;
2809 *-sysv4.2uw
* ) opsys
=unixware
;;
2810 *-sysv5uw* ) opsys
=unixware
;;
2811 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2812 *-sysv4.1
* |
*-sysvr4.1
* )
2813 NON_GNU_CPP
=/usr
/lib
/cpp
2815 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2816 if [ x
$NON_GNU_CPP = x
]; then
2817 if [ -f /usr
/ccs
/lib
/cpp
]; then
2818 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2820 NON_GNU_CPP
=/lib
/cpp
2824 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2833 if test $unported = yes; then
2834 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2835 Check \`etc/MACHINES' for recognized configuration names." >&5
2836 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2837 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2838 { (exit 1); exit 1; }; }
2841 machfile
="m/${machine}.h"
2842 opsysfile
="s/${opsys}.h"
2845 #### Choose a compiler.
2846 test -n "$CC" && cc_specified
=yes
2848 # Save the value of CFLAGS that the user specified.
2849 SPECIFIED_CFLAGS
="$CFLAGS"
2852 ac_cpp
='$CPP $CPPFLAGS'
2853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC
="$CC" # Let the user override the test.
2867 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir
=.
2872 for ac_exec_ext
in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2895 if test -z "$ac_cv_prog_CC"; then
2897 # Extract the first word of "gcc", so it can be a program name with args.
2898 set dummy gcc
; ac_word
=$2
2899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir
=.
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_ac_ct_CC
="gcc"
2915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927 $as_echo "$ac_ct_CC" >&6; }
2929 { $as_echo "$as_me:$LINENO: result: no" >&5
2930 $as_echo "no" >&6; }
2933 if test "x$ac_ct_CC" = x
; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned
=yes ;;
2948 if test -z "$CC"; then
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2951 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC
="$CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2989 if test -z "$CC"; then
2990 # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc
; ac_word
=$2
2992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC
="$CC" # Let the user override the test.
3001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir
=.
3006 for ac_exec_ext
in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3009 ac_prog_rejected
=yes
3013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test $ac_prog_rejected = yes; then
3021 # We found a bogon in the path, so make sure we never use it.
3022 set dummy
$ac_cv_prog_CC
3024 if test $# != 0; then
3025 # We chose a different compiler from the bogus one.
3026 # However, it has the same basename, so the bogon will be chosen
3027 # first if we set CC to just the basename; use the full file name.
3029 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3039 { $as_echo "$as_me:$LINENO: result: no" >&5
3040 $as_echo "no" >&6; }
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 for ac_prog
in cl.exe
3049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC
="$CC" # Let the user override the test.
3059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir
=.
3064 for ac_exec_ext
in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:$LINENO: result: no" >&5
3082 $as_echo "no" >&6; }
3086 test -n "$CC" && break
3089 if test -z "$CC"; then
3091 for ac_prog
in cl.exe
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy
$ac_prog; ac_word
=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir
=.
3108 for ac_exec_ext
in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC
="$ac_prog"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$ac_ct_CC" && break
3133 if test "x$ac_ct_CC" = x
; then
3136 case $cross_compiling:$ac_tool_warned in
3138 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned
=yes ;;
3149 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }; }
3157 # Provide some information about the compiler.
3158 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3161 { (ac_try
="$ac_compiler --version >&5"
3163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compiler --version >&5") 2>&5
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }
3172 { (ac_try="$ac_compiler -v >&5"
3174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3175 *) ac_try_echo
=$ac_try;;
3177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3178 $as_echo "$ac_try_echo") >&5
3179 (eval "$ac_compiler -v >&5") 2>&5
3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183 { (ac_try
="$ac_compiler -V >&5"
3185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compiler -V >&5") 2>&5
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3195 cat >conftest.$ac_ext <<_ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3210 ac_clean_files_save=$ac_clean_files
3211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3215 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3216 $as_echo_n "checking for C compiler default output file name... " >&6; }
3217 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3219 # The possible output files:
3220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223 for ac_file in $ac_files
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3232 if { (ac_try="$ac_link_default"
3234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3235 *) ac_try_echo
=$ac_try;;
3237 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3238 $as_echo "$ac_try_echo") >&5
3239 (eval "$ac_link_default") 2>&5
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; then
3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3246 # so that the user can short-circuit this test for compilers unknown to
3248 for ac_file
in $ac_files ''
3250 test -f "$ac_file" ||
continue
3252 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3255 # We found the default executable, but exeext='' is most
3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3261 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 # We set ac_cv_exeext here because the later test for it is not
3264 # safe: cross compilers may not add the suffix if given an `-o'
3265 # argument, so we may need to know it at that point already.
3266 # Even if this section looks crufty: it has the advantage of
3273 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3279 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3280 $as_echo "$ac_file" >&6; }
3281 if test -z "$ac_file"; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.
$ac_ext >&5
3285 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3288 See \`config.log' for more details." >&5
3289 $as_echo "$as_me: error: C compiler cannot create executables
3290 See \`config.log' for more details." >&2;}
3291 { (exit 77); exit 77; }; }; }
3294 ac_exeext
=$ac_cv_exeext
3296 # Check that the compiler produces executables we can run. If not, either
3297 # the compiler is broken, or we cross compile.
3298 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3301 # If not cross compiling, check that we can run a simple program.
3302 if test "$cross_compiling" != yes; then
3303 if { ac_try
='./$ac_file'
3304 { (case "(($ac_try" in
3305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_try") 2>&5
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3316 if test "$cross_compiling" = maybe; then
3319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
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: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details." >&5
3374 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details." >&2;}
3376 { (exit 1); exit 1; }; }; }
3379 rm -f conftest
$ac_cv_exeext
3380 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3381 $as_echo "$ac_cv_exeext" >&6; }
3383 rm -f conftest.
$ac_ext
3384 EXEEXT
=$ac_cv_exeext
3386 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3387 $as_echo_n "checking for suffix of object files... " >&6; }
3388 if test "${ac_cv_objext+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3391 cat >conftest.
$ac_ext <<_ACEOF
3394 cat confdefs.h
>>conftest.
$ac_ext
3395 cat >>conftest.
$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3406 rm -f conftest.o conftest.obj
3407 if { (ac_try
="$ac_compile"
3409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compile") 2>&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3433 See \
`config.log' for more details." >&5
3434 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3435 See \`config.log
' for more details." >&2;}
3436 { (exit 1); exit 1; }; }; }
3439 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3441 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3442 $as_echo "$ac_cv_objext" >&6; }
3443 OBJEXT=$ac_cv_objext
3445 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3447 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3468 rm -f conftest.$ac_objext
3469 if { (ac_try="$ac_compile"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475 $as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^
*+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's
/^
/|
/' conftest.$ac_ext >&5
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3498 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500 if test $ac_compiler_gnu = yes; then
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3509 if test "${ac_cv_prog_cc_g+set}" = set; then
3510 $as_echo_n "(cached) " >&6
3512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3516 cat >conftest.$ac_ext <<_ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3541 grep -v '^
*+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's
/^
/|
/' conftest.$ac_ext >&5
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3577 $as_echo "$ac_try_echo") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^
*+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's
/^
/|
/' conftest.$ac_ext >&5
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^
*+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's
/^
/|
/' conftest.$ac_ext >&5
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3646 $as_echo "$ac_cv_prog_cc_g" >&6; }
3647 if test "$ac_test_CFLAGS" = set; then
3648 CFLAGS=$ac_save_CFLAGS
3649 elif test $ac_cv_prog_cc_g = yes; then
3650 if test "$GCC" = yes; then
3656 if test "$GCC" = yes; then
3662 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3663 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3664 if test "${ac_cv_prog_cc_c89+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3667 ac_cv_prog_cc_c89=no
3669 cat >conftest.$ac_ext <<_ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3677 #include <sys/types.h>
3678 #include <sys/stat.h>
3679 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3680 struct buf
{ int x
; };
3681 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3682 static char
*e
(p
, i
)
3688 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3693 s
= g
(p
, va_arg
(v
,int
));
3698 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3699 function prototypes and stuff
, but not
'\xHH' hex character constants.
3700 These don
't provoke an error unfortunately, instead are silently treated
3701 as 'x
'. The following induces an error, until -std is added to get
3702 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3703 array size at least. It's necessary to
write '\x00'==0 to get something
3704 that
's true only with -std. */
3705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3708 inside strings and character constants. */
3710 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3712 int test (int i, double x);
3713 struct s1 {int (*f) (int a);};
3714 struct s2 {int (*f) (double a);};
3715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 CC="$ac_save_CC $ac_arg"
3730 rm -f conftest.$ac_objext
3731 if { (ac_try="$ac_compile"
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3737 $as_echo "$ac_try_echo") >&5
3738 (eval "$ac_compile") 2>conftest.er1
3740 grep -v '^
*+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } && {
3745 test -z "$ac_c_werror_flag" ||
3746 test ! -s conftest.err
3747 } && test -s conftest.$ac_objext; then
3748 ac_cv_prog_cc_c89=$ac_arg
3750 $as_echo "$as_me: failed program was:" >&5
3751 sed 's
/^
/|
/' conftest.$ac_ext >&5
3756 rm -f core conftest.err conftest.$ac_objext
3757 test "x$ac_cv_prog_cc_c89" != "xno" && break
3759 rm -f conftest.$ac_ext
3764 case "x$ac_cv_prog_cc_c89" in
3766 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3769 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3772 CC="$CC $ac_cv_prog_cc_c89"
3773 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3781 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 # On Suns, sometimes $CPP names a directory.
3786 if test -n "$CPP" && test -d "$CPP"; then
3790 ## If not using gcc, and on Solaris, and no CPP specified, see if
3791 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3792 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3793 test x"$CPP" = x; then
3794 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3795 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3797 if test "${emacs_cv_sunpro_c+set}" = set; then
3798 $as_echo_n "(cached) " >&6
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (ac_try="$ac_link"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825 $as_echo "$ac_try_echo") >&5
3826 (eval "$ac_link") 2>conftest.er1
3828 grep -v '^
*+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest$ac_exeext && {
3836 test "$cross_compiling" = yes ||
3837 $as_test_x conftest$ac_exeext
3839 emacs_cv_sunpro_c=yes
3841 $as_echo "$as_me: failed program was:" >&5
3842 sed 's
/^
/|
/' conftest.$ac_ext >&5
3844 emacs_cv_sunpro_c=no
3847 rm -rf conftest.dSYM
3848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3849 conftest$ac_exeext conftest.$ac_ext
3852 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3853 $as_echo "$emacs_cv_sunpro_c" >&6; }
3855 if test x"$emacs_cv_sunpro_c" = xyes; then
3856 NON_GNU_CPP="$CC -E -Xs"
3860 #### Some systems specify a CPP to use unless we are using GCC.
3861 #### Now that we know whether we are using GCC, we can decide whether
3862 #### to use that one.
3863 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3868 #### Some systems specify a CC to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3872 test x$cc_specified != xyes
3877 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3879 CC="$CC $GCC_TEST_OPTIONS"
3882 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3884 CC="$CC $NON_GCC_TEST_OPTIONS"
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3890 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3898 if test -z "$CPP"; then
3899 if test "${ac_cv_prog_CPP+set}" = set; then
3900 $as_echo_n "(cached) " >&6
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3906 for ac_c_preproc_warn_flag in '' yes
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser
,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3921 # include <limits.h>
3923 # include <assert.h>
3927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Broken: fails on valid input.
3953 rm -f conftest.err conftest.$ac_ext
3955 # OK, works on sane cases. Now check whether nonexistent headers
3956 # can be detected and how.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3965 if { (ac_try="$ac_cpp conftest.$ac_ext"
3967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3968 *) ac_try_echo
=$ac_try;;
3970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3974 grep -v '^ *+' conftest.er1
>conftest.err
3976 cat conftest.err
>&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } >/dev
/null
&& {
3979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3982 # Broken: success on invalid input.
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.
$ac_ext >&5
3988 # Passes both tests.
3993 rm -f conftest.err conftest.
$ac_ext
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.err conftest.
$ac_ext
3998 if $ac_preproc_ok; then
4010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4011 $as_echo "$CPP" >&6; }
4013 for ac_c_preproc_warn_flag
in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat >conftest.
$ac_ext <<_ACEOF
4024 cat confdefs.h
>>conftest.
$ac_ext
4025 cat >>conftest.
$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4072 if { (ac_try="$ac_cpp conftest.$ac_ext"
4074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4075 *) ac_try_echo
=$ac_try;;
4077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev
/null
&& {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4089 # Broken: success on invalid input.
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.
$ac_ext >&5
4095 # Passes both tests.
4100 rm -f conftest.err conftest.
$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.
$ac_ext
4105 if $ac_preproc_ok; then
4108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4111 See \`config.log' for more details." >&5
4112 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&2;}
4114 { (exit 1); exit 1; }; }; }
4118 ac_cpp
='$CPP $CPPFLAGS'
4119 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4124 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4125 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4126 if test "${ac_cv_path_GREP+set}" = set; then
4127 $as_echo_n "(cached) " >&6
4129 if test -z "$GREP"; then
4130 ac_path_GREP_found
=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4133 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4136 test -z "$as_dir" && as_dir
=.
4137 for ac_prog
in grep ggrep
; do
4138 for ac_exec_ext
in '' $ac_executable_extensions; do
4139 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4141 # Check for GNU ac_path_GREP and select it if it is found.
4142 # Check for GNU $ac_path_GREP
4143 case `"$ac_path_GREP" --version 2>&1` in
4145 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4148 $as_echo_n 0123456789 >"conftest.in"
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'GREP' >> "conftest.nl"
4155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4156 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4157 ac_count
=`expr $ac_count + 1`
4158 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_GREP
="$ac_path_GREP"
4161 ac_path_GREP_max
=$ac_count
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4166 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4169 $ac_path_GREP_found && break 3
4174 if test -z "$ac_cv_path_GREP"; then
4175 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177 { (exit 1); exit 1; }; }
4180 ac_cv_path_GREP
=$GREP
4184 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP
="$ac_cv_path_GREP"
4189 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if test "${ac_cv_path_EGREP+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4194 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4195 then ac_cv_path_EGREP
="$GREP -E"
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found
=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4201 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4204 test -z "$as_dir" && as_dir
=.
4205 for ac_prog
in egrep; do
4206 for ac_exec_ext
in '' $ac_executable_extensions; do
4207 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210 # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4213 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4216 $as_echo_n 0123456789 >"conftest.in"
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'EGREP' >> "conftest.nl"
4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4224 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4225 ac_count
=`expr $ac_count + 1`
4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_EGREP
="$ac_path_EGREP"
4229 ac_path_EGREP_max
=$ac_count
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4234 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4237 $ac_path_EGREP_found && break 3
4242 if test -z "$ac_cv_path_EGREP"; then
4243 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4244 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4245 { (exit 1); exit 1; }; }
4248 ac_cv_path_EGREP
=$EGREP
4253 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4254 $as_echo "$ac_cv_path_EGREP" >&6; }
4255 EGREP
="$ac_cv_path_EGREP"
4258 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259 $as_echo_n "checking for ANSI C header files... " >&6; }
4260 if test "${ac_cv_header_stdc+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4282 rm -f conftest.
$ac_objext
4283 if { (ac_try
="$ac_compile"
4285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4292 grep -v '^ *+' conftest.er1 >conftest.err
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 ac_cv_header_stdc=yes
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4325 ac_cv_header_stdc=no
4331 if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4346 ac_cv_header_stdc=no
4352 if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4365 #if ((' ' & 0x0FF) == 0x020)
4366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4369 # define ISLOWER(c) \
4370 (('a' <= (c) && (c) <= 'i') \
4371 || ('j' <= (c) && (c) <= 'r') \
4372 || ('s' <= (c) && (c) <= 'z'))
4373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4381 for (i = 0; i < 256; i++)
4382 if (XOR (islower (i), ISLOWER (i))
4383 || toupper (i) != TOUPPER (i))
4388 rm -f conftest$ac_exeext
4389 if { (ac_try="$ac_link"
4391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4392 *) ac_try_echo
=$ac_try;;
4394 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4395 $as_echo "$ac_try_echo") >&5
4396 (eval "$ac_link") 2>&5
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4400 { (case "(($ac_try" in
4401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4405 $as_echo "$ac_try_echo") >&5
4406 (eval "$ac_try") 2>&5
4408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4412 $as_echo "$as_me: program exited with status $ac_status" >&5
4413 $as_echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4417 ac_cv_header_stdc=no
4419 rm -rf conftest.dSYM
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4427 $as_echo "$ac_cv_header_stdc" >&6; }
4428 if test $ac_cv_header_stdc = yes; then
4430 cat >>confdefs.h <<\_ACEOF
4431 #define STDC_HEADERS 1
4436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4447 inttypes.h stdint.h unistd.h
4449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4450 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4451 $as_echo_n "checking for $ac_header... " >&6; }
4452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4453 $as_echo_n "(cached) " >&6
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4463 #include <$ac_header>
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4469 *) ac_try_echo
=$ac_try;;
4471 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4472 $as_echo "$ac_try_echo") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1
>conftest.err
4477 cat conftest.err
>&5
4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.
$ac_objext; then
4483 eval "$as_ac_Header=yes"
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 eval "$as_ac_Header=no"
4491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4493 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4494 $as_echo "$as_val"'`
4495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4496 $as_echo "$ac_res" >&6; }
4497 as_val
=`eval 'as_val=${'$as_ac_Header'}
4498 $as_echo "$as_val"'`
4499 if test "x$as_val" = x
""yes; then
4500 cat >>confdefs.h
<<_ACEOF
4501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4510 if test "${ac_cv_header_minix_config_h+set}" = set; then
4511 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4512 $as_echo_n "checking for minix/config.h... " >&6; }
4513 if test "${ac_cv_header_minix_config_h+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4517 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4519 # Is the header compilable?
4520 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4521 $as_echo_n "checking minix/config.h usability... " >&6; }
4522 cat >conftest.
$ac_ext <<_ACEOF
4525 cat confdefs.h
>>conftest.
$ac_ext
4526 cat >>conftest.
$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 #include <minix/config.h>
4531 rm -f conftest.
$ac_objext
4532 if { (ac_try
="$ac_compile"
4534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538 $as_echo "$ac_try_echo") >&5
4539 (eval "$ac_compile") 2>conftest.er1
4541 grep -v '^ *+' conftest.er1 >conftest.err
4543 cat conftest.err >&5
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && {
4546 test -z "$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4548 } && test -s conftest.$ac_objext; then
4549 ac_header_compiler=yes
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4554 ac_header_compiler=no
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4559 $as_echo "$ac_header_compiler" >&6; }
4561 # Is the header present?
4562 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4563 $as_echo_n "checking minix/config.h presence... " >&6; }
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <minix/config.h>
4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4575 *) ac_try_echo
=$ac_try;;
4577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1
>conftest.err
4583 cat conftest.err
>&5
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev
/null
&& {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4589 ac_header_preproc
=yes
4591 $as_echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.
$ac_ext >&5
4594 ac_header_preproc
=no
4597 rm -f conftest.err conftest.
$ac_ext
4598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599 $as_echo "$ac_header_preproc" >&6; }
4601 # So? What about this header?
4602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4604 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4605 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4607 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4608 ac_header_preproc
=yes
4611 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4612 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4613 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4614 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4615 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4616 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4617 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4618 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4619 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4620 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4621 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4622 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4626 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4627 $as_echo_n "checking for minix/config.h... " >&6; }
4628 if test "${ac_cv_header_minix_config_h+set}" = set; then
4629 $as_echo_n "(cached) " >&6
4631 ac_cv_header_minix_config_h
=$ac_header_preproc
4633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4634 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4637 if test "x$ac_cv_header_minix_config_h" = x
""yes; then
4644 if test "$MINIX" = yes; then
4646 cat >>confdefs.h
<<\_ACEOF
4647 #define _POSIX_SOURCE 1
4651 cat >>confdefs.h
<<\_ACEOF
4652 #define _POSIX_1_SOURCE 2
4656 cat >>confdefs.h
<<\_ACEOF
4664 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 cat >conftest.
$ac_ext <<_ACEOF
4672 cat confdefs.h
>>conftest.
$ac_ext
4673 cat >>conftest.
$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4676 # define __EXTENSIONS__ 1
4677 $ac_includes_default
4686 rm -f conftest.
$ac_objext
4687 if { (ac_try
="$ac_compile"
4689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694 (eval "$ac_compile") 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest.$ac_objext; then
4704 ac_cv_safe_to_define___extensions__=yes
4706 $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 ac_cv_safe_to_define___extensions__=no
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718 #define __EXTENSIONS__ 1
4721 cat >>confdefs.h <<\_ACEOF
4722 #define _ALL_SOURCE 1
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _GNU_SOURCE 1
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_PTHREAD_SEMANTICS 1
4733 cat >>confdefs.h <<\_ACEOF
4734 #define _TANDEM_SOURCE 1
4739 ### Use -Wno-pointer-sign if the compiler supports it
4740 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4741 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4742 SAVE_CFLAGS="$CFLAGS"
4743 CFLAGS="$CFLAGS -Wno-pointer-sign"
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4759 rm -f conftest.$ac_objext
4760 if { (ac_try="$ac_compile"
4762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4763 *) ac_try_echo
=$ac_try;;
4765 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4766 $as_echo "$ac_try_echo") >&5
4767 (eval "$ac_compile") 2>conftest.er1
4769 grep -v '^ *+' conftest.er1
>conftest.err
4771 cat conftest.err
>&5
4772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.
$ac_objext; then
4779 $as_echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.
$ac_ext >&5
4785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 if test $has_option = yes; then
4787 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4789 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4790 $as_echo "$has_option" >&6; }
4791 CFLAGS
="$SAVE_CFLAGS"
4795 #### Some other nice autoconf tests.
4797 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4798 $as_echo_n "checking whether ln -s works... " >&6; }
4800 if test "$LN_S" = "ln -s"; then
4801 { $as_echo "$as_me:$LINENO: result: yes" >&5
4802 $as_echo "yes" >&6; }
4804 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4805 $as_echo "no, using $LN_S" >&6; }
4809 ac_cpp
='$CPP $CPPFLAGS'
4810 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4813 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4815 # On Suns, sometimes $CPP names a directory.
4816 if test -n "$CPP" && test -d "$CPP"; then
4819 if test -z "$CPP"; then
4820 if test "${ac_cv_prog_CPP+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4823 # Double quotes because CPP needs to be expanded
4824 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4827 for ac_c_preproc_warn_flag
in '' yes
4829 # Use a header file that comes with gcc, so configuring glibc
4830 # with a fresh cross-compiler works.
4831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4832 # <limits.h> exists even on freestanding compilers.
4833 # On the NeXT, cc -E runs the code through the compiler's parser,
4834 # not just through cpp. "Syntax error" is here to catch this case.
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4842 # include <limits.h>
4844 # include <assert.h>
4848 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null && {
4862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 # Broken: fails on valid input.
4874 rm -f conftest.err conftest.$ac_ext
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat >conftest.$ac_ext <<_ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <ac_nonexistent.h>
4886 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4889 *) ac_try_echo
=$ac_try;;
4891 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1
>conftest.err
4897 cat conftest.err
>&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev
/null
&& {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4903 # Broken: success on invalid input.
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.
$ac_ext >&5
4909 # Passes both tests.
4914 rm -f conftest.err conftest.
$ac_ext
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.
$ac_ext
4919 if $ac_preproc_ok; then
4931 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4932 $as_echo "$CPP" >&6; }
4934 for ac_c_preproc_warn_flag
in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 # include <limits.h>
4951 # include <assert.h>
4955 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4961 $as_echo "$ac_try_echo") >&5
4962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null && {
4969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 # Broken: fails on valid input.
4981 rm -f conftest.err conftest.$ac_ext
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 #include <ac_nonexistent.h>
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4996 *) ac_try_echo
=$ac_try;;
4998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev
/null
&& {
5007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5010 # Broken: success on invalid input.
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.
$ac_ext >&5
5016 # Passes both tests.
5021 rm -f conftest.err conftest.
$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.
$ac_ext
5026 if $ac_preproc_ok; then
5029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&5
5033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." >&2;}
5035 { (exit 1); exit 1; }; }; }
5039 ac_cpp
='$CPP $CPPFLAGS'
5040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5044 # Find a good install program. We prefer a C program (faster),
5045 # so one script is as good as another. But avoid the broken or
5046 # incompatible versions:
5047 # SysV /etc/install, /usr/sbin/install
5048 # SunOS /usr/etc/install
5049 # IRIX /sbin/install
5051 # AmigaOS /C/install, which installs bootblocks on floppy discs
5052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5055 # OS/2's system install, which has a completely different semantic
5056 # ./install, which can be erroneously created by make from ./install.sh.
5057 # Reject install programs that cannot install multiple files.
5058 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5059 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5060 if test -z "$INSTALL"; then
5061 if test "${ac_cv_path_install+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 # Account for people who put trailing slashes in PATH elements.
5071 .
/ | .
// |
/cC
/* | \
5072 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5073 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5076 # OSF1 and SCO ODT 3.0 have their own names for install.
5077 # Don't use installbsd from OSF since it installs stuff as root
5079 for ac_prog
in ginstall scoinst
install; do
5080 for ac_exec_ext
in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5082 if test $ac_prog = install &&
5083 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5084 # AIX install. It has an incompatible calling convention.
5086 elif test $ac_prog = install &&
5087 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5088 # program-specific install script used by HP pwplus--don't use.
5091 rm -rf conftest.one conftest.two conftest.dir
5092 echo one
> conftest.one
5093 echo two
> conftest.two
5095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5096 test -s conftest.one
&& test -s conftest.two
&&
5097 test -s conftest.dir
/conftest.one
&&
5098 test -s conftest.dir
/conftest.two
5100 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5113 rm -rf conftest.one conftest.two conftest.dir
5116 if test "${ac_cv_path_install+set}" = set; then
5117 INSTALL
=$ac_cv_path_install
5119 # As a last resort, use the slow shell script. Don't cache a
5120 # value for INSTALL within a source directory, because that will
5121 # break other packages using the cache if that directory is
5122 # removed, or if the value is a relative name.
5123 INSTALL
=$ac_install_sh
5126 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5127 $as_echo "$INSTALL" >&6; }
5129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130 # It thinks the first close brace ends the variable substitution.
5131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5135 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5137 if test "x$RANLIB" = x
; then
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5140 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_RANLIB+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$RANLIB"; then
5147 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 RANLIB
=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 $as_echo "$RANLIB" >&6; }
5171 { $as_echo "$as_me:$LINENO: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB
=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib
; ac_word
=$2
5181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 $as_echo "$ac_ct_RANLIB" >&6; }
5211 { $as_echo "$as_me:$LINENO: result: no" >&5
5212 $as_echo "no" >&6; }
5215 if test "x$ac_ct_RANLIB" = x
; then
5218 case $cross_compiling:$ac_tool_warned in
5220 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned
=yes ;;
5224 RANLIB
=$ac_ct_RANLIB
5227 RANLIB
="$ac_cv_prog_RANLIB"
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info
; ac_word
=$2
5233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5236 $as_echo_n "(cached) " >&6
5238 case $INSTALL_INFO in
5240 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir
=.
5248 for ac_exec_ext
in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5262 if test -n "$INSTALL_INFO"; then
5263 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5264 $as_echo "$INSTALL_INFO" >&6; }
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5271 # Extract the first word of "install-info", so it can be a program name with args.
5272 set dummy install-info
; ac_word
=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5278 case $INSTALL_INFO in
5280 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5284 for as_dir
in /usr
/sbin
5287 test -z "$as_dir" && as_dir
=.
5288 for ac_exec_ext
in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5302 if test -n "$INSTALL_INFO"; then
5303 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5304 $as_echo "$INSTALL_INFO" >&6; }
5306 { $as_echo "$as_me:$LINENO: result: no" >&5
5307 $as_echo "no" >&6; }
5311 # Extract the first word of "install-info", so it can be a program name with args.
5312 set dummy install-info
; ac_word
=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5318 case $INSTALL_INFO in
5320 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir
=.
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5342 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5343 if test -n "$INSTALL_INFO"; then
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5345 $as_echo "$INSTALL_INFO" >&6; }
5347 { $as_echo "$as_me:$LINENO: result: no" >&5
5348 $as_echo "no" >&6; }
5352 # Extract the first word of "gzip", so it can be a program name with args.
5353 set dummy
gzip; ac_word
=$2
5354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5361 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir
=.
5369 for ac_exec_ext
in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5383 if test -n "$GZIP_PROG"; then
5384 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5385 $as_echo "$GZIP_PROG" >&6; }
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5394 ## Need makeinfo >= 4.6 (?) to build the manuals.
5395 # Extract the first word of "makeinfo", so it can be a program name with args.
5396 set dummy makeinfo
; ac_word
=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5404 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir
=.
5412 for ac_exec_ext
in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5426 MAKEINFO
=$ac_cv_path_MAKEINFO
5427 if test -n "$MAKEINFO"; then
5428 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5429 $as_echo "$MAKEINFO" >&6; }
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432 $as_echo "no" >&6; }
5436 if test "$MAKEINFO" != "no" && \
5437 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
5441 ## Makeinfo is unusual. For a released Emacs, the manuals are
5442 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5443 ## therefore in the category of "special tools" not normally required, which
5444 ## configure does not have to check for (eg autoconf itself).
5445 ## In a CVS checkout on the other hand, the manuals are not included.
5446 ## So makeinfo is a requirement to build from CVS, and configure
5447 ## should test for it as it does for any other build requirement.
5448 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5449 ## with pre-built manuals, from a CVS checkout.
5450 if test "$MAKEINFO" = "no"; then
5451 if test "x${with_makeinfo}" = "xno"; then
5453 elif ! test -e $srcdir/info
/emacs
; then
5454 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5455 source tree does not seem to have pre-built manuals in the \`info' directory.
5456 Either install a suitable version of makeinfo, or re-run configure
5457 with the \`--without-makeinfo' option to build without the manuals. " >&5
5458 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5459 source tree does not seem to have pre-built manuals in the \`info' directory.
5460 Either install a suitable version of makeinfo, or re-run configure
5461 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5462 { (exit 1); exit 1; }; }
5467 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5469 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5472 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5474 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5478 late_LDFLAGS
=$LDFLAGS
5479 if test "$GCC" = yes; then
5480 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5482 LDFLAGS
="$LDFLAGS -znocombreloc"
5485 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5486 $as_echo_n "checking for -znocombreloc... " >&6; }
5487 cat >conftest.
$ac_ext <<_ACEOF
5490 rm -f conftest.
$ac_objext conftest
$ac_exeext
5491 if { (ac_try
="$ac_link"
5493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_link") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest$ac_exeext && {
5508 test "$cross_compiling" = yes ||
5509 $as_test_x conftest$ac_exeext
5511 { $as_echo "$as_me:$LINENO: result: yes" >&5
5512 $as_echo "yes" >&6; }
5514 $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 LDFLAGS=$late_LDFLAGS
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519 $as_echo "no" >&6; }
5522 rm -rf conftest.dSYM
5523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5524 conftest$ac_exeext conftest.$ac_ext
5526 #### Extract some information from the operating system and machine files.
5528 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5529 - which libraries the lib-src programs will want, and
5530 - whether the GNU malloc routines are usable..." >&5
5531 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5532 - which libraries the lib-src programs will want, and
5533 - whether the GNU malloc routines are usable..." >&6;}
5535 ### First figure out CFLAGS (which we use for running the compiler here)
5536 ### and REAL_CFLAGS (which we use for real compilation).
5537 ### The two are the same except on a few systems, where they are made
5538 ### different to work around various lossages. For example,
5539 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5540 ### as implying static linking.
5542 ### If the CFLAGS env var is specified, we use that value
5543 ### instead of the default.
5545 ### It's not important that this name contain the PID; you can't run
5546 ### two configures in the same directory and have anything work
5548 tempcname="conftest.c"
5551 #include "'${srcdir}'/src/'${opsysfile}'"
5552 #include "'${srcdir}'/src/'${machfile}'"
5553 #ifndef LIBS_MACHINE
5554 #define LIBS_MACHINE
5559 #ifndef C_SWITCH_SYSTEM
5560 #define C_SWITCH_SYSTEM
5562 #ifndef C_SWITCH_MACHINE
5563 #define C_SWITCH_MACHINE
5565 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5566 configure___ c_switch_system=C_SWITCH_SYSTEM
5567 configure___ c_switch_machine=C_SWITCH_MACHINE
5570 #define LIB_X11_LIB -lX11
5573 #ifndef LIBX11_SYSTEM
5574 #define LIBX11_SYSTEM
5576 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5579 configure___ unexec=UNEXEC
5581 configure___ unexec=unexec.o
5584 #ifdef SYSTEM_MALLOC
5585 configure___ system_malloc=yes
5587 configure___ system_malloc=no
5590 #ifdef USE_MMAP_FOR_BUFFERS
5591 configure___ use_mmap_for_buffers=yes
5593 configure___ use_mmap_for_buffers=no
5596 #ifndef C_DEBUG_SWITCH
5597 #define C_DEBUG_SWITCH -g
5600 #ifndef C_OPTIMIZE_SWITCH
5602 #define C_OPTIMIZE_SWITCH -O2
5604 #define C_OPTIMIZE_SWITCH -O
5608 #ifndef C_WARNINGS_SWITCH
5609 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5612 #ifndef LD_SWITCH_MACHINE
5613 #define LD_SWITCH_MACHINE
5616 #ifndef LD_SWITCH_SYSTEM
5617 #define LD_SWITCH_SYSTEM
5620 #ifndef LD_SWITCH_X_SITE_AUX
5621 #define LD_SWITCH_X_SITE_AUX
5624 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5625 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5627 #ifdef THIS_IS_CONFIGURE
5629 /* Get the CFLAGS for tests in configure. */
5631 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5633 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5636 #else /* not THIS_IS_CONFIGURE */
5638 /* Get the CFLAGS for real compilation. */
5640 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5642 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5645 #endif /* not THIS_IS_CONFIGURE */
5648 # The value of CPP is a quoted variable reference, so we need to do this
5649 # to get its actual value...
5650 CPP=`eval "echo $CPP"`
5651 eval `${CPP} -Isrc ${tempcname} \
5652 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5653 if test "x$SPECIFIED_CFLAGS" = x; then
5654 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5655 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5657 REAL_CFLAGS="$CFLAGS"
5661 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5663 ### Make sure subsequent tests use flags consistent with the build flags.
5665 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5666 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5668 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5673 # Check whether --enable-largefile was given.
5674 if test "${enable_largefile+set}" = set; then
5675 enableval=$enable_largefile;
5678 if test "$enable_largefile" != no; then
5680 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5681 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5682 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5685 ac_cv_sys_largefile_CC=no
5686 if test "$GCC" != yes; then
5689 # IRIX 6.2 and later do not support large files by default,
5690 # so use the C compiler's -n32 option if that helps.
5691 cat >conftest.$ac_ext <<_ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5718 *) ac_try_echo
=$ac_try;;
5720 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5721 $as_echo "$ac_try_echo") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1
>conftest.err
5726 cat conftest.err
>&5
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.
$ac_objext; then
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5740 rm -f core conftest.err conftest.
$ac_objext
5742 rm -f conftest.
$ac_objext
5743 if { (ac_try
="$ac_compile"
5745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750 (eval "$ac_compile") 2>conftest.er1
5752 grep -v '^ *+' conftest.er1 >conftest.err
5754 cat conftest.err >&5
5755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
5760 ac_cv_sys_largefile_CC=' -n32'; break
5762 $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5768 rm -f core conftest.err conftest.$ac_objext
5772 rm -f conftest.$ac_ext
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5776 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5777 if test "$ac_cv_sys_largefile_CC" != no; then
5778 CC=$CC$ac_cv_sys_largefile_CC
5781 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5782 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5783 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5784 $as_echo_n "(cached) " >&6
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5810 rm -f conftest.$ac_objext
5811 if { (ac_try="$ac_compile"
5813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5814 *) ac_try_echo
=$ac_try;;
5816 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5817 $as_echo "$ac_try_echo") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.
$ac_objext; then
5828 ac_cv_sys_file_offset_bits
=no
; break
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #define _FILE_OFFSET_BITS 64
5844 #include <sys/types.h>
5845 /* Check that off_t can represent 2**63 - 1 correctly.
5846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5847 since some C++ compilers masquerading as C compilers
5848 incorrectly reject 9223372036854775807. */
5849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5851 && LARGE_OFF_T % 2147483647 == 1)
5861 rm -f conftest.
$ac_objext
5862 if { (ac_try
="$ac_compile"
5864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_sys_file_offset_bits=64; break
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_sys_file_offset_bits=unknown
5892 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5893 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5894 case $ac_cv_sys_file_offset_bits in #(
5897 cat >>confdefs.h <<_ACEOF
5898 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5903 if test $ac_cv_sys_file_offset_bits = unknown; then
5904 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5905 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5906 if test "${ac_cv_sys_large_files+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <sys/types.h>
5917 /* Check that off_t can represent 2**63 - 1 correctly.
5918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5919 since some C++ compilers masquerading as C compilers
5920 incorrectly reject 9223372036854775807. */
5921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5923 && LARGE_OFF_T % 2147483647 == 1)
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5937 *) ac_try_echo
=$ac_try;;
5939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1
>conftest.err
5945 cat conftest.err
>&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.
$ac_objext; then
5951 ac_cv_sys_large_files
=no
; break
5953 $as_echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 cat >conftest.
$ac_ext <<_ACEOF
5963 cat confdefs.h
>>conftest.
$ac_ext
5964 cat >>conftest.
$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #define _LARGE_FILES 1
5967 #include <sys/types.h>
5968 /* Check that off_t can represent 2**63 - 1 correctly.
5969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5970 since some C++ compilers masquerading as C compilers
5971 incorrectly reject 9223372036854775807. */
5972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5974 && LARGE_OFF_T % 2147483647 == 1)
5984 rm -f conftest.
$ac_objext
5985 if { (ac_try
="$ac_compile"
5987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6002 ac_cv_sys_large_files=1; break
6004 $as_echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 ac_cv_sys_large_files=unknown
6015 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6016 $as_echo "$ac_cv_sys_large_files" >&6; }
6017 case $ac_cv_sys_large_files in #(
6020 cat >>confdefs.h <<_ACEOF
6021 #define _LARGE_FILES $ac_cv_sys_large_files
6031 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6032 ### be located in either /usr/lib64 or /usr/lib.
6033 ### In some rare cases, /usr/lib64 exists but does not contain the
6034 ### relevant files (bug#1287). Hence test for crtn.o.
6035 case "${canonical}" in
6036 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6037 if test -e /usr/lib64/crtn.o; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_LIB64_DIR 1
6049 if test "${with_sound}" != "no"; then
6050 # Sound support for GNU/Linux and the free BSDs.
6054 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 $as_echo_n "checking for $ac_header... " >&6; }
6060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6061 $as_echo_n "(cached) " >&6
6063 ac_res=`eval 'as_val=${'$as_ac_Header'}
6064 $as_echo "$as_val"'`
6065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6066 $as_echo "$ac_res" >&6; }
6068 # Is the header compilable?
6069 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6070 $as_echo_n "checking $ac_header usability... " >&6; }
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6078 #include <$ac_header>
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6084 *) ac_try_echo
=$ac_try;;
6086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1
>conftest.err
6092 cat conftest.err
>&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.
$ac_objext; then
6098 ac_header_compiler
=yes
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 ac_header_compiler
=no
6106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6107 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 $as_echo "$ac_header_compiler" >&6; }
6110 # Is the header present?
6111 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6112 $as_echo_n "checking $ac_header presence... " >&6; }
6113 cat >conftest.
$ac_ext <<_ACEOF
6116 cat confdefs.h
>>conftest.
$ac_ext
6117 cat >>conftest.
$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <$ac_header>
6121 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6138 ac_header_preproc=yes
6140 $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_header_preproc=no
6146 rm -f conftest.err conftest.$ac_ext
6147 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148 $as_echo "$ac_header_preproc" >&6; }
6150 # So? What about this header?
6151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6154 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6157 ac_header_preproc=yes
6160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6161 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6163 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6165 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6167 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6171 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 $as_echo_n "checking for $ac_header... " >&6; }
6177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6178 $as_echo_n "(cached) " >&6
6180 eval "$as_ac_Header=\$ac_header_preproc"
6182 ac_res=`eval 'as_val=${'$as_ac_Header'}
6183 $as_echo "$as_val"'`
6184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6188 as_val=`eval 'as_val=${'$as_ac_Header'}
6189 $as_echo "$as_val"'`
6190 if test "x$as_val" = x""yes; then
6191 cat >>confdefs.h <<_ACEOF
6192 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6199 # Emulation library used on NetBSD.
6200 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6201 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6202 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lossaudio $LIBS"
6207 cat >conftest.$ac_ext <<_ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6214 /* Override any GCC internal prototype to avoid an error.
6215 Use char because int might match the return type of a GCC
6216 builtin and then its argument prototype would still apply. */
6224 return _oss_ioctl ();
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6233 *) ac_try_echo
=$ac_try;;
6235 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6236 $as_echo "$ac_try_echo") >&5
6237 (eval "$ac_link") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1
>conftest.err
6241 cat conftest.err
>&5
6242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest
$ac_exeext && {
6247 test "$cross_compiling" = yes ||
6248 $as_test_x conftest
$ac_exeext
6250 ac_cv_lib_ossaudio__oss_ioctl
=yes
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.
$ac_ext >&5
6255 ac_cv_lib_ossaudio__oss_ioctl
=no
6258 rm -rf conftest.dSYM
6259 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6260 conftest
$ac_exeext conftest.
$ac_ext
6261 LIBS
=$ac_check_lib_save_LIBS
6263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6264 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6265 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x
""yes; then
6274 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6278 # Extract the first word of "pkg-config", so it can be a program name with args.
6279 set dummy pkg-config
; ac_word
=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6287 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir
=.
6295 for ac_exec_ext
in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6309 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6310 if test -n "$PKG_CONFIG"; then
6311 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6312 $as_echo "$PKG_CONFIG" >&6; }
6314 { $as_echo "$as_me:$LINENO: result: no" >&5
6315 $as_echo "no" >&6; }
6320 if test "$PKG_CONFIG" = "no" ; then
6323 PKG_CONFIG_MIN_VERSION
=0.9.0
6324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6325 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6326 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6328 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6329 { $as_echo "$as_me:$LINENO: result: yes" >&5
6330 $as_echo "yes" >&6; }
6333 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6334 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6335 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6336 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6337 $as_echo "$ALSA_CFLAGS" >&6; }
6339 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6340 $as_echo_n "checking ALSA_LIBS... " >&6; }
6341 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6342 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6343 $as_echo "$ALSA_LIBS" >&6; }
6345 { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6349 ## If we have a custom action on failure, don't print errors, but
6350 ## do set a variable so people can do so.
6351 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6358 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6359 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6363 if test $succeeded = yes; then
6369 if test $HAVE_ALSA = yes; then
6370 SAVE_CFLAGS
="$CFLAGS"
6371 SAVE_LDFLAGS
="$LDFLAGS"
6372 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6373 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6374 cat >conftest.
$ac_ext <<_ACEOF
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <asoundlib.h>
6384 snd_lib_error_set_handler (0);
6389 rm -f conftest.
$ac_objext
6390 if { (ac_try
="$ac_compile"
6392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 emacs_alsa_normal=yes
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 emacs_alsa_normal=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 if test "$emacs_alsa_normal" != yes; then
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <alsa/asoundlib.h>
6427 snd_lib_error_set_handler (0);
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6436 *) ac_try_echo
=$ac_try;;
6438 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6439 $as_echo "$ac_try_echo") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6442 grep -v '^ *+' conftest.er1
>conftest.err
6444 cat conftest.err
>&5
6445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.
$ac_objext; then
6450 emacs_alsa_subdir
=yes
6452 $as_echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.
$ac_ext >&5
6455 emacs_alsa_subdir
=no
6458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6459 if test "$emacs_alsa_subdir" != yes; then
6460 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6461 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6462 { (exit 1); exit 1; }; }
6464 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6467 CFLAGS
="$SAVE_CFLAGS"
6468 LDFLAGS
="$SAVE_LDFLAGS"
6469 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6470 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6472 cat >>confdefs.h
<<\_ACEOF
6505 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6506 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6507 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6508 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6511 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6513 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6514 $as_echo_n "checking for $ac_header... " >&6; }
6515 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6516 $as_echo_n "(cached) " >&6
6518 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6519 $as_echo "$as_val"'`
6520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6521 $as_echo "$ac_res" >&6; }
6523 # Is the header compilable?
6524 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 $as_echo_n "checking $ac_header usability... " >&6; }
6526 cat >conftest.
$ac_ext <<_ACEOF
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 $ac_includes_default
6533 #include <$ac_header>
6535 rm -f conftest.
$ac_objext
6536 if { (ac_try
="$ac_compile"
6538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6542 $as_echo "$ac_try_echo") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_header_compiler=yes
6555 $as_echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_header_compiler=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6563 $as_echo "$ac_header_compiler" >&6; }
6565 # Is the header present?
6566 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6567 $as_echo_n "checking $ac_header presence... " >&6; }
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <$ac_header>
6576 if { (ac_try="$ac_cpp conftest.$ac_ext"
6578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6579 *) ac_try_echo
=$ac_try;;
6581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1
>conftest.err
6587 cat conftest.err
>&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } >/dev
/null
&& {
6590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6593 ac_header_preproc
=yes
6595 $as_echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.
$ac_ext >&5
6598 ac_header_preproc
=no
6601 rm -f conftest.err conftest.
$ac_ext
6602 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6603 $as_echo "$ac_header_preproc" >&6; }
6605 # So? What about this header?
6606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6609 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6612 ac_header_preproc
=yes
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6631 $as_echo_n "checking for $ac_header... " >&6; }
6632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6633 $as_echo_n "(cached) " >&6
6635 eval "$as_ac_Header=\$ac_header_preproc"
6637 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6638 $as_echo "$as_val"'`
6639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6640 $as_echo "$ac_res" >&6; }
6643 as_val
=`eval 'as_val=${'$as_ac_Header'}
6644 $as_echo "$as_val"'`
6645 if test "x$as_val" = x
""yes; then
6646 cat >>confdefs.h
<<_ACEOF
6647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6656 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6657 cat >conftest.
$ac_ext <<_ACEOF
6660 cat confdefs.h
>>conftest.
$ac_ext
6661 cat >>conftest.
$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <sys/personality.h>
6667 personality (PER_LINUX32)
6672 rm -f conftest.
$ac_objext
6673 if { (ac_try
="$ac_compile"
6675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6682 grep -v '^ *+' conftest.er1 >conftest.err
6684 cat conftest.err >&5
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 emacs_cv_personality_linux32=yes
6692 $as_echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 emacs_cv_personality_linux32=no
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6700 $as_echo "$emacs_cv_personality_linux32" >&6; }
6702 if test $emacs_cv_personality_linux32 = yes; then
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_PERSONALITY_LINUX32 1
6711 for ac_header in term.h
6713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6715 $as_echo_n "checking for $ac_header... " >&6; }
6716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6717 $as_echo_n "(cached) " >&6
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <$ac_header>
6727 if { (ac_try="$ac_cpp conftest.$ac_ext"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6733 $as_echo "$ac_try_echo") >&5
6734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6736 grep -v '^ *+' conftest.er1
>conftest.err
6738 cat conftest.err
>&5
6739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } >/dev
/null
&& {
6741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6744 eval "$as_ac_Header=yes"
6746 $as_echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.
$ac_ext >&5
6749 eval "$as_ac_Header=no"
6752 rm -f conftest.err conftest.
$ac_ext
6754 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6755 $as_echo "$as_val"'`
6756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6757 $as_echo "$ac_res" >&6; }
6758 as_val
=`eval 'as_val=${'$as_ac_Header'}
6759 $as_echo "$as_val"'`
6760 if test "x$as_val" = x
""yes; then
6761 cat >>confdefs.h
<<_ACEOF
6762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6769 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6770 $as_echo_n "checking for ANSI C header files... " >&6; }
6771 if test "${ac_cv_header_stdc+set}" = set; then
6772 $as_echo_n "(cached) " >&6
6774 cat >conftest.
$ac_ext <<_ACEOF
6777 cat confdefs.h
>>conftest.
$ac_ext
6778 cat >>conftest.
$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6793 rm -f conftest.
$ac_objext
6794 if { (ac_try
="$ac_compile"
6796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6813 $as_echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_cv_header_stdc=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6836 ac_cv_header_stdc=no
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6857 ac_cv_header_stdc=no
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6903 *) ac_try_echo
=$ac_try;;
6905 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6906 $as_echo "$ac_try_echo") >&5
6907 (eval "$ac_link") 2>&5
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917 (eval "$ac_try") 2>&5
6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6923 $as_echo "$as_me: program exited with status $ac_status" >&5
6924 $as_echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_header_stdc=no
6930 rm -rf conftest.dSYM
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6938 $as_echo "$ac_cv_header_stdc" >&6; }
6939 if test $ac_cv_header_stdc = yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define STDC_HEADERS 1
6947 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6948 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6949 if test "${ac_cv_header_time+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6952 cat >conftest.$ac_ext <<_ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6959 #include <sys/time.h>
6965 if ((struct tm *) 0)
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6975 *) ac_try_echo
=$ac_try;;
6977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6981 grep -v '^ *+' conftest.er1
>conftest.err
6983 cat conftest.err
>&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.
$ac_objext; then
6989 ac_cv_header_time
=yes
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.
$ac_ext >&5
6994 ac_cv_header_time
=no
6997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7000 $as_echo "$ac_cv_header_time" >&6; }
7001 if test $ac_cv_header_time = yes; then
7003 cat >>confdefs.h
<<\_ACEOF
7004 #define TIME_WITH_SYS_TIME 1
7009 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7010 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7011 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7012 $as_echo_n "(cached) " >&6
7014 cat >conftest.
$ac_ext <<_ACEOF
7017 cat confdefs.h
>>conftest.
$ac_ext
7018 cat >>conftest.
$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 $ac_includes_default
7032 rm -f conftest.
$ac_objext
7033 if { (ac_try
="$ac_compile"
7035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_have_decl_sys_siglist=yes
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_have_decl_sys_siglist=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7061 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7062 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7064 cat >>confdefs.h <<_ACEOF
7065 #define HAVE_DECL_SYS_SIGLIST 1
7070 cat >>confdefs.h <<_ACEOF
7071 #define HAVE_DECL_SYS_SIGLIST 0
7078 if test $ac_cv_have_decl_sys_siglist != yes; then
7079 # For Tru64, at least:
7080 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7081 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7082 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7083 $as_echo_n "(cached) " >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 $ac_includes_default
7095 #ifndef __sys_siglist
7096 (void) __sys_siglist;
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7107 *) ac_try_echo
=$ac_try;;
7109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7110 $as_echo "$ac_try_echo") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.
$ac_objext; then
7121 ac_cv_have_decl___sys_siglist
=yes
7123 $as_echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.
$ac_ext >&5
7126 ac_cv_have_decl___sys_siglist
=no
7129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7131 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7132 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7133 if test "x$ac_cv_have_decl___sys_siglist" = x
""yes; then
7135 cat >>confdefs.h
<<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 1
7141 cat >>confdefs.h
<<_ACEOF
7142 #define HAVE_DECL___SYS_SIGLIST 0
7149 if test $ac_cv_have_decl___sys_siglist = yes; then
7151 cat >>confdefs.h
<<\_ACEOF
7152 #define sys_siglist __sys_siglist
7157 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7158 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7159 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7160 $as_echo_n "(cached) " >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7171 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7187 rm -f conftest.
$ac_objext
7188 if { (ac_try
="$ac_compile"
7190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7205 ac_cv_header_sys_wait_h=yes
7207 $as_echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_header_sys_wait_h=no
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7216 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7217 if test $ac_cv_header_sys_wait_h = yes; then
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_SYS_WAIT_H 1
7226 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7227 $as_echo_n "checking for struct utimbuf... " >&6; }
7228 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7229 $as_echo_n "(cached) " >&6
7231 cat >conftest.$ac_ext <<_ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #ifdef TIME_WITH_SYS_TIME
7238 #include <sys/time.h>
7241 #ifdef HAVE_SYS_TIME_H
7242 #include <sys/time.h>
7253 static struct utimbuf x; x.actime = x.modtime;
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7262 *) ac_try_echo
=$ac_try;;
7264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7265 $as_echo "$ac_try_echo") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.
$ac_objext; then
7276 emacs_cv_struct_utimbuf
=yes
7278 $as_echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.
$ac_ext >&5
7281 emacs_cv_struct_utimbuf
=no
7284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7287 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7288 if test $emacs_cv_struct_utimbuf = yes; then
7290 cat >>confdefs.h
<<\_ACEOF
7291 #define HAVE_STRUCT_UTIMBUF 1
7296 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7297 $as_echo_n "checking return type of signal handlers... " >&6; }
7298 if test "${ac_cv_type_signal+set}" = set; then
7299 $as_echo_n "(cached) " >&6
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7313 return *(signal (0, 0)) (0) == 1;
7318 rm -f conftest.
$ac_objext
7319 if { (ac_try
="$ac_compile"
7321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7325 $as_echo "$ac_try_echo") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 ac_cv_type_signal=int
7338 $as_echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 ac_cv_type_signal=void
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7347 $as_echo "$ac_cv_type_signal" >&6; }
7349 cat >>confdefs.h <<_ACEOF
7350 #define RETSIGTYPE $ac_cv_type_signal
7355 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7356 $as_echo_n "checking for speed_t... " >&6; }
7357 if test "${emacs_cv_speed_t+set}" = set; then
7358 $as_echo_n "(cached) " >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <termios.h>
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7379 *) ac_try_echo
=$ac_try;;
7381 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.
$ac_objext; then
7393 emacs_cv_speed_t
=yes
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7403 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 $as_echo "$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7407 cat >>confdefs.h
<<\_ACEOF
7408 #define HAVE_SPEED_T 1
7413 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 $as_echo_n "checking for struct timeval... " >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7442 rm -f conftest.
$ac_objext
7443 if { (ac_try
="$ac_compile"
7445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_compile") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest.$ac_objext; then
7460 emacs_cv_struct_timeval=yes
7462 $as_echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 emacs_cv_struct_timeval=no
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7471 $as_echo "$emacs_cv_struct_timeval" >&6; }
7472 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7473 if test $emacs_cv_struct_timeval = yes; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_TIMEVAL 1
7481 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7482 $as_echo_n "checking for struct exception... " >&6; }
7483 if test "${emacs_cv_struct_exception+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7486 cat >conftest.$ac_ext <<_ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7496 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7505 *) ac_try_echo
=$ac_try;;
7507 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7508 $as_echo "$ac_try_echo") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1
>conftest.err
7513 cat conftest.err
>&5
7514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.
$ac_objext; then
7519 emacs_cv_struct_exception
=yes
7521 $as_echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.
$ac_ext >&5
7524 emacs_cv_struct_exception
=no
7527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7529 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7530 $as_echo "$emacs_cv_struct_exception" >&6; }
7531 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7532 if test $emacs_cv_struct_exception != yes; then
7534 cat >>confdefs.h
<<\_ACEOF
7535 #define NO_MATHERR 1
7541 for ac_header
in sys
/socket.h
7543 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7544 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7546 $as_echo_n "checking for $ac_header... " >&6; }
7547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 $as_echo_n "(cached) " >&6
7550 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7551 $as_echo "$as_val"'`
7552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7553 $as_echo "$ac_res" >&6; }
7555 # Is the header compilable?
7556 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7557 $as_echo_n "checking $ac_header usability... " >&6; }
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #include <$ac_header>
7567 rm -f conftest.
$ac_objext
7568 if { (ac_try
="$ac_compile"
7570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7574 $as_echo "$ac_try_echo") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7577 grep -v '^ *+' conftest.er1 >conftest.err
7579 cat conftest.err >&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 ac_header_compiler=yes
7587 $as_echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_header_compiler=no
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7595 $as_echo "$ac_header_compiler" >&6; }
7597 # Is the header present?
7598 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7599 $as_echo_n "checking $ac_header presence... " >&6; }
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 #include <$ac_header>
7608 if { (ac_try="$ac_cpp conftest.$ac_ext"
7610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7611 *) ac_try_echo
=$ac_try;;
7613 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7614 $as_echo "$ac_try_echo") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7617 grep -v '^ *+' conftest.er1
>conftest.err
7619 cat conftest.err
>&5
7620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev
/null
&& {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7625 ac_header_preproc
=yes
7627 $as_echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.
$ac_ext >&5
7630 ac_header_preproc
=no
7633 rm -f conftest.err conftest.
$ac_ext
7634 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 $as_echo "$ac_header_preproc" >&6; }
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc
=yes
7647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 $as_echo_n "checking for $ac_header... " >&6; }
7664 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 $as_echo_n "(cached) " >&6
7667 eval "$as_ac_Header=\$ac_header_preproc"
7669 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7670 $as_echo "$as_val"'`
7671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7672 $as_echo "$ac_res" >&6; }
7675 as_val
=`eval 'as_val=${'$as_ac_Header'}
7676 $as_echo "$as_val"'`
7677 if test "x$as_val" = x
""yes; then
7678 cat >>confdefs.h
<<_ACEOF
7679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7687 for ac_header
in net
/if.h
7689 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7691 $as_echo_n "checking for $ac_header... " >&6; }
7692 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693 $as_echo_n "(cached) " >&6
7695 cat >conftest.
$ac_ext <<_ACEOF
7698 cat confdefs.h
>>conftest.
$ac_ext
7699 cat >>conftest.
$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 $ac_includes_default
7702 #if HAVE_SYS_SOCKET_H
7703 #include <sys/socket.h>
7706 #include <$ac_header>
7708 rm -f conftest.
$ac_objext
7709 if { (ac_try
="$ac_compile"
7711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 eval "$as_ac_Header=yes"
7728 $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 eval "$as_ac_Header=no"
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 ac_res=`eval 'as_val=${'$as_ac_Header'}
7737 $as_echo "$as_val"'`
7738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7739 $as_echo "$ac_res" >&6; }
7740 as_val=`eval 'as_val=${'$as_ac_Header'}
7741 $as_echo "$as_val"'`
7742 if test "x$as_val" = x""yes; then
7743 cat >>confdefs.h <<_ACEOF
7744 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7752 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7753 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7754 if test "${ac_cv_struct_tm+set}" = set; then
7755 $as_echo_n "(cached) " >&6
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <sys/types.h>
7770 int *p = &tm.tm_sec;
7776 rm -f conftest.$ac_objext
7777 if { (ac_try="$ac_compile"
7779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7780 *) ac_try_echo
=$ac_try;;
7782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7783 $as_echo "$ac_try_echo") >&5
7784 (eval "$ac_compile") 2>conftest.er1
7786 grep -v '^ *+' conftest.er1
>conftest.err
7788 cat conftest.err
>&5
7789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && {
7791 test -z "$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7793 } && test -s conftest.
$ac_objext; then
7794 ac_cv_struct_tm
=time.h
7796 $as_echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.
$ac_ext >&5
7799 ac_cv_struct_tm
=sys
/time.h
7802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7804 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7805 $as_echo "$ac_cv_struct_tm" >&6; }
7806 if test $ac_cv_struct_tm = sys
/time.h
; then
7808 cat >>confdefs.h
<<\_ACEOF
7809 #define TM_IN_SYS_TIME 1
7814 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7815 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7816 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7817 $as_echo_n "(cached) " >&6
7819 cat >conftest.
$ac_ext <<_ACEOF
7822 cat confdefs.h
>>conftest.
$ac_ext
7823 cat >>conftest.
$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <$ac_cv_struct_tm>
7832 static struct tm ac_aggr;
7833 if (ac_aggr.tm_zone)
7839 rm -f conftest.
$ac_objext
7840 if { (ac_try
="$ac_compile"
7842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846 $as_echo "$ac_try_echo") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then
7857 ac_cv_member_struct_tm_tm_zone=yes
7859 $as_echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <sys/types.h>
7869 #include <$ac_cv_struct_tm>
7875 static struct tm ac_aggr;
7876 if (sizeof ac_aggr.tm_zone)
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7886 *) ac_try_echo
=$ac_try;;
7888 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_compile") 2>conftest.er1
7892 grep -v '^ *+' conftest.er1
>conftest.err
7894 cat conftest.err
>&5
7895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_c_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest.
$ac_objext; then
7900 ac_cv_member_struct_tm_tm_zone
=yes
7902 $as_echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.
$ac_ext >&5
7905 ac_cv_member_struct_tm_tm_zone
=no
7908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7914 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7915 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then
7917 cat >>confdefs.h
<<_ACEOF
7918 #define HAVE_STRUCT_TM_TM_ZONE 1
7924 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7926 cat >>confdefs.h
<<\_ACEOF
7927 #define HAVE_TM_ZONE 1
7931 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7932 $as_echo_n "checking whether tzname is declared... " >&6; }
7933 if test "${ac_cv_have_decl_tzname+set}" = set; then
7934 $as_echo_n "(cached) " >&6
7936 cat >conftest.
$ac_ext <<_ACEOF
7939 cat confdefs.h
>>conftest.
$ac_ext
7940 cat >>conftest.
$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7955 rm -f conftest.
$ac_objext
7956 if { (ac_try
="$ac_compile"
7958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
7973 ac_cv_have_decl_tzname=yes
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_cv_have_decl_tzname=no
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7984 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7985 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DECL_TZNAME 1
7993 cat >>confdefs.h <<_ACEOF
7994 #define HAVE_DECL_TZNAME 0
8001 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8002 $as_echo_n "checking for tzname... " >&6; }
8003 if test "${ac_cv_var_tzname+set}" = set; then
8004 $as_echo_n "(cached) " >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8013 #if !HAVE_DECL_TZNAME
8014 extern char *tzname[];
8020 return tzname[0][0];
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (ac_try="$ac_link"
8028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8029 *) ac_try_echo
=$ac_try;;
8031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8032 $as_echo "$ac_try_echo") >&5
8033 (eval "$ac_link") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1
>conftest.err
8037 cat conftest.err
>&5
8038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest
$ac_exeext && {
8043 test "$cross_compiling" = yes ||
8044 $as_test_x conftest
$ac_exeext
8046 ac_cv_var_tzname
=yes
8048 $as_echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.
$ac_ext >&5
8054 rm -rf conftest.dSYM
8055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8056 conftest
$ac_exeext conftest.
$ac_ext
8058 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8059 $as_echo "$ac_cv_var_tzname" >&6; }
8060 if test $ac_cv_var_tzname = yes; then
8062 cat >>confdefs.h
<<\_ACEOF
8063 #define HAVE_TZNAME 1
8069 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8070 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8071 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8072 $as_echo_n "(cached) " >&6
8074 cat >conftest.
$ac_ext <<_ACEOF
8077 cat confdefs.h
>>conftest.
$ac_ext
8078 cat >>conftest.
$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8085 static struct tm ac_aggr;
8086 if (ac_aggr.tm_gmtoff)
8092 rm -f conftest.
$ac_objext
8093 if { (ac_try
="$ac_compile"
8095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8099 $as_echo "$ac_try_echo") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.$ac_objext; then
8110 ac_cv_member_struct_tm_tm_gmtoff=yes
8112 $as_echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8126 static struct tm ac_aggr;
8127 if (sizeof ac_aggr.tm_gmtoff)
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8137 *) ac_try_echo
=$ac_try;;
8139 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8140 $as_echo "$ac_try_echo") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1
>conftest.err
8145 cat conftest.err
>&5
8146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.
$ac_objext; then
8151 ac_cv_member_struct_tm_tm_gmtoff
=yes
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8156 ac_cv_member_struct_tm_tm_gmtoff
=no
8159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8164 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8165 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8166 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then
8168 cat >>confdefs.h
<<\_ACEOF
8169 #define HAVE_TM_GMTOFF 1
8174 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8175 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8176 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8179 cat >conftest.
$ac_ext <<_ACEOF
8182 cat confdefs.h
>>conftest.
$ac_ext
8183 cat >>conftest.
$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 $ac_includes_default
8186 #if HAVE_SYS_SOCKET_H
8187 #include <sys/socket.h>
8196 static struct ifreq ac_aggr;
8197 if (ac_aggr.ifr_flags)
8203 rm -f conftest.
$ac_objext
8204 if { (ac_try
="$ac_compile"
8206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8210 $as_echo "$ac_try_echo") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1 >conftest.err
8215 cat conftest.err >&5
8216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_flags=yes
8223 $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 $ac_includes_default
8233 #if HAVE_SYS_SOCKET_H
8234 #include <sys/socket.h>
8243 static struct ifreq ac_aggr;
8244 if (sizeof ac_aggr.ifr_flags)
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8254 *) ac_try_echo
=$ac_try;;
8256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8257 $as_echo "$ac_try_echo") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1
>conftest.err
8262 cat conftest.err
>&5
8263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.
$ac_objext; then
8268 ac_cv_member_struct_ifreq_ifr_flags
=yes
8270 $as_echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.
$ac_ext >&5
8273 ac_cv_member_struct_ifreq_ifr_flags
=no
8276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8282 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8283 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x
""yes; then
8285 cat >>confdefs.h
<<_ACEOF
8286 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8291 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8292 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8293 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8294 $as_echo_n "(cached) " >&6
8296 cat >conftest.
$ac_ext <<_ACEOF
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8313 static struct ifreq ac_aggr;
8314 if (ac_aggr.ifr_hwaddr)
8320 rm -f conftest.
$ac_objext
8321 if { (ac_try
="$ac_compile"
8323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8327 $as_echo "$ac_try_echo") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8340 $as_echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 #if HAVE_SYS_SOCKET_H
8351 #include <sys/socket.h>
8360 static struct ifreq ac_aggr;
8361 if (sizeof ac_aggr.ifr_hwaddr)
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8371 *) ac_try_echo
=$ac_try;;
8373 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1
>conftest.err
8379 cat conftest.err
>&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.
$ac_objext; then
8385 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.
$ac_ext >&5
8390 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8398 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8399 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8400 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x
""yes; then
8402 cat >>confdefs.h
<<_ACEOF
8403 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8408 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8409 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8410 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8411 $as_echo_n "(cached) " >&6
8413 cat >conftest.
$ac_ext <<_ACEOF
8416 cat confdefs.h
>>conftest.
$ac_ext
8417 cat >>conftest.
$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 #if HAVE_SYS_SOCKET_H
8421 #include <sys/socket.h>
8430 static struct ifreq ac_aggr;
8431 if (ac_aggr.ifr_netmask)
8437 rm -f conftest.
$ac_objext
8438 if { (ac_try
="$ac_compile"
8440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8444 $as_echo "$ac_try_echo") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_netmask=yes
8457 $as_echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8460 cat >conftest.$ac_ext <<_ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8477 static struct ifreq ac_aggr;
8478 if (sizeof ac_aggr.ifr_netmask)
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8488 *) ac_try_echo
=$ac_try;;
8490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.
$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.
$ac_ext >&5
8507 ac_cv_member_struct_ifreq_ifr_netmask
=no
8510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x
""yes; then
8519 cat >>confdefs.h
<<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8525 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 $as_echo_n "(cached) " >&6
8530 cat >conftest.
$ac_ext <<_ACEOF
8533 cat confdefs.h
>>conftest.
$ac_ext
8534 cat >>conftest.
$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8554 rm -f conftest.
$ac_objext
8555 if { (ac_try
="$ac_compile"
8557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8574 $as_echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8594 static struct ifreq ac_aggr;
8595 if (sizeof ac_aggr.ifr_broadaddr)
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8605 *) ac_try_echo
=$ac_try;;
8607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8611 grep -v '^ *+' conftest.er1
>conftest.err
8613 cat conftest.err
>&5
8614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest.
$ac_objext; then
8619 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8621 $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.
$ac_ext >&5
8624 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8632 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8633 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8634 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x
""yes; then
8636 cat >>confdefs.h
<<_ACEOF
8637 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8642 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8643 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8644 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8645 $as_echo_n "(cached) " >&6
8647 cat >conftest.
$ac_ext <<_ACEOF
8650 cat confdefs.h
>>conftest.
$ac_ext
8651 cat >>conftest.
$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 #if HAVE_SYS_SOCKET_H
8655 #include <sys/socket.h>
8664 static struct ifreq ac_aggr;
8665 if (ac_aggr.ifr_addr)
8671 rm -f conftest.
$ac_objext
8672 if { (ac_try
="$ac_compile"
8674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_member_struct_ifreq_ifr_addr=yes
8691 $as_echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 #if HAVE_SYS_SOCKET_H
8702 #include <sys/socket.h>
8711 static struct ifreq ac_aggr;
8712 if (sizeof ac_aggr.ifr_addr)
8718 rm -f conftest.$ac_objext
8719 if { (ac_try="$ac_compile"
8721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8722 *) ac_try_echo
=$ac_try;;
8724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8725 $as_echo "$ac_try_echo") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8728 grep -v '^ *+' conftest.er1
>conftest.err
8730 cat conftest.err
>&5
8731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } && {
8733 test -z "$ac_c_werror_flag" ||
8734 test ! -s conftest.err
8735 } && test -s conftest.
$ac_objext; then
8736 ac_cv_member_struct_ifreq_ifr_addr
=yes
8738 $as_echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.
$ac_ext >&5
8741 ac_cv_member_struct_ifreq_ifr_addr
=no
8744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8749 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8750 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8751 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x
""yes; then
8753 cat >>confdefs.h
<<_ACEOF
8754 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8762 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8763 $as_echo_n "checking for function prototypes... " >&6; }
8764 if test "$ac_cv_prog_cc_c89" != no
; then
8765 { $as_echo "$as_me:$LINENO: result: yes" >&5
8766 $as_echo "yes" >&6; }
8768 cat >>confdefs.h
<<\_ACEOF
8769 #define PROTOTYPES 1
8773 cat >>confdefs.h
<<\_ACEOF
8774 #define __PROTOTYPES 1
8778 { $as_echo "$as_me:$LINENO: result: no" >&5
8779 $as_echo "no" >&6; }
8782 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8783 $as_echo_n "checking for working volatile... " >&6; }
8784 if test "${ac_cv_c_volatile+set}" = set; then
8785 $as_echo_n "(cached) " >&6
8787 cat >conftest.
$ac_ext <<_ACEOF
8790 cat confdefs.h
>>conftest.
$ac_ext
8791 cat >>conftest.
$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8799 int * volatile y = (int *) 0;
8805 rm -f conftest.
$ac_objext
8806 if { (ac_try
="$ac_compile"
8808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_cv_c_volatile=yes
8825 $as_echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8833 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8834 $as_echo "$ac_cv_c_volatile" >&6; }
8835 if test $ac_cv_c_volatile = no; then
8837 cat >>confdefs.h <<\_ACEOF
8838 #define volatile /**/
8843 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8844 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8845 if test "${ac_cv_c_const+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8858 /* FIXME: Include the comments suggested by Paul. */
8860 /* Ultrix mips cc rejects this. */
8861 typedef int charset[2];
8863 /* SunOS 4.1.1 cc rejects this. */
8864 char const *const *pcpcc;
8866 /* NEC SVR4.0.2 mips cc rejects this. */
8867 struct point {int x, y;};
8868 static struct point const zero = {0,0};
8869 /* AIX XL C 1.02.0.0 rejects this.
8870 It does not let you subtract one const X* pointer from another in
8871 an arm of an if-expression whose if-part is not a constant
8873 const char *g = "string";
8874 pcpcc = &g + (g ? g-g : 0);
8875 /* HPUX 7.0 cc rejects these. */
8877 ppc = (char**) pcpcc;
8878 pcpcc = (char const *const *) ppc;
8879 { /* SCO 3.2v4 cc rejects this. */
8881 char const *s = 0 ? (char *) 0 : (char const *) 0;
8886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8888 const int *foo = &x[0];
8891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8892 typedef const int *iptr;
8896 { /* AIX XL C 1.02.0.0 rejects this saying
8897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8898 struct s { int j; const int *ap[3]; };
8899 struct s *b; b->j = 5;
8901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8905 return !cs[0] && !zero.x;
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8916 *) ac_try_echo
=$ac_try;;
8918 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.
$ac_objext; then
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.
$ac_ext >&5
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 $as_echo "$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no
; then
8944 cat >>confdefs.h
<<\_ACEOF
8950 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
8951 $as_echo_n "checking for void * support... " >&6; }
8952 if test "${emacs_cv_void_star+set}" = set; then
8953 $as_echo_n "(cached) " >&6
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8970 rm -f conftest.
$ac_objext
8971 if { (ac_try
="$ac_compile"
8973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977 $as_echo "$ac_try_echo") >&5
8978 (eval "$ac_compile") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.$ac_objext; then
8988 emacs_cv_void_star=yes
8990 $as_echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 emacs_cv_void_star=no
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8999 $as_echo "$emacs_cv_void_star" >&6; }
9000 if test $emacs_cv_void_star = yes; then
9001 cat >>confdefs.h <<\_ACEOF
9002 #define POINTER_TYPE void
9006 cat >>confdefs.h <<\_ACEOF
9007 #define POINTER_TYPE char
9016 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9019 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9020 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9021 $as_echo_n "(cached) " >&6
9023 cat >conftest.make <<\_ACEOF
9026 @echo '@@@%%%=$(MAKE)=@@@%%%'
9028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9029 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9031 eval ac_cv_prog_make_${ac_make}_set=yes;;
9033 eval ac_cv_prog_make_${ac_make}_set=no;;
9037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9038 { $as_echo "$as_me:$LINENO: result: yes" >&5
9039 $as_echo "yes" >&6; }
9042 { $as_echo "$as_me:$LINENO: result: no" >&5
9043 $as_echo "no" >&6; }
9044 SET_MAKE="MAKE=${MAKE-make}"
9048 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9049 $as_echo_n "checking for long file names... " >&6; }
9050 if test "${ac_cv_sys_long_file_names+set}" = set; then
9051 $as_echo_n "(cached) " >&6
9053 ac_cv_sys_long_file_names=yes
9054 # Test for long file names in all the places we know might matter:
9055 # . the current directory, where building will happen
9056 # $prefix/lib where we will be installing things
9057 # $exec_prefix/lib likewise
9058 # $TMPDIR if set, where it might want to write temporary files
9059 # /tmp where it might want to write temporary files
9062 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9063 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9064 # in the usual case where exec_prefix is '${prefix}'.
9066 . | /* | ?:[\\/]*) ;; #(
9069 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9070 ac_xdir=$ac_dir/cf$$
9071 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9072 ac_tf1=$ac_xdir/conftest9012345
9073 ac_tf2=$ac_xdir/conftest9012346
9074 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9075 ac_cv_sys_long_file_names=no
9076 rm -f -r "$ac_xdir" 2>/dev/null
9077 test $ac_cv_sys_long_file_names = no && break
9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9081 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9082 if test $ac_cv_sys_long_file_names = yes; then
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_LONG_FILE_NAMES 1
9091 #### Choose a window system.
9093 { $as_echo "$as_me:$LINENO: checking for X" >&5
9094 $as_echo_n "checking for X... " >&6; }
9097 # Check whether --with-x was given.
9098 if test "${with_x+set}" = set; then
9102 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9103 if test "x$with_x" = xno; then
9104 # The user explicitly disabled X.
9107 case $x_includes,$x_libraries in #(
9108 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9109 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9110 { (exit 1); exit 1; }; };; #(
9111 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9114 # One or both of the vars are not set, and there is no cached value.
9115 ac_x_includes=no ac_x_libraries=no
9116 rm -f -r conftest.dir
9117 if mkdir conftest.dir; then
9119 cat >Imakefile <<'_ACEOF'
9121 @echo incroot='${INCROOT}'
9123 @echo usrlibdir='${USRLIBDIR}'
9125 @echo libdir='${LIBDIR}'
9127 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9128 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9129 for ac_var in incroot usrlibdir libdir; do
9130 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9133 for ac_extension in a so sl dylib la dll; do
9134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9135 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9136 ac_im_usrlibdir=$ac_im_libdir; break
9139 # Screen out bogus values from the imake configuration. They are
9140 # bogus both because they are the default anyway, and because
9141 # using them would break gcc on systems where it needs fixed includes.
9142 case $ac_im_incroot in
9143 /usr/include) ac_x_includes= ;;
9144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9146 case $ac_im_usrlibdir in
9147 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9152 rm -f -r conftest.dir
9155 # Standard set of common directories for X headers.
9156 # Check X11 before X11Rn because it is often a symlink to the current release.
9168 /usr/local/X11/include
9169 /usr/local/X11R6/include
9170 /usr/local/X11R5/include
9171 /usr/local/X11R4/include
9173 /usr/local/include/X11
9174 /usr/local/include/X11R6
9175 /usr/local/include/X11R5
9176 /usr/local/include/X11R4
9180 /usr/XFree86/include/X11
9184 /usr/unsupported/include
9186 /usr/local/x11r5/include
9187 /usr/lpp/Xamples/include
9189 /usr/openwin/include
9190 /usr/openwin/share/include'
9192 if test "$ac_x_includes" = no; then
9193 # Guess where to find include files, by looking for Xlib.h.
9194 # First, try using that file with no special directory specified.
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 #include <X11/Xlib.h>
9203 if { (ac_try="$ac_cpp conftest.$ac_ext"
9205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9206 *) ac_try_echo
=$ac_try;;
9208 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9209 $as_echo "$ac_try_echo") >&5
9210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1
>conftest.err
9214 cat conftest.err
>&5
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } >/dev
/null
&& {
9217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9220 # We can compile using X headers with no special include directory.
9223 $as_echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.
$ac_ext >&5
9226 for ac_dir
in $ac_x_header_dirs; do
9227 if test -r "$ac_dir/X11/Xlib.h"; then
9228 ac_x_includes
=$ac_dir
9234 rm -f conftest.err conftest.
$ac_ext
9235 fi # $ac_x_includes = no
9237 if test "$ac_x_libraries" = no
; then
9238 # Check for the libraries.
9239 # See if we find them without any special options.
9240 # Don't add to $LIBS permanently.
9243 cat >conftest.
$ac_ext <<_ACEOF
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9258 rm -f conftest.
$ac_objext conftest
$ac_exeext
9259 if { (ac_try
="$ac_link"
9261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266 (eval "$ac_link") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest$ac_exeext && {
9276 test "$cross_compiling" = yes ||
9277 $as_test_x conftest$ac_exeext
9280 # We can link X programs with no special library path.
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9287 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9289 # Don't even attempt the hair of trying to link an X program!
9290 for ac_extension in a so sl dylib la dll; do
9291 if test -r "$ac_dir/libX11.$ac_extension"; then
9292 ac_x_libraries=$ac_dir
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 fi # $ac_x_libraries = no
9304 case $ac_x_includes,$ac_x_libraries in #(
9306 # Didn't find X, or a directory has "'" in its name.
9307 ac_cv_have_x="have_x=no";; #(
9309 # Record where we found X for the cache.
9310 ac_cv_have_x="have_x=yes\
9311 ac_x_includes='$ac_x_includes'\
9312 ac_x_libraries='$ac_x_libraries'"
9318 eval "$ac_cv_have_x"
9321 if test "$have_x" != yes; then
9322 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9323 $as_echo "$have_x" >&6; }
9326 # If each of the values was on the command line, it overrides each guess.
9327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9329 # Update the cache value to reflect the command line values.
9330 ac_cv_have_x="have_x=yes\
9331 ac_x_includes='$x_includes'\
9332 ac_x_libraries='$x_libraries'"
9333 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9334 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9337 if test "$no_x" = yes; then
9343 ## Workaround for bug in autoconf <= 2.62.
9344 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9345 ## No need to do anything special for these standard directories.
9346 ## This is an experiment, take it out if it causes problems.
9347 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9349 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9353 if test "${x_libraries}" != NONE; then
9354 if test -n "${x_libraries}"; then
9355 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9356 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9358 x_default_search_path=""
9359 x_search_path=${x_libraries}
9360 if test -z "${x_search_path}"; then
9361 x_search_path=/usr/lib
9363 for x_library in `echo ${x_search_path}: | \
9364 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9366 ${x_library}/X11/%L/%T/%N%C%S:\
9367 ${x_library}/X11/%l/%T/%N%C%S:\
9368 ${x_library}/X11/%T/%N%C%S:\
9369 ${x_library}/X11/%L/%T/%N%S:\
9370 ${x_library}/X11/%l/%T/%N%S:\
9371 ${x_library}/X11/%T/%N%S"
9372 if test x"${x_default_search_path}" = x; then
9373 x_default_search_path=${x_search_path}
9375 x_default_search_path="${x_search_path}:${x_default_search_path}"
9379 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9380 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9383 if test x"${x_includes}" = x; then
9384 bitmapdir=/usr/include/X11/bitmaps
9386 # accumulate include directories that have X11 bitmap subdirectories
9388 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9389 if test -d "${bmd}/X11/bitmaps"; then
9390 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9392 if test -d "${bmd}/bitmaps"; then
9393 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9396 if test ${bmd_acc} != "dummyval"; then
9397 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9404 tmp_CPPFLAGS="$CPPFLAGS"
9405 tmp_CFLAGS="$CFLAGS"
9406 CPPFLAGS="$CPPFLAGS -x objective-c"
9407 CFLAGS="$CFLAGS -x objective-c"
9408 if test "${with_ns}" != no; then
9409 if test "${opsys}" = darwin; then
9411 ns_appdir=`pwd`/nextstep/Emacs.app
9412 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9413 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9414 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9415 elif test -f $GNUSTEP_CONFIG_FILE; then
9417 ns_appdir=`pwd`/nextstep/Emacs.app
9418 ns_appbindir=`pwd`/nextstep/Emacs.app
9419 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9420 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9421 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9422 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9423 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9424 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9425 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9426 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9427 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9429 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9430 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9431 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9432 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9433 $as_echo_n "(cached) " >&6
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9436 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9438 # Is the header compilable?
9439 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9440 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9441 cat >conftest.$ac_ext <<_ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9448 #include <AppKit/AppKit.h>
9450 rm -f conftest.$ac_objext
9451 if { (ac_try="$ac_compile"
9453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9454 *) ac_try_echo
=$ac_try;;
9456 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9457 $as_echo "$ac_try_echo") >&5
9458 (eval "$ac_compile") 2>conftest.er1
9460 grep -v '^ *+' conftest.er1
>conftest.err
9462 cat conftest.err
>&5
9463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest.
$ac_objext; then
9468 ac_header_compiler
=yes
9470 $as_echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.
$ac_ext >&5
9473 ac_header_compiler
=no
9476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9478 $as_echo "$ac_header_compiler" >&6; }
9480 # Is the header present?
9481 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9482 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9483 cat >conftest.
$ac_ext <<_ACEOF
9486 cat confdefs.h
>>conftest.
$ac_ext
9487 cat >>conftest.
$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 #include <AppKit/AppKit.h>
9491 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null && {
9505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9508 ac_header_preproc=yes
9510 $as_echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_preproc=no
9516 rm -f conftest.err conftest.$ac_ext
9517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9518 $as_echo "$ac_header_preproc" >&6; }
9520 # So? What about this header?
9521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9523 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9524 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9525 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9526 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9527 ac_header_preproc=yes
9530 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9531 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9532 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9533 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9534 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9535 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9536 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9537 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9538 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9539 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9540 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9541 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9545 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9546 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9547 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9548 $as_echo_n "(cached) " >&6
9550 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9553 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9556 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
9559 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9560 files are missing or cannot be compiled." >&5
9561 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9562 files are missing or cannot be compiled.
" >&2;}
9563 { (exit 1); exit 1; }; }
9567 NS_HAVE_NSINTEGER=yes
9568 cat >conftest.$ac_ext <<_ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <Foundation/NSObjCRuntime.h>
9583 rm -f conftest.$ac_objext
9584 if { (ac_try="$ac_compile"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_compile") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest.$ac_objext; then
9601 ns_have_nsinteger=yes
9603 $as_echo "$as_me: failed program was
:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ns_have_nsinteger=no
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 if test $ns_have_nsinteger = no; then
9611 NS_HAVE_NSINTEGER=no
9614 if test "${HAVE_NS}" = yes; then
9615 window_system=nextstep
9618 # set up packaging dirs
9619 exec_prefix=${ns_appbindir}
9620 libexecdir=${ns_appbindir}/libexec
9621 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9622 prefix=${ns_appresdir}
9625 CFLAGS="$tmp_CFLAGS"
9626 CPPFLAGS="$tmp_CPPFLAGS"
9628 case "${window_system}" in
9632 case "${with_x_toolkit}" in
9633 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9634 motif ) USE_X_TOOLKIT=MOTIF ;;
9636 USE_X_TOOLKIT=none ;;
9637 no ) USE_X_TOOLKIT=none ;;
9638 * ) USE_X_TOOLKIT=maybe ;;
9648 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9649 # Extract the first word of "X
", so it can be a program name with args.
9650 set dummy X; ac_word=$2
9651 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9652 $as_echo_n "checking
for $ac_word...
" >&6; }
9653 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9654 $as_echo_n "(cached
) " >&6
9656 if test -n "$HAVE_XSERVER"; then
9657 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_HAVE_XSERVER="true
"
9667 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9674 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9677 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9678 if test -n "$HAVE_XSERVER"; then
9679 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9680 $as_echo "$HAVE_XSERVER" >&6; }
9682 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9683 $as_echo "no
" >&6; }
9687 if test "$HAVE_XSERVER" = true ||
9688 test -n "$DISPLAY" ||
9689 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9690 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9691 were found. You should
install the relevant development files
for X
9692 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9693 sure you have development files
for image handling
, i.e.
9694 tiff
, gif
, jpeg
, png and xpm.
9695 If you are sure you want Emacs compiled without X window support
, pass
9698 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
9699 were found. You should
install the relevant development files
for X
9700 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9701 sure you have development files
for image handling
, i.e.
9702 tiff
, gif
, jpeg
, png and xpm.
9703 If you are sure you want Emacs compiled without X window support
, pass
9705 to configure.
" >&2;}
9706 { (exit 1); exit 1; }; }
9710 ### If we're using X11, we should use the X menu package.
9713 yes ) HAVE_MENUS=yes ;;
9716 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9717 # Assume not, until told otherwise.
9720 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9721 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9722 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9723 $as_echo_n "(cached
) " >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define malloc_get_state innocuous_malloc_get_state
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char malloc_get_state (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9741 # include <limits.h>
9743 # include <assert.h>
9746 #undef malloc_get_state
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9754 char malloc_get_state ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9765 return malloc_get_state ();
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9777 $as_echo "$ac_try_echo") >&5
9778 (eval "$ac_link") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext && {
9788 test "$cross_compiling" = yes ||
9789 $as_test_x conftest$ac_exeext
9791 ac_cv_func_malloc_get_state=yes
9793 $as_echo "$as_me: failed program was
:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_cv_func_malloc_get_state=no
9799 rm -rf conftest.dSYM
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9803 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9804 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9805 if test "x
$ac_cv_func_malloc_get_state" = x""yes; then
9811 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9812 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9813 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9814 $as_echo_n "(cached
) " >&6
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define malloc_set_state innocuous_malloc_set_state
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char malloc_set_state (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9832 # include <limits.h>
9834 # include <assert.h>
9837 #undef malloc_set_state
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9845 char malloc_set_state ();
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9856 return malloc_set_state ();
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9868 $as_echo "$ac_try_echo") >&5
9869 (eval "$ac_link") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1 >conftest.err
9873 cat conftest.err >&5
9874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext && {
9879 test "$cross_compiling" = yes ||
9880 $as_test_x conftest$ac_exeext
9882 ac_cv_func_malloc_set_state=yes
9884 $as_echo "$as_me: failed program was
:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9887 ac_cv_func_malloc_set_state=no
9890 rm -rf conftest.dSYM
9891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892 conftest$ac_exeext conftest.$ac_ext
9894 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9895 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9896 if test "x
$ac_cv_func_malloc_set_state" = x""yes; then
9902 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9903 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9904 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9905 $as_echo_n "(cached
) " >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 extern void (* __after_morecore_hook)();
9917 __after_morecore_hook = 0
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext && {
9940 test "$cross_compiling" = yes ||
9941 $as_test_x conftest$ac_exeext
9943 emacs_cv_var___after_morecore_hook=yes
9945 $as_echo "$as_me: failed program was
:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 emacs_cv_var___after_morecore_hook=no
9951 rm -rf conftest.dSYM
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
9955 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
9956 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9957 if test $emacs_cv_var___after_morecore_hook = no; then
9960 if test "${system_malloc}" = "yes"; then
9963 (The GNU allocators don
't work with this system configuration.)"
9965 if test "$doug_lea_malloc" = "yes" ; then
9966 if test "$GNU_MALLOC" = yes ; then
9968 (Using Doug Lea's new malloc from the GNU C Library.
)"
9971 cat >>confdefs.h <<\_ACEOF
9972 #define DOUG_LEA_MALLOC 1
9977 if test x"${REL_ALLOC}" = x; then
9978 REL_ALLOC=${GNU_MALLOC}
9984 for ac_header in stdlib.h unistd.h
9986 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9988 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
9989 $as_echo_n "checking
for $ac_header...
" >&6; }
9990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9991 $as_echo_n "(cached
) " >&6
9993 ac_res=`eval 'as_val=${'$as_ac_Header'}
9994 $as_echo "$as_val"'`
9995 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
9996 $as_echo "$ac_res" >&6; }
9998 # Is the header compilable?
9999 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10000 $as_echo_n "checking
$ac_header usability...
" >&6; }
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 #include <$ac_header>
10010 rm -f conftest.$ac_objext
10011 if { (ac_try="$ac_compile"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10017 $as_echo "$ac_try_echo") >&5
10018 (eval "$ac_compile") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest.$ac_objext; then
10028 ac_header_compiler=yes
10030 $as_echo "$as_me: failed program was
:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_header_compiler=no
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10038 $as_echo "$ac_header_compiler" >&6; }
10040 # Is the header present?
10041 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10042 $as_echo_n "checking
$ac_header presence...
" >&6; }
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <$ac_header>
10051 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10057 $as_echo "$ac_try_echo") >&5
10058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10060 grep -v '^ *+' conftest.er1 >conftest.err
10062 cat conftest.err >&5
10063 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10064 (exit $ac_status); } >/dev/null && {
10065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10066 test ! -s conftest.err
10068 ac_header_preproc=yes
10070 $as_echo "$as_me: failed program was
:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 ac_header_preproc=no
10076 rm -f conftest.err conftest.$ac_ext
10077 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10078 $as_echo "$ac_header_preproc" >&6; }
10080 # So? What about this header?
10081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10083 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10084 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10087 ac_header_preproc=yes
10090 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10091 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10092 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10093 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10094 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10095 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10096 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10097 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10098 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10100 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10101 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10105 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10106 $as_echo_n "checking
for $ac_header...
" >&6; }
10107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10108 $as_echo_n "(cached
) " >&6
10110 eval "$as_ac_Header=\
$ac_header_preproc"
10112 ac_res=`eval 'as_val=${'$as_ac_Header'}
10113 $as_echo "$as_val"'`
10114 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10115 $as_echo "$ac_res" >&6; }
10118 as_val=`eval 'as_val=${'$as_ac_Header'}
10119 $as_echo "$as_val"'`
10120 if test "x
$as_val" = x""yes; then
10121 cat >>confdefs.h <<_ACEOF
10122 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10130 for ac_func in getpagesize
10132 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10133 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10134 $as_echo_n "checking
for $ac_func...
" >&6; }
10135 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10136 $as_echo_n "(cached
) " >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10146 #define $ac_func innocuous_$ac_func
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char $ac_func (); below.
10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151 <limits.h> exists even on freestanding compilers. */
10154 # include <limits.h>
10156 # include <assert.h>
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10168 /* The GNU C library defines this for functions which it implements
10169 to always fail with ENOSYS. Some functions are actually named
10170 something starting with __ and the normal name is an alias. */
10171 #if defined __stub_$ac_func || defined __stub___$ac_func
10178 return $ac_func ();
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10190 $as_echo "$ac_try_echo") >&5
10191 (eval "$ac_link") 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest$ac_exeext && {
10201 test "$cross_compiling" = yes ||
10202 $as_test_x conftest$ac_exeext
10204 eval "$as_ac_var=yes"
10206 $as_echo "$as_me: failed program was
:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 eval "$as_ac_var=no
"
10212 rm -rf conftest.dSYM
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214 conftest$ac_exeext conftest.$ac_ext
10216 ac_res=`eval 'as_val=${'$as_ac_var'}
10217 $as_echo "$as_val"'`
10218 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10219 $as_echo "$ac_res" >&6; }
10220 as_val=`eval 'as_val=${'$as_ac_var'}
10221 $as_echo "$as_val"'`
10222 if test "x
$as_val" = x""yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10230 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10231 $as_echo_n "checking
for working mmap...
" >&6; }
10232 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10233 $as_echo_n "(cached
) " >&6
10235 if test "$cross_compiling" = yes; then
10236 ac_cv_func_mmap_fixed_mapped=no
10238 cat >conftest.$ac_ext <<_ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 $ac_includes_default
10245 /* malloc might have been renamed as rpl_malloc. */
10248 /* Thanks to Mike Haertel and Jim Avera for this test.
10249 Here is a matrix of mmap possibilities:
10250 mmap private not fixed
10251 mmap private fixed at somewhere currently unmapped
10252 mmap private fixed at somewhere already mapped
10253 mmap shared not fixed
10254 mmap shared fixed at somewhere currently unmapped
10255 mmap shared fixed at somewhere already mapped
10256 For private mappings, we should verify that changes cannot be read()
10257 back from the file, nor mmap's back from the file at a different
10258 address. (There have been systems where private was not correctly
10259 implemented like the infamous i386 svr4.0, and systems where the
10260 VM page cache was not coherent with the file system buffer cache
10261 like early versions of FreeBSD and possibly contemporary NetBSD.)
10262 For shared mappings, we should conversely verify that changes get
10263 propagated back to all the places they're supposed to be.
10265 Grep wants private fixed already mapped.
10266 The main things grep needs to know about mmap are:
10267 * does it exist and is it safe to write into the mmap'd area
10268 * how to use it (BSD variants) */
10271 #include <sys/mman.h>
10273 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10277 /* This mess was copied from the GNU getpagesize.h. */
10278 #ifndef HAVE_GETPAGESIZE
10279 /* Assume that all systems that can run configure have sys/param.h. */
10280 # ifndef HAVE_SYS_PARAM_H
10281 # define HAVE_SYS_PARAM_H 1
10284 # ifdef _SC_PAGESIZE
10285 # define getpagesize() sysconf(_SC_PAGESIZE)
10286 # else /* no _SC_PAGESIZE */
10287 # ifdef HAVE_SYS_PARAM_H
10288 # include <sys/param.h>
10289 # ifdef EXEC_PAGESIZE
10290 # define getpagesize() EXEC_PAGESIZE
10291 # else /* no EXEC_PAGESIZE */
10293 # define getpagesize() NBPG * CLSIZE
10296 # endif /* no CLSIZE */
10297 # else /* no NBPG */
10299 # define getpagesize() NBPC
10300 # else /* no NBPC */
10302 # define getpagesize() PAGESIZE
10303 # endif /* PAGESIZE */
10304 # endif /* no NBPC */
10305 # endif /* no NBPG */
10306 # endif /* no EXEC_PAGESIZE */
10307 # else /* no HAVE_SYS_PARAM_H */
10308 # define getpagesize() 8192 /* punt totally */
10309 # endif /* no HAVE_SYS_PARAM_H */
10310 # endif /* no _SC_PAGESIZE */
10312 #endif /* no HAVE_GETPAGESIZE */
10317 char *data, *data2, *data3;
10321 pagesize = getpagesize ();
10323 /* First, make a file with some known garbage in it. */
10324 data = (char *) malloc (pagesize);
10327 for (i = 0; i < pagesize; ++i)
10328 *(data + i) = rand ();
10330 fd = creat ("conftest.mmap
", 0600);
10333 if (write (fd, data, pagesize) != pagesize)
10337 /* Next, try to mmap the file at a fixed address which already has
10338 something else allocated at it. If we can, also make sure that
10339 we see the same garbage. */
10340 fd = open ("conftest.mmap
", O_RDWR);
10343 data2 = (char *) malloc (2 * pagesize);
10346 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10347 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10348 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10350 for (i = 0; i < pagesize; ++i)
10351 if (*(data + i) != *(data2 + i))
10354 /* Finally, make sure that changes to the mapped area do not
10355 percolate back to the file as seen by read(). (This is a bug on
10356 some variants of i386 svr4.0.) */
10357 for (i = 0; i < pagesize; ++i)
10358 *(data2 + i) = *(data2 + i) + 1;
10359 data3 = (char *) malloc (pagesize);
10362 if (read (fd, data3, pagesize) != pagesize)
10364 for (i = 0; i < pagesize; ++i)
10365 if (*(data + i) != *(data3 + i))
10371 rm -f conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10378 $as_echo "$ac_try_echo") >&5
10379 (eval "$ac_link") 2>&5
10381 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_try") 2>&5
10391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_func_mmap_fixed_mapped=yes
10395 $as_echo "$as_me: program exited with status
$ac_status" >&5
10396 $as_echo "$as_me: failed program was
:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10399 ( exit $ac_status )
10400 ac_cv_func_mmap_fixed_mapped=no
10402 rm -rf conftest.dSYM
10403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10408 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10409 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10410 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_MMAP 1
10417 rm -f conftest.mmap
10419 if test $use_mmap_for_buffers = yes; then
10423 LIBS="$libsrc_libs $LIBS"
10426 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10427 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10428 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10429 $as_echo_n "(cached
) " >&6
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-ldnet $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10450 return dnet_ntoa ();
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest$ac_exeext && {
10473 test "$cross_compiling" = yes ||
10474 $as_test_x conftest$ac_exeext
10476 ac_cv_lib_dnet_dnet_ntoa=yes
10478 $as_echo "$as_me: failed program was
:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_lib_dnet_dnet_ntoa=no
10484 rm -rf conftest.dSYM
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10490 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10491 if test "x
$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_LIBDNET 1
10496 LIBS="-ldnet $LIBS"
10501 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10502 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10503 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10504 $as_echo_n "(cached
) " >&6
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lXbsd $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (ac_try="$ac_link"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10530 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10531 $as_echo "$ac_try_echo") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext && {
10542 test "$cross_compiling" = yes ||
10543 $as_test_x conftest$ac_exeext
10545 ac_cv_lib_Xbsd_main=yes
10547 $as_echo "$as_me: failed program was
:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_cv_lib_Xbsd_main=no
10553 rm -rf conftest.dSYM
10554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555 conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10558 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10559 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10560 if test "x
$ac_cv_lib_Xbsd_main" = x""yes; then
10561 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10566 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10567 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10568 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10569 $as_echo_n "(cached
) " >&6
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lpthreads $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10590 return cma_open ();
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603 (eval "$ac_link") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext && {
10613 test "$cross_compiling" = yes ||
10614 $as_test_x conftest$ac_exeext
10616 ac_cv_lib_pthreads_cma_open=yes
10618 $as_echo "$as_me: failed program was
:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10621 ac_cv_lib_pthreads_cma_open=no
10624 rm -rf conftest.dSYM
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10630 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10631 if test "x
$ac_cv_lib_pthreads_cma_open" = x""yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_LIBPTHREADS 1
10636 LIBS="-lpthreads $LIBS"
10644 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10645 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10646 if test "${gdb_cv_bigtoc+set}" = set; then
10647 $as_echo_n "(cached
) " >&6
10651 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10652 *) gdb_cv_bigtoc=-bbigtoc ;;
10655 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10678 $as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10681 grep -v '^ *+' conftest.er1 >conftest.err
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10694 $as_echo "$as_me: failed program was
:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10700 rm -rf conftest.dSYM
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10705 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10706 $as_echo "$gdb_cv_bigtoc" >&6; }
10710 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10711 # used for the tests that follow. We set them back to REAL_CFLAGS and
10712 # REAL_CPPFLAGS later on.
10714 REAL_CPPFLAGS="$CPPFLAGS"
10716 if test "${HAVE_X11}" = "yes"; then
10717 DEFS="$C_SWITCH_X_SITE $DEFS"
10718 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10720 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10721 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10723 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10724 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10725 # but it's more convenient here to set LD_RUN_PATH
10726 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10727 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10728 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10732 if test "${opsys}" = "gnu-linux
"; then
10733 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10734 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10735 cat >conftest.$ac_ext <<_ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10745 XOpenDisplay ("foo
");
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (ac_try="$ac_link"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10757 $as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10760 grep -v '^ *+' conftest.er1 >conftest.err
10762 cat conftest.err >&5
10763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest$ac_exeext
10771 xlinux_first_failure=no
10773 $as_echo "$as_me: failed program was
:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 xlinux_first_failure=yes
10779 rm -rf conftest.dSYM
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782 if test "${xlinux_first_failure}" = "yes"; then
10783 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10784 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10785 OLD_CPPFLAGS="$CPPFLAGS"
10787 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10788 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10789 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10790 LIBS="$LIBS -b i486-linuxaout
"
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10801 XOpenDisplay ("foo
");
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10813 $as_echo "$ac_try_echo") >&5
10814 (eval "$ac_link") 2>conftest.er1
10816 grep -v '^ *+' conftest.er1 >conftest.err
10818 cat conftest.err >&5
10819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext && {
10824 test "$cross_compiling" = yes ||
10825 $as_test_x conftest$ac_exeext
10827 xlinux_second_failure=no
10829 $as_echo "$as_me: failed program was
:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 xlinux_second_failure=yes
10835 rm -rf conftest.dSYM
10836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 conftest$ac_exeext conftest.$ac_ext
10838 if test "${xlinux_second_failure}" = "yes"; then
10839 # If we get the same failure with -b, there is no use adding -b.
10840 # So take it out. This plays safe.
10841 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10842 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10843 CPPFLAGS="$OLD_CPPFLAGS"
10845 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10846 $as_echo "no
" >&6; }
10848 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10849 $as_echo "yes" >&6; }
10852 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10853 $as_echo "no
" >&6; }
10857 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10858 # header files included from there.
10859 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10860 $as_echo_n "checking
for Xkb...
" >&6; }
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #include <X11/Xlib.h>
10868 #include <X11/XKBlib.h>
10872 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10884 $as_echo "$ac_try_echo") >&5
10885 (eval "$ac_link") 2>conftest.er1
10887 grep -v '^ *+' conftest.er1 >conftest.err
10889 cat conftest.err >&5
10890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest$ac_exeext && {
10895 test "$cross_compiling" = yes ||
10896 $as_test_x conftest$ac_exeext
10900 $as_echo "$as_me: failed program was
:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10906 rm -rf conftest.dSYM
10907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908 conftest$ac_exeext conftest.$ac_ext
10909 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10910 $as_echo "$emacs_xkb" >&6; }
10911 if test $emacs_xkb = yes; then
10913 cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_XKBGETKEYBOARD 1
10923 for ac_func in XrmSetDatabase XScreenResourceString \
10924 XScreenNumberOfScreen XSetWMProtocols
10926 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10927 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10928 $as_echo_n "checking
for $ac_func...
" >&6; }
10929 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10930 $as_echo_n "(cached
) " >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10940 #define $ac_func innocuous_$ac_func
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char $ac_func (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10948 # include <limits.h>
10950 # include <assert.h>
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined __stub_$ac_func || defined __stub___$ac_func
10972 return $ac_func ();
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1 >conftest.err
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10998 eval "$as_ac_var=yes"
11000 $as_echo "$as_me: failed program was
:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 eval "$as_ac_var=no
"
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11010 ac_res=`eval 'as_val=${'$as_ac_var'}
11011 $as_echo "$as_val"'`
11012 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11013 $as_echo "$ac_res" >&6; }
11014 as_val=`eval 'as_val=${'$as_ac_var'}
11015 $as_echo "$as_val"'`
11016 if test "x
$as_val" = x""yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11026 if test "${window_system}" = "x11
"; then
11027 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11028 $as_echo_n "checking X11 version
6...
" >&6; }
11029 if test "${emacs_cv_x11_version_6+set}" = set; then
11030 $as_echo_n "(cached
) " >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <X11/Xlib.h>
11042 #if XlibSpecificationRelease < 6
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_link") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext && {
11068 test "$cross_compiling" = yes ||
11069 $as_test_x conftest$ac_exeext
11071 emacs_cv_x11_version_6=yes
11073 $as_echo "$as_me: failed program was
:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 emacs_cv_x11_version_6=no
11079 rm -rf conftest.dSYM
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081 conftest$ac_exeext conftest.$ac_ext
11084 if test $emacs_cv_x11_version_6 = yes; then
11085 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11086 $as_echo "6 or newer
" >&6; }
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_X11R6 1
11093 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11094 $as_echo "before
6" >&6; }
11099 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11101 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11102 if test "${with_rsvg}" != "no
"; then
11103 RSVG_REQUIRED=2.11.0
11104 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11109 # Extract the first word of "pkg-config
", so it can be a program name with args.
11110 set dummy pkg-config; ac_word=$2
11111 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11112 $as_echo_n "checking
for $ac_word...
" >&6; }
11113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11114 $as_echo_n "(cached
) " >&6
11116 case $PKG_CONFIG in
11118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11141 if test -n "$PKG_CONFIG"; then
11142 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11143 $as_echo "$PKG_CONFIG" >&6; }
11145 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11146 $as_echo "no
" >&6; }
11151 if test "$PKG_CONFIG" = "no
" ; then
11154 PKG_CONFIG_MIN_VERSION=0.9.0
11155 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11156 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11157 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11159 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11160 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11161 $as_echo "yes" >&6; }
11164 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11165 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11166 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11167 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11168 $as_echo "$RSVG_CFLAGS" >&6; }
11170 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11171 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11172 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11173 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11174 $as_echo "$RSVG_LIBS" >&6; }
11176 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11177 $as_echo "no
" >&6; }
11180 ## If we have a custom action on failure, don't print errors, but
11181 ## do set a variable so people can do so.
11182 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11189 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11190 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11194 if test $succeeded = yes; then
11203 if test ".
${RSVG_CFLAGS}" != ".
"; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_RSVG 1
11210 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11211 LIBS="$RSVG_LIBS $LIBS"
11218 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11221 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11226 # Extract the first word of "pkg-config
", so it can be a program name with args.
11227 set dummy pkg-config; ac_word=$2
11228 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11229 $as_echo_n "checking
for $ac_word...
" >&6; }
11230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11231 $as_echo_n "(cached
) " >&6
11233 case $PKG_CONFIG in
11235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11246 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11258 if test -n "$PKG_CONFIG"; then
11259 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11260 $as_echo "$PKG_CONFIG" >&6; }
11262 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11263 $as_echo "no
" >&6; }
11268 if test "$PKG_CONFIG" = "no
" ; then
11271 PKG_CONFIG_MIN_VERSION=0.9.0
11272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11273 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11274 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11276 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11277 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11278 $as_echo "yes" >&6; }
11281 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11282 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11283 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11284 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11285 $as_echo "$GTK_CFLAGS" >&6; }
11287 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11288 $as_echo_n "checking GTK_LIBS...
" >&6; }
11289 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11290 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11291 $as_echo "$GTK_LIBS" >&6; }
11293 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11294 $as_echo "no
" >&6; }
11297 ## If we have a custom action on failure, don't print errors, but
11298 ## do set a variable so people can do so.
11299 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11306 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11307 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11311 if test $succeeded = yes; then
11317 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11318 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11319 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11320 { (exit 1); exit 1; }; }
11325 if test x"$pkg_check_gtk" = xyes; then
11329 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11330 CFLAGS="$CFLAGS $GTK_CFLAGS"
11331 LIBS="$GTK_LIBS $LIBS"
11334 for ac_func in gtk_main
11336 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11337 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11338 $as_echo_n "checking
for $ac_func...
" >&6; }
11339 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11340 $as_echo_n "(cached
) " >&6
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11350 #define $ac_func innocuous_$ac_func
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func (); below.
11354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355 <limits.h> exists even on freestanding compilers. */
11358 # include <limits.h>
11360 # include <assert.h>
11365 /* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11372 /* The GNU C library defines this for functions which it implements
11373 to always fail with ENOSYS. Some functions are actually named
11374 something starting with __ and the normal name is an alias. */
11375 #if defined __stub_$ac_func || defined __stub___$ac_func
11382 return $ac_func ();
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (ac_try="$ac_link"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11393 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11394 $as_echo "$ac_try_echo") >&5
11395 (eval "$ac_link") 2>conftest.er1
11397 grep -v '^ *+' conftest.er1 >conftest.err
11399 cat conftest.err >&5
11400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest$ac_exeext && {
11405 test "$cross_compiling" = yes ||
11406 $as_test_x conftest$ac_exeext
11408 eval "$as_ac_var=yes"
11410 $as_echo "$as_me: failed program was
:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 eval "$as_ac_var=no
"
11416 rm -rf conftest.dSYM
11417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11418 conftest$ac_exeext conftest.$ac_ext
11420 ac_res=`eval 'as_val=${'$as_ac_var'}
11421 $as_echo "$as_val"'`
11422 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11423 $as_echo "$ac_res" >&6; }
11424 as_val=`eval 'as_val=${'$as_ac_var'}
11425 $as_echo "$as_val"'`
11426 if test "x
$as_val" = x""yes; then
11427 cat >>confdefs.h <<_ACEOF
11428 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11434 if test "${GTK_COMPILES}" != "yes"; then
11435 if test "$USE_X_TOOLKIT" != "maybe
"; then
11436 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11437 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11438 { (exit 1); exit 1; }; };
11443 cat >>confdefs.h <<\_ACEOF
11448 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11451 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11452 closing open displays. This is no problem
if you just use
11453 one display
, but
if you use
more than one and close one of them
11454 Emacs may crash.
" >&5
11455 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11456 closing open displays. This is no problem
if you just use
11457 one display
, but
if you use
more than one and close one of them
11458 Emacs may crash.
" >&2;}
11466 if test "${HAVE_GTK}" = "yes"; then
11468 if test "$with_toolkit_scroll_bars" != no; then
11469 with_toolkit_scroll_bars=yes
11472 HAVE_GTK_MULTIDISPLAY=no
11474 for ac_func in gdk_display_open
11476 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11477 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11478 $as_echo_n "checking
for $ac_func...
" >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11480 $as_echo_n "(cached
) " >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490 #define $ac_func innocuous_$ac_func
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11498 # include <limits.h>
11500 # include <assert.h>
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11522 return $ac_func ();
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11534 $as_echo "$ac_try_echo") >&5
11535 (eval "$ac_link") 2>conftest.er1
11537 grep -v '^ *+' conftest.er1 >conftest.err
11539 cat conftest.err >&5
11540 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest$ac_exeext && {
11545 test "$cross_compiling" = yes ||
11546 $as_test_x conftest$ac_exeext
11548 eval "$as_ac_var=yes"
11550 $as_echo "$as_me: failed program was
:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 eval "$as_ac_var=no
"
11556 rm -rf conftest.dSYM
11557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11558 conftest$ac_exeext conftest.$ac_ext
11560 ac_res=`eval 'as_val=${'$as_ac_var'}
11561 $as_echo "$as_val"'`
11562 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11563 $as_echo "$ac_res" >&6; }
11564 as_val=`eval 'as_val=${'$as_ac_var'}
11565 $as_echo "$as_val"'`
11566 if test "x
$as_val" = x""yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11570 HAVE_GTK_MULTIDISPLAY=yes
11574 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11576 cat >>confdefs.h <<\_ACEOF
11577 #define HAVE_GTK_MULTIDISPLAY 1
11582 HAVE_GTK_FILE_SELECTION=no
11584 for ac_func in gtk_file_selection_new
11586 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11587 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11588 $as_echo_n "checking
for $ac_func...
" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11590 $as_echo_n "(cached
) " >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 return $ac_func ();
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11644 $as_echo "$ac_try_echo") >&5
11645 (eval "$ac_link") 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11651 (exit $ac_status); } && {
11652 test -z "$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11654 } && test -s conftest$ac_exeext && {
11655 test "$cross_compiling" = yes ||
11656 $as_test_x conftest$ac_exeext
11658 eval "$as_ac_var=yes"
11660 $as_echo "$as_me: failed program was
:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 eval "$as_ac_var=no
"
11666 rm -rf conftest.dSYM
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11670 ac_res=`eval 'as_val=${'$as_ac_var'}
11671 $as_echo "$as_val"'`
11672 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11673 $as_echo "$ac_res" >&6; }
11674 as_val=`eval 'as_val=${'$as_ac_var'}
11675 $as_echo "$as_val"'`
11676 if test "x
$as_val" = x""yes; then
11677 cat >>confdefs.h <<_ACEOF
11678 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11680 HAVE_GTK_FILE_SELECTION=yes
11685 HAVE_GTK_FILE_CHOOSER=no
11687 for ac_func in gtk_file_chooser_dialog_new
11689 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11690 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11691 $as_echo_n "checking
for $ac_func...
" >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11693 $as_echo_n "(cached
) " >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11711 # include <limits.h>
11713 # include <assert.h>
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11735 return $ac_func ();
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748 (eval "$ac_link") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext && {
11758 test "$cross_compiling" = yes ||
11759 $as_test_x conftest$ac_exeext
11761 eval "$as_ac_var=yes"
11763 $as_echo "$as_me: failed program was
:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 eval "$as_ac_var=no
"
11769 rm -rf conftest.dSYM
11770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771 conftest$ac_exeext conftest.$ac_ext
11773 ac_res=`eval 'as_val=${'$as_ac_var'}
11774 $as_echo "$as_val"'`
11775 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11776 $as_echo "$ac_res" >&6; }
11777 as_val=`eval 'as_val=${'$as_ac_var'}
11778 $as_echo "$as_val"'`
11779 if test "x
$as_val" = x""yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11783 HAVE_GTK_FILE_CHOOSER=yes
11788 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11789 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_GTK_FILE_BOTH 1
11797 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11798 HAVE_GTK_AND_PTHREAD=no
11800 for ac_header in pthread.h
11802 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11804 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11805 $as_echo_n "checking
for $ac_header...
" >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11807 $as_echo_n "(cached
) " >&6
11809 ac_res=`eval 'as_val=${'$as_ac_Header'}
11810 $as_echo "$as_val"'`
11811 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11812 $as_echo "$ac_res" >&6; }
11814 # Is the header compilable?
11815 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11816 $as_echo_n "checking
$ac_header usability...
" >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 #include <$ac_header>
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11846 $as_echo "$as_me: failed program was
:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_compiler=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11854 $as_echo "$ac_header_compiler" >&6; }
11856 # Is the header present?
11857 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11858 $as_echo_n "checking
$ac_header presence...
" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <$ac_header>
11867 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11872 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11873 $as_echo "$ac_try_echo") >&5
11874 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1 >conftest.err
11878 cat conftest.err >&5
11879 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11880 (exit $ac_status); } >/dev/null && {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11884 ac_header_preproc=yes
11886 $as_echo "$as_me: failed program was
:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_header_preproc=no
11892 rm -f conftest.err conftest.$ac_ext
11893 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11894 $as_echo "$ac_header_preproc" >&6; }
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11899 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11900 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11901 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11903 ac_header_preproc=yes
11906 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11907 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11908 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11909 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11910 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11911 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11913 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11914 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11916 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11917 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11921 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
11922 $as_echo_n "checking
for $ac_header...
" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11924 $as_echo_n "(cached
) " >&6
11926 eval "$as_ac_Header=\
$ac_header_preproc"
11928 ac_res=`eval 'as_val=${'$as_ac_Header'}
11929 $as_echo "$as_val"'`
11930 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11931 $as_echo "$ac_res" >&6; }
11934 as_val=`eval 'as_val=${'$as_ac_Header'}
11935 $as_echo "$as_val"'`
11936 if test "x
$as_val" = x""yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11945 if test "$ac_cv_header_pthread_h"; then
11946 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
11947 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
11948 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11949 $as_echo_n "(cached
) " >&6
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lpthread $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11966 char pthread_self ();
11970 return pthread_self ();
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (ac_try="$ac_link"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11982 $as_echo "$ac_try_echo") >&5
11983 (eval "$ac_link") 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest$ac_exeext && {
11993 test "$cross_compiling" = yes ||
11994 $as_test_x conftest$ac_exeext
11996 ac_cv_lib_pthread_pthread_self=yes
11998 $as_echo "$as_me: failed program was
:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_lib_pthread_pthread_self=no
12004 rm -rf conftest.dSYM
12005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12010 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12011 if test "x
$ac_cv_lib_pthread_pthread_self" = x""yes; then
12012 HAVE_GTK_AND_PTHREAD=yes
12016 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12017 case "${canonical}" in
12019 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_GTK_AND_PTHREAD 1
12031 if test "${with_dbus}" = "yes"; then
12035 # Extract the first word of "pkg-config
", so it can be a program name with args.
12036 set dummy pkg-config; ac_word=$2
12037 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12038 $as_echo_n "checking
for $ac_word...
" >&6; }
12039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12040 $as_echo_n "(cached
) " >&6
12042 case $PKG_CONFIG in
12044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12055 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12062 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12067 if test -n "$PKG_CONFIG"; then
12068 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12069 $as_echo "$PKG_CONFIG" >&6; }
12071 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12072 $as_echo "no
" >&6; }
12077 if test "$PKG_CONFIG" = "no
" ; then
12080 PKG_CONFIG_MIN_VERSION=0.9.0
12081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12082 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12083 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12085 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12086 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12087 $as_echo "yes" >&6; }
12090 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12091 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12092 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12093 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12094 $as_echo "$DBUS_CFLAGS" >&6; }
12096 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12097 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12098 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12099 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12100 $as_echo "$DBUS_LIBS" >&6; }
12102 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12103 $as_echo "no
" >&6; }
12106 ## If we have a custom action on failure, don't print errors, but
12107 ## do set a variable so people can do so.
12108 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12115 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12116 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12120 if test $succeeded = yes; then
12126 if test "$HAVE_DBUS" = yes; then
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_DBUS 1
12136 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12137 if test "$with_xaw3d" != no; then
12138 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12139 $as_echo_n "checking
for xaw3d...
" >&6; }
12140 if test "${emacs_cv_xaw3d+set}" = set; then
12141 $as_echo_n "(cached
) " >&6
12143 cat >conftest.$ac_ext <<_ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12150 #include <X11/Intrinsic.h>
12151 #include <X11/Xaw3d/Simple.h>
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$ac_try_echo") >&5
12168 (eval "$ac_link") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest$ac_exeext && {
12178 test "$cross_compiling" = yes ||
12179 $as_test_x conftest$ac_exeext
12183 $as_echo "$as_me: failed program was
:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12189 rm -rf conftest.dSYM
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12197 if test $emacs_cv_xaw3d = yes; then
12198 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12199 $as_echo "yes; using Lucid toolkit
" >&6; }
12200 USE_X_TOOLKIT=LUCID
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_XAW3D 1
12208 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12209 $as_echo "no
" >&6; }
12210 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12211 $as_echo_n "checking
for libXaw...
" >&6; }
12212 if test "${emacs_cv_xaw+set}" = set; then
12213 $as_echo_n "(cached
) " >&6
12215 cat >conftest.$ac_ext <<_ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12222 #include <X11/Intrinsic.h>
12223 #include <X11/Xaw/Simple.h>
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (ac_try="$ac_link"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_link") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest$ac_exeext && {
12250 test "$cross_compiling" = yes ||
12251 $as_test_x conftest$ac_exeext
12255 $as_echo "$as_me: failed program was
:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12261 rm -rf conftest.dSYM
12262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12263 conftest$ac_exeext conftest.$ac_ext
12266 if test $emacs_cv_xaw = yes; then
12267 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12268 $as_echo "yes; using Lucid toolkit
" >&6; }
12269 USE_X_TOOLKIT=LUCID
12270 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12271 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12272 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12273 { (exit 1); exit 1; }; }
12275 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12276 $as_echo "no
; do not use toolkit by default
" >&6; }
12282 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12284 if test "${USE_X_TOOLKIT}" != "none
"; then
12285 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12286 $as_echo_n "checking X11 toolkit version...
" >&6; }
12287 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12288 $as_echo_n "(cached
) " >&6
12290 cat >conftest.$ac_ext <<_ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <X11/Intrinsic.h>
12300 #if XtSpecificationRelease < 6
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (ac_try="$ac_link"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12315 $as_echo "$ac_try_echo") >&5
12316 (eval "$ac_link") 2>conftest.er1
12318 grep -v '^ *+' conftest.er1 >conftest.err
12320 cat conftest.err >&5
12321 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12322 (exit $ac_status); } && {
12323 test -z "$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 } && test -s conftest$ac_exeext && {
12326 test "$cross_compiling" = yes ||
12327 $as_test_x conftest$ac_exeext
12329 emacs_cv_x11_toolkit_version_6=yes
12331 $as_echo "$as_me: failed program was
:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 emacs_cv_x11_toolkit_version_6=no
12337 rm -rf conftest.dSYM
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12342 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12343 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12344 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12345 $as_echo "6 or newer
" >&6; }
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_X11XTR6 1
12352 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12353 $as_echo "before
6" >&6; }
12357 if test x$HAVE_X11XTR6 = xyes; then
12358 LIBS="-lXt -lSM -lICE $LIBS"
12363 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12364 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12365 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12366 $as_echo_n "(cached
) " >&6
12368 ac_check_lib_save_LIBS=$LIBS
12370 cat >conftest.$ac_ext <<_ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12383 char XmuConvertStandardSelection ();
12387 return XmuConvertStandardSelection ();
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400 (eval "$ac_link") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest$ac_exeext && {
12410 test "$cross_compiling" = yes ||
12411 $as_test_x conftest$ac_exeext
12413 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12415 $as_echo "$as_me: failed program was
:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12421 rm -rf conftest.dSYM
12422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12426 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12427 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12428 if test "x
$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_LIBXMU 1
12437 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12440 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12441 if test "${HAVE_X11}" = "yes"; then
12442 if test "${USE_X_TOOLKIT}" != "none
"; then
12444 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12445 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12446 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12447 $as_echo_n "(cached
) " >&6
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lXext $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12464 char XShapeQueryExtension ();
12468 return XShapeQueryExtension ();
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481 (eval "$ac_link") 2>conftest.er1
12483 grep -v '^ *+' conftest.er1 >conftest.err
12485 cat conftest.err >&5
12486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest$ac_exeext && {
12491 test "$cross_compiling" = yes ||
12492 $as_test_x conftest$ac_exeext
12494 ac_cv_lib_Xext_XShapeQueryExtension=yes
12496 $as_echo "$as_me: failed program was
:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_Xext_XShapeQueryExtension=no
12502 rm -rf conftest.dSYM
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12508 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12509 if test "x
$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBXEXT 1
12514 LIBS="-lXext $LIBS"
12521 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12522 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12523 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12524 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12525 $as_echo_n "(cached
) " >&6
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12537 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12540 Motif version prior to 2.1.
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 emacs_cv_motif_version_2_1=yes
12566 $as_echo "$as_me: failed program was
:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 emacs_cv_motif_version_2_1=no
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12574 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12575 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12576 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12577 if test $emacs_cv_motif_version_2_1 = yes; then
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE_MOTIF_2_1 1
12584 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12585 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12586 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12587 $as_echo_n "(cached
) " >&6
12589 ac_check_lib_save_LIBS=$LIBS
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12604 char XpCreateContext ();
12608 return XpCreateContext ();
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12620 $as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext && {
12631 test "$cross_compiling" = yes ||
12632 $as_test_x conftest$ac_exeext
12634 ac_cv_lib_Xp_XpCreateContext=yes
12636 $as_echo "$as_me: failed program was
:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12639 ac_cv_lib_Xp_XpCreateContext=no
12642 rm -rf conftest.dSYM
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12647 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12648 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12649 if test "x
$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
12653 if test ${HAVE_LIBXP} = yes; then
12655 cat >>confdefs.h <<\_ACEOF
12656 #define HAVE_LIBXP 1
12661 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12662 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12663 if test "${emacs_cv_lesstif+set}" = set; then
12664 $as_echo_n "(cached
) " >&6
12666 # We put this in CFLAGS temporarily to precede other -I options
12667 # that might be in CFLAGS temporarily.
12668 # We put this in CPPFLAGS where it precedes the other -I options.
12669 OLD_CPPFLAGS=$CPPFLAGS
12671 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12672 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12673 cat >conftest.$ac_ext <<_ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12688 rm -f conftest.$ac_objext
12689 if { (ac_try="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12695 $as_echo "$ac_try_echo") >&5
12696 (eval "$ac_compile") 2>conftest.er1
12698 grep -v '^ *+' conftest.er1 >conftest.err
12700 cat conftest.err >&5
12701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest.$ac_objext; then
12706 emacs_cv_lesstif=yes
12708 $as_echo "$as_me: failed program was
:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12711 emacs_cv_lesstif=no
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12717 $as_echo "$emacs_cv_lesstif" >&6; }
12718 if test $emacs_cv_lesstif = yes; then
12719 # Make sure this -I option remains in CPPFLAGS after it is set
12720 # back to REAL_CPPFLAGS.
12721 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12722 # have those other -I options anyway. Ultimately, having this
12723 # directory ultimately in CPPFLAGS will be enough.
12724 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12725 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12728 CPPFLAGS=$OLD_CPPFLAGS
12735 USE_TOOLKIT_SCROLL_BARS=no
12736 if test "${with_toolkit_scroll_bars}" != "no
"; then
12737 if test "${USE_X_TOOLKIT}" != "none
"; then
12738 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define USE_TOOLKIT_SCROLL_BARS 1
12744 USE_TOOLKIT_SCROLL_BARS=yes
12745 elif test "${HAVE_XAW3D}" = "yes"; then
12746 cat >>confdefs.h <<\_ACEOF
12747 #define USE_TOOLKIT_SCROLL_BARS 1
12750 USE_TOOLKIT_SCROLL_BARS=yes
12752 elif test "${HAVE_GTK}" = "yes"; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define USE_TOOLKIT_SCROLL_BARS 1
12757 USE_TOOLKIT_SCROLL_BARS=yes
12758 elif test "${HAVE_NS}" = "yes"; then
12759 cat >>confdefs.h <<\_ACEOF
12760 #define USE_TOOLKIT_SCROLL_BARS 1
12763 USE_TOOLKIT_SCROLL_BARS=yes
12767 cat >conftest.$ac_ext <<_ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12774 #include <X11/Xlib.h>
12775 #include <X11/Xresource.h>
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12790 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.$ac_objext; then
12804 cat >>confdefs.h <<\_ACEOF
12809 $as_echo "$as_me: failed program was
:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 if test "${with_xim}" != "no
"; then
12820 cat >>confdefs.h <<\_ACEOF
12827 if test "${HAVE_XIM}" != "no
"; then
12828 late_CFLAGS=$CFLAGS
12829 if test "$GCC" = yes; then
12830 CFLAGS="$CFLAGS --pedantic-errors"
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12839 #include <X11/Xlib.h>
12840 #include <X11/Xresource.h>
12849 XPointer *client_data;
12851 /* If we're not using GCC, it's probably not XFree86, and this is
12852 probably right, but we can't use something like --pedantic-errors. */
12853 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12854 char*, XIMProc, XPointer*);
12856 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12862 rm -f conftest.$ac_objext
12863 if { (ac_try="$ac_compile"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870 (eval "$ac_compile") 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12876 (exit $ac_status); } && {
12877 test -z "$ac_c_werror_flag" ||
12878 test ! -s conftest.err
12879 } && test -s conftest.$ac_objext; then
12880 emacs_cv_arg6_star=yes
12882 $as_echo "$as_me: failed program was
:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 if test "$emacs_cv_arg6_star" = yes; then
12891 cat >>confdefs.h <<\_ACEOF
12892 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12896 cat >>confdefs.h <<\_ACEOF
12897 #define XRegisterIMInstantiateCallback_arg6 XPointer
12901 CFLAGS=$late_CFLAGS
12904 ### Start of font-backend (under any platform) section.
12905 # (nothing here yet -- this is a placeholder)
12906 ### End of font-backend (under any platform) section.
12908 ### Start of font-backend (under X11) section.
12909 if test "${HAVE_X11}" = "yes"; then
12913 # Extract the first word of "pkg-config
", so it can be a program name with args.
12914 set dummy pkg-config; ac_word=$2
12915 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12916 $as_echo_n "checking
for $ac_word...
" >&6; }
12917 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12918 $as_echo_n "(cached
) " >&6
12920 case $PKG_CONFIG in
12922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12933 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12940 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12945 if test -n "$PKG_CONFIG"; then
12946 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12947 $as_echo "$PKG_CONFIG" >&6; }
12949 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12950 $as_echo "no
" >&6; }
12955 if test "$PKG_CONFIG" = "no
" ; then
12958 PKG_CONFIG_MIN_VERSION=0.9.0
12959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12960 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
12961 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
12963 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
12964 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12965 $as_echo "yes" >&6; }
12968 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
12969 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
12970 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12971 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
12972 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12974 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
12975 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
12976 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12977 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
12978 $as_echo "$FONTCONFIG_LIBS" >&6; }
12980 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12981 $as_echo "no
" >&6; }
12982 FONTCONFIG_CFLAGS=""
12984 ## If we have a custom action on failure, don't print errors, but
12985 ## do set a variable so people can do so.
12986 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
12993 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12994 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12998 if test $succeeded = yes; then
13004 test "${HAVE_FC}" = "no
" && with_freetype=no
13006 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
13008 if test "x
${with_freetype}" = "xno
" || test "x
${with_x}" = "xno
"; then
13011 if test "x
${with_xft}" != "xno
"; then
13016 # Extract the first word of "pkg-config
", so it can be a program name with args.
13017 set dummy pkg-config; ac_word=$2
13018 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13019 $as_echo_n "checking
for $ac_word...
" >&6; }
13020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13021 $as_echo_n "(cached
) " >&6
13023 case $PKG_CONFIG in
13025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13036 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13043 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13047 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13048 if test -n "$PKG_CONFIG"; then
13049 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13050 $as_echo "$PKG_CONFIG" >&6; }
13052 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13053 $as_echo "no
" >&6; }
13058 if test "$PKG_CONFIG" = "no
" ; then
13061 PKG_CONFIG_MIN_VERSION=0.9.0
13062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13063 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13064 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13066 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13067 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13068 $as_echo "yes" >&6; }
13071 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13072 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13073 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13074 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13075 $as_echo "$XFT_CFLAGS" >&6; }
13077 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13078 $as_echo_n "checking XFT_LIBS...
" >&6; }
13079 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13080 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13081 $as_echo "$XFT_LIBS" >&6; }
13083 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13084 $as_echo "no
" >&6; }
13087 ## If we have a custom action on failure, don't print errors, but
13088 ## do set a variable so people can do so.
13089 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13096 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13097 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13101 if test $succeeded = yes; then
13107 if test "$HAVE_XFT" != no; then
13108 OLD_CPPFLAGS="$CPPFLAGS"
13109 OLD_CFLAGS="$CFLAGS"
13111 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13112 CFLAGS="$CFLAGS $XFT_CFLAGS"
13113 LIBS="$XFT_LIBS $LIBS"
13114 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13115 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13116 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13117 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13118 $as_echo_n "(cached
) " >&6
13120 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13121 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13123 # Is the header compilable?
13124 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13125 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13126 cat >conftest.$ac_ext <<_ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_includes_default
13133 #include <X11/Xft/Xft.h>
13135 rm -f conftest.$ac_objext
13136 if { (ac_try="$ac_compile"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13142 $as_echo "$ac_try_echo") >&5
13143 (eval "$ac_compile") 2>conftest.er1
13145 grep -v '^ *+' conftest.er1 >conftest.err
13147 cat conftest.err >&5
13148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13149 (exit $ac_status); } && {
13150 test -z "$ac_c_werror_flag" ||
13151 test ! -s conftest.err
13152 } && test -s conftest.$ac_objext; then
13153 ac_header_compiler=yes
13155 $as_echo "$as_me: failed program was
:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13158 ac_header_compiler=no
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13163 $as_echo "$ac_header_compiler" >&6; }
13165 # Is the header present?
13166 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13167 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174 #include <X11/Xft/Xft.h>
13176 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13189 (exit $ac_status); } >/dev/null && {
13190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13193 ac_header_preproc=yes
13195 $as_echo "$as_me: failed program was
:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_header_preproc=no
13201 rm -f conftest.err conftest.$ac_ext
13202 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13203 $as_echo "$ac_header_preproc" >&6; }
13205 # So? What about this header?
13206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13208 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13209 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13210 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13211 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13212 ac_header_preproc=yes
13215 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13216 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13217 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13218 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13219 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13220 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13221 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13222 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13223 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13224 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13226 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13230 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13231 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13232 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13233 $as_echo_n "(cached
) " >&6
13235 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13237 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13238 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13241 if test "x
$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
13242 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13243 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13244 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13245 $as_echo_n "(cached
) " >&6
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lXft $XFT_LIBS $LIBS"
13249 cat >conftest.$ac_ext <<_ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13262 char XftFontOpen ();
13266 return XftFontOpen ();
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_link") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest$ac_exeext && {
13289 test "$cross_compiling" = yes ||
13290 $as_test_x conftest$ac_exeext
13292 ac_cv_lib_Xft_XftFontOpen=yes
13294 $as_echo "$as_me: failed program was
:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_lib_Xft_XftFontOpen=no
13300 rm -rf conftest.dSYM
13301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13305 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13306 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13307 if test "x
$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
13315 if test "${HAVE_XFT}" = "yes"; then
13317 cat >>confdefs.h <<\_ACEOF
13322 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13324 CPPFLAGS="$OLD_CPPFLAGS"
13325 CFLAGS="$OLD_CFLAGS"
13327 fi # "${HAVE_XFT}" = "yes"
13328 fi # "$HAVE_XFT" != no
13329 fi # "x
${with_xft}" != "xno
"
13331 if test "$HAVE_XFT" != "yes"; then
13337 ### Use -lfreetype if available, unless `--with-freetype=no'.
13338 if test "${HAVE_XFT}" = "yes"; then
13342 elif test "x
${with_freetype}" != "xno
" && test "x
${with_x}" != "xno
"; then
13347 # Extract the first word of "pkg-config
", so it can be a program name with args.
13348 set dummy pkg-config; ac_word=$2
13349 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13350 $as_echo_n "checking
for $ac_word...
" >&6; }
13351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13352 $as_echo_n "(cached
) " >&6
13354 case $PKG_CONFIG in
13356 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13366 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13367 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13379 if test -n "$PKG_CONFIG"; then
13380 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13381 $as_echo "$PKG_CONFIG" >&6; }
13383 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13384 $as_echo "no
" >&6; }
13389 if test "$PKG_CONFIG" = "no
" ; then
13392 PKG_CONFIG_MIN_VERSION=0.9.0
13393 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13394 { $as_echo "$as_me:$LINENO: checking
for freetype2
" >&5
13395 $as_echo_n "checking
for freetype2...
" >&6; }
13397 if $PKG_CONFIG --exists "freetype2
" 2>&5; then
13398 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13399 $as_echo "yes" >&6; }
13402 { $as_echo "$as_me:$LINENO: checking FREETYPE_CFLAGS
" >&5
13403 $as_echo_n "checking FREETYPE_CFLAGS...
" >&6; }
13404 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2
"|sed -e 's,///*,/,g'`
13405 { $as_echo "$as_me:$LINENO: result
: $FREETYPE_CFLAGS" >&5
13406 $as_echo "$FREETYPE_CFLAGS" >&6; }
13408 { $as_echo "$as_me:$LINENO: checking FREETYPE_LIBS
" >&5
13409 $as_echo_n "checking FREETYPE_LIBS...
" >&6; }
13410 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2
"|sed -e 's,///*,/,g'`
13411 { $as_echo "$as_me:$LINENO: result
: $FREETYPE_LIBS" >&5
13412 $as_echo "$FREETYPE_LIBS" >&6; }
13414 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13415 $as_echo "no
" >&6; }
13418 ## If we have a custom action on failure, don't print errors, but
13419 ## do set a variable so people can do so.
13420 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2
"`
13427 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13428 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13432 if test $succeeded = yes; then
13441 if test "${HAVE_FREETYPE}" = "yes"; then
13443 cat >>confdefs.h <<\_ACEOF
13444 #define HAVE_FREETYPE 1
13447 if test "${with_libotf}" != "no
"; then
13451 # Extract the first word of "pkg-config
", so it can be a program name with args.
13452 set dummy pkg-config; ac_word=$2
13453 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13454 $as_echo_n "checking
for $ac_word...
" >&6; }
13455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13456 $as_echo_n "(cached
) " >&6
13458 case $PKG_CONFIG in
13460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13471 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13483 if test -n "$PKG_CONFIG"; then
13484 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13485 $as_echo "$PKG_CONFIG" >&6; }
13487 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13488 $as_echo "no
" >&6; }
13493 if test "$PKG_CONFIG" = "no
" ; then
13496 PKG_CONFIG_MIN_VERSION=0.9.0
13497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13498 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13499 $as_echo_n "checking
for libotf...
" >&6; }
13501 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13502 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13503 $as_echo "yes" >&6; }
13506 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13507 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13508 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13509 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13510 $as_echo "$LIBOTF_CFLAGS" >&6; }
13512 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13513 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13514 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13515 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13516 $as_echo "$LIBOTF_LIBS" >&6; }
13518 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13519 $as_echo "no
" >&6; }
13522 ## If we have a custom action on failure, don't print errors, but
13523 ## do set a variable so people can do so.
13524 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13531 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13532 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13536 if test $succeeded = yes; then
13542 if test "$HAVE_LIBOTF" = "yes"; then
13544 cat >>confdefs.h <<\_ACEOF
13545 #define HAVE_LIBOTF 1
13548 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13549 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13550 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13551 $as_echo_n "(cached
) " >&6
13553 ac_check_lib_save_LIBS=$LIBS
13555 cat >conftest.$ac_ext <<_ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13568 char OTF_get_variation_glyphs ();
13572 return OTF_get_variation_glyphs ();
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13584 $as_echo "$ac_try_echo") >&5
13585 (eval "$ac_link") 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest$ac_exeext && {
13595 test "$cross_compiling" = yes ||
13596 $as_test_x conftest$ac_exeext
13598 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13600 $as_echo "$as_me: failed program was
:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13606 rm -rf conftest.dSYM
13607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13608 conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13611 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13612 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13613 if test "x
$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
13614 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13616 HAVE_OTF_GET_VARIATION_GLYPHS=no
13619 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13631 if test "${HAVE_LIBOTF}" = yes; then
13632 if test "${with_m17n_flt}" != "no
"; then
13636 # Extract the first word of "pkg-config
", so it can be a program name with args.
13637 set dummy pkg-config; ac_word=$2
13638 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13639 $as_echo_n "checking
for $ac_word...
" >&6; }
13640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13641 $as_echo_n "(cached
) " >&6
13643 case $PKG_CONFIG in
13645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13656 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13667 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13668 if test -n "$PKG_CONFIG"; then
13669 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13670 $as_echo "$PKG_CONFIG" >&6; }
13672 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13673 $as_echo "no
" >&6; }
13678 if test "$PKG_CONFIG" = "no
" ; then
13681 PKG_CONFIG_MIN_VERSION=0.9.0
13682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13683 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13684 $as_echo_n "checking
for m17n-flt...
" >&6; }
13686 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13687 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13688 $as_echo "yes" >&6; }
13691 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13692 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13693 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13694 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13695 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13697 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13698 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13699 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13700 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13701 $as_echo "$M17N_FLT_LIBS" >&6; }
13703 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13704 $as_echo "no
" >&6; }
13707 ## If we have a custom action on failure, don't print errors, but
13708 ## do set a variable so people can do so.
13709 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13716 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13717 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13721 if test $succeeded = yes; then
13727 if test "$HAVE_M17N_FLT" = "yes"; then
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_M17N_FLT 1
13742 ### End of font-backend (under X11) section.
13753 ### Use -lXpm if available, unless `--with-xpm=no'.
13755 if test "${HAVE_X11}" = "yes"; then
13756 if test "${with_xpm}" != "no
"; then
13757 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13758 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13759 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13761 $as_echo_n "(cached
) " >&6
13763 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13764 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13766 # Is the header compilable?
13767 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13768 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 #include <X11/xpm.h>
13778 rm -f conftest.$ac_objext
13779 if { (ac_try="$ac_compile"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13785 $as_echo "$ac_try_echo") >&5
13786 (eval "$ac_compile") 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13792 (exit $ac_status); } && {
13793 test -z "$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 } && test -s conftest.$ac_objext; then
13796 ac_header_compiler=yes
13798 $as_echo "$as_me: failed program was
:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_header_compiler=no
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13806 $as_echo "$ac_header_compiler" >&6; }
13808 # Is the header present?
13809 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13810 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 #include <X11/xpm.h>
13819 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13825 $as_echo "$ac_try_echo") >&5
13826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13828 grep -v '^ *+' conftest.er1 >conftest.err
13830 cat conftest.err >&5
13831 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13832 (exit $ac_status); } >/dev/null && {
13833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13836 ac_header_preproc=yes
13838 $as_echo "$as_me: failed program was
:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_header_preproc=no
13844 rm -f conftest.err conftest.$ac_ext
13845 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13846 $as_echo "$ac_header_preproc" >&6; }
13848 # So? What about this header?
13849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13851 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13852 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13853 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13854 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13855 ac_header_preproc=yes
13858 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13859 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13860 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13861 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13862 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13863 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13864 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13865 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13866 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13867 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13868 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13869 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13873 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13874 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13875 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13876 $as_echo_n "(cached
) " >&6
13878 ac_cv_header_X11_xpm_h=$ac_header_preproc
13880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13881 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13884 if test "x
$ac_cv_header_X11_xpm_h" = x""yes; then
13885 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13886 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
13887 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13888 $as_echo_n "(cached
) " >&6
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lXpm -lX11 $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13905 char XpmReadFileToPixmap ();
13909 return XpmReadFileToPixmap ();
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13921 $as_echo "$ac_try_echo") >&5
13922 (eval "$ac_link") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest$ac_exeext && {
13932 test "$cross_compiling" = yes ||
13933 $as_test_x conftest$ac_exeext
13935 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13937 $as_echo "$as_me: failed program was
:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13943 rm -rf conftest.dSYM
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13949 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13950 if test "x
$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
13957 if test "${HAVE_XPM}" = "yes"; then
13958 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
13959 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include "X11
/xpm.h
"
13967 #ifndef XpmReturnAllocPixels
13968 no_return_alloc_pixels
13972 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13973 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
13981 if test "${HAVE_XPM}" = "yes"; then
13982 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13983 $as_echo "yes" >&6; }
13985 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13986 $as_echo "no
" >&6; }
13991 if test "${HAVE_XPM}" = "yes"; then
13993 cat >>confdefs.h <<\_ACEOF
14000 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14002 if test "${HAVE_X11}" = "yes"; then
14003 if test "${with_jpeg}" != "no
"; then
14004 if test "${ac_cv_header_jerror_h+set}" = set; then
14005 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14006 $as_echo_n "checking
for jerror.h...
" >&6; }
14007 if test "${ac_cv_header_jerror_h+set}" = set; then
14008 $as_echo_n "(cached
) " >&6
14010 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14011 $as_echo "$ac_cv_header_jerror_h" >&6; }
14013 # Is the header compilable?
14014 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14015 $as_echo_n "checking jerror.h usability...
" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <jerror.h>
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14032 $as_echo "$ac_try_echo") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14035 grep -v '^ *+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14043 ac_header_compiler=yes
14045 $as_echo "$as_me: failed program was
:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_header_compiler=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14053 $as_echo "$ac_header_compiler" >&6; }
14055 # Is the header present?
14056 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14057 $as_echo_n "checking jerror.h presence...
" >&6; }
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <jerror.h>
14066 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14072 $as_echo "$ac_try_echo") >&5
14073 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14079 (exit $ac_status); } >/dev/null && {
14080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14083 ac_header_preproc=yes
14085 $as_echo "$as_me: failed program was
:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 ac_header_preproc=no
14091 rm -f conftest.err conftest.$ac_ext
14092 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14093 $as_echo "$ac_header_preproc" >&6; }
14095 # So? What about this header?
14096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14098 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14099 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14100 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14101 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14102 ac_header_preproc=yes
14105 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14106 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14108 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14110 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14112 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14113 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14114 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14115 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14116 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14120 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14121 $as_echo_n "checking
for jerror.h...
" >&6; }
14122 if test "${ac_cv_header_jerror_h+set}" = set; then
14123 $as_echo_n "(cached
) " >&6
14125 ac_cv_header_jerror_h=$ac_header_preproc
14127 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14128 $as_echo "$ac_cv_header_jerror_h" >&6; }
14131 if test "x
$ac_cv_header_jerror_h" = x""yes; then
14132 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14133 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14134 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14135 $as_echo_n "(cached
) " >&6
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-ljpeg $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14152 char jpeg_destroy_compress ();
14156 return jpeg_destroy_compress ();
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14168 $as_echo "$ac_try_echo") >&5
14169 (eval "$ac_link") 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14175 (exit $ac_status); } && {
14176 test -z "$ac_c_werror_flag" ||
14177 test ! -s conftest.err
14178 } && test -s conftest$ac_exeext && {
14179 test "$cross_compiling" = yes ||
14180 $as_test_x conftest$ac_exeext
14182 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14184 $as_echo "$as_me: failed program was
:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14187 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14190 rm -rf conftest.dSYM
14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192 conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14195 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14196 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14197 if test "x
$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14207 if test "${HAVE_JPEG}" = "yes"; then
14208 cat >>confdefs.h <<\_ACEOF
14209 #define HAVE_JPEG 1
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 #include <jpeglib.h>
14219 version=JPEG_LIB_VERSION
14222 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14223 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_JPEG 1
14229 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14230 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14238 ### Use -lpng if available, unless `--with-png=no'.
14240 if test "${HAVE_X11}" = "yes"; then
14241 if test "${with_png}" != "no
"; then
14242 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14243 # in /usr/include/libpng.
14246 for ac_header in png.h libpng/png.h
14248 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14250 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14251 $as_echo_n "checking
for $ac_header...
" >&6; }
14252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14253 $as_echo_n "(cached
) " >&6
14255 ac_res=`eval 'as_val=${'$as_ac_Header'}
14256 $as_echo "$as_val"'`
14257 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14258 $as_echo "$ac_res" >&6; }
14260 # Is the header compilable?
14261 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14262 $as_echo_n "checking
$ac_header usability...
" >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 $ac_includes_default
14270 #include <$ac_header>
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14278 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14279 $as_echo "$ac_try_echo") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
14290 ac_header_compiler=yes
14292 $as_echo "$as_me: failed program was
:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 ac_header_compiler=no
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14300 $as_echo "$ac_header_compiler" >&6; }
14302 # Is the header present?
14303 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14304 $as_echo_n "checking
$ac_header presence...
" >&6; }
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <$ac_header>
14313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14326 (exit $ac_status); } >/dev/null && {
14327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14330 ac_header_preproc=yes
14332 $as_echo "$as_me: failed program was
:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_header_preproc=no
14338 rm -f conftest.err conftest.$ac_ext
14339 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14340 $as_echo "$ac_header_preproc" >&6; }
14342 # So? What about this header?
14343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14345 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14346 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14347 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14349 ac_header_preproc=yes
14352 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14353 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14355 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14357 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14359 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14363 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14367 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14368 $as_echo_n "checking
for $ac_header...
" >&6; }
14369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14370 $as_echo_n "(cached
) " >&6
14372 eval "$as_ac_Header=\
$ac_header_preproc"
14374 ac_res=`eval 'as_val=${'$as_ac_Header'}
14375 $as_echo "$as_val"'`
14376 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14377 $as_echo "$ac_res" >&6; }
14380 as_val=`eval 'as_val=${'$as_ac_Header'}
14381 $as_echo "$as_val"'`
14382 if test "x
$as_val" = x""yes; then
14383 cat >>confdefs.h <<_ACEOF
14384 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14391 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14392 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14393 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14394 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14395 $as_echo_n "(cached
) " >&6
14397 ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-lpng -lz -lm $LIBS"
14399 cat >conftest.$ac_ext <<_ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14412 char png_get_channels ();
14416 return png_get_channels ();
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14428 $as_echo "$ac_try_echo") >&5
14429 (eval "$ac_link") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_c_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest$ac_exeext && {
14439 test "$cross_compiling" = yes ||
14440 $as_test_x conftest$ac_exeext
14442 ac_cv_lib_png_png_get_channels=yes
14444 $as_echo "$as_me: failed program was
:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14447 ac_cv_lib_png_png_get_channels=no
14450 rm -rf conftest.dSYM
14451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14455 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14456 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14457 if test "x
$ac_cv_lib_png_png_get_channels" = x""yes; then
14464 if test "${HAVE_PNG}" = "yes"; then
14466 cat >>confdefs.h <<\_ACEOF
14473 ### Use -ltiff if available, unless `--with-tiff=no'.
14475 if test "${HAVE_X11}" = "yes"; then
14476 if test "${with_tiff}" != "no
"; then
14477 if test "${ac_cv_header_tiffio_h+set}" = set; then
14478 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14479 $as_echo_n "checking
for tiffio.h...
" >&6; }
14480 if test "${ac_cv_header_tiffio_h+set}" = set; then
14481 $as_echo_n "(cached
) " >&6
14483 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14484 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14486 # Is the header compilable?
14487 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14488 $as_echo_n "checking tiffio.h usability...
" >&6; }
14489 cat >conftest.$ac_ext <<_ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 $ac_includes_default
14496 #include <tiffio.h>
14498 rm -f conftest.$ac_objext
14499 if { (ac_try="$ac_compile"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_compile") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest.$ac_objext; then
14516 ac_header_compiler=yes
14518 $as_echo "$as_me: failed program was
:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_header_compiler=no
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14526 $as_echo "$ac_header_compiler" >&6; }
14528 # Is the header present?
14529 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14530 $as_echo_n "checking tiffio.h presence...
" >&6; }
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <tiffio.h>
14539 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14552 (exit $ac_status); } >/dev/null && {
14553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14556 ac_header_preproc=yes
14558 $as_echo "$as_me: failed program was
:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_header_preproc=no
14564 rm -f conftest.err conftest.$ac_ext
14565 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14566 $as_echo "$ac_header_preproc" >&6; }
14568 # So? What about this header?
14569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14571 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14572 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14574 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14575 ac_header_preproc=yes
14578 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14579 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14580 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14581 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14582 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14583 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14584 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14585 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14586 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14587 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14588 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14589 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14593 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14594 $as_echo_n "checking
for tiffio.h...
" >&6; }
14595 if test "${ac_cv_header_tiffio_h+set}" = set; then
14596 $as_echo_n "(cached
) " >&6
14598 ac_cv_header_tiffio_h=$ac_header_preproc
14600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14601 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14604 if test "x
$ac_cv_header_tiffio_h" = x""yes; then
14606 # At least one tiff package requires the jpeg library.
14607 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14608 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14609 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14610 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14611 $as_echo_n "(cached
) " >&6
14613 ac_check_lib_save_LIBS=$LIBS
14614 LIBS="-ltiff $tifflibs $LIBS"
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14622 /* Override any GCC internal prototype to avoid an error.
14623 Use char because int might match the return type of a GCC
14624 builtin and then its argument prototype would still apply. */
14628 char TIFFGetVersion ();
14632 return TIFFGetVersion ();
14637 rm -f conftest.$ac_objext conftest$ac_exeext
14638 if { (ac_try="$ac_link"
14639 case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14643 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14644 $as_echo "$ac_try_echo") >&5
14645 (eval "$ac_link") 2>conftest.er1
14647 grep -v '^ *+' conftest.er1 >conftest.err
14649 cat conftest.err >&5
14650 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext && {
14655 test "$cross_compiling" = yes ||
14656 $as_test_x conftest$ac_exeext
14658 ac_cv_lib_tiff_TIFFGetVersion=yes
14660 $as_echo "$as_me: failed program was
:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_lib_tiff_TIFFGetVersion=no
14666 rm -rf conftest.dSYM
14667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14668 conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14671 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14672 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14673 if test "x
$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
14682 if test "${HAVE_TIFF}" = "yes"; then
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_TIFF 1
14691 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14693 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14694 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14695 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14696 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14697 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14698 $as_echo_n "(cached
) " >&6
14700 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14701 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14703 # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14705 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <gif_lib.h>
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest.$ac_objext; then
14733 ac_header_compiler=yes
14735 $as_echo "$as_me: failed program was
:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_header_compiler=no
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14747 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <gif_lib.h>
14756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc=yes
14775 $as_echo "$as_me: failed program was
:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_preproc=no
14781 rm -f conftest.err conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14789 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14791 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14792 ac_header_preproc=yes
14795 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14796 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14798 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14800 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14802 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14804 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14805 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14806 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14810 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14811 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14813 $as_echo_n "(cached
) " >&6
14815 ac_cv_header_gif_lib_h=$ac_header_preproc
14817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14818 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14821 if test "x
$ac_cv_header_gif_lib_h" = x""yes; then
14822 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14823 # Earlier versions can crash Emacs.
14824 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14825 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
14826 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14827 $as_echo_n "(cached
) " >&6
14829 ac_check_lib_save_LIBS=$LIBS
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14844 char EGifPutExtensionLast ();
14848 return EGifPutExtensionLast ();
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (ac_try="$ac_link"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14859 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861 (eval "$ac_link") 2>conftest.er1
14863 grep -v '^ *+' conftest.er1 >conftest.err
14865 cat conftest.err >&5
14866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest$ac_exeext && {
14871 test "$cross_compiling" = yes ||
14872 $as_test_x conftest$ac_exeext
14874 ac_cv_lib_gif_EGifPutExtensionLast=yes
14876 $as_echo "$as_me: failed program was
:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_lib_gif_EGifPutExtensionLast=no
14882 rm -rf conftest.dSYM
14883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LIBS=$ac_check_lib_save_LIBS
14887 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14888 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14889 if test "x
$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
14899 if test "$HAVE_GIF" = yes; then
14900 ac_gif_lib_name="-lgif"
14903 # If gif_lib.h but no libgif, try libungif.
14904 if test x"$try_libungif" = xyes; then
14905 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
14906 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
14907 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14908 $as_echo_n "(cached
) " >&6
14910 ac_check_lib_save_LIBS=$LIBS
14911 LIBS="-lungif $LIBS"
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14925 char EGifPutExtensionLast ();
14929 return EGifPutExtensionLast ();
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14941 $as_echo "$ac_try_echo") >&5
14942 (eval "$ac_link") 2>conftest.er1
14944 grep -v '^ *+' conftest.er1 >conftest.err
14946 cat conftest.err >&5
14947 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14948 (exit $ac_status); } && {
14949 test -z "$ac_c_werror_flag" ||
14950 test ! -s conftest.err
14951 } && test -s conftest$ac_exeext && {
14952 test "$cross_compiling" = yes ||
14953 $as_test_x conftest$ac_exeext
14955 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14957 $as_echo "$as_me: failed program was
:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14960 ac_cv_lib_ungif_EGifPutExtensionLast=no
14963 rm -rf conftest.dSYM
14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14968 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14969 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14970 if test "x
$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
14975 if test "$HAVE_GIF" = yes; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define LIBGIF -lungif
14981 ac_gif_lib_name="-lungif"
14985 if test "${HAVE_GIF}" = "yes"; then
14987 cat >>confdefs.h <<\_ACEOF
14994 if test "${HAVE_X11}" = "yes"; then
14997 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
14998 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
14999 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15000 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15001 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15002 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15003 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15004 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15005 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15006 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15008 if test "X
${MISSING}" != X; then
15009 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15011 Maybe some development libraries
/packages are missing?
15012 If you don
't want to link with them give
15014 as options to configure" >&5
15015 $as_echo "$as_me: error: The following required libraries were not found:
15017 Maybe some development libraries/packages are missing?
15018 If you don't want to link with them give
15020 as options to configure
" >&2;}
15021 { (exit 1); exit 1; }; }
15025 ### Use -lgpm if available, unless `--with-gpm=no'.
15027 if test "${with_gpm}" != "no
"; then
15028 if test "${ac_cv_header_gpm_h+set}" = set; then
15029 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15030 $as_echo_n "checking
for gpm.h...
" >&6; }
15031 if test "${ac_cv_header_gpm_h+set}" = set; then
15032 $as_echo_n "(cached
) " >&6
15034 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15035 $as_echo "$ac_cv_header_gpm_h" >&6; }
15037 # Is the header compilable?
15038 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15039 $as_echo_n "checking gpm.h usability...
" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15069 $as_echo "$as_me: failed program was
:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15077 $as_echo "$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15081 $as_echo_n "checking gpm.h presence...
" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15090 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15103 (exit $ac_status); } >/dev/null && {
15104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15107 ac_header_preproc=yes
15109 $as_echo "$as_me: failed program was
:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_header_preproc=no
15115 rm -f conftest.err conftest.$ac_ext
15116 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15117 $as_echo "$ac_header_preproc" >&6; }
15119 # So? What about this header?
15120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15122 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15123 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15125 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15126 ac_header_preproc=yes
15129 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15130 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15131 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15132 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15133 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15134 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15135 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15136 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15138 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15139 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15140 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15144 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15145 $as_echo_n "checking
for gpm.h...
" >&6; }
15146 if test "${ac_cv_header_gpm_h+set}" = set; then
15147 $as_echo_n "(cached
) " >&6
15149 ac_cv_header_gpm_h=$ac_header_preproc
15151 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15152 $as_echo "$ac_cv_header_gpm_h" >&6; }
15155 if test "x
$ac_cv_header_gpm_h" = x""yes; then
15156 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15157 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15158 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15159 $as_echo_n "(cached
) " >&6
15161 ac_check_lib_save_LIBS=$LIBS
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15180 return Gpm_Open ();
15185 rm -f conftest.$ac_objext conftest$ac_exeext
15186 if { (ac_try="$ac_link"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15192 $as_echo "$ac_try_echo") >&5
15193 (eval "$ac_link") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest$ac_exeext && {
15203 test "$cross_compiling" = yes ||
15204 $as_test_x conftest$ac_exeext
15206 ac_cv_lib_gpm_Gpm_Open=yes
15208 $as_echo "$as_me: failed program was
:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_cv_lib_gpm_Gpm_Open=no
15214 rm -rf conftest.dSYM
15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15216 conftest$ac_exeext conftest.$ac_ext
15217 LIBS=$ac_check_lib_save_LIBS
15219 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15220 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15221 if test "x
$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15230 if test "${HAVE_GPM}" = "yes"; then
15232 cat >>confdefs.h <<\_ACEOF
15238 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15239 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15240 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15241 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15242 $as_echo_n "(cached
) " >&6
15244 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15245 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15247 # Is the header compilable?
15248 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15249 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15257 #include <malloc/malloc.h>
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15266 $as_echo "$ac_try_echo") >&5
15267 (eval "$ac_compile") 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15273 (exit $ac_status); } && {
15274 test -z "$ac_c_werror_flag" ||
15275 test ! -s conftest.err
15276 } && test -s conftest.$ac_objext; then
15277 ac_header_compiler=yes
15279 $as_echo "$as_me: failed program was
:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_compiler=no
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15287 $as_echo "$ac_header_compiler" >&6; }
15289 # Is the header present?
15290 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15291 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <malloc/malloc.h>
15300 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15313 (exit $ac_status); } >/dev/null && {
15314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15317 ac_header_preproc=yes
15319 $as_echo "$as_me: failed program was
:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_header_preproc=no
15325 rm -f conftest.err conftest.$ac_ext
15326 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15327 $as_echo "$ac_header_preproc" >&6; }
15329 # So? What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15332 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15333 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15335 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15336 ac_header_preproc=yes
15339 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15340 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15342 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15344 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15346 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15348 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15350 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15354 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15355 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15356 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15357 $as_echo_n "(cached
) " >&6
15359 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15361 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15362 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15365 if test "x
$ac_cv_header_malloc_malloc_h" = x""yes; then
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE_MALLOC_MALLOC_H 1
15375 ### Use NeXTstep API to implement GUI.
15376 if test "${HAVE_NS}" = "yes"; then
15378 cat >>confdefs.h <<\_ACEOF
15382 if test "${NS_IMPL_COCOA}" = "yes"; then
15384 cat >>confdefs.h <<\_ACEOF
15385 #define NS_IMPL_COCOA 1
15389 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15391 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15393 cat >>confdefs.h <<\_ACEOF
15394 #define NS_IMPL_GNUSTEP 1
15397 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15399 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15401 cat >>confdefs.h <<\_ACEOF
15402 #define NS_HAVE_NSINTEGER 1
15406 # We also have mouse menus.
15411 ### Use session management (-lSM -lICE) if available
15413 if test "${HAVE_X11}" = "yes"; then
15414 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15415 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15416 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15417 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15418 $as_echo_n "(cached
) " >&6
15420 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15421 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15423 # Is the header compilable?
15424 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15425 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 $ac_includes_default
15433 #include <X11/SM/SMlib.h>
15435 rm -f conftest.$ac_objext
15436 if { (ac_try="$ac_compile"
15437 case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15441 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15442 $as_echo "$ac_try_echo") >&5
15443 (eval "$ac_compile") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest.$ac_objext; then
15453 ac_header_compiler=yes
15455 $as_echo "$as_me: failed program was
:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15458 ac_header_compiler=no
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15463 $as_echo "$ac_header_compiler" >&6; }
15465 # Is the header present?
15466 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15467 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <X11/SM/SMlib.h>
15476 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15482 $as_echo "$ac_try_echo") >&5
15483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15489 (exit $ac_status); } >/dev/null && {
15490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15493 ac_header_preproc=yes
15495 $as_echo "$as_me: failed program was
:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_header_preproc=no
15501 rm -f conftest.err conftest.$ac_ext
15502 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15503 $as_echo "$ac_header_preproc" >&6; }
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15508 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15509 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15510 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15511 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15512 ac_header_preproc=yes
15515 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15516 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15518 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15519 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15520 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15521 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15522 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15524 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15526 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15530 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15531 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15532 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15533 $as_echo_n "(cached
) " >&6
15535 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15537 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15538 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15541 if test "x
$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
15542 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15543 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15544 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15545 $as_echo_n "(cached
) " >&6
15547 ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-lSM -lICE $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15562 char SmcOpenConnection ();
15566 return SmcOpenConnection ();
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_link") 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest$ac_exeext && {
15589 test "$cross_compiling" = yes ||
15590 $as_test_x conftest$ac_exeext
15592 ac_cv_lib_SM_SmcOpenConnection=yes
15594 $as_echo "$as_me: failed program was
:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_cv_lib_SM_SmcOpenConnection=no
15600 rm -rf conftest.dSYM
15601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15602 conftest$ac_exeext conftest.$ac_ext
15603 LIBS=$ac_check_lib_save_LIBS
15605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15606 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15607 if test "x
$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
15615 if test "${HAVE_X_SM}" = "yes"; then
15617 cat >>confdefs.h <<\_ACEOF
15618 #define HAVE_X_SM 1
15623 *) LIBS="-lSM -lICE $LIBS" ;;
15628 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15629 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15630 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15631 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15632 $as_echo_n "(cached
) " >&6
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_link") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext && {
15667 test "$cross_compiling" = yes ||
15668 $as_test_x conftest$ac_exeext
15670 emacs_cv_netdb_declares_h_errno=yes
15672 $as_echo "$as_me: failed program was
:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 emacs_cv_netdb_declares_h_errno=no
15678 rm -rf conftest.dSYM
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15682 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15683 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15684 if test $emacs_cv_netdb_declares_h_errno = yes; then
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_H_ERRNO 1
15692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15693 # for constant arguments. Useless!
15694 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15695 $as_echo_n "checking
for working alloca.h...
" >&6; }
15696 if test "${ac_cv_working_alloca_h+set}" = set; then
15697 $as_echo_n "(cached
) " >&6
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <alloca.h>
15709 char *p = (char *) alloca (2 * sizeof (int));
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (ac_try="$ac_link"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_link") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest$ac_exeext && {
15733 test "$cross_compiling" = yes ||
15734 $as_test_x conftest$ac_exeext
15736 ac_cv_working_alloca_h=yes
15738 $as_echo "$as_me: failed program was
:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15741 ac_cv_working_alloca_h=no
15744 rm -rf conftest.dSYM
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746 conftest$ac_exeext conftest.$ac_ext
15748 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15749 $as_echo "$ac_cv_working_alloca_h" >&6; }
15750 if test $ac_cv_working_alloca_h = yes; then
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_ALLOCA_H 1
15758 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15759 $as_echo_n "checking
for alloca...
" >&6; }
15760 if test "${ac_cv_func_alloca_works+set}" = set; then
15761 $as_echo_n "(cached
) " >&6
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15770 # define alloca __builtin_alloca
15773 # include <malloc.h>
15774 # define alloca _alloca
15776 # ifdef HAVE_ALLOCA_H
15777 # include <alloca.h>
15782 # ifndef alloca /* predefined by HP cc +Olibcalls */
15793 char *p = (char *) alloca (1);
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_link") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext && {
15817 test "$cross_compiling" = yes ||
15818 $as_test_x conftest$ac_exeext
15820 ac_cv_func_alloca_works=yes
15822 $as_echo "$as_me: failed program was
:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_cv_func_alloca_works=no
15828 rm -rf conftest.dSYM
15829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15830 conftest$ac_exeext conftest.$ac_ext
15832 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15833 $as_echo "$ac_cv_func_alloca_works" >&6; }
15835 if test $ac_cv_func_alloca_works = yes; then
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_ALLOCA 1
15842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15843 # that cause trouble. Some versions do not even contain alloca or
15844 # contain a buggy version. If you still want to use their alloca,
15845 # use ar to extract alloca.o from them instead of compiling alloca.c.
15847 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15849 cat >>confdefs.h <<\_ACEOF
15854 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15855 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
15856 if test "${ac_cv_os_cray+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #if defined CRAY && ! defined CRAY2
15872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15873 $EGREP "webecray" >/dev/null 2>&1; then
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15882 $as_echo "$ac_cv_os_cray" >&6; }
15883 if test $ac_cv_os_cray = yes; then
15884 for ac_func in _getb67 GETB67 getb67; do
15885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15887 $as_echo_n "checking for $ac_func... " >&6; }
15888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15889 $as_echo_n "(cached) " >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15899 #define $ac_func innocuous_$ac_func
15901 /* System header to define __stub macros and hopefully few prototypes,
15902 which can conflict with char $ac_func (); below.
15903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15904 <limits.h> exists even on freestanding compilers. */
15907 # include <limits.h>
15909 # include <assert.h>
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15921 /* The GNU C library defines this for functions which it implements
15922 to always fail with ENOSYS. Some functions are actually named
15923 something starting with __ and the normal name is an alias. */
15924 #if defined __stub_$ac_func || defined __stub___$ac_func
15931 return $ac_func ();
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (ac_try="$ac_link"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943 $as_echo "$ac_try_echo") >&5
15944 (eval "$ac_link") 2>conftest.er1
15946 grep -v '^
*+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && {
15951 test -z "$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15953 } && test -s conftest$ac_exeext && {
15954 test "$cross_compiling" = yes ||
15955 $as_test_x conftest$ac_exeext
15957 eval "$as_ac_var=yes"
15959 $as_echo "$as_me: failed program was:" >&5
15960 sed 's
/^
/|
/' conftest.$ac_ext >&5
15962 eval "$as_ac_var=no"
15965 rm -rf conftest.dSYM
15966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15967 conftest$ac_exeext conftest.$ac_ext
15969 ac_res=`eval 'as_val
=${'$as_ac_var'}
15970 $as_echo "$as_val"'`
15971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15972 $as_echo "$ac_res" >&6; }
15973 as_val=`eval 'as_val
=${'$as_ac_var'}
15974 $as_echo "$as_val"'`
15975 if test "x$as_val" = x""yes; then
15977 cat >>confdefs.h <<_ACEOF
15978 #define CRAY_STACKSEG_END $ac_func
15987 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15988 $as_echo_n "checking stack direction for C alloca... " >&6; }
15989 if test "${ac_cv_c_stack_direction+set}" = set; then
15990 $as_echo_n "(cached) " >&6
15992 if test "$cross_compiling" = yes; then
15993 ac_cv_c_stack_direction=0
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 $ac_includes_default
16003 find_stack_direction ()
16005 static char *addr = 0;
16010 return find_stack_direction ();
16013 return (&dummy > addr) ? 1 : -1;
16019 return find_stack_direction () < 0;
16022 rm -f conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16029 $as_echo "$ac_try_echo") >&5
16030 (eval "$ac_link") 2>&5
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16039 $as_echo "$ac_try_echo") >&5
16040 (eval "$ac_try") 2>&5
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_c_stack_direction=1
16046 $as_echo "$as_me: program exited with status $ac_status" >&5
16047 $as_echo "$as_me: failed program was:" >&5
16048 sed 's
/^
/|
/' conftest.$ac_ext >&5
16050 ( exit $ac_status )
16051 ac_cv_c_stack_direction=-1
16053 rm -rf conftest.dSYM
16054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16059 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16060 $as_echo "$ac_cv_c_stack_direction" >&6; }
16062 cat >>confdefs.h <<_ACEOF
16063 #define STACK_DIRECTION $ac_cv_c_stack_direction
16070 if test x"$ac_cv_func_alloca_works" != xyes; then
16071 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16072 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16073 { (exit 1); exit 1; }; }
16076 # fmod, logb, and frexp are found in -lm on most systems.
16077 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16079 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16080 $as_echo_n "checking for sqrt in -lm... " >&6; }
16081 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16082 $as_echo_n "(cached) " >&6
16084 ac_check_lib_save_LIBS=$LIBS
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16093 /* Override any GCC internal prototype to avoid an error.
16094 Use char because int might match the return type of a GCC
16095 builtin and then its argument prototype would still apply. */
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16115 $as_echo "$ac_try_echo") >&5
16116 (eval "$ac_link") 2>conftest.er1
16118 grep -v '^
*+' conftest.er1 >conftest.err
16120 cat conftest.err >&5
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest$ac_exeext && {
16126 test "$cross_compiling" = yes ||
16127 $as_test_x conftest$ac_exeext
16129 ac_cv_lib_m_sqrt=yes
16131 $as_echo "$as_me: failed program was:" >&5
16132 sed 's
/^
/|
/' conftest.$ac_ext >&5
16134 ac_cv_lib_m_sqrt=no
16137 rm -rf conftest.dSYM
16138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16139 conftest$ac_exeext conftest.$ac_ext
16140 LIBS=$ac_check_lib_save_LIBS
16142 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16143 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16144 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LIBM 1
16154 # Check for mail-locking functions in a "mail" library. Probably this should
16155 # have the same check as for liblockfile below.
16157 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16158 $as_echo_n "checking for maillock in -lmail... " >&6; }
16159 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16162 ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lmail $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16171 /* Override any GCC internal prototype to avoid an error.
16172 Use char because int might match the return type of a GCC
16173 builtin and then its argument prototype would still apply. */
16181 return maillock ();
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16193 $as_echo "$ac_try_echo") >&5
16194 (eval "$ac_link") 2>conftest.er1
16196 grep -v '^
*+' conftest.er1 >conftest.err
16198 cat conftest.err >&5
16199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest$ac_exeext && {
16204 test "$cross_compiling" = yes ||
16205 $as_test_x conftest$ac_exeext
16207 ac_cv_lib_mail_maillock=yes
16209 $as_echo "$as_me: failed program was:" >&5
16210 sed 's
/^
/|
/' conftest.$ac_ext >&5
16212 ac_cv_lib_mail_maillock=no
16215 rm -rf conftest.dSYM
16216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16217 conftest$ac_exeext conftest.$ac_ext
16218 LIBS=$ac_check_lib_save_LIBS
16220 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16221 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16222 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_LIBMAIL 1
16227 LIBS="-lmail $LIBS"
16232 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16233 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16234 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16237 ac_check_lib_save_LIBS=$LIBS
16238 LIBS="-llockfile $LIBS"
16239 cat >conftest.$ac_ext <<_ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16246 /* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16256 return maillock ();
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (ac_try="$ac_link"
16263 case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268 $as_echo "$ac_try_echo") >&5
16269 (eval "$ac_link") 2>conftest.er1
16271 grep -v '^
*+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext && {
16279 test "$cross_compiling" = yes ||
16280 $as_test_x conftest$ac_exeext
16282 ac_cv_lib_lockfile_maillock=yes
16284 $as_echo "$as_me: failed program was:" >&5
16285 sed 's
/^
/|
/' conftest.$ac_ext >&5
16287 ac_cv_lib_lockfile_maillock=no
16290 rm -rf conftest.dSYM
16291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16296 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16297 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBLOCKFILE 1
16302 LIBS="-llockfile $LIBS"
16306 # If we have the shared liblockfile, assume we must use it for mail
16307 # locking (e.g. Debian). If we couldn't link against liblockfile
16308 # (no liblockfile.a installed), ensure that we don't need to.
16309 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16310 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16311 set dummy liblockfile.so
; ac_word
=$2
16312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if test "${ac_cv_prog_liblockfile+set}" = set; then
16315 $as_echo_n "(cached) " >&6
16317 if test -n "$liblockfile"; then
16318 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16321 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16322 for as_dir
in $as_dummy
16325 test -z "$as_dir" && as_dir
=.
16326 for ac_exec_ext
in '' $ac_executable_extensions; do
16327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16328 ac_cv_prog_liblockfile
="yes"
16329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16336 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16339 liblockfile
=$ac_cv_prog_liblockfile
16340 if test -n "$liblockfile"; then
16341 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16342 $as_echo "$liblockfile" >&6; }
16344 { $as_echo "$as_me:$LINENO: result: no" >&5
16345 $as_echo "no" >&6; }
16349 if test $ac_cv_prog_liblockfile = yes; then
16350 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16351 This probably means that movemail could lose mail.
16352 There may be a \`development' package to install containing liblockfile." >&5
16353 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16354 This probably means that movemail could lose mail.
16355 There may be a \`development' package to install containing liblockfile." >&2;}
16356 { (exit 1); exit 1; }; }
16361 for ac_func
in touchlock
16363 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16365 $as_echo_n "checking for $ac_func... " >&6; }
16366 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16367 $as_echo_n "(cached) " >&6
16369 cat >conftest.
$ac_ext <<_ACEOF
16372 cat confdefs.h
>>conftest.
$ac_ext
16373 cat >>conftest.
$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16377 #define $ac_func innocuous_$ac_func
16379 /* System header to define __stub macros and hopefully few prototypes,
16380 which can conflict with char $ac_func (); below.
16381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16382 <limits.h> exists even on freestanding compilers. */
16385 # include <limits.h>
16387 # include <assert.h>
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16399 /* The GNU C library defines this for functions which it implements
16400 to always fail with ENOSYS. Some functions are actually named
16401 something starting with __ and the normal name is an alias. */
16402 #if defined __stub_$ac_func || defined __stub___$ac_func
16409 return $ac_func ();
16414 rm -f conftest.
$ac_objext conftest
$ac_exeext
16415 if { (ac_try
="$ac_link"
16416 case "(($ac_try" in
16417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest$ac_exeext && {
16432 test "$cross_compiling" = yes ||
16433 $as_test_x conftest$ac_exeext
16435 eval "$as_ac_var=yes"
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 eval "$as_ac_var=no"
16443 rm -rf conftest.dSYM
16444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16445 conftest$ac_exeext conftest.$ac_ext
16447 ac_res=`eval 'as_val=${'$as_ac_var'}
16448 $as_echo "$as_val"'`
16449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16450 $as_echo "$ac_res" >&6; }
16451 as_val=`eval 'as_val=${'$as_ac_var'}
16452 $as_echo "$as_val"'`
16453 if test "x$as_val" = x""yes; then
16454 cat >>confdefs.h <<_ACEOF
16455 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16462 for ac_header in maillock.h
16464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16467 $as_echo_n "checking for $ac_header... " >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 $as_echo_n "(cached) " >&6
16471 ac_res=`eval 'as_val=${'$as_ac_Header'}
16472 $as_echo "$as_val"'`
16473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16474 $as_echo "$ac_res" >&6; }
16476 # Is the header compilable?
16477 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16478 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
16486 #include <$ac_header>
16488 rm -f conftest.$ac_objext
16489 if { (ac_try="$ac_compile"
16490 case "(($ac_try" in
16491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16492 *) ac_try_echo
=$ac_try;;
16494 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16495 $as_echo "$ac_try_echo") >&5
16496 (eval "$ac_compile") 2>conftest.er1
16498 grep -v '^ *+' conftest.er1
>conftest.err
16500 cat conftest.err
>&5
16501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } && {
16503 test -z "$ac_c_werror_flag" ||
16504 test ! -s conftest.err
16505 } && test -s conftest.
$ac_objext; then
16506 ac_header_compiler
=yes
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.
$ac_ext >&5
16511 ac_header_compiler
=no
16514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16515 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16516 $as_echo "$ac_header_compiler" >&6; }
16518 # Is the header present?
16519 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16520 $as_echo_n "checking $ac_header presence... " >&6; }
16521 cat >conftest.
$ac_ext <<_ACEOF
16524 cat confdefs.h
>>conftest.
$ac_ext
16525 cat >>conftest.
$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <$ac_header>
16529 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16530 case "(($ac_try" in
16531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535 $as_echo "$ac_try_echo") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null && {
16543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16546 ac_header_preproc=yes
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_header_preproc=no
16554 rm -f conftest.err conftest.$ac_ext
16555 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16556 $as_echo "$ac_header_preproc" >&6; }
16558 # So? What about this header?
16559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16562 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16565 ac_header_preproc=yes
16568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16569 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16571 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16573 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16575 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16579 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16584 $as_echo_n "checking for $ac_header... " >&6; }
16585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16586 $as_echo_n "(cached) " >&6
16588 eval "$as_ac_Header=\$ac_header_preproc"
16590 ac_res=`eval 'as_val=${'$as_ac_Header'}
16591 $as_echo "$as_val"'`
16592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16593 $as_echo "$ac_res" >&6; }
16596 as_val=`eval 'as_val=${'$as_ac_Header'}
16597 $as_echo "$as_val"'`
16598 if test "x$as_val" = x""yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16679 for ac_func in gethostname getdomainname dup2 \
16680 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16681 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16682 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16683 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16684 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16685 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16686 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16687 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16688 cfmakeraw cfsetspeed
16690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16692 $as_echo_n "checking for $ac_func... " >&6; }
16693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16694 $as_echo_n "(cached) " >&6
16696 cat >conftest.$ac_ext <<_ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16704 #define $ac_func innocuous_$ac_func
16706 /* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char $ac_func (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16712 # include <limits.h>
16714 # include <assert.h>
16719 /* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined __stub_$ac_func || defined __stub___$ac_func
16736 return $ac_func ();
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (ac_try="$ac_link"
16743 case "(($ac_try" in
16744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16745 *) ac_try_echo
=$ac_try;;
16747 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16748 $as_echo "$ac_try_echo") >&5
16749 (eval "$ac_link") 2>conftest.er1
16751 grep -v '^ *+' conftest.er1
>conftest.err
16753 cat conftest.err
>&5
16754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } && {
16756 test -z "$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16758 } && test -s conftest
$ac_exeext && {
16759 test "$cross_compiling" = yes ||
16760 $as_test_x conftest
$ac_exeext
16762 eval "$as_ac_var=yes"
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.
$ac_ext >&5
16767 eval "$as_ac_var=no"
16770 rm -rf conftest.dSYM
16771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16772 conftest
$ac_exeext conftest.
$ac_ext
16774 ac_res
=`eval 'as_val=${'$as_ac_var'}
16775 $as_echo "$as_val"'`
16776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16777 $as_echo "$ac_res" >&6; }
16778 as_val
=`eval 'as_val=${'$as_ac_var'}
16779 $as_echo "$as_val"'`
16780 if test "x$as_val" = x
""yes; then
16781 cat >>confdefs.h
<<_ACEOF
16782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16790 for ac_header
in sys
/un.h
16792 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16795 $as_echo_n "checking for $ac_header... " >&6; }
16796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16797 $as_echo_n "(cached) " >&6
16799 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16800 $as_echo "$as_val"'`
16801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16802 $as_echo "$ac_res" >&6; }
16804 # Is the header compilable?
16805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16806 $as_echo_n "checking $ac_header usability... " >&6; }
16807 cat >conftest.
$ac_ext <<_ACEOF
16810 cat confdefs.h
>>conftest.
$ac_ext
16811 cat >>conftest.
$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 $ac_includes_default
16814 #include <$ac_header>
16816 rm -f conftest.
$ac_objext
16817 if { (ac_try
="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16823 $as_echo "$ac_try_echo") >&5
16824 (eval "$ac_compile") 2>conftest.er1
16826 grep -v '^ *+' conftest.er1 >conftest.err
16828 cat conftest.err >&5
16829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest.$ac_objext; then
16834 ac_header_compiler=yes
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_compiler=no
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16844 $as_echo "$ac_header_compiler" >&6; }
16846 # Is the header present?
16847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16848 $as_echo_n "checking $ac_header presence... " >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <$ac_header>
16857 if { (ac_try="$ac_cpp conftest.$ac_ext"
16858 case "(($ac_try" in
16859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16860 *) ac_try_echo
=$ac_try;;
16862 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16866 grep -v '^ *+' conftest.er1
>conftest.err
16868 cat conftest.err
>&5
16869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } >/dev
/null
&& {
16871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16874 ac_header_preproc
=yes
16876 $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.
$ac_ext >&5
16879 ac_header_preproc
=no
16882 rm -f conftest.err conftest.
$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16884 $as_echo "$ac_header_preproc" >&6; }
16886 # So? What about this header?
16887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16893 ac_header_preproc
=yes
16896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16912 $as_echo_n "checking for $ac_header... " >&6; }
16913 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16914 $as_echo_n "(cached) " >&6
16916 eval "$as_ac_Header=\$ac_header_preproc"
16918 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16919 $as_echo "$as_val"'`
16920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16921 $as_echo "$ac_res" >&6; }
16924 as_val
=`eval 'as_val=${'$as_ac_Header'}
16925 $as_echo "$as_val"'`
16926 if test "x$as_val" = x
""yes; then
16927 cat >>confdefs.h
<<_ACEOF
16928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16940 for ac_header
in $ac_header_list
16942 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 $as_echo_n "checking for $ac_header... " >&6; }
16946 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16947 $as_echo_n "(cached) " >&6
16949 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16950 $as_echo "$as_val"'`
16951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16954 # Is the header compilable?
16955 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16956 $as_echo_n "checking $ac_header usability... " >&6; }
16957 cat >conftest.
$ac_ext <<_ACEOF
16960 cat confdefs.h
>>conftest.
$ac_ext
16961 cat >>conftest.
$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16964 #include <$ac_header>
16966 rm -f conftest.
$ac_objext
16967 if { (ac_try
="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1 >conftest.err
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16984 ac_header_compiler=yes
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16989 ac_header_compiler=no
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16994 $as_echo "$ac_header_compiler" >&6; }
16996 # Is the header present?
16997 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16998 $as_echo_n "checking $ac_header presence... " >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 #include <$ac_header>
17007 if { (ac_try="$ac_cpp conftest.$ac_ext"
17008 case "(($ac_try" in
17009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17010 *) ac_try_echo
=$ac_try;;
17012 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17016 grep -v '^ *+' conftest.er1
>conftest.err
17018 cat conftest.err
>&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } >/dev
/null
&& {
17021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17024 ac_header_preproc
=yes
17026 $as_echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.
$ac_ext >&5
17029 ac_header_preproc
=no
17032 rm -f conftest.err conftest.
$ac_ext
17033 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17034 $as_echo "$ac_header_preproc" >&6; }
17036 # So? What about this header?
17037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17040 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17043 ac_header_preproc
=yes
17046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17047 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17049 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17051 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17053 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17057 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17062 $as_echo_n "checking for $ac_header... " >&6; }
17063 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064 $as_echo_n "(cached) " >&6
17066 eval "$as_ac_Header=\$ac_header_preproc"
17068 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17069 $as_echo "$as_val"'`
17070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17071 $as_echo "$ac_res" >&6; }
17074 as_val
=`eval 'as_val=${'$as_ac_Header'}
17075 $as_echo "$as_val"'`
17076 if test "x$as_val" = x
""yes; then
17077 cat >>confdefs.h
<<_ACEOF
17078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17093 for ac_func
in $ac_func_list
17095 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17097 $as_echo_n "checking for $ac_func... " >&6; }
17098 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17099 $as_echo_n "(cached) " >&6
17101 cat >conftest.
$ac_ext <<_ACEOF
17104 cat confdefs.h
>>conftest.
$ac_ext
17105 cat >>conftest.
$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17109 #define $ac_func innocuous_$ac_func
17111 /* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func (); below.
17113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17114 <limits.h> exists even on freestanding compilers. */
17117 # include <limits.h>
17119 # include <assert.h>
17124 /* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17131 /* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134 #if defined __stub_$ac_func || defined __stub___$ac_func
17141 return $ac_func ();
17146 rm -f conftest.
$ac_objext conftest
$ac_exeext
17147 if { (ac_try
="$ac_link"
17148 case "(($ac_try" in
17149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17153 $as_echo "$ac_try_echo") >&5
17154 (eval "$ac_link") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest$ac_exeext && {
17164 test "$cross_compiling" = yes ||
17165 $as_test_x conftest$ac_exeext
17167 eval "$as_ac_var=yes"
17169 $as_echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 eval "$as_ac_var=no"
17175 rm -rf conftest.dSYM
17176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177 conftest$ac_exeext conftest.$ac_ext
17179 ac_res=`eval 'as_val=${'$as_ac_var'}
17180 $as_echo "$as_val"'`
17181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17182 $as_echo "$ac_res" >&6; }
17183 as_val=`eval 'as_val=${'$as_ac_var'}
17184 $as_echo "$as_val"'`
17185 if test "x$as_val" = x""yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17209 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17210 $as_echo_n "checking for working mktime... " >&6; }
17211 if test "${ac_cv_func_working_mktime+set}" = set; then
17212 $as_echo_n "(cached) " >&6
17214 if test "$cross_compiling" = yes; then
17215 ac_cv_func_working_mktime=no
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 /* Test program from Paul Eggert and Tony Leneis. */
17224 #ifdef TIME_WITH_SYS_TIME
17225 # include <sys/time.h>
17228 # ifdef HAVE_SYS_TIME_H
17229 # include <sys/time.h>
17235 #include <limits.h>
17236 #include <stdlib.h>
17238 #ifdef HAVE_UNISTD_H
17239 # include <unistd.h>
17243 # define alarm(X) /* empty */
17246 /* Work around redefinition to rpl_putenv by other config tests. */
17249 static time_t time_t_max;
17250 static time_t time_t_min;
17252 /* Values we'll use to set the TZ environment variable. */
17253 static char *tz_strings[] = {
17254 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17255 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17260 Based on a problem report from Andreas Jaeger. */
17262 spring_forward_gap ()
17264 /* glibc (up to about 1998-10-07) failed this test. */
17267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17268 instead of "TZ=America/Vancouver" in order to detect the bug even
17269 on systems that don't support the Olson extension, or don't have the
17270 full zoneinfo tables installed. */
17271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17280 return mktime (&tm) != (time_t) -1;
17288 return ! (lt = localtime (&now)) || mktime (lt) == now;
17295 return (mktime_test1 (now)
17296 && mktime_test1 ((time_t) (time_t_max - now))
17297 && mktime_test1 ((time_t) (time_t_min + now)));
17303 /* Based on code from Ariel Faigon. */
17313 return tm.tm_mon == 2 && tm.tm_mday == 31;
17322 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17323 now = mktime (&tm);
17324 if (now != (time_t) -1)
17326 struct tm *lt = localtime (&now);
17328 && lt->tm_year == tm.tm_year
17329 && lt->tm_mon == tm.tm_mon
17330 && lt->tm_mday == tm.tm_mday
17331 && lt->tm_hour == tm.tm_hour
17332 && lt->tm_min == tm.tm_min
17333 && lt->tm_sec == tm.tm_sec
17334 && lt->tm_yday == tm.tm_yday
17335 && lt->tm_wday == tm.tm_wday
17336 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17337 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17346 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17347 ignoring leap seconds. */
17348 unsigned long int answer = 2527315200UL;
17352 tm.tm_year = 2050 - 1900;
17355 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17358 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17359 instead of "TZ=America/Vancouver" in order to detect the bug even
17360 on systems that don't support the Olson extension, or don't have the
17361 full zoneinfo tables installed. */
17362 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17366 /* Check that the result is either a failure, or close enough
17367 to the correct answer that we can assume the discrepancy is
17368 due to leap seconds. */
17369 return (t == (time_t) -1
17370 || (0 < t && answer - 120 <= t && t <= answer + 120));
17379 /* This test makes some buggy mktime implementations loop.
17380 Give up after 60 seconds; a mktime slower than that
17381 isn't worth using anyway. */
17386 t = (time_t_max << 1) + 1;
17387 if (t <= time_t_max)
17391 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17393 delta = time_t_max / 997; /* a suitable prime number */
17394 for (i = 0; i < N_STRINGS; i++)
17397 putenv (tz_strings[i]);
17399 for (t = 0; t <= time_t_max - delta; t += delta)
17400 if (! mktime_test (t))
17402 if (! (mktime_test ((time_t) 1)
17403 && mktime_test ((time_t) (60 * 60))
17404 && mktime_test ((time_t) (60 * 60 * 24))))
17407 for (j = 1; ; j <<= 1)
17408 if (! bigtime_test (j))
17410 else if (INT_MAX / 2 < j)
17412 if (! bigtime_test (INT_MAX))
17415 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17418 rm -f conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17422 *) ac_try_echo
=$ac_try;;
17424 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17425 $as_echo "$ac_try_echo") >&5
17426 (eval "$ac_link") 2>&5
17428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17430 { (case "(($ac_try" in
17431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17435 $as_echo "$ac_try_echo") >&5
17436 (eval "$ac_try") 2>&5
17438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_func_working_mktime=yes
17442 $as_echo "$as_me: program exited with status $ac_status" >&5
17443 $as_echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 ( exit $ac_status )
17447 ac_cv_func_working_mktime=no
17449 rm -rf conftest.dSYM
17450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17456 $as_echo "$ac_cv_func_working_mktime" >&6; }
17457 if test $ac_cv_func_working_mktime = no; then
17458 case " $LIBOBJS " in
17459 *" mktime.$ac_objext "* ) ;;
17460 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17466 if test "$ac_cv_func_working_mktime" = no; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define BROKEN_MKTIME 1
17474 ac_have_func=no # yes means we've found a way to get the load average.
17476 # Make sure getloadavg.c is where it belongs, at configure-time.
17477 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17478 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17479 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17480 { (exit 1); exit 1; }; }
17484 # Check for getloadavg, but be sure not to touch the cache variable.
17485 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17486 $as_echo_n "checking for getloadavg... " >&6; }
17487 if test "${ac_cv_func_getloadavg+set}" = set; then
17488 $as_echo_n "(cached) " >&6
17490 cat >conftest.$ac_ext <<_ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define getloadavg innocuous_getloadavg
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char getloadavg (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17506 # include <limits.h>
17508 # include <assert.h>
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17519 char getloadavg ();
17520 /* The GNU C library defines this for functions which it implements
17521 to always fail with ENOSYS. Some functions are actually named
17522 something starting with __ and the normal name is an alias. */
17523 #if defined __stub_getloadavg || defined __stub___getloadavg
17530 return getloadavg ();
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17539 *) ac_try_echo
=$ac_try;;
17541 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17542 $as_echo "$ac_try_echo") >&5
17543 (eval "$ac_link") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1
>conftest.err
17547 cat conftest.err
>&5
17548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest
$ac_exeext && {
17553 test "$cross_compiling" = yes ||
17554 $as_test_x conftest
$ac_exeext
17556 ac_cv_func_getloadavg
=yes
17558 $as_echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.
$ac_ext >&5
17561 ac_cv_func_getloadavg
=no
17564 rm -rf conftest.dSYM
17565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17566 conftest
$ac_exeext conftest.
$ac_ext
17568 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17569 $as_echo "$ac_cv_func_getloadavg" >&6; }
17570 if test "x$ac_cv_func_getloadavg" = x
""yes; then
17575 ) && ac_have_func
=yes
17577 # On HPUX9, an unprivileged user can get load averages through this function.
17579 for ac_func
in pstat_getdynamic
17581 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 $as_echo_n "checking for $ac_func... " >&6; }
17584 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585 $as_echo_n "(cached) " >&6
17587 cat >conftest.
$ac_ext <<_ACEOF
17590 cat confdefs.h
>>conftest.
$ac_ext
17591 cat >>conftest.
$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595 #define $ac_func innocuous_$ac_func
17597 /* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17603 # include <limits.h>
17605 # include <assert.h>
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17627 return $ac_func ();
17632 rm -f conftest.
$ac_objext conftest
$ac_exeext
17633 if { (ac_try
="$ac_link"
17634 case "(($ac_try" in
17635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_link") 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest$ac_exeext && {
17650 test "$cross_compiling" = yes ||
17651 $as_test_x conftest$ac_exeext
17653 eval "$as_ac_var=yes"
17655 $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 eval "$as_ac_var=no"
17661 rm -rf conftest.dSYM
17662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17663 conftest$ac_exeext conftest.$ac_ext
17665 ac_res=`eval 'as_val=${'$as_ac_var'}
17666 $as_echo "$as_val"'`
17667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17668 $as_echo "$ac_res" >&6; }
17669 as_val=`eval 'as_val=${'$as_ac_var'}
17670 $as_echo "$as_val"'`
17671 if test "x$as_val" = x""yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17680 # Solaris has libkstat which does not require root.
17682 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17683 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17684 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17685 $as_echo_n "(cached) " >&6
17687 ac_check_lib_save_LIBS=$LIBS
17688 LIBS="-lkstat $LIBS"
17689 cat >conftest.$ac_ext <<_ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17702 char kstat_open ();
17706 return kstat_open ();
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17715 *) ac_try_echo
=$ac_try;;
17717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_link") 2>conftest.er1
17721 grep -v '^ *+' conftest.er1
>conftest.err
17723 cat conftest.err
>&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest
$ac_exeext && {
17729 test "$cross_compiling" = yes ||
17730 $as_test_x conftest
$ac_exeext
17732 ac_cv_lib_kstat_kstat_open
=yes
17734 $as_echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.
$ac_ext >&5
17737 ac_cv_lib_kstat_kstat_open
=no
17740 rm -rf conftest.dSYM
17741 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17742 conftest
$ac_exeext conftest.
$ac_ext
17743 LIBS
=$ac_check_lib_save_LIBS
17745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17746 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17747 if test "x$ac_cv_lib_kstat_kstat_open" = x
""yes; then
17748 cat >>confdefs.h
<<_ACEOF
17749 #define HAVE_LIBKSTAT 1
17752 LIBS
="-lkstat $LIBS"
17756 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17758 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17759 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17760 # to get the right answer into the cache.
17761 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17762 if test $ac_have_func = no
; then
17763 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17764 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17766 $as_echo_n "(cached) " >&6
17768 ac_check_lib_save_LIBS
=$LIBS
17770 cat >conftest.
$ac_ext <<_ACEOF
17773 cat confdefs.h
>>conftest.
$ac_ext
17774 cat >>conftest.
$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17787 return elf_begin ();
17792 rm -f conftest.
$ac_objext conftest
$ac_exeext
17793 if { (ac_try
="$ac_link"
17794 case "(($ac_try" in
17795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800 (eval "$ac_link") 2>conftest.er1
17802 grep -v '^ *+' conftest.er1 >conftest.err
17804 cat conftest.err >&5
17805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest$ac_exeext && {
17810 test "$cross_compiling" = yes ||
17811 $as_test_x conftest$ac_exeext
17813 ac_cv_lib_elf_elf_begin=yes
17815 $as_echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 ac_cv_lib_elf_elf_begin=no
17821 rm -rf conftest.dSYM
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17827 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17828 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
17833 if test $ac_have_func = no; then
17834 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17835 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17836 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17837 $as_echo_n "(cached) " >&6
17839 ac_check_lib_save_LIBS=$LIBS
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17858 return kvm_open ();
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17867 *) ac_try_echo
=$ac_try;;
17869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17870 $as_echo "$ac_try_echo") >&5
17871 (eval "$ac_link") 2>conftest.er1
17873 grep -v '^ *+' conftest.er1
>conftest.err
17875 cat conftest.err
>&5
17876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest
$ac_exeext && {
17881 test "$cross_compiling" = yes ||
17882 $as_test_x conftest
$ac_exeext
17884 ac_cv_lib_kvm_kvm_open
=yes
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.
$ac_ext >&5
17889 ac_cv_lib_kvm_kvm_open
=no
17892 rm -rf conftest.dSYM
17893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17894 conftest
$ac_exeext conftest.
$ac_ext
17895 LIBS
=$ac_check_lib_save_LIBS
17897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17898 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
17899 if test "x$ac_cv_lib_kvm_kvm_open" = x
""yes; then
17903 # Check for the 4.4BSD definition of getloadavg.
17904 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17905 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
17906 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17907 $as_echo_n "(cached) " >&6
17909 ac_check_lib_save_LIBS
=$LIBS
17910 LIBS
="-lutil $LIBS"
17911 cat >conftest.
$ac_ext <<_ACEOF
17914 cat confdefs.h
>>conftest.
$ac_ext
17915 cat >>conftest.
$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17924 char getloadavg ();
17928 return getloadavg ();
17933 rm -f conftest.
$ac_objext conftest
$ac_exeext
17934 if { (ac_try
="$ac_link"
17935 case "(($ac_try" in
17936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17940 $as_echo "$ac_try_echo") >&5
17941 (eval "$ac_link") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext && {
17951 test "$cross_compiling" = yes ||
17952 $as_test_x conftest$ac_exeext
17954 ac_cv_lib_util_getloadavg=yes
17956 $as_echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_lib_util_getloadavg=no
17962 rm -rf conftest.dSYM
17963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17968 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
17969 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
17970 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17975 if test $ac_have_func = no; then
17976 # There is a commonly available library for RS/6000 AIX.
17977 # Since it is not a standard part of AIX, it might be installed locally.
17978 ac_getloadavg_LIBS=$LIBS
17979 LIBS="-L/usr/local/lib $LIBS"
17980 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17981 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
17982 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17983 $as_echo_n "(cached) " >&6
17985 ac_check_lib_save_LIBS=$LIBS
17986 LIBS="-lgetloadavg $LIBS"
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18000 char getloadavg ();
18004 return getloadavg ();
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18013 *) ac_try_echo
=$ac_try;;
18015 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18016 $as_echo "$ac_try_echo") >&5
18017 (eval "$ac_link") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1
>conftest.err
18021 cat conftest.err
>&5
18022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest
$ac_exeext && {
18027 test "$cross_compiling" = yes ||
18028 $as_test_x conftest
$ac_exeext
18030 ac_cv_lib_getloadavg_getloadavg
=yes
18032 $as_echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.
$ac_ext >&5
18035 ac_cv_lib_getloadavg_getloadavg
=no
18038 rm -rf conftest.dSYM
18039 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18040 conftest
$ac_exeext conftest.
$ac_ext
18041 LIBS
=$ac_check_lib_save_LIBS
18043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18044 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18045 if test "x$ac_cv_lib_getloadavg_getloadavg" = x
""yes; then
18046 LIBS
="-lgetloadavg $LIBS"
18048 LIBS
=$ac_getloadavg_LIBS
18053 # Make sure it is really in the library, if we think we found it,
18054 # otherwise set up the replacement function.
18056 for ac_func
in getloadavg
18058 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18059 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18060 $as_echo_n "checking for $ac_func... " >&6; }
18061 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18062 $as_echo_n "(cached) " >&6
18064 cat >conftest.
$ac_ext <<_ACEOF
18067 cat confdefs.h
>>conftest.
$ac_ext
18068 cat >>conftest.
$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18072 #define $ac_func innocuous_$ac_func
18074 /* System header to define __stub macros and hopefully few prototypes,
18075 which can conflict with char $ac_func (); below.
18076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077 <limits.h> exists even on freestanding compilers. */
18080 # include <limits.h>
18082 # include <assert.h>
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18094 /* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097 #if defined __stub_$ac_func || defined __stub___$ac_func
18104 return $ac_func ();
18109 rm -f conftest.
$ac_objext conftest
$ac_exeext
18110 if { (ac_try
="$ac_link"
18111 case "(($ac_try" in
18112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18116 $as_echo "$ac_try_echo") >&5
18117 (eval "$ac_link") 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && {
18124 test -z "$ac_c_werror_flag" ||
18125 test ! -s conftest.err
18126 } && test -s conftest$ac_exeext && {
18127 test "$cross_compiling" = yes ||
18128 $as_test_x conftest$ac_exeext
18130 eval "$as_ac_var=yes"
18132 $as_echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 eval "$as_ac_var=no"
18138 rm -rf conftest.dSYM
18139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18140 conftest$ac_exeext conftest.$ac_ext
18142 ac_res=`eval 'as_val=${'$as_ac_var'}
18143 $as_echo "$as_val"'`
18144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18145 $as_echo "$ac_res" >&6; }
18146 as_val=`eval 'as_val=${'$as_ac_var'}
18147 $as_echo "$as_val"'`
18148 if test "x$as_val" = x""yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18154 case " $LIBOBJS " in
18155 *" getloadavg.$ac_objext "* ) ;;
18156 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18161 cat >>confdefs.h <<\_ACEOF
18162 #define C_GETLOADAVG 1
18165 # Figure out what our getloadavg.c needs.
18167 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18168 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18169 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18170 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18171 $as_echo_n "(cached) " >&6
18173 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18174 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18176 # Is the header compilable?
18177 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18178 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 $ac_includes_default
18186 #include <sys/dg_sys_info.h>
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18192 *) ac_try_echo
=$ac_try;;
18194 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1
>conftest.err
18200 cat conftest.err
>&5
18201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.
$ac_objext; then
18206 ac_header_compiler
=yes
18208 $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.
$ac_ext >&5
18211 ac_header_compiler
=no
18214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18216 $as_echo "$ac_header_compiler" >&6; }
18218 # Is the header present?
18219 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18220 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18221 cat >conftest.
$ac_ext <<_ACEOF
18224 cat confdefs.h
>>conftest.
$ac_ext
18225 cat >>conftest.
$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 #include <sys/dg_sys_info.h>
18229 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18230 case "(($ac_try" in
18231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18235 $as_echo "$ac_try_echo") >&5
18236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } >/dev/null && {
18243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18246 ac_header_preproc=yes
18248 $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_header_preproc=no
18254 rm -f conftest.err conftest.$ac_ext
18255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18256 $as_echo "$ac_header_preproc" >&6; }
18258 # So? What about this header?
18259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18261 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18262 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18263 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18264 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18265 ac_header_preproc=yes
18268 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18269 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18270 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18271 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18272 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18273 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18274 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18275 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18276 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18277 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18278 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18279 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18283 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18284 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18285 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18286 $as_echo_n "(cached) " >&6
18288 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18291 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18294 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
18297 cat >>confdefs.h <<\_ACEOF
18302 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18303 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18304 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18305 $as_echo_n "(cached) " >&6
18307 ac_check_lib_save_LIBS=$LIBS
18309 cat >conftest.$ac_ext <<_ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18322 char dg_sys_info ();
18326 return dg_sys_info ();
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18335 *) ac_try_echo
=$ac_try;;
18337 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18338 $as_echo "$ac_try_echo") >&5
18339 (eval "$ac_link") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1
>conftest.err
18343 cat conftest.err
>&5
18344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest
$ac_exeext && {
18349 test "$cross_compiling" = yes ||
18350 $as_test_x conftest
$ac_exeext
18352 ac_cv_lib_dgc_dg_sys_info
=yes
18354 $as_echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.
$ac_ext >&5
18357 ac_cv_lib_dgc_dg_sys_info
=no
18360 rm -rf conftest.dSYM
18361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18362 conftest
$ac_exeext conftest.
$ac_ext
18363 LIBS
=$ac_check_lib_save_LIBS
18365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18366 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18367 if test "x$ac_cv_lib_dgc_dg_sys_info" = x
""yes; then
18368 cat >>confdefs.h
<<_ACEOF
18369 #define HAVE_LIBDGC 1
18380 if test "${ac_cv_header_locale_h+set}" = set; then
18381 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18382 $as_echo_n "checking for locale.h... " >&6; }
18383 if test "${ac_cv_header_locale_h+set}" = set; then
18384 $as_echo_n "(cached) " >&6
18386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18387 $as_echo "$ac_cv_header_locale_h" >&6; }
18389 # Is the header compilable?
18390 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18391 $as_echo_n "checking locale.h usability... " >&6; }
18392 cat >conftest.
$ac_ext <<_ACEOF
18395 cat confdefs.h
>>conftest.
$ac_ext
18396 cat >>conftest.
$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 $ac_includes_default
18399 #include <locale.h>
18401 rm -f conftest.
$ac_objext
18402 if { (ac_try
="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1 >conftest.err
18413 cat conftest.err >&5
18414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.$ac_objext; then
18419 ac_header_compiler=yes
18421 $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_header_compiler=no
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18429 $as_echo "$ac_header_compiler" >&6; }
18431 # Is the header present?
18432 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18433 $as_echo_n "checking locale.h presence... " >&6; }
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <locale.h>
18442 if { (ac_try="$ac_cpp conftest.$ac_ext"
18443 case "(($ac_try" in
18444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18445 *) ac_try_echo
=$ac_try;;
18447 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18448 $as_echo "$ac_try_echo") >&5
18449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1
>conftest.err
18453 cat conftest.err
>&5
18454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } >/dev
/null
&& {
18456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18459 ac_header_preproc
=yes
18461 $as_echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.
$ac_ext >&5
18464 ac_header_preproc
=no
18467 rm -f conftest.err conftest.
$ac_ext
18468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18469 $as_echo "$ac_header_preproc" >&6; }
18471 # So? What about this header?
18472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18474 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18475 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18476 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18477 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18478 ac_header_preproc
=yes
18481 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18482 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18483 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18484 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18485 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18486 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18487 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18488 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18489 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18490 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18491 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18492 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18496 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18497 $as_echo_n "checking for locale.h... " >&6; }
18498 if test "${ac_cv_header_locale_h+set}" = set; then
18499 $as_echo_n "(cached) " >&6
18501 ac_cv_header_locale_h
=$ac_header_preproc
18503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18504 $as_echo "$ac_cv_header_locale_h" >&6; }
18510 for ac_func
in setlocale
18512 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18514 $as_echo_n "checking for $ac_func... " >&6; }
18515 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18516 $as_echo_n "(cached) " >&6
18518 cat >conftest.
$ac_ext <<_ACEOF
18521 cat confdefs.h
>>conftest.
$ac_ext
18522 cat >>conftest.
$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18526 #define $ac_func innocuous_$ac_func
18528 /* System header to define __stub macros and hopefully few prototypes,
18529 which can conflict with char $ac_func (); below.
18530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18531 <limits.h> exists even on freestanding compilers. */
18534 # include <limits.h>
18536 # include <assert.h>
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18548 /* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551 #if defined __stub_$ac_func || defined __stub___$ac_func
18558 return $ac_func ();
18563 rm -f conftest.
$ac_objext conftest
$ac_exeext
18564 if { (ac_try
="$ac_link"
18565 case "(($ac_try" in
18566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18570 $as_echo "$ac_try_echo") >&5
18571 (eval "$ac_link") 2>conftest.er1
18573 grep -v '^ *+' conftest.er1 >conftest.err
18575 cat conftest.err >&5
18576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } && {
18578 test -z "$ac_c_werror_flag" ||
18579 test ! -s conftest.err
18580 } && test -s conftest$ac_exeext && {
18581 test "$cross_compiling" = yes ||
18582 $as_test_x conftest$ac_exeext
18584 eval "$as_ac_var=yes"
18586 $as_echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 eval "$as_ac_var=no"
18592 rm -rf conftest.dSYM
18593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18594 conftest$ac_exeext conftest.$ac_ext
18596 ac_res=`eval 'as_val=${'$as_ac_var'}
18597 $as_echo "$as_val"'`
18598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18599 $as_echo "$ac_res" >&6; }
18600 as_val=`eval 'as_val=${'$as_ac_var'}
18601 $as_echo "$as_val"'`
18602 if test "x$as_val" = x""yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18611 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18612 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18613 # Irix 4.0.5F has the header but not the library.
18614 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18617 cat >>confdefs.h <<\_ACEOF
18623 if test $ac_have_func = no; then
18624 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18625 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18626 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18628 $as_echo_n "(cached) " >&6
18630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18631 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18633 # Is the header compilable?
18634 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18635 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18636 cat >conftest.$ac_ext <<_ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 $ac_includes_default
18643 #include <inq_stats/cpustats.h>
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18649 *) ac_try_echo
=$ac_try;;
18651 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18652 $as_echo "$ac_try_echo") >&5
18653 (eval "$ac_compile") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1
>conftest.err
18657 cat conftest.err
>&5
18658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest.
$ac_objext; then
18663 ac_header_compiler
=yes
18665 $as_echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.
$ac_ext >&5
18668 ac_header_compiler
=no
18671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18673 $as_echo "$ac_header_compiler" >&6; }
18675 # Is the header present?
18676 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18677 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18678 cat >conftest.
$ac_ext <<_ACEOF
18681 cat confdefs.h
>>conftest.
$ac_ext
18682 cat >>conftest.
$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 #include <inq_stats/cpustats.h>
18686 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18687 case "(($ac_try" in
18688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } >/dev/null && {
18700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18703 ac_header_preproc=yes
18705 $as_echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_header_preproc=no
18711 rm -f conftest.err conftest.$ac_ext
18712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18713 $as_echo "$ac_header_preproc" >&6; }
18715 # So? What about this header?
18716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18718 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18719 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18720 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18721 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18722 ac_header_preproc=yes
18725 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18726 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18727 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18728 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18729 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18730 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18731 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18732 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18733 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18734 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18735 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18736 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18740 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18741 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18742 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18743 $as_echo_n "(cached) " >&6
18745 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18748 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18751 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
18754 cat >>confdefs.h <<\_ACEOF
18759 cat >>confdefs.h <<\_ACEOF
18768 if test $ac_have_func = no; then
18769 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18770 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18771 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18772 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18773 $as_echo_n "(cached) " >&6
18775 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18776 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18778 # Is the header compilable?
18779 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18780 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 $ac_includes_default
18788 #include <sys/cpustats.h>
18790 rm -f conftest.$ac_objext
18791 if { (ac_try="$ac_compile"
18792 case "(($ac_try" in
18793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18794 *) ac_try_echo
=$ac_try;;
18796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18797 $as_echo "$ac_try_echo") >&5
18798 (eval "$ac_compile") 2>conftest.er1
18800 grep -v '^ *+' conftest.er1
>conftest.err
18802 cat conftest.err
>&5
18803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && {
18805 test -z "$ac_c_werror_flag" ||
18806 test ! -s conftest.err
18807 } && test -s conftest.
$ac_objext; then
18808 ac_header_compiler
=yes
18810 $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.
$ac_ext >&5
18813 ac_header_compiler
=no
18816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18818 $as_echo "$ac_header_compiler" >&6; }
18820 # Is the header present?
18821 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18822 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18823 cat >conftest.
$ac_ext <<_ACEOF
18826 cat confdefs.h
>>conftest.
$ac_ext
18827 cat >>conftest.
$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #include <sys/cpustats.h>
18831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18832 case "(($ac_try" in
18833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev/null && {
18845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18848 ac_header_preproc=yes
18850 $as_echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 ac_header_preproc=no
18856 rm -f conftest.err conftest.$ac_ext
18857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18858 $as_echo "$ac_header_preproc" >&6; }
18860 # So? What about this header?
18861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18863 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18864 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18865 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18866 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18867 ac_header_preproc=yes
18870 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18871 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18872 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18873 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18874 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18875 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18877 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18878 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18879 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18880 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18881 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18885 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18886 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18887 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18888 $as_echo_n "(cached) " >&6
18890 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18893 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18896 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then
18897 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18906 if test $ac_have_func = no; then
18908 for ac_header in mach/mach.h
18910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18913 $as_echo_n "checking for $ac_header... " >&6; }
18914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18915 $as_echo_n "(cached) " >&6
18917 ac_res=`eval 'as_val=${'$as_ac_Header'}
18918 $as_echo "$as_val"'`
18919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18920 $as_echo "$ac_res" >&6; }
18922 # Is the header compilable?
18923 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18924 $as_echo_n "checking $ac_header usability... " >&6; }
18925 cat >conftest.$ac_ext <<_ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 $ac_includes_default
18932 #include <$ac_header>
18934 rm -f conftest.$ac_objext
18935 if { (ac_try="$ac_compile"
18936 case "(($ac_try" in
18937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18938 *) ac_try_echo
=$ac_try;;
18940 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18941 $as_echo "$ac_try_echo") >&5
18942 (eval "$ac_compile") 2>conftest.er1
18944 grep -v '^ *+' conftest.er1
>conftest.err
18946 cat conftest.err
>&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest.
$ac_objext; then
18952 ac_header_compiler
=yes
18954 $as_echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.
$ac_ext >&5
18957 ac_header_compiler
=no
18960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962 $as_echo "$ac_header_compiler" >&6; }
18964 # Is the header present?
18965 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966 $as_echo_n "checking $ac_header presence... " >&6; }
18967 cat >conftest.
$ac_ext <<_ACEOF
18970 cat confdefs.h
>>conftest.
$ac_ext
18971 cat >>conftest.
$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <$ac_header>
18975 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18976 case "(($ac_try" in
18977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18984 grep -v '^ *+' conftest.er1 >conftest.err
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } >/dev/null && {
18989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18992 ac_header_preproc=yes
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_header_preproc=no
19000 rm -f conftest.err conftest.$ac_ext
19001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002 $as_echo "$ac_header_preproc" >&6; }
19004 # So? What about this header?
19005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19011 ac_header_preproc=yes
19014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19015 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19017 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19019 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19021 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19025 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19030 $as_echo_n "checking for $ac_header... " >&6; }
19031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19032 $as_echo_n "(cached) " >&6
19034 eval "$as_ac_Header=\$ac_header_preproc"
19036 ac_res=`eval 'as_val=${'$as_ac_Header'}
19037 $as_echo "$as_val"'`
19038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19039 $as_echo "$ac_res" >&6; }
19042 as_val=`eval 'as_val=${'$as_ac_Header'}
19043 $as_echo "$as_val"'`
19044 if test "x$as_val" = x""yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19056 for ac_header in nlist.h
19058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19061 $as_echo_n "checking for $ac_header... " >&6; }
19062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19063 $as_echo_n "(cached) " >&6
19065 ac_res=`eval 'as_val=${'$as_ac_Header'}
19066 $as_echo "$as_val"'`
19067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19068 $as_echo "$ac_res" >&6; }
19070 # Is the header compilable?
19071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19072 $as_echo_n "checking $ac_header usability... " >&6; }
19073 cat >conftest.$ac_ext <<_ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 $ac_includes_default
19080 #include <$ac_header>
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19086 *) ac_try_echo
=$ac_try;;
19088 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_compile") 2>conftest.er1
19092 grep -v '^ *+' conftest.er1
>conftest.err
19094 cat conftest.err
>&5
19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest.
$ac_objext; then
19100 ac_header_compiler
=yes
19102 $as_echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.
$ac_ext >&5
19105 ac_header_compiler
=no
19108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 $as_echo "$ac_header_compiler" >&6; }
19112 # Is the header present?
19113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19114 $as_echo_n "checking $ac_header presence... " >&6; }
19115 cat >conftest.
$ac_ext <<_ACEOF
19118 cat confdefs.h
>>conftest.
$ac_ext
19119 cat >>conftest.
$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <$ac_header>
19123 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19124 case "(($ac_try" in
19125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } >/dev/null && {
19137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19140 ac_header_preproc=yes
19142 $as_echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_header_preproc=no
19148 rm -f conftest.err conftest.$ac_ext
19149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150 $as_echo "$ac_header_preproc" >&6; }
19152 # So? What about this header?
19153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19159 ac_header_preproc=yes
19162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19178 $as_echo_n "checking for $ac_header... " >&6; }
19179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19180 $as_echo_n "(cached) " >&6
19182 eval "$as_ac_Header=\$ac_header_preproc"
19184 ac_res=`eval 'as_val=${'$as_ac_Header'}
19185 $as_echo "$as_val"'`
19186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19187 $as_echo "$ac_res" >&6; }
19190 as_val=`eval 'as_val=${'$as_ac_Header'}
19191 $as_echo "$as_val"'`
19192 if test "x$as_val" = x""yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19196 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19197 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19198 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19199 $as_echo_n "(cached) " >&6
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19212 static struct nlist ac_aggr;
19213 if (ac_aggr.n_un.n_name)
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19223 *) ac_try_echo
=$ac_try;;
19225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1
>conftest.err
19231 cat conftest.err
>&5
19232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.
$ac_objext; then
19237 ac_cv_member_struct_nlist_n_un_n_name
=yes
19239 $as_echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.
$ac_ext >&5
19242 cat >conftest.
$ac_ext <<_ACEOF
19245 cat confdefs.h
>>conftest.
$ac_ext
19246 cat >>conftest.
$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19253 static struct nlist ac_aggr;
19254 if (sizeof ac_aggr.n_un.n_name)
19260 rm -f conftest.
$ac_objext
19261 if { (ac_try
="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19267 $as_echo "$ac_try_echo") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
19278 ac_cv_member_struct_nlist_n_un_n_name=yes
19280 $as_echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_cv_member_struct_nlist_n_un_n_name=no
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19292 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19293 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19300 cat >>confdefs.h <<\_ACEOF
19301 #define NLIST_NAME_UNION 1
19315 # Some definitions of getloadavg require that the program be installed setgid.
19316 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19317 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19318 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19319 $as_echo_n "(cached) " >&6
19321 cat >conftest.$ac_ext <<_ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19328 #ifdef LDAV_PRIVILEGED
19329 Yowza Am I SETGID yet
19332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19333 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19334 ac_cv_func_getloadavg_setgid=yes
19336 ac_cv_func_getloadavg_setgid=no
19341 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19342 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19343 if test $ac_cv_func_getloadavg_setgid = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define GETLOADAVG_PRIVILEGED 1
19354 if test $ac_cv_func_getloadavg_setgid = yes; then
19355 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19356 $as_echo_n "checking group of /dev/kmem... " >&6; }
19357 if test "${ac_cv_group_kmem+set}" = set; then
19358 $as_echo_n "(cached) " >&6
19360 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19361 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19362 # If we got an error (system does not support symlinks), try without -L.
19363 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19364 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19365 |
sed -ne 's/[ ][ ]*/ /g;
19366 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19370 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19371 $as_echo "$ac_cv_group_kmem" >&6; }
19372 KMEM_GROUP=$ac_cv_group_kmem
19374 if test "x$ac_save_LIBS" = x; then
19375 GETLOADAVG_LIBS=$LIBS
19377 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19383 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19384 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19385 if test "${ac_cv_sys_largefile_source+set}" = set; then
19386 $as_echo_n "(cached) " >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 #include <sys/types.h> /* for off_t */
19400 int (*fp) (FILE *, off_t, int) = fseeko;
19401 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19410 *) ac_try_echo
=$ac_try;;
19412 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1
>conftest.err
19418 cat conftest.err
>&5
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest
$ac_exeext && {
19424 test "$cross_compiling" = yes ||
19425 $as_test_x conftest
$ac_exeext
19427 ac_cv_sys_largefile_source
=no
; break
19429 $as_echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.
$ac_ext >&5
19435 rm -rf conftest.dSYM
19436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19437 conftest
$ac_exeext conftest.
$ac_ext
19438 cat >conftest.
$ac_ext <<_ACEOF
19441 cat confdefs.h
>>conftest.
$ac_ext
19442 cat >>conftest.
$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 #define _LARGEFILE_SOURCE 1
19445 #include <sys/types.h> /* for off_t */
19450 int (*fp) (FILE *, off_t, int) = fseeko;
19451 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19456 rm -f conftest.
$ac_objext conftest
$ac_exeext
19457 if { (ac_try
="$ac_link"
19458 case "(($ac_try" in
19459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19463 $as_echo "$ac_try_echo") >&5
19464 (eval "$ac_link") 2>conftest.er1
19466 grep -v '^ *+' conftest.er1 >conftest.err
19468 cat conftest.err >&5
19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest$ac_exeext && {
19474 test "$cross_compiling" = yes ||
19475 $as_test_x conftest$ac_exeext
19477 ac_cv_sys_largefile_source=1; break
19479 $as_echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19485 rm -rf conftest.dSYM
19486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19487 conftest$ac_exeext conftest.$ac_ext
19488 ac_cv_sys_largefile_source=unknown
19492 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19493 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19494 case $ac_cv_sys_largefile_source in #(
19497 cat >>confdefs.h <<_ACEOF
19498 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19504 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19505 # in glibc 2.1.3, but that breaks too many other things.
19506 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19507 if test $ac_cv_sys_largefile_source != unknown; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_FSEEKO 1
19516 # Configure getopt.
19517 # getopt.m4 serial 10
19519 # The getopt module assume you want GNU getopt, with getopt_long etc,
19520 # rather than vanilla POSIX getopt. This means your your code should
19521 # always include <getopt.h> for the getopt prototypes.
19533 # Prerequisites of lib/getopt*.
19540 for ac_header in getopt.h
19542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19545 $as_echo_n "checking for $ac_header... " >&6; }
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547 $as_echo_n "(cached) " >&6
19549 ac_res=`eval 'as_val=${'$as_ac_Header'}
19550 $as_echo "$as_val"'`
19551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19552 $as_echo "$ac_res" >&6; }
19554 # Is the header compilable?
19555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 $as_echo_n "checking $ac_header usability... " >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 $ac_includes_default
19564 #include <$ac_header>
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19570 *) ac_try_echo
=$ac_try;;
19572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19573 $as_echo "$ac_try_echo") >&5
19574 (eval "$ac_compile") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1
>conftest.err
19578 cat conftest.err
>&5
19579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest.
$ac_objext; then
19584 ac_header_compiler
=yes
19586 $as_echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.
$ac_ext >&5
19589 ac_header_compiler
=no
19592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19594 $as_echo "$ac_header_compiler" >&6; }
19596 # Is the header present?
19597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19598 $as_echo_n "checking $ac_header presence... " >&6; }
19599 cat >conftest.
$ac_ext <<_ACEOF
19602 cat confdefs.h
>>conftest.
$ac_ext
19603 cat >>conftest.
$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <$ac_header>
19607 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19608 case "(($ac_try" in
19609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null && {
19621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19624 ac_header_preproc=yes
19626 $as_echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_header_preproc=no
19632 rm -f conftest.err conftest.$ac_ext
19633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 $as_echo "$ac_header_preproc" >&6; }
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19662 $as_echo_n "checking for $ac_header... " >&6; }
19663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19664 $as_echo_n "(cached) " >&6
19666 eval "$as_ac_Header=\$ac_header_preproc"
19668 ac_res=`eval 'as_val=${'$as_ac_Header'}
19669 $as_echo "$as_val"'`
19670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19671 $as_echo "$ac_res" >&6; }
19674 as_val=`eval 'as_val=${'$as_ac_Header'}
19675 $as_echo "$as_val"'`
19676 if test "x$as_val" = x""yes; then
19677 cat >>confdefs.h <<_ACEOF
19678 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19687 if test -z "$GETOPT_H"; then
19689 for ac_func in getopt_long_only
19691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19692 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19693 $as_echo_n "checking for $ac_func... " >&6; }
19694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19695 $as_echo_n "(cached) " >&6
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19705 #define $ac_func innocuous_$ac_func
19707 /* System header to define __stub macros and hopefully few prototypes,
19708 which can conflict with char $ac_func (); below.
19709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19710 <limits.h> exists even on freestanding compilers. */
19713 # include <limits.h>
19715 # include <assert.h>
19720 /* Override any GCC internal prototype to avoid an error.
19721 Use char because int might match the return type of a GCC
19722 builtin and then its argument prototype would still apply. */
19727 /* The GNU C library defines this for functions which it implements
19728 to always fail with ENOSYS. Some functions are actually named
19729 something starting with __ and the normal name is an alias. */
19730 #if defined __stub_$ac_func || defined __stub___$ac_func
19737 return $ac_func ();
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19746 *) ac_try_echo
=$ac_try;;
19748 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750 (eval "$ac_link") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1
>conftest.err
19754 cat conftest.err
>&5
19755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest
$ac_exeext && {
19760 test "$cross_compiling" = yes ||
19761 $as_test_x conftest
$ac_exeext
19763 eval "$as_ac_var=yes"
19765 $as_echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.
$ac_ext >&5
19768 eval "$as_ac_var=no"
19771 rm -rf conftest.dSYM
19772 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19773 conftest
$ac_exeext conftest.
$ac_ext
19775 ac_res
=`eval 'as_val=${'$as_ac_var'}
19776 $as_echo "$as_val"'`
19777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19778 $as_echo "$ac_res" >&6; }
19779 as_val
=`eval 'as_val=${'$as_ac_var'}
19780 $as_echo "$as_val"'`
19781 if test "x$as_val" = x
""yes; then
19782 cat >>confdefs.h
<<_ACEOF
19783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19793 if test -z "$GETOPT_H"; then
19794 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19795 $as_echo_n "checking whether optreset is declared... " >&6; }
19796 if test "${ac_cv_have_decl_optreset+set}" = set; then
19797 $as_echo_n "(cached) " >&6
19799 cat >conftest.
$ac_ext <<_ACEOF
19802 cat confdefs.h
>>conftest.
$ac_ext
19803 cat >>conftest.
$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <getopt.h>
19818 rm -f conftest.
$ac_objext
19819 if { (ac_try
="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19825 $as_echo "$ac_try_echo") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
19836 ac_cv_have_decl_optreset=yes
19838 $as_echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_cv_have_decl_optreset=no
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19847 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19848 if test "x$ac_cv_have_decl_optreset" = x""yes; then
19854 if test -z "$GETOPT_H"; then
19855 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19856 $as_echo_n "checking for working GNU getopt function... " >&6; }
19857 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19858 $as_echo_n "(cached) " >&6
19860 if test "$cross_compiling" = yes; then
19861 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19862 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19863 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19864 $as_echo_n "(cached) " >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <getopt.h>
19877 #ifndef getopt_clip
19878 (void) getopt_clip;
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19889 *) ac_try_echo
=$ac_try;;
19891 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19892 $as_echo "$ac_try_echo") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1
>conftest.err
19897 cat conftest.err
>&5
19898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.
$ac_objext; then
19903 ac_cv_have_decl_getopt_clip
=yes
19905 $as_echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.
$ac_ext >&5
19908 ac_cv_have_decl_getopt_clip
=no
19911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19913 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19914 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
19915 if test "x$ac_cv_have_decl_getopt_clip" = x
""yes; then
19916 gl_cv_func_gnu_getopt
=no
19918 gl_cv_func_gnu_getopt
=yes
19922 cat >conftest.
$ac_ext <<_ACEOF
19925 cat confdefs.h
>>conftest.
$ac_ext
19926 cat >>conftest.
$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 #include <getopt.h>
19934 myargv[0] = "conftest";
19937 return getopt (2, myargv, "+a") != '?';
19943 rm -f conftest
$ac_exeext
19944 if { (ac_try
="$ac_link"
19945 case "(($ac_try" in
19946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_link") 2>&5
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19957 *) ac_try_echo
=$ac_try;;
19959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19960 $as_echo "$ac_try_echo") >&5
19961 (eval "$ac_try") 2>&5
19963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 gl_cv_func_gnu_getopt
=yes
19967 $as_echo "$as_me: program exited with status $ac_status" >&5
19968 $as_echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.
$ac_ext >&5
19971 ( exit $ac_status )
19972 gl_cv_func_gnu_getopt
=no
19974 rm -rf conftest.dSYM
19975 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19980 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19981 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
19982 if test "$gl_cv_func_gnu_getopt" = "no"; then
19989 if test -n "$GETOPT_H"; then
19994 cat >>confdefs.h
<<\_ACEOF
19995 #define __GETOPT_PREFIX rpl_
20001 GETOPTOBJS
='getopt.o getopt1.o'
20008 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20009 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20010 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20011 $as_echo_n "(cached) " >&6
20013 # Use it with a single arg.
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20029 rm -f conftest.
$ac_objext
20030 if { (ac_try
="$ac_compile"
20031 case "(($ac_try" in
20032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20036 $as_echo "$ac_try_echo") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.$ac_objext; then
20047 ac_cv_func_getpgrp_void=no
20049 $as_echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_func_getpgrp_void=yes
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20059 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20060 if test $ac_cv_func_getpgrp_void = yes; then
20062 cat >>confdefs.h <<\_ACEOF
20063 #define GETPGRP_VOID 1
20070 for ac_func in strftime
20072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20073 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20074 $as_echo_n "checking for $ac_func... " >&6; }
20075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20076 $as_echo_n "(cached) " >&6
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20086 #define $ac_func innocuous_$ac_func
20088 /* System header to define __stub macros and hopefully few prototypes,
20089 which can conflict with char $ac_func (); below.
20090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20091 <limits.h> exists even on freestanding compilers. */
20094 # include <limits.h>
20096 # include <assert.h>
20101 /* Override any GCC internal prototype to avoid an error.
20102 Use char because int might match the return type of a GCC
20103 builtin and then its argument prototype would still apply. */
20108 /* The GNU C library defines this for functions which it implements
20109 to always fail with ENOSYS. Some functions are actually named
20110 something starting with __ and the normal name is an alias. */
20111 #if defined __stub_$ac_func || defined __stub___$ac_func
20118 return $ac_func ();
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20127 *) ac_try_echo
=$ac_try;;
20129 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20130 $as_echo "$ac_try_echo") >&5
20131 (eval "$ac_link") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1
>conftest.err
20135 cat conftest.err
>&5
20136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest
$ac_exeext && {
20141 test "$cross_compiling" = yes ||
20142 $as_test_x conftest
$ac_exeext
20144 eval "$as_ac_var=yes"
20146 $as_echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.
$ac_ext >&5
20149 eval "$as_ac_var=no"
20152 rm -rf conftest.dSYM
20153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20154 conftest
$ac_exeext conftest.
$ac_ext
20156 ac_res
=`eval 'as_val=${'$as_ac_var'}
20157 $as_echo "$as_val"'`
20158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20159 $as_echo "$ac_res" >&6; }
20160 as_val
=`eval 'as_val=${'$as_ac_var'}
20161 $as_echo "$as_val"'`
20162 if test "x$as_val" = x
""yes; then
20163 cat >>confdefs.h
<<_ACEOF
20164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20168 # strftime is in -lintl on SCO UNIX.
20169 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20170 $as_echo_n "checking for strftime in -lintl... " >&6; }
20171 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20172 $as_echo_n "(cached) " >&6
20174 ac_check_lib_save_LIBS
=$LIBS
20175 LIBS
="-lintl $LIBS"
20176 cat >conftest.
$ac_ext <<_ACEOF
20179 cat confdefs.h
>>conftest.
$ac_ext
20180 cat >>conftest.
$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20193 return strftime ();
20198 rm -f conftest.
$ac_objext conftest
$ac_exeext
20199 if { (ac_try
="$ac_link"
20200 case "(($ac_try" in
20201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20205 $as_echo "$ac_try_echo") >&5
20206 (eval "$ac_link") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext && {
20216 test "$cross_compiling" = yes ||
20217 $as_test_x conftest$ac_exeext
20219 ac_cv_lib_intl_strftime=yes
20221 $as_echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_intl_strftime=no
20227 rm -rf conftest.dSYM
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20230 LIBS=$ac_check_lib_save_LIBS
20232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20233 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20234 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE_STRFTIME 1
20239 LIBS="-lintl $LIBS"
20248 for ac_func in grantpt
20250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20252 $as_echo_n "checking for $ac_func... " >&6; }
20253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20254 $as_echo_n "(cached) " >&6
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20264 #define $ac_func innocuous_$ac_func
20266 /* System header to define __stub macros and hopefully few prototypes,
20267 which can conflict with char $ac_func (); below.
20268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20269 <limits.h> exists even on freestanding compilers. */
20272 # include <limits.h>
20274 # include <assert.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. */
20286 /* The GNU C library defines this for functions which it implements
20287 to always fail with ENOSYS. Some functions are actually named
20288 something starting with __ and the normal name is an alias. */
20289 #if defined __stub_$ac_func || defined __stub___$ac_func
20296 return $ac_func ();
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20305 *) ac_try_echo
=$ac_try;;
20307 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_link") 2>conftest.er1
20311 grep -v '^ *+' conftest.er1
>conftest.err
20313 cat conftest.err
>&5
20314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest
$ac_exeext && {
20319 test "$cross_compiling" = yes ||
20320 $as_test_x conftest
$ac_exeext
20322 eval "$as_ac_var=yes"
20324 $as_echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.
$ac_ext >&5
20327 eval "$as_ac_var=no"
20330 rm -rf conftest.dSYM
20331 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20332 conftest
$ac_exeext conftest.
$ac_ext
20334 ac_res
=`eval 'as_val=${'$as_ac_var'}
20335 $as_echo "$as_val"'`
20336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20337 $as_echo "$ac_res" >&6; }
20338 as_val
=`eval 'as_val=${'$as_ac_var'}
20339 $as_echo "$as_val"'`
20340 if test "x$as_val" = x
""yes; then
20341 cat >>confdefs.h
<<_ACEOF
20342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20349 # PTY-related GNU extensions.
20351 for ac_func
in getpt
20353 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20354 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20355 $as_echo_n "checking for $ac_func... " >&6; }
20356 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20357 $as_echo_n "(cached) " >&6
20359 cat >conftest.
$ac_ext <<_ACEOF
20362 cat confdefs.h
>>conftest.
$ac_ext
20363 cat >>conftest.
$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20367 #define $ac_func innocuous_$ac_func
20369 /* System header to define __stub macros and hopefully few prototypes,
20370 which can conflict with char $ac_func (); below.
20371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20372 <limits.h> exists even on freestanding compilers. */
20375 # include <limits.h>
20377 # include <assert.h>
20382 /* Override any GCC internal prototype to avoid an error.
20383 Use char because int might match the return type of a GCC
20384 builtin and then its argument prototype would still apply. */
20389 /* The GNU C library defines this for functions which it implements
20390 to always fail with ENOSYS. Some functions are actually named
20391 something starting with __ and the normal name is an alias. */
20392 #if defined __stub_$ac_func || defined __stub___$ac_func
20399 return $ac_func ();
20404 rm -f conftest.
$ac_objext conftest
$ac_exeext
20405 if { (ac_try
="$ac_link"
20406 case "(($ac_try" in
20407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20411 $as_echo "$ac_try_echo") >&5
20412 (eval "$ac_link") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest$ac_exeext && {
20422 test "$cross_compiling" = yes ||
20423 $as_test_x conftest$ac_exeext
20425 eval "$as_ac_var=yes"
20427 $as_echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 eval "$as_ac_var=no"
20433 rm -rf conftest.dSYM
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20437 ac_res=`eval 'as_val=${'$as_ac_var'}
20438 $as_echo "$as_val"'`
20439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20440 $as_echo "$ac_res" >&6; }
20441 as_val=`eval 'as_val=${'$as_ac_var'}
20442 $as_echo "$as_val"'`
20443 if test "x$as_val" = x""yes; then
20444 cat >>confdefs.h <<_ACEOF
20445 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20452 # Check this now, so that we will NOT find the above functions in ncurses.
20453 # That is because we have not set up to link ncurses in lib-src.
20454 # It's better to believe a function is not available
20455 # than to expect to find it in ncurses.
20457 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20458 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20459 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20460 $as_echo_n "(cached) " >&6
20462 ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-lncurses $LIBS"
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20471 /* Override any GCC internal prototype to avoid an error.
20472 Use char because int might match the return type of a GCC
20473 builtin and then its argument prototype would still apply. */
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20490 *) ac_try_echo
=$ac_try;;
20492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20493 $as_echo "$ac_try_echo") >&5
20494 (eval "$ac_link") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1
>conftest.err
20498 cat conftest.err
>&5
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest
$ac_exeext && {
20504 test "$cross_compiling" = yes ||
20505 $as_test_x conftest
$ac_exeext
20507 ac_cv_lib_ncurses_tparm
=yes
20509 $as_echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.
$ac_ext >&5
20512 ac_cv_lib_ncurses_tparm
=no
20515 rm -rf conftest.dSYM
20516 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20517 conftest
$ac_exeext conftest.
$ac_ext
20518 LIBS
=$ac_check_lib_save_LIBS
20520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20521 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20522 if test "x$ac_cv_lib_ncurses_tparm" = x
""yes; then
20523 cat >>confdefs.h
<<_ACEOF
20524 #define HAVE_LIBNCURSES 1
20527 LIBS
="-lncurses $LIBS"
20532 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20535 cat >conftest.
$ac_ext <<_ACEOF
20538 cat confdefs.h
>>conftest.
$ac_ext
20539 cat >>conftest.
$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <netinet/in.h>
20542 #include <arpa/nameser.h>
20543 #include <resolv.h>
20552 rm -f conftest.
$ac_objext conftest
$ac_exeext
20553 if { (ac_try
="$ac_link"
20554 case "(($ac_try" in
20555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560 (eval "$ac_link") 2>conftest.er1
20562 grep -v '^ *+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest$ac_exeext && {
20570 test "$cross_compiling" = yes ||
20571 $as_test_x conftest$ac_exeext
20575 $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20581 rm -rf conftest.dSYM
20582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20583 conftest$ac_exeext conftest.$ac_ext
20584 if test "$have_res_init" = no; then
20586 LIBS="$LIBS -lresolv"
20587 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20588 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 #include <netinet/in.h>
20596 #include <arpa/nameser.h>
20597 #include <resolv.h>
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20610 *) ac_try_echo
=$ac_try;;
20612 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614 (eval "$ac_link") 2>conftest.er1
20616 grep -v '^ *+' conftest.er1
>conftest.err
20618 cat conftest.err
>&5
20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest
$ac_exeext && {
20624 test "$cross_compiling" = yes ||
20625 $as_test_x conftest
$ac_exeext
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.
$ac_ext >&5
20635 rm -rf conftest.dSYM
20636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20637 conftest
$ac_exeext conftest.
$ac_ext
20638 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20639 $as_echo "$have_res_init" >&6; }
20640 if test "$have_res_init" = yes ; then
20646 if test "$have_res_init" = yes; then
20648 cat >>confdefs.h
<<\_ACEOF
20649 #define HAVE_RES_INIT 1
20654 # Do we need the Hesiod library to provide the support routines?
20655 if test "$with_hesiod" != no
; then
20656 # Don't set $LIBS here -- see comments above.
20657 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20658 $as_echo_n "checking for res_send... " >&6; }
20659 if test "${ac_cv_func_res_send+set}" = set; then
20660 $as_echo_n "(cached) " >&6
20662 cat >conftest.
$ac_ext <<_ACEOF
20665 cat confdefs.h
>>conftest.
$ac_ext
20666 cat >>conftest.
$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20670 #define res_send innocuous_res_send
20672 /* System header to define __stub macros and hopefully few prototypes,
20673 which can conflict with char res_send (); below.
20674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20675 <limits.h> exists even on freestanding compilers. */
20678 # include <limits.h>
20680 # include <assert.h>
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20692 /* The GNU C library defines this for functions which it implements
20693 to always fail with ENOSYS. Some functions are actually named
20694 something starting with __ and the normal name is an alias. */
20695 #if defined __stub_res_send || defined __stub___res_send
20702 return res_send ();
20707 rm -f conftest.
$ac_objext conftest
$ac_exeext
20708 if { (ac_try
="$ac_link"
20709 case "(($ac_try" in
20710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20714 $as_echo "$ac_try_echo") >&5
20715 (eval "$ac_link") 2>conftest.er1
20717 grep -v '^ *+' conftest.er1 >conftest.err
20719 cat conftest.err >&5
20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest$ac_exeext && {
20725 test "$cross_compiling" = yes ||
20726 $as_test_x conftest$ac_exeext
20728 ac_cv_func_res_send=yes
20730 $as_echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20733 ac_cv_func_res_send=no
20736 rm -rf conftest.dSYM
20737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20738 conftest$ac_exeext conftest.$ac_ext
20740 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20741 $as_echo "$ac_cv_func_res_send" >&6; }
20742 if test "x$ac_cv_func_res_send" = x""yes; then
20745 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20746 $as_echo_n "checking for __res_send... " >&6; }
20747 if test "${ac_cv_func___res_send+set}" = set; then
20748 $as_echo_n "(cached) " >&6
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20758 #define __res_send innocuous___res_send
20760 /* System header to define __stub macros and hopefully few prototypes,
20761 which can conflict with char __res_send (); below.
20762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20763 <limits.h> exists even on freestanding compilers. */
20766 # include <limits.h>
20768 # include <assert.h>
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20779 char __res_send ();
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined __stub___res_send || defined __stub_____res_send
20790 return __res_send ();
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20799 *) ac_try_echo
=$ac_try;;
20801 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20802 $as_echo "$ac_try_echo") >&5
20803 (eval "$ac_link") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1
>conftest.err
20807 cat conftest.err
>&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest
$ac_exeext && {
20813 test "$cross_compiling" = yes ||
20814 $as_test_x conftest
$ac_exeext
20816 ac_cv_func___res_send
=yes
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.
$ac_ext >&5
20821 ac_cv_func___res_send
=no
20824 rm -rf conftest.dSYM
20825 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20826 conftest
$ac_exeext conftest.
$ac_ext
20828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20829 $as_echo "$ac_cv_func___res_send" >&6; }
20830 if test "x$ac_cv_func___res_send" = x
""yes; then
20833 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20834 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20835 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20836 $as_echo_n "(cached) " >&6
20838 ac_check_lib_save_LIBS
=$LIBS
20839 LIBS
="-lresolv $LIBS"
20840 cat >conftest.
$ac_ext <<_ACEOF
20843 cat confdefs.h
>>conftest.
$ac_ext
20844 cat >>conftest.
$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20847 /* Override any GCC internal prototype to avoid an error.
20848 Use char because int might match the return type of a GCC
20849 builtin and then its argument prototype would still apply. */
20857 return res_send ();
20862 rm -f conftest.
$ac_objext conftest
$ac_exeext
20863 if { (ac_try
="$ac_link"
20864 case "(($ac_try" in
20865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869 $as_echo "$ac_try_echo") >&5
20870 (eval "$ac_link") 2>conftest.er1
20872 grep -v '^ *+' conftest.er1 >conftest.err
20874 cat conftest.err >&5
20875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest$ac_exeext && {
20880 test "$cross_compiling" = yes ||
20881 $as_test_x conftest$ac_exeext
20883 ac_cv_lib_resolv_res_send=yes
20885 $as_echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20888 ac_cv_lib_resolv_res_send=no
20891 rm -rf conftest.dSYM
20892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LIBS=$ac_check_lib_save_LIBS
20896 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20897 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20898 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
20901 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20902 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20903 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20904 $as_echo_n "(cached) " >&6
20906 ac_check_lib_save_LIBS=$LIBS
20907 LIBS="-lresolv $LIBS"
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20915 /* Override any GCC internal prototype to avoid an error.
20916 Use char because int might match the return type of a GCC
20917 builtin and then its argument prototype would still apply. */
20921 char __res_send ();
20925 return __res_send ();
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20934 *) ac_try_echo
=$ac_try;;
20936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_link") 2>conftest.er1
20940 grep -v '^ *+' conftest.er1
>conftest.err
20942 cat conftest.err
>&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest
$ac_exeext && {
20948 test "$cross_compiling" = yes ||
20949 $as_test_x conftest
$ac_exeext
20951 ac_cv_lib_resolv___res_send
=yes
20953 $as_echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.
$ac_ext >&5
20956 ac_cv_lib_resolv___res_send
=no
20959 rm -rf conftest.dSYM
20960 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20961 conftest
$ac_exeext conftest.
$ac_ext
20962 LIBS
=$ac_check_lib_save_LIBS
20964 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20965 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
20966 if test "x$ac_cv_lib_resolv___res_send" = x
""yes; then
20976 if test "$resolv" = yes ; then
20981 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20982 $as_echo_n "checking for hes_getmailhost... " >&6; }
20983 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20984 $as_echo_n "(cached) " >&6
20986 cat >conftest.
$ac_ext <<_ACEOF
20989 cat confdefs.h
>>conftest.
$ac_ext
20990 cat >>conftest.
$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20994 #define hes_getmailhost innocuous_hes_getmailhost
20996 /* System header to define __stub macros and hopefully few prototypes,
20997 which can conflict with char hes_getmailhost (); below.
20998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20999 <limits.h> exists even on freestanding compilers. */
21002 # include <limits.h>
21004 # include <assert.h>
21007 #undef hes_getmailhost
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 hes_getmailhost ();
21016 /* The GNU C library defines this for functions which it implements
21017 to always fail with ENOSYS. Some functions are actually named
21018 something starting with __ and the normal name is an alias. */
21019 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21026 return hes_getmailhost ();
21031 rm -f conftest.
$ac_objext conftest
$ac_exeext
21032 if { (ac_try
="$ac_link"
21033 case "(($ac_try" in
21034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_link") 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext && {
21049 test "$cross_compiling" = yes ||
21050 $as_test_x conftest$ac_exeext
21052 ac_cv_func_hes_getmailhost=yes
21054 $as_echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ac_cv_func_hes_getmailhost=no
21060 rm -rf conftest.dSYM
21061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21062 conftest$ac_exeext conftest.$ac_ext
21064 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21065 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21066 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
21069 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21070 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21071 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21072 $as_echo_n "(cached) " >&6
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-lhesiod $RESOLVLIB $LIBS"
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21089 char hes_getmailhost ();
21093 return hes_getmailhost ();
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21102 *) ac_try_echo
=$ac_try;;
21104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1
>conftest.err
21110 cat conftest.err
>&5
21111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest
$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest
$ac_exeext
21119 ac_cv_lib_hesiod_hes_getmailhost
=yes
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.
$ac_ext >&5
21124 ac_cv_lib_hesiod_hes_getmailhost
=no
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21129 conftest
$ac_exeext conftest.
$ac_ext
21130 LIBS
=$ac_check_lib_save_LIBS
21132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21133 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21134 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x
""yes; then
21136 cat >>confdefs.h
<<\_ACEOF
21137 #define HAVE_LIBHESIOD 1
21148 # Do we need libresolv (due to res_init or Hesiod)?
21149 if test "$resolv" = yes ; then
21151 cat >>confdefs.h
<<\_ACEOF
21152 #define HAVE_LIBRESOLV 1
21157 # These tell us which Kerberos-related libraries to use.
21158 if test "${with_kerberos}" != no
; then
21160 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21161 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21162 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21163 $as_echo_n "(cached) " >&6
21165 ac_check_lib_save_LIBS
=$LIBS
21166 LIBS
="-lcom_err $LIBS"
21167 cat >conftest.
$ac_ext <<_ACEOF
21170 cat confdefs.h
>>conftest.
$ac_ext
21171 cat >>conftest.
$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21189 rm -f conftest.
$ac_objext conftest
$ac_exeext
21190 if { (ac_try
="$ac_link"
21191 case "(($ac_try" in
21192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21196 $as_echo "$ac_try_echo") >&5
21197 (eval "$ac_link") 2>conftest.er1
21199 grep -v '^ *+' conftest.er1 >conftest.err
21201 cat conftest.err >&5
21202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest$ac_exeext && {
21207 test "$cross_compiling" = yes ||
21208 $as_test_x conftest$ac_exeext
21210 ac_cv_lib_com_err_com_err=yes
21212 $as_echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_cv_lib_com_err_com_err=no
21218 rm -rf conftest.dSYM
21219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21220 conftest$ac_exeext conftest.$ac_ext
21221 LIBS=$ac_check_lib_save_LIBS
21223 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21224 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21225 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define HAVE_LIBCOM_ERR 1
21230 LIBS="-lcom_err $LIBS"
21235 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21236 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21237 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21238 $as_echo_n "(cached) " >&6
21240 ac_check_lib_save_LIBS=$LIBS
21241 LIBS="-lk5crypto $LIBS"
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21249 /* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21255 char mit_des_cbc_encrypt ();
21259 return mit_des_cbc_encrypt ();
21264 rm -f conftest.$ac_objext conftest$ac_exeext
21265 if { (ac_try="$ac_link"
21266 case "(($ac_try" in
21267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21268 *) ac_try_echo
=$ac_try;;
21270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21271 $as_echo "$ac_try_echo") >&5
21272 (eval "$ac_link") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1
>conftest.err
21276 cat conftest.err
>&5
21277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest
$ac_exeext && {
21282 test "$cross_compiling" = yes ||
21283 $as_test_x conftest
$ac_exeext
21285 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21287 $as_echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.
$ac_ext >&5
21290 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21293 rm -rf conftest.dSYM
21294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21295 conftest
$ac_exeext conftest.
$ac_ext
21296 LIBS
=$ac_check_lib_save_LIBS
21298 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21299 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21300 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x
""yes; then
21301 cat >>confdefs.h
<<_ACEOF
21302 #define HAVE_LIBK5CRYPTO 1
21305 LIBS
="-lk5crypto $LIBS"
21310 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21311 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21312 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21313 $as_echo_n "(cached) " >&6
21315 ac_check_lib_save_LIBS
=$LIBS
21316 LIBS
="-lcrypto $LIBS"
21317 cat >conftest.
$ac_ext <<_ACEOF
21320 cat confdefs.h
>>conftest.
$ac_ext
21321 cat >>conftest.
$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21324 /* Override any GCC internal prototype to avoid an error.
21325 Use char because int might match the return type of a GCC
21326 builtin and then its argument prototype would still apply. */
21330 char mit_des_cbc_encrypt ();
21334 return mit_des_cbc_encrypt ();
21339 rm -f conftest.
$ac_objext conftest
$ac_exeext
21340 if { (ac_try
="$ac_link"
21341 case "(($ac_try" in
21342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21349 grep -v '^ *+' conftest.er1 >conftest.err
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21360 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21374 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21375 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define HAVE_LIBCRYPTO 1
21380 LIBS="-lcrypto $LIBS"
21385 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21386 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21387 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21388 $as_echo_n "(cached) " >&6
21390 ac_check_lib_save_LIBS=$LIBS
21391 LIBS="-lkrb5 $LIBS"
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21405 char krb5_init_context ();
21409 return krb5_init_context ();
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21418 *) ac_try_echo
=$ac_try;;
21420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21421 $as_echo "$ac_try_echo") >&5
21422 (eval "$ac_link") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1
>conftest.err
21426 cat conftest.err
>&5
21427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest
$ac_exeext && {
21432 test "$cross_compiling" = yes ||
21433 $as_test_x conftest
$ac_exeext
21435 ac_cv_lib_krb5_krb5_init_context
=yes
21437 $as_echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.
$ac_ext >&5
21440 ac_cv_lib_krb5_krb5_init_context
=no
21443 rm -rf conftest.dSYM
21444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21445 conftest
$ac_exeext conftest.
$ac_ext
21446 LIBS
=$ac_check_lib_save_LIBS
21448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21449 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21450 if test "x$ac_cv_lib_krb5_krb5_init_context" = x
""yes; then
21451 cat >>confdefs.h
<<_ACEOF
21452 #define HAVE_LIBKRB5 1
21455 LIBS
="-lkrb5 $LIBS"
21459 if test "${with_kerberos5}" = no
; then
21461 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21462 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21463 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21464 $as_echo_n "(cached) " >&6
21466 ac_check_lib_save_LIBS
=$LIBS
21467 LIBS
="-ldes425 $LIBS"
21468 cat >conftest.
$ac_ext <<_ACEOF
21471 cat confdefs.h
>>conftest.
$ac_ext
21472 cat >>conftest.
$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21481 char des_cbc_encrypt ();
21485 return des_cbc_encrypt ();
21490 rm -f conftest.
$ac_objext conftest
$ac_exeext
21491 if { (ac_try
="$ac_link"
21492 case "(($ac_try" in
21493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21497 $as_echo "$ac_try_echo") >&5
21498 (eval "$ac_link") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest$ac_exeext && {
21508 test "$cross_compiling" = yes ||
21509 $as_test_x conftest$ac_exeext
21511 ac_cv_lib_des425_des_cbc_encrypt=yes
21513 $as_echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21516 ac_cv_lib_des425_des_cbc_encrypt=no
21519 rm -rf conftest.dSYM
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21525 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21526 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
21527 cat >>confdefs.h <<_ACEOF
21528 #define HAVE_LIBDES425 1
21531 LIBS="-ldes425 $LIBS"
21535 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21536 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21537 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21538 $as_echo_n "(cached) " >&6
21540 ac_check_lib_save_LIBS=$LIBS
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21549 /* Override any GCC internal prototype to avoid an error.
21550 Use char because int might match the return type of a GCC
21551 builtin and then its argument prototype would still apply. */
21555 char des_cbc_encrypt ();
21559 return des_cbc_encrypt ();
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21568 *) ac_try_echo
=$ac_try;;
21570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21571 $as_echo "$ac_try_echo") >&5
21572 (eval "$ac_link") 2>conftest.er1
21574 grep -v '^ *+' conftest.er1
>conftest.err
21576 cat conftest.err
>&5
21577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest
$ac_exeext && {
21582 test "$cross_compiling" = yes ||
21583 $as_test_x conftest
$ac_exeext
21585 ac_cv_lib_des_des_cbc_encrypt
=yes
21587 $as_echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.
$ac_ext >&5
21590 ac_cv_lib_des_des_cbc_encrypt
=no
21593 rm -rf conftest.dSYM
21594 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21595 conftest
$ac_exeext conftest.
$ac_ext
21596 LIBS
=$ac_check_lib_save_LIBS
21598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21599 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21600 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x
""yes; then
21601 cat >>confdefs.h
<<_ACEOF
21602 #define HAVE_LIBDES 1
21612 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21613 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21614 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21615 $as_echo_n "(cached) " >&6
21617 ac_check_lib_save_LIBS
=$LIBS
21618 LIBS
="-lkrb4 $LIBS"
21619 cat >conftest.
$ac_ext <<_ACEOF
21622 cat confdefs.h
>>conftest.
$ac_ext
21623 cat >>conftest.
$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21626 /* Override any GCC internal prototype to avoid an error.
21627 Use char because int might match the return type of a GCC
21628 builtin and then its argument prototype would still apply. */
21632 char krb_get_cred ();
21636 return krb_get_cred ();
21641 rm -f conftest.
$ac_objext conftest
$ac_exeext
21642 if { (ac_try
="$ac_link"
21643 case "(($ac_try" in
21644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_link") 2>conftest.er1
21651 grep -v '^ *+' conftest.er1 >conftest.err
21653 cat conftest.err >&5
21654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest$ac_exeext && {
21659 test "$cross_compiling" = yes ||
21660 $as_test_x conftest$ac_exeext
21662 ac_cv_lib_krb4_krb_get_cred=yes
21664 $as_echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_cv_lib_krb4_krb_get_cred=no
21670 rm -rf conftest.dSYM
21671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21672 conftest$ac_exeext conftest.$ac_ext
21673 LIBS=$ac_check_lib_save_LIBS
21675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21676 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21677 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_LIBKRB4 1
21682 LIBS="-lkrb4 $LIBS"
21686 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21687 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21688 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21689 $as_echo_n "(cached) " >&6
21691 ac_check_lib_save_LIBS=$LIBS
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21706 char krb_get_cred ();
21710 return krb_get_cred ();
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (ac_try="$ac_link"
21717 case "(($ac_try" in
21718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21719 *) ac_try_echo
=$ac_try;;
21721 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21722 $as_echo "$ac_try_echo") >&5
21723 (eval "$ac_link") 2>conftest.er1
21725 grep -v '^ *+' conftest.er1
>conftest.err
21727 cat conftest.err
>&5
21728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest
$ac_exeext && {
21733 test "$cross_compiling" = yes ||
21734 $as_test_x conftest
$ac_exeext
21736 ac_cv_lib_krb_krb_get_cred
=yes
21738 $as_echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.
$ac_ext >&5
21741 ac_cv_lib_krb_krb_get_cred
=no
21744 rm -rf conftest.dSYM
21745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21746 conftest
$ac_exeext conftest.
$ac_ext
21747 LIBS
=$ac_check_lib_save_LIBS
21749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21750 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21751 if test "x$ac_cv_lib_krb_krb_get_cred" = x
""yes; then
21752 cat >>confdefs.h
<<_ACEOF
21753 #define HAVE_LIBKRB 1
21764 if test "${with_kerberos5}" != no
; then
21766 for ac_header
in krb5.h
21768 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21771 $as_echo_n "checking for $ac_header... " >&6; }
21772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21773 $as_echo_n "(cached) " >&6
21775 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21776 $as_echo "$as_val"'`
21777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21778 $as_echo "$ac_res" >&6; }
21780 # Is the header compilable?
21781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21782 $as_echo_n "checking $ac_header usability... " >&6; }
21783 cat >conftest.
$ac_ext <<_ACEOF
21786 cat confdefs.h
>>conftest.
$ac_ext
21787 cat >>conftest.
$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21790 #include <$ac_header>
21792 rm -f conftest.
$ac_objext
21793 if { (ac_try
="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21799 $as_echo "$ac_try_echo") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21802 grep -v '^ *+' conftest.er1 >conftest.err
21804 cat conftest.err >&5
21805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21810 ac_header_compiler=yes
21812 $as_echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21815 ac_header_compiler=no
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21820 $as_echo "$ac_header_compiler" >&6; }
21822 # Is the header present?
21823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21824 $as_echo_n "checking $ac_header presence... " >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 #include <$ac_header>
21833 if { (ac_try="$ac_cpp conftest.$ac_ext"
21834 case "(($ac_try" in
21835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21836 *) ac_try_echo
=$ac_try;;
21838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21842 grep -v '^ *+' conftest.er1
>conftest.err
21844 cat conftest.err
>&5
21845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } >/dev
/null
&& {
21847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21850 ac_header_preproc
=yes
21852 $as_echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.
$ac_ext >&5
21855 ac_header_preproc
=no
21858 rm -f conftest.err conftest.
$ac_ext
21859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21860 $as_echo "$ac_header_preproc" >&6; }
21862 # So? What about this header?
21863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21869 ac_header_preproc
=yes
21872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 $as_echo_n "checking for $ac_header... " >&6; }
21889 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21890 $as_echo_n "(cached) " >&6
21892 eval "$as_ac_Header=\$ac_header_preproc"
21894 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21895 $as_echo "$as_val"'`
21896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21897 $as_echo "$ac_res" >&6; }
21900 as_val
=`eval 'as_val=${'$as_ac_Header'}
21901 $as_echo "$as_val"'`
21902 if test "x$as_val" = x
""yes; then
21903 cat >>confdefs.h
<<_ACEOF
21904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21906 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21907 $as_echo_n "checking for krb5_error.text... " >&6; }
21908 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21909 $as_echo_n "(cached) " >&6
21911 cat >conftest.
$ac_ext <<_ACEOF
21914 cat confdefs.h
>>conftest.
$ac_ext
21915 cat >>conftest.
$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21922 static krb5_error ac_aggr;
21929 rm -f conftest.
$ac_objext
21930 if { (ac_try
="$ac_compile"
21931 case "(($ac_try" in
21932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21939 grep -v '^ *+' conftest.er1 >conftest.err
21941 cat conftest.err >&5
21942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest.$ac_objext; then
21947 ac_cv_member_krb5_error_text=yes
21949 $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21963 static krb5_error ac_aggr;
21964 if (sizeof ac_aggr.text)
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21974 *) ac_try_echo
=$ac_try;;
21976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21977 $as_echo "$ac_try_echo") >&5
21978 (eval "$ac_compile") 2>conftest.er1
21980 grep -v '^ *+' conftest.er1
>conftest.err
21982 cat conftest.err
>&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest.
$ac_objext; then
21988 ac_cv_member_krb5_error_text
=yes
21990 $as_echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.
$ac_ext >&5
21993 ac_cv_member_krb5_error_text
=no
21996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22001 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22002 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22003 if test "x$ac_cv_member_krb5_error_text" = x
""yes; then
22005 cat >>confdefs.h
<<_ACEOF
22006 #define HAVE_KRB5_ERROR_TEXT 1
22011 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22012 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22013 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22014 $as_echo_n "(cached) " >&6
22016 cat >conftest.
$ac_ext <<_ACEOF
22019 cat confdefs.h
>>conftest.
$ac_ext
22020 cat >>conftest.
$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22027 static krb5_error ac_aggr;
22028 if (ac_aggr.e_text)
22034 rm -f conftest.
$ac_objext
22035 if { (ac_try
="$ac_compile"
22036 case "(($ac_try" in
22037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22041 $as_echo "$ac_try_echo") >&5
22042 (eval "$ac_compile") 2>conftest.er1
22044 grep -v '^ *+' conftest.er1 >conftest.err
22046 cat conftest.err >&5
22047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && {
22049 test -z "$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22051 } && test -s conftest.$ac_objext; then
22052 ac_cv_member_krb5_error_e_text=yes
22054 $as_echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22068 static krb5_error ac_aggr;
22069 if (sizeof ac_aggr.e_text)
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22079 *) ac_try_echo
=$ac_try;;
22081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22085 grep -v '^ *+' conftest.er1
>conftest.err
22087 cat conftest.err
>&5
22088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest.
$ac_objext; then
22093 ac_cv_member_krb5_error_e_text
=yes
22095 $as_echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.
$ac_ext >&5
22098 ac_cv_member_krb5_error_e_text
=no
22101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22106 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22107 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22108 if test "x$ac_cv_member_krb5_error_e_text" = x
""yes; then
22110 cat >>confdefs.h
<<_ACEOF
22111 #define HAVE_KRB5_ERROR_E_TEXT 1
22123 for ac_header
in des.h
22125 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22128 $as_echo_n "checking for $ac_header... " >&6; }
22129 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22130 $as_echo_n "(cached) " >&6
22132 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22133 $as_echo "$as_val"'`
22134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22135 $as_echo "$ac_res" >&6; }
22137 # Is the header compilable?
22138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22139 $as_echo_n "checking $ac_header usability... " >&6; }
22140 cat >conftest.
$ac_ext <<_ACEOF
22143 cat confdefs.h
>>conftest.
$ac_ext
22144 cat >>conftest.
$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 $ac_includes_default
22147 #include <$ac_header>
22149 rm -f conftest.
$ac_objext
22150 if { (ac_try
="$ac_compile"
22151 case "(($ac_try" in
22152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest.$ac_objext; then
22167 ac_header_compiler=yes
22169 $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_header_compiler=no
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22177 $as_echo "$ac_header_compiler" >&6; }
22179 # Is the header present?
22180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22181 $as_echo_n "checking $ac_header presence... " >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 #include <$ac_header>
22190 if { (ac_try="$ac_cpp conftest.$ac_ext"
22191 case "(($ac_try" in
22192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22193 *) ac_try_echo
=$ac_try;;
22195 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22199 grep -v '^ *+' conftest.er1
>conftest.err
22201 cat conftest.err
>&5
22202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } >/dev
/null
&& {
22204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22207 ac_header_preproc
=yes
22209 $as_echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.
$ac_ext >&5
22212 ac_header_preproc
=no
22215 rm -f conftest.err conftest.
$ac_ext
22216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 $as_echo "$ac_header_preproc" >&6; }
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc
=yes
22229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22245 $as_echo_n "checking for $ac_header... " >&6; }
22246 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22247 $as_echo_n "(cached) " >&6
22249 eval "$as_ac_Header=\$ac_header_preproc"
22251 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22252 $as_echo "$as_val"'`
22253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22254 $as_echo "$ac_res" >&6; }
22257 as_val
=`eval 'as_val=${'$as_ac_Header'}
22258 $as_echo "$as_val"'`
22259 if test "x$as_val" = x
""yes; then
22260 cat >>confdefs.h
<<_ACEOF
22261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22266 for ac_header
in kerberosIV
/des.h
22268 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22271 $as_echo_n "checking for $ac_header... " >&6; }
22272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22273 $as_echo_n "(cached) " >&6
22275 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22276 $as_echo "$as_val"'`
22277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22278 $as_echo "$ac_res" >&6; }
22280 # Is the header compilable?
22281 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22282 $as_echo_n "checking $ac_header usability... " >&6; }
22283 cat >conftest.
$ac_ext <<_ACEOF
22286 cat confdefs.h
>>conftest.
$ac_ext
22287 cat >>conftest.
$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 #include <$ac_header>
22292 rm -f conftest.
$ac_objext
22293 if { (ac_try
="$ac_compile"
22294 case "(($ac_try" in
22295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_header_compiler=yes
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_header_compiler=no
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22320 $as_echo "$ac_header_compiler" >&6; }
22322 # Is the header present?
22323 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22324 $as_echo_n "checking $ac_header presence... " >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <$ac_header>
22333 if { (ac_try="$ac_cpp conftest.$ac_ext"
22334 case "(($ac_try" in
22335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22336 *) ac_try_echo
=$ac_try;;
22338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22339 $as_echo "$ac_try_echo") >&5
22340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1
>conftest.err
22344 cat conftest.err
>&5
22345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } >/dev
/null
&& {
22347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22350 ac_header_preproc
=yes
22352 $as_echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.
$ac_ext >&5
22355 ac_header_preproc
=no
22358 rm -f conftest.err conftest.
$ac_ext
22359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22360 $as_echo "$ac_header_preproc" >&6; }
22362 # So? What about this header?
22363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22366 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22369 ac_header_preproc
=yes
22372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22373 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22375 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22377 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22379 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22383 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22388 $as_echo_n "checking for $ac_header... " >&6; }
22389 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22390 $as_echo_n "(cached) " >&6
22392 eval "$as_ac_Header=\$ac_header_preproc"
22394 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22395 $as_echo "$as_val"'`
22396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22397 $as_echo "$ac_res" >&6; }
22400 as_val
=`eval 'as_val=${'$as_ac_Header'}
22401 $as_echo "$as_val"'`
22402 if test "x$as_val" = x
""yes; then
22403 cat >>confdefs.h
<<_ACEOF
22404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22409 for ac_header
in kerberos
/des.h
22411 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22414 $as_echo_n "checking for $ac_header... " >&6; }
22415 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22416 $as_echo_n "(cached) " >&6
22418 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22419 $as_echo "$as_val"'`
22420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22421 $as_echo "$ac_res" >&6; }
22423 # Is the header compilable?
22424 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22425 $as_echo_n "checking $ac_header usability... " >&6; }
22426 cat >conftest.
$ac_ext <<_ACEOF
22429 cat confdefs.h
>>conftest.
$ac_ext
22430 cat >>conftest.
$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 $ac_includes_default
22433 #include <$ac_header>
22435 rm -f conftest.
$ac_objext
22436 if { (ac_try
="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22442 $as_echo "$ac_try_echo") >&5
22443 (eval "$ac_compile") 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest.$ac_objext; then
22453 ac_header_compiler=yes
22455 $as_echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_header_compiler=no
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22463 $as_echo "$ac_header_compiler" >&6; }
22465 # Is the header present?
22466 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22467 $as_echo_n "checking $ac_header presence... " >&6; }
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <$ac_header>
22476 if { (ac_try="$ac_cpp conftest.$ac_ext"
22477 case "(($ac_try" in
22478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22479 *) ac_try_echo
=$ac_try;;
22481 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22482 $as_echo "$ac_try_echo") >&5
22483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22485 grep -v '^ *+' conftest.er1
>conftest.err
22487 cat conftest.err
>&5
22488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } >/dev
/null
&& {
22490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22493 ac_header_preproc
=yes
22495 $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.
$ac_ext >&5
22498 ac_header_preproc
=no
22501 rm -f conftest.err conftest.
$ac_ext
22502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 $as_echo "$ac_header_preproc" >&6; }
22505 # So? What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512 ac_header_preproc
=yes
22515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22518 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22522 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22531 $as_echo_n "checking for $ac_header... " >&6; }
22532 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22533 $as_echo_n "(cached) " >&6
22535 eval "$as_ac_Header=\$ac_header_preproc"
22537 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22538 $as_echo "$as_val"'`
22539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22540 $as_echo "$ac_res" >&6; }
22543 as_val
=`eval 'as_val=${'$as_ac_Header'}
22544 $as_echo "$as_val"'`
22545 if test "x$as_val" = x
""yes; then
22546 cat >>confdefs.h
<<_ACEOF
22547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22563 for ac_header
in krb.h
22565 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22566 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22568 $as_echo_n "checking for $ac_header... " >&6; }
22569 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22570 $as_echo_n "(cached) " >&6
22572 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22573 $as_echo "$as_val"'`
22574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22575 $as_echo "$ac_res" >&6; }
22577 # Is the header compilable?
22578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22579 $as_echo_n "checking $ac_header usability... " >&6; }
22580 cat >conftest.
$ac_ext <<_ACEOF
22583 cat confdefs.h
>>conftest.
$ac_ext
22584 cat >>conftest.
$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 #include <$ac_header>
22589 rm -f conftest.
$ac_objext
22590 if { (ac_try
="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22596 $as_echo "$ac_try_echo") >&5
22597 (eval "$ac_compile") 2>conftest.er1
22599 grep -v '^ *+' conftest.er1 >conftest.err
22601 cat conftest.err >&5
22602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && {
22604 test -z "$ac_c_werror_flag" ||
22605 test ! -s conftest.err
22606 } && test -s conftest.$ac_objext; then
22607 ac_header_compiler=yes
22609 $as_echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22612 ac_header_compiler=no
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22617 $as_echo "$ac_header_compiler" >&6; }
22619 # Is the header present?
22620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22621 $as_echo_n "checking $ac_header presence... " >&6; }
22622 cat >conftest.$ac_ext <<_ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 #include <$ac_header>
22630 if { (ac_try="$ac_cpp conftest.$ac_ext"
22631 case "(($ac_try" in
22632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22633 *) ac_try_echo
=$ac_try;;
22635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1
>conftest.err
22641 cat conftest.err
>&5
22642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } >/dev
/null
&& {
22644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22647 ac_header_preproc
=yes
22649 $as_echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.
$ac_ext >&5
22652 ac_header_preproc
=no
22655 rm -f conftest.err conftest.
$ac_ext
22656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22657 $as_echo "$ac_header_preproc" >&6; }
22659 # So? What about this header?
22660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22666 ac_header_preproc
=yes
22669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22685 $as_echo_n "checking for $ac_header... " >&6; }
22686 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22687 $as_echo_n "(cached) " >&6
22689 eval "$as_ac_Header=\$ac_header_preproc"
22691 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22692 $as_echo "$as_val"'`
22693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22694 $as_echo "$ac_res" >&6; }
22697 as_val
=`eval 'as_val=${'$as_ac_Header'}
22698 $as_echo "$as_val"'`
22699 if test "x$as_val" = x
""yes; then
22700 cat >>confdefs.h
<<_ACEOF
22701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22706 for ac_header
in kerberosIV
/krb.h
22708 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22709 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22711 $as_echo_n "checking for $ac_header... " >&6; }
22712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713 $as_echo_n "(cached) " >&6
22715 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22716 $as_echo "$as_val"'`
22717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22718 $as_echo "$ac_res" >&6; }
22720 # Is the header compilable?
22721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22722 $as_echo_n "checking $ac_header usability... " >&6; }
22723 cat >conftest.
$ac_ext <<_ACEOF
22726 cat confdefs.h
>>conftest.
$ac_ext
22727 cat >>conftest.
$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 #include <$ac_header>
22732 rm -f conftest.
$ac_objext
22733 if { (ac_try
="$ac_compile"
22734 case "(($ac_try" in
22735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22739 $as_echo "$ac_try_echo") >&5
22740 (eval "$ac_compile") 2>conftest.er1
22742 grep -v '^ *+' conftest.er1 >conftest.err
22744 cat conftest.err >&5
22745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest.$ac_objext; then
22750 ac_header_compiler=yes
22752 $as_echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22755 ac_header_compiler=no
22758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22760 $as_echo "$ac_header_compiler" >&6; }
22762 # Is the header present?
22763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22764 $as_echo_n "checking $ac_header presence... " >&6; }
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <$ac_header>
22773 if { (ac_try="$ac_cpp conftest.$ac_ext"
22774 case "(($ac_try" in
22775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22776 *) ac_try_echo
=$ac_try;;
22778 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1
>conftest.err
22784 cat conftest.err
>&5
22785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } >/dev
/null
&& {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22790 ac_header_preproc
=yes
22792 $as_echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.
$ac_ext >&5
22795 ac_header_preproc
=no
22798 rm -f conftest.err conftest.
$ac_ext
22799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22800 $as_echo "$ac_header_preproc" >&6; }
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22809 ac_header_preproc
=yes
22812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22815 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22819 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22828 $as_echo_n "checking for $ac_header... " >&6; }
22829 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22830 $as_echo_n "(cached) " >&6
22832 eval "$as_ac_Header=\$ac_header_preproc"
22834 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22835 $as_echo "$as_val"'`
22836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22837 $as_echo "$ac_res" >&6; }
22840 as_val
=`eval 'as_val=${'$as_ac_Header'}
22841 $as_echo "$as_val"'`
22842 if test "x$as_val" = x
""yes; then
22843 cat >>confdefs.h
<<_ACEOF
22844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22849 for ac_header
in kerberos
/krb.h
22851 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22854 $as_echo_n "checking for $ac_header... " >&6; }
22855 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856 $as_echo_n "(cached) " >&6
22858 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22859 $as_echo "$as_val"'`
22860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22861 $as_echo "$ac_res" >&6; }
22863 # Is the header compilable?
22864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22865 $as_echo_n "checking $ac_header usability... " >&6; }
22866 cat >conftest.
$ac_ext <<_ACEOF
22869 cat confdefs.h
>>conftest.
$ac_ext
22870 cat >>conftest.
$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 $ac_includes_default
22873 #include <$ac_header>
22875 rm -f conftest.
$ac_objext
22876 if { (ac_try
="$ac_compile"
22877 case "(($ac_try" in
22878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_header_compiler=yes
22895 $as_echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_header_compiler=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22903 $as_echo "$ac_header_compiler" >&6; }
22905 # Is the header present?
22906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22907 $as_echo_n "checking $ac_header presence... " >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 #include <$ac_header>
22916 if { (ac_try="$ac_cpp conftest.$ac_ext"
22917 case "(($ac_try" in
22918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22919 *) ac_try_echo
=$ac_try;;
22921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1
>conftest.err
22927 cat conftest.err
>&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } >/dev
/null
&& {
22930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22933 ac_header_preproc
=yes
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.
$ac_ext >&5
22938 ac_header_preproc
=no
22941 rm -f conftest.err conftest.
$ac_ext
22942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22943 $as_echo "$ac_header_preproc" >&6; }
22945 # So? What about this header?
22946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22952 ac_header_preproc
=yes
22955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22971 $as_echo_n "checking for $ac_header... " >&6; }
22972 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22973 $as_echo_n "(cached) " >&6
22975 eval "$as_ac_Header=\$ac_header_preproc"
22977 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22978 $as_echo "$as_val"'`
22979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22980 $as_echo "$ac_res" >&6; }
22983 as_val
=`eval 'as_val=${'$as_ac_Header'}
22984 $as_echo "$as_val"'`
22985 if test "x$as_val" = x
""yes; then
22986 cat >>confdefs.h
<<_ACEOF
22987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23004 for ac_header
in com_err.h
23006 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23007 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23009 $as_echo_n "checking for $ac_header... " >&6; }
23010 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 $as_echo_n "(cached) " >&6
23013 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23014 $as_echo "$as_val"'`
23015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23016 $as_echo "$ac_res" >&6; }
23018 # Is the header compilable?
23019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23020 $as_echo_n "checking $ac_header usability... " >&6; }
23021 cat >conftest.
$ac_ext <<_ACEOF
23024 cat confdefs.h
>>conftest.
$ac_ext
23025 cat >>conftest.
$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 #include <$ac_header>
23030 rm -f conftest.
$ac_objext
23031 if { (ac_try
="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23037 $as_echo "$ac_try_echo") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_header_compiler=yes
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053 ac_header_compiler=no
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23058 $as_echo "$ac_header_compiler" >&6; }
23060 # Is the header present?
23061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23062 $as_echo_n "checking $ac_header presence... " >&6; }
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 #include <$ac_header>
23071 if { (ac_try="$ac_cpp conftest.$ac_ext"
23072 case "(($ac_try" in
23073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23074 *) ac_try_echo
=$ac_try;;
23076 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23077 $as_echo "$ac_try_echo") >&5
23078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 grep -v '^ *+' conftest.er1
>conftest.err
23082 cat conftest.err
>&5
23083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } >/dev
/null
&& {
23085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23088 ac_header_preproc
=yes
23090 $as_echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.
$ac_ext >&5
23093 ac_header_preproc
=no
23096 rm -f conftest.err conftest.
$ac_ext
23097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23098 $as_echo "$ac_header_preproc" >&6; }
23100 # So? What about this header?
23101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23107 ac_header_preproc
=yes
23110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23113 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23117 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23125 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23126 $as_echo_n "checking for $ac_header... " >&6; }
23127 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23128 $as_echo_n "(cached) " >&6
23130 eval "$as_ac_Header=\$ac_header_preproc"
23132 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23133 $as_echo "$as_val"'`
23134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23135 $as_echo "$ac_res" >&6; }
23138 as_val
=`eval 'as_val=${'$as_ac_Header'}
23139 $as_echo "$as_val"'`
23140 if test "x$as_val" = x
""yes; then
23141 cat >>confdefs.h
<<_ACEOF
23142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23151 # Solaris requires -lintl if you want strerror (which calls dgettext)
23152 # to return localized messages.
23154 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23155 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23156 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23157 $as_echo_n "(cached) " >&6
23159 ac_check_lib_save_LIBS
=$LIBS
23160 LIBS
="-lintl $LIBS"
23161 cat >conftest.
$ac_ext <<_ACEOF
23164 cat confdefs.h
>>conftest.
$ac_ext
23165 cat >>conftest.
$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23168 /* Override any GCC internal prototype to avoid an error.
23169 Use char because int might match the return type of a GCC
23170 builtin and then its argument prototype would still apply. */
23178 return dgettext ();
23183 rm -f conftest.
$ac_objext conftest
$ac_exeext
23184 if { (ac_try
="$ac_link"
23185 case "(($ac_try" in
23186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23190 $as_echo "$ac_try_echo") >&5
23191 (eval "$ac_link") 2>conftest.er1
23193 grep -v '^ *+' conftest.er1 >conftest.err
23195 cat conftest.err >&5
23196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest$ac_exeext && {
23201 test "$cross_compiling" = yes ||
23202 $as_test_x conftest$ac_exeext
23204 ac_cv_lib_intl_dgettext=yes
23206 $as_echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 ac_cv_lib_intl_dgettext=no
23212 rm -rf conftest.dSYM
23213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23214 conftest$ac_exeext conftest.$ac_ext
23215 LIBS=$ac_check_lib_save_LIBS
23217 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23218 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23219 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_LIBINTL 1
23224 LIBS="-lintl $LIBS"
23229 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23230 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23231 if test "${emacs_cv_localtime_cache+set}" = set; then
23232 $as_echo_n "(cached) " >&6
23234 if test x$ac_cv_func_tzset = xyes; then
23235 if test "$cross_compiling" = yes; then
23236 # If we have tzset, assume the worst when cross-compiling.
23237 emacs_cv_localtime_cache=yes
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23246 extern char **environ;
23250 for (to = from = environ; (*to = *from); from++)
23251 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23254 char TZ_GMT0[] = "TZ=GMT0";
23255 char TZ_PST8[] = "TZ=PST8";
23258 time_t now = time ((time_t *) 0);
23259 int hour_GMT0, hour_unset;
23260 if (putenv (TZ_GMT0) != 0)
23262 hour_GMT0 = localtime (&now)->tm_hour;
23264 hour_unset = localtime (&now)->tm_hour;
23265 if (putenv (TZ_PST8) != 0)
23267 if (localtime (&now)->tm_hour == hour_GMT0)
23270 if (localtime (&now)->tm_hour != hour_unset)
23275 rm -f conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23279 *) ac_try_echo
=$ac_try;;
23281 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23282 $as_echo "$ac_try_echo") >&5
23283 (eval "$ac_link") 2>&5
23285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23287 { (case "(($ac_try" in
23288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_try") 2>&5
23295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
23297 emacs_cv_localtime_cache=no
23299 $as_echo "$as_me: program exited with status $ac_status" >&5
23300 $as_echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 ( exit $ac_status )
23304 emacs_cv_localtime_cache=yes
23306 rm -rf conftest.dSYM
23307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23312 # If we lack tzset, report that localtime does not cache TZ,
23313 # since we can't invalidate the cache if we don't have tzset.
23314 emacs_cv_localtime_cache=no
23317 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23318 $as_echo "$emacs_cv_localtime_cache" >&6; }
23319 if test $emacs_cv_localtime_cache = yes; then
23321 cat >>confdefs.h <<\_ACEOF
23322 #define LOCALTIME_CACHE 1
23327 if test "x$HAVE_TIMEVAL" = xyes; then
23329 for ac_func in gettimeofday
23331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23332 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23333 $as_echo_n "checking for $ac_func... " >&6; }
23334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23335 $as_echo_n "(cached) " >&6
23337 cat >conftest.$ac_ext <<_ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23345 #define $ac_func innocuous_$ac_func
23347 /* System header to define __stub macros and hopefully few prototypes,
23348 which can conflict with char $ac_func (); below.
23349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23350 <limits.h> exists even on freestanding compilers. */
23353 # include <limits.h>
23355 # include <assert.h>
23360 /* Override any GCC internal prototype to avoid an error.
23361 Use char because int might match the return type of a GCC
23362 builtin and then its argument prototype would still apply. */
23367 /* The GNU C library defines this for functions which it implements
23368 to always fail with ENOSYS. Some functions are actually named
23369 something starting with __ and the normal name is an alias. */
23370 #if defined __stub_$ac_func || defined __stub___$ac_func
23377 return $ac_func ();
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23386 *) ac_try_echo
=$ac_try;;
23388 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23389 $as_echo "$ac_try_echo") >&5
23390 (eval "$ac_link") 2>conftest.er1
23392 grep -v '^ *+' conftest.er1
>conftest.err
23394 cat conftest.err
>&5
23395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest
$ac_exeext && {
23400 test "$cross_compiling" = yes ||
23401 $as_test_x conftest
$ac_exeext
23403 eval "$as_ac_var=yes"
23405 $as_echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.
$ac_ext >&5
23408 eval "$as_ac_var=no"
23411 rm -rf conftest.dSYM
23412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23413 conftest
$ac_exeext conftest.
$ac_ext
23415 ac_res
=`eval 'as_val=${'$as_ac_var'}
23416 $as_echo "$as_val"'`
23417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23418 $as_echo "$ac_res" >&6; }
23419 as_val
=`eval 'as_val=${'$as_ac_var'}
23420 $as_echo "$as_val"'`
23421 if test "x$as_val" = x
""yes; then
23422 cat >>confdefs.h
<<_ACEOF
23423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23429 if test $ac_cv_func_gettimeofday = yes; then
23430 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23431 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23432 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23433 $as_echo_n "(cached) " >&6
23435 cat >conftest.
$ac_ext <<_ACEOF
23438 cat confdefs.h
>>conftest.
$ac_ext
23439 cat >>conftest.
$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23442 #ifdef TIME_WITH_SYS_TIME
23443 #include <sys/time.h>
23446 #ifdef HAVE_SYS_TIME_H
23447 #include <sys/time.h>
23455 struct timeval time;
23456 gettimeofday (&time, 0);
23461 rm -f conftest.
$ac_objext
23462 if { (ac_try
="$ac_compile"
23463 case "(($ac_try" in
23464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23468 $as_echo "$ac_try_echo") >&5
23469 (eval "$ac_compile") 2>conftest.er1
23471 grep -v '^ *+' conftest.er1 >conftest.err
23473 cat conftest.err >&5
23474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && {
23476 test -z "$ac_c_werror_flag" ||
23477 test ! -s conftest.err
23478 } && test -s conftest.$ac_objext; then
23479 emacs_cv_gettimeofday_two_arguments=yes
23481 $as_echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23484 emacs_cv_gettimeofday_two_arguments=no
23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23490 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23491 if test $emacs_cv_gettimeofday_two_arguments = no; then
23493 cat >>confdefs.h <<\_ACEOF
23494 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23502 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23503 $as_echo_n "checking for socket... " >&6; }
23504 if test "${ac_cv_func_socket+set}" = set; then
23505 $as_echo_n "(cached) " >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define socket innocuous_socket
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char socket (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23523 # include <limits.h>
23525 # include <assert.h>
23530 /* Override any GCC internal prototype to avoid an error.
23531 Use char because int might match the return type of a GCC
23532 builtin and then its argument prototype would still apply. */
23537 /* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540 #if defined __stub_socket || defined __stub___socket
23552 rm -f conftest.$ac_objext conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23556 *) ac_try_echo
=$ac_try;;
23558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23559 $as_echo "$ac_try_echo") >&5
23560 (eval "$ac_link") 2>conftest.er1
23562 grep -v '^ *+' conftest.er1
>conftest.err
23564 cat conftest.err
>&5
23565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest
$ac_exeext && {
23570 test "$cross_compiling" = yes ||
23571 $as_test_x conftest
$ac_exeext
23573 ac_cv_func_socket
=yes
23575 $as_echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.
$ac_ext >&5
23578 ac_cv_func_socket
=no
23581 rm -rf conftest.dSYM
23582 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23583 conftest
$ac_exeext conftest.
$ac_ext
23585 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23586 $as_echo "$ac_cv_func_socket" >&6; }
23587 if test "x$ac_cv_func_socket" = x
""yes; then
23593 if test $ok_so_far = yes; then
23594 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23595 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23596 $as_echo_n "checking for netinet/in.h... " >&6; }
23597 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23598 $as_echo_n "(cached) " >&6
23600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23601 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23603 # Is the header compilable?
23604 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23605 $as_echo_n "checking netinet/in.h usability... " >&6; }
23606 cat >conftest.
$ac_ext <<_ACEOF
23609 cat confdefs.h
>>conftest.
$ac_ext
23610 cat >>conftest.
$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 $ac_includes_default
23613 #include <netinet/in.h>
23615 rm -f conftest.
$ac_objext
23616 if { (ac_try
="$ac_compile"
23617 case "(($ac_try" in
23618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23622 $as_echo "$ac_try_echo") >&5
23623 (eval "$ac_compile") 2>conftest.er1
23625 grep -v '^ *+' conftest.er1 >conftest.err
23627 cat conftest.err >&5
23628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest.$ac_objext; then
23633 ac_header_compiler=yes
23635 $as_echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 ac_header_compiler=no
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23643 $as_echo "$ac_header_compiler" >&6; }
23645 # Is the header present?
23646 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23647 $as_echo_n "checking netinet/in.h presence... " >&6; }
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 #include <netinet/in.h>
23656 if { (ac_try="$ac_cpp conftest.$ac_ext"
23657 case "(($ac_try" in
23658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23659 *) ac_try_echo
=$ac_try;;
23661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23662 $as_echo "$ac_try_echo") >&5
23663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23665 grep -v '^ *+' conftest.er1
>conftest.err
23667 cat conftest.err
>&5
23668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } >/dev
/null
&& {
23670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23673 ac_header_preproc
=yes
23675 $as_echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.
$ac_ext >&5
23678 ac_header_preproc
=no
23681 rm -f conftest.err conftest.
$ac_ext
23682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23683 $as_echo "$ac_header_preproc" >&6; }
23685 # So? What about this header?
23686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23688 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23689 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23690 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23691 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23692 ac_header_preproc
=yes
23695 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23696 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23697 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23698 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23700 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23701 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23702 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23703 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23704 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23706 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23710 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23711 $as_echo_n "checking for netinet/in.h... " >&6; }
23712 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23713 $as_echo_n "(cached) " >&6
23715 ac_cv_header_netinet_in_h
=$ac_header_preproc
23717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23718 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23721 if test "x$ac_cv_header_netinet_in_h" = x
""yes; then
23729 if test $ok_so_far = yes; then
23730 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23731 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23732 $as_echo_n "checking for arpa/inet.h... " >&6; }
23733 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23734 $as_echo_n "(cached) " >&6
23736 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23737 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23739 # Is the header compilable?
23740 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23741 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23742 cat >conftest.
$ac_ext <<_ACEOF
23745 cat confdefs.h
>>conftest.
$ac_ext
23746 cat >>conftest.
$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 #include <arpa/inet.h>
23751 rm -f conftest.
$ac_objext
23752 if { (ac_try
="$ac_compile"
23753 case "(($ac_try" in
23754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23755 *) ac_try_echo=$ac_try;;
23757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23758 $as_echo "$ac_try_echo") >&5
23759 (eval "$ac_compile") 2>conftest.er1
23761 grep -v '^ *+' conftest.er1 >conftest.err
23763 cat conftest.err >&5
23764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } && {
23766 test -z "$ac_c_werror_flag" ||
23767 test ! -s conftest.err
23768 } && test -s conftest.$ac_objext; then
23769 ac_header_compiler=yes
23771 $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23774 ac_header_compiler=no
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23779 $as_echo "$ac_header_compiler" >&6; }
23781 # Is the header present?
23782 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23783 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23784 cat >conftest.$ac_ext <<_ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #include <arpa/inet.h>
23792 if { (ac_try="$ac_cpp conftest.$ac_ext"
23793 case "(($ac_try" in
23794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23795 *) ac_try_echo
=$ac_try;;
23797 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1
>conftest.err
23803 cat conftest.err
>&5
23804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } >/dev
/null
&& {
23806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23809 ac_header_preproc
=yes
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.
$ac_ext >&5
23814 ac_header_preproc
=no
23817 rm -f conftest.err conftest.
$ac_ext
23818 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23819 $as_echo "$ac_header_preproc" >&6; }
23821 # So? What about this header?
23822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23824 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23825 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23826 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23827 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23828 ac_header_preproc
=yes
23831 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23832 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23833 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23834 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23835 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23836 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23837 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23838 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23839 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23840 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23841 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23842 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23846 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23847 $as_echo_n "checking for arpa/inet.h... " >&6; }
23848 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23849 $as_echo_n "(cached) " >&6
23851 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23853 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23854 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23857 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then
23865 if test $ok_so_far = yes; then
23867 cat >>confdefs.h
<<\_ACEOF
23868 #define HAVE_INET_SOCKETS 1
23874 for ac_header
in sys
/ioctl.h
23876 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23877 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23879 $as_echo_n "checking for $ac_header... " >&6; }
23880 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23881 $as_echo_n "(cached) " >&6
23883 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23884 $as_echo "$as_val"'`
23885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23886 $as_echo "$ac_res" >&6; }
23888 # Is the header compilable?
23889 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23890 $as_echo_n "checking $ac_header usability... " >&6; }
23891 cat >conftest.
$ac_ext <<_ACEOF
23894 cat confdefs.h
>>conftest.
$ac_ext
23895 cat >>conftest.
$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23898 #include <$ac_header>
23900 rm -f conftest.
$ac_objext
23901 if { (ac_try
="$ac_compile"
23902 case "(($ac_try" in
23903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23907 $as_echo "$ac_try_echo") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23910 grep -v '^ *+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 ac_header_compiler=yes
23920 $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 ac_header_compiler=no
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23928 $as_echo "$ac_header_compiler" >&6; }
23930 # Is the header present?
23931 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23932 $as_echo_n "checking $ac_header presence... " >&6; }
23933 cat >conftest.$ac_ext <<_ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23939 #include <$ac_header>
23941 if { (ac_try="$ac_cpp conftest.$ac_ext"
23942 case "(($ac_try" in
23943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23944 *) ac_try_echo
=$ac_try;;
23946 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23947 $as_echo "$ac_try_echo") >&5
23948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23950 grep -v '^ *+' conftest.er1
>conftest.err
23952 cat conftest.err
>&5
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } >/dev
/null
&& {
23955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23958 ac_header_preproc
=yes
23960 $as_echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.
$ac_ext >&5
23963 ac_header_preproc
=no
23966 rm -f conftest.err conftest.
$ac_ext
23967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23968 $as_echo "$ac_header_preproc" >&6; }
23970 # So? What about this header?
23971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23974 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23977 ac_header_preproc
=yes
23980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23981 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23983 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23985 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23987 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23991 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23996 $as_echo_n "checking for $ac_header... " >&6; }
23997 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23998 $as_echo_n "(cached) " >&6
24000 eval "$as_ac_Header=\$ac_header_preproc"
24002 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24003 $as_echo "$as_val"'`
24004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24005 $as_echo "$ac_res" >&6; }
24008 as_val
=`eval 'as_val=${'$as_ac_Header'}
24009 $as_echo "$as_val"'`
24010 if test "x$as_val" = x
""yes; then
24011 cat >>confdefs.h
<<_ACEOF
24012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24020 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24022 cat >>confdefs.h
<<\_ACEOF
24023 #define HAVE_AIX_SMT_EXP 1
24028 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24029 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24030 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24031 { $as_echo "$as_me:$LINENO: result: yes" >&5
24032 $as_echo "yes" >&6; }
24034 cat >>confdefs.h
<<\_ACEOF
24035 #define HAVE_DEV_PTMX 1
24039 { $as_echo "$as_me:$LINENO: result: no" >&5
24040 $as_echo "no" >&6; }
24043 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24044 $as_echo_n "checking for pid_t... " >&6; }
24045 if test "${ac_cv_type_pid_t+set}" = set; then
24046 $as_echo_n "(cached) " >&6
24048 ac_cv_type_pid_t
=no
24049 cat >conftest.
$ac_ext <<_ACEOF
24052 cat confdefs.h
>>conftest.
$ac_ext
24053 cat >>conftest.
$ac_ext <<_ACEOF
24054 /* end confdefs.h. */
24055 $ac_includes_default
24059 if (sizeof (pid_t))
24065 rm -f conftest.
$ac_objext
24066 if { (ac_try
="$ac_compile"
24067 case "(($ac_try" in
24068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24072 $as_echo "$ac_try_echo") >&5
24073 (eval "$ac_compile") 2>conftest.er1
24075 grep -v '^ *+' conftest.er1 >conftest.err
24077 cat conftest.err >&5
24078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); } && {
24080 test -z "$ac_c_werror_flag" ||
24081 test ! -s conftest.err
24082 } && test -s conftest.$ac_objext; then
24083 cat >conftest.$ac_ext <<_ACEOF
24086 cat confdefs.h >>conftest.$ac_ext
24087 cat >>conftest.$ac_ext <<_ACEOF
24088 /* end confdefs.h. */
24089 $ac_includes_default
24093 if (sizeof ((pid_t)))
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24103 *) ac_try_echo
=$ac_try;;
24105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24106 $as_echo "$ac_try_echo") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24109 grep -v '^ *+' conftest.er1
>conftest.err
24111 cat conftest.err
>&5
24112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.
$ac_objext; then
24119 $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.
$ac_ext >&5
24122 ac_cv_type_pid_t
=yes
24125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24127 $as_echo "$as_me: failed program was:" >&5
24128 sed 's/^/| /' conftest.
$ac_ext >&5
24133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24136 $as_echo "$ac_cv_type_pid_t" >&6; }
24137 if test "x$ac_cv_type_pid_t" = x
""yes; then
24141 cat >>confdefs.h
<<_ACEOF
24148 for ac_header
in vfork.h
24150 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24153 $as_echo_n "checking for $ac_header... " >&6; }
24154 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24155 $as_echo_n "(cached) " >&6
24157 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24158 $as_echo "$as_val"'`
24159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24160 $as_echo "$ac_res" >&6; }
24162 # Is the header compilable?
24163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24164 $as_echo_n "checking $ac_header usability... " >&6; }
24165 cat >conftest.
$ac_ext <<_ACEOF
24168 cat confdefs.h
>>conftest.
$ac_ext
24169 cat >>conftest.
$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 $ac_includes_default
24172 #include <$ac_header>
24174 rm -f conftest.
$ac_objext
24175 if { (ac_try
="$ac_compile"
24176 case "(($ac_try" in
24177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24181 $as_echo "$ac_try_echo") >&5
24182 (eval "$ac_compile") 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest.$ac_objext; then
24192 ac_header_compiler=yes
24194 $as_echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24197 ac_header_compiler=no
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24202 $as_echo "$ac_header_compiler" >&6; }
24204 # Is the header present?
24205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24206 $as_echo_n "checking $ac_header presence... " >&6; }
24207 cat >conftest.$ac_ext <<_ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <$ac_header>
24215 if { (ac_try="$ac_cpp conftest.$ac_ext"
24216 case "(($ac_try" in
24217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24218 *) ac_try_echo
=$ac_try;;
24220 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24221 $as_echo "$ac_try_echo") >&5
24222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24224 grep -v '^ *+' conftest.er1
>conftest.err
24226 cat conftest.err
>&5
24227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } >/dev
/null
&& {
24229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24232 ac_header_preproc
=yes
24234 $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.
$ac_ext >&5
24237 ac_header_preproc
=no
24240 rm -f conftest.err conftest.
$ac_ext
24241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24242 $as_echo "$ac_header_preproc" >&6; }
24244 # So? What about this header?
24245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24251 ac_header_preproc
=yes
24254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24270 $as_echo_n "checking for $ac_header... " >&6; }
24271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272 $as_echo_n "(cached) " >&6
24274 eval "$as_ac_Header=\$ac_header_preproc"
24276 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24277 $as_echo "$as_val"'`
24278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24282 as_val
=`eval 'as_val=${'$as_ac_Header'}
24283 $as_echo "$as_val"'`
24284 if test "x$as_val" = x
""yes; then
24285 cat >>confdefs.h
<<_ACEOF
24286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24295 for ac_func
in fork vfork
24297 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24299 $as_echo_n "checking for $ac_func... " >&6; }
24300 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24301 $as_echo_n "(cached) " >&6
24303 cat >conftest.
$ac_ext <<_ACEOF
24306 cat confdefs.h
>>conftest.
$ac_ext
24307 cat >>conftest.
$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24311 #define $ac_func innocuous_$ac_func
24313 /* System header to define __stub macros and hopefully few prototypes,
24314 which can conflict with char $ac_func (); below.
24315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24316 <limits.h> exists even on freestanding compilers. */
24319 # include <limits.h>
24321 # include <assert.h>
24326 /* Override any GCC internal prototype to avoid an error.
24327 Use char because int might match the return type of a GCC
24328 builtin and then its argument prototype would still apply. */
24333 /* The GNU C library defines this for functions which it implements
24334 to always fail with ENOSYS. Some functions are actually named
24335 something starting with __ and the normal name is an alias. */
24336 #if defined __stub_$ac_func || defined __stub___$ac_func
24343 return $ac_func ();
24348 rm -f conftest.
$ac_objext conftest
$ac_exeext
24349 if { (ac_try
="$ac_link"
24350 case "(($ac_try" in
24351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_link") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest$ac_exeext && {
24366 test "$cross_compiling" = yes ||
24367 $as_test_x conftest$ac_exeext
24369 eval "$as_ac_var=yes"
24371 $as_echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24374 eval "$as_ac_var=no"
24377 rm -rf conftest.dSYM
24378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24379 conftest$ac_exeext conftest.$ac_ext
24381 ac_res=`eval 'as_val=${'$as_ac_var'}
24382 $as_echo "$as_val"'`
24383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24384 $as_echo "$ac_res" >&6; }
24385 as_val=`eval 'as_val=${'$as_ac_var'}
24386 $as_echo "$as_val"'`
24387 if test "x$as_val" = x""yes; then
24388 cat >>confdefs.h <<_ACEOF
24389 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24395 if test "x$ac_cv_func_fork" = xyes; then
24396 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24397 $as_echo_n "checking for working fork... " >&6; }
24398 if test "${ac_cv_func_fork_works+set}" = set; then
24399 $as_echo_n "(cached) " >&6
24401 if test "$cross_compiling" = yes; then
24402 ac_cv_func_fork_works=cross
24404 cat >conftest.$ac_ext <<_ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410 $ac_includes_default
24415 /* By Ruediger Kuhlmann. */
24416 return fork () < 0;
24422 rm -f conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24426 *) ac_try_echo
=$ac_try;;
24428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24429 $as_echo "$ac_try_echo") >&5
24430 (eval "$ac_link") 2>&5
24432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24434 { (case "(($ac_try" in
24435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24436 *) ac_try_echo=$ac_try;;
24438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24439 $as_echo "$ac_try_echo") >&5
24440 (eval "$ac_try") 2>&5
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 ac_cv_func_fork_works=yes
24446 $as_echo "$as_me: program exited with status $ac_status" >&5
24447 $as_echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ( exit $ac_status )
24451 ac_cv_func_fork_works=no
24453 rm -rf conftest.dSYM
24454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24459 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24460 $as_echo "$ac_cv_func_fork_works" >&6; }
24463 ac_cv_func_fork_works=$ac_cv_func_fork
24465 if test "x$ac_cv_func_fork_works" = xcross; then
24467 *-*-amigaos* | *-*-msdosdjgpp*)
24468 # Override, as these systems have only a dummy fork() stub
24469 ac_cv_func_fork_works=no
24472 ac_cv_func_fork_works=yes
24475 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24476 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24478 ac_cv_func_vfork_works=$ac_cv_func_vfork
24479 if test "x$ac_cv_func_vfork" = xyes; then
24480 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24481 $as_echo_n "checking for working vfork... " >&6; }
24482 if test "${ac_cv_func_vfork_works+set}" = set; then
24483 $as_echo_n "(cached) " >&6
24485 if test "$cross_compiling" = yes; then
24486 ac_cv_func_vfork_works=cross
24488 cat >conftest.$ac_ext <<_ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24494 /* Thanks to Paul Eggert for this test. */
24495 $ac_includes_default
24496 #include <sys/wait.h>
24497 #ifdef HAVE_VFORK_H
24498 # include <vfork.h>
24500 /* On some sparc systems, changes by the child to local and incoming
24501 argument registers are propagated back to the parent. The compiler
24502 is told about this with #include <vfork.h>, but some compilers
24503 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24504 static variable whose address is put into a register that is
24505 clobbered by the vfork. */
24508 sparc_address_test (int arg)
24510 sparc_address_test (arg) int arg;
24513 static pid_t child;
24531 pid_t parent = getpid ();
24534 sparc_address_test (0);
24539 /* Here is another test for sparc vfork register problems. This
24540 test uses lots of local variables, at least as many local
24541 variables as main has allocated so far including compiler
24542 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24543 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24544 reuse the register of parent for one of the local variables,
24545 since it will think that parent can't possibly be used any more
24546 in this routine. Assigning to the local variable will thus
24547 munge parent in the parent process. */
24549 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24550 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24551 /* Convince the compiler that p..p7 are live; otherwise, it might
24552 use the same hardware register for all 8 local variables. */
24553 if (p != p1 || p != p2 || p != p3 || p != p4
24554 || p != p5 || p != p6 || p != p7)
24557 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24558 from child file descriptors. If the child closes a descriptor
24559 before it execs or exits, this munges the parent's descriptor
24560 as well. Test for this by closing stdout in the child. */
24561 _exit(close(fileno(stdout)) != 0);
24566 while (wait(&status) != child)
24569 /* Was there some problem with vforking? */
24572 /* Did the child fail? (This shouldn't happen.) */
24575 /* Did the vfork/compiler bug occur? */
24576 || parent != getpid()
24578 /* Did the file descriptor bug occur? */
24579 || fstat(fileno(stdout), &st) != 0
24584 rm -f conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24588 *) ac_try_echo
=$ac_try;;
24590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24591 $as_echo "$ac_try_echo") >&5
24592 (eval "$ac_link") 2>&5
24594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24596 { (case "(($ac_try" in
24597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_try") 2>&5
24604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; }; then
24606 ac_cv_func_vfork_works=yes
24608 $as_echo "$as_me: program exited with status $ac_status" >&5
24609 $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24612 ( exit $ac_status )
24613 ac_cv_func_vfork_works=no
24615 rm -rf conftest.dSYM
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24622 $as_echo "$ac_cv_func_vfork_works" >&6; }
24625 if test "x$ac_cv_func_fork_works" = xcross; then
24626 ac_cv_func_vfork_works=$ac_cv_func_vfork
24627 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24628 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24631 if test "x$ac_cv_func_vfork_works" = xyes; then
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_WORKING_VFORK 1
24639 cat >>confdefs.h <<\_ACEOF
24644 if test "x$ac_cv_func_fork_works" = xyes; then
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_WORKING_FORK 1
24653 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24654 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24655 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24658 cat >conftest.$ac_ext <<_ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h. */
24664 #include <langinfo.h>
24668 char* cs = nl_langinfo(CODESET);
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24677 *) ac_try_echo
=$ac_try;;
24679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681 (eval "$ac_link") 2>conftest.er1
24683 grep -v '^ *+' conftest.er1
>conftest.err
24685 cat conftest.err
>&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest
$ac_exeext && {
24691 test "$cross_compiling" = yes ||
24692 $as_test_x conftest
$ac_exeext
24694 emacs_cv_langinfo_codeset
=yes
24696 $as_echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.
$ac_ext >&5
24699 emacs_cv_langinfo_codeset
=no
24702 rm -rf conftest.dSYM
24703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24704 conftest
$ac_exeext conftest.
$ac_ext
24707 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24708 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24709 if test $emacs_cv_langinfo_codeset = yes; then
24711 cat >>confdefs.h
<<\_ACEOF
24712 #define HAVE_LANGINFO_CODESET 1
24717 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24718 $as_echo_n "checking for size_t... " >&6; }
24719 if test "${ac_cv_type_size_t+set}" = set; then
24720 $as_echo_n "(cached) " >&6
24722 ac_cv_type_size_t
=no
24723 cat >conftest.
$ac_ext <<_ACEOF
24726 cat confdefs.h
>>conftest.
$ac_ext
24727 cat >>conftest.
$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24733 if (sizeof (size_t))
24739 rm -f conftest.
$ac_objext
24740 if { (ac_try
="$ac_compile"
24741 case "(($ac_try" in
24742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_compile") 2>conftest.er1
24749 grep -v '^ *+' conftest.er1 >conftest.err
24751 cat conftest.err >&5
24752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } && {
24754 test -z "$ac_c_werror_flag" ||
24755 test ! -s conftest.err
24756 } && test -s conftest.$ac_objext; then
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 $ac_includes_default
24767 if (sizeof ((size_t)))
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24777 *) ac_try_echo
=$ac_try;;
24779 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24780 $as_echo "$ac_try_echo") >&5
24781 (eval "$ac_compile") 2>conftest.er1
24783 grep -v '^ *+' conftest.er1
>conftest.err
24785 cat conftest.err
>&5
24786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest.
$ac_objext; then
24793 $as_echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.
$ac_ext >&5
24796 ac_cv_type_size_t
=yes
24799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24801 $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.
$ac_ext >&5
24807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24810 $as_echo "$ac_cv_type_size_t" >&6; }
24811 if test "x$ac_cv_type_size_t" = x
""yes; then
24813 cat >>confdefs.h
<<_ACEOF
24814 #define HAVE_SIZE_T 1
24821 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24822 $as_echo_n "checking for mbstate_t... " >&6; }
24823 if test "${ac_cv_type_mbstate_t+set}" = set; then
24824 $as_echo_n "(cached) " >&6
24826 cat >conftest.
$ac_ext <<_ACEOF
24829 cat confdefs.h
>>conftest.
$ac_ext
24830 cat >>conftest.
$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 # include <wchar.h>
24837 mbstate_t x; return sizeof x;
24842 rm -f conftest.
$ac_objext
24843 if { (ac_try
="$ac_compile"
24844 case "(($ac_try" in
24845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24852 grep -v '^ *+' conftest.er1 >conftest.err
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_cv_type_mbstate_t=yes
24862 $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_cv_type_mbstate_t=no
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24871 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24872 if test $ac_cv_type_mbstate_t = yes; then
24874 cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_MBSTATE_T 1
24880 cat >>confdefs.h <<\_ACEOF
24881 #define mbstate_t int
24886 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24887 $as_echo_n "checking for C restrict keyword... " >&6; }
24888 if test "${emacs_cv_c_restrict+set}" = set; then
24889 $as_echo_n "(cached) " >&6
24891 cat >conftest.$ac_ext <<_ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 void fred (int *restrict x);
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24910 *) ac_try_echo
=$ac_try;;
24912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24913 $as_echo "$ac_try_echo") >&5
24914 (eval "$ac_compile") 2>conftest.er1
24916 grep -v '^ *+' conftest.er1
>conftest.err
24918 cat conftest.err
>&5
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && {
24921 test -z "$ac_c_werror_flag" ||
24922 test ! -s conftest.err
24923 } && test -s conftest.
$ac_objext; then
24924 emacs_cv_c_restrict
=yes
24926 $as_echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.
$ac_ext >&5
24929 cat >conftest.
$ac_ext <<_ACEOF
24932 cat confdefs.h
>>conftest.
$ac_ext
24933 cat >>conftest.
$ac_ext <<_ACEOF
24934 /* end confdefs.h. */
24935 void fred (int *__restrict x);
24944 rm -f conftest.
$ac_objext
24945 if { (ac_try
="$ac_compile"
24946 case "(($ac_try" in
24947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24948 *) ac_try_echo=$ac_try;;
24950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24951 $as_echo "$ac_try_echo") >&5
24952 (eval "$ac_compile") 2>conftest.er1
24954 grep -v '^ *+' conftest.er1 >conftest.err
24956 cat conftest.err >&5
24957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } && {
24959 test -z "$ac_c_werror_flag" ||
24960 test ! -s conftest.err
24961 } && test -s conftest.$ac_objext; then
24962 emacs_cv_c_restrict=__restrict
24964 $as_echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24967 emacs_cv_c_restrict=no
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24975 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24976 $as_echo "$emacs_cv_c_restrict" >&6; }
24977 case "$emacs_cv_c_restrict" in
24978 yes) emacs_restrict=restrict;;
24979 no) emacs_restrict="";;
24980 *) emacs_restrict="$emacs_cv_c_restrict";;
24982 if test "$emacs_restrict" != __restrict; then
24984 cat >>confdefs.h <<_ACEOF
24985 #define __restrict $emacs_restrict
24990 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24991 $as_echo_n "checking for C restricted array declarations... " >&6; }
24992 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24993 $as_echo_n "(cached) " >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 void fred (int x[__restrict]);
25010 rm -f conftest.$ac_objext
25011 if { (ac_try="$ac_compile"
25012 case "(($ac_try" in
25013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25014 *) ac_try_echo
=$ac_try;;
25016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25017 $as_echo "$ac_try_echo") >&5
25018 (eval "$ac_compile") 2>conftest.er1
25020 grep -v '^ *+' conftest.er1
>conftest.err
25022 cat conftest.err
>&5
25023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } && {
25025 test -z "$ac_c_werror_flag" ||
25026 test ! -s conftest.err
25027 } && test -s conftest.
$ac_objext; then
25028 emacs_cv_c_restrict_arr
=yes
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.
$ac_ext >&5
25033 emacs_cv_c_restrict_arr
=no
25036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25038 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25039 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25040 if test "$emacs_cv_c_restrict_arr" = yes; then
25042 cat >>confdefs.h
<<\_ACEOF
25043 #define __restrict_arr __restrict
25050 # Set up the CFLAGS for real compilation, so we can substitute it.
25051 CFLAGS
="$REAL_CFLAGS"
25052 CPPFLAGS
="$REAL_CPPFLAGS"
25054 #### Find out which version of Emacs this is.
25055 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25056 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25057 if test x
"${version}" = x
; then
25058 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25059 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25060 { (exit 1); exit 1; }; }
25063 ### Specify what sort of things we'll be editing into Makefile and config.h.
25064 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25108 cat >>confdefs.h
<<_ACEOF
25109 #define EMACS_CONFIGURATION "${canonical}"
25113 cat >>confdefs.h
<<_ACEOF
25114 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25118 cat >>confdefs.h
<<_ACEOF
25119 #define config_machfile "${machfile}"
25123 cat >>confdefs.h
<<_ACEOF
25124 #define config_opsysfile "${opsysfile}"
25128 cat >>confdefs.h
<<_ACEOF
25129 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25133 cat >>confdefs.h
<<_ACEOF
25134 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25138 cat >>confdefs.h
<<_ACEOF
25139 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25143 cat >>confdefs.h
<<_ACEOF
25144 #define UNEXEC_SRC ${UNEXEC_SRC}
25148 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25150 cat >>confdefs.h
<<\_ACEOF
25151 #define HAVE_X_WINDOWS 1
25155 if test "${USE_X_TOOLKIT}" != "none" ; then
25157 cat >>confdefs.h
<<\_ACEOF
25158 #define USE_X_TOOLKIT 1
25161 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25163 cat >>confdefs.h
<<\_ACEOF
25164 #define USE_LUCID 1
25167 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25169 cat >>confdefs.h
<<\_ACEOF
25170 #define USE_MOTIF 1
25175 if test "${HAVE_X11}" = "yes" ; then
25177 cat >>confdefs.h
<<\_ACEOF
25182 if test "${HAVE_MENUS}" = "yes" ; then
25184 cat >>confdefs.h
<<\_ACEOF
25185 #define HAVE_MENUS 1
25189 if test "${GNU_MALLOC}" = "yes" ; then
25191 cat >>confdefs.h
<<\_ACEOF
25192 #define GNU_MALLOC 1
25196 if test "${REL_ALLOC}" = "yes" ; then
25198 cat >>confdefs.h
<<\_ACEOF
25199 #define REL_ALLOC 1
25209 #### Report on what we decided to do.
25210 #### Report GTK as a toolkit, even if it doesn't use Xt.
25211 #### It makes printing result more understandable as using GTK sets
25212 #### toolkit_scroll_bars to yes by default.
25213 if test "${HAVE_GTK}" = "yes"; then
25218 Configured for \`${canonical}'.
25220 Where should the build process find the source code? ${srcdir}
25221 What operating system and machine description files should Emacs use?
25222 \`${opsysfile}' and \`${machfile}'
25223 What compiler should emacs be built with? ${CC} ${CFLAGS}
25224 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25225 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25226 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25227 What window system should Emacs use? ${window_system}
25228 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25230 if test -n "${x_includes}"; then
25231 echo " Where do we find X Windows header files? ${x_includes}"
25233 echo " Where do we find X Windows header files? Standard dirs"
25235 if test -n "${x_libraries}"; then
25236 echo " Where do we find X Windows libraries? ${x_libraries}"
25238 echo " Where do we find X Windows libraries? Standard dirs"
25241 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25242 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25243 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25244 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25245 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25246 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25247 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25248 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25249 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25251 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25252 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25253 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25254 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25256 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25259 if test $USE_XASSERTS = yes; then
25260 echo " Compiling with asserts turned on."
25261 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25266 if test "$USE_X_TOOLKIT" = GTK
; then
25267 case "$canonical" in
25269 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25270 will probably get a crash on startup. If this happens, please use another
25271 toolkit for Emacs. See etc/PROBLEMS for more information."
25276 if test "$HAVE_NS" = "yes"; then
25278 echo "You must run \"make install\" in order to test the built application.
25279 The installed application will go to nextstep/Emacs.app and can be
25280 run or moved from there."
25281 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25282 echo "The application will be fully self-contained."
25284 echo "The lisp resources for the application will be installed under ${prefix}.
25285 You may need to run \"make install\" with sudo. The application will fail
25286 to run if these resources are not installed."
25291 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25292 echo "D-Bus integration has been tested for GNU/Linux only."
25297 # Remove any trailing slashes in these variables.
25298 test "${prefix}" != NONE
&&
25299 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25300 test "${exec_prefix}" != NONE
&&
25301 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25303 # Now get this: Some word that is part of the ${srcdir} directory name
25304 # or the ${configuration} value might, just might, happen to be an
25305 # identifier like `sun4' or `i386' or something, and be predefined by
25306 # the C preprocessor to some helpful value like 1, or maybe the empty
25307 # string. Needless to say consequent macro substitutions are less
25308 # than conducive to the makefile finding the correct directory.
25309 cpp_undefs
="`echo $srcdir $configuration $canonical |
25310 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25311 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25313 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25314 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25315 ## from Makefile.c can correctly provide the arg `-traditional' to the
25318 cat >conftest.
$ac_ext <<_ACEOF
25321 cat confdefs.h
>>conftest.
$ac_ext
25322 cat >>conftest.
$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25327 $EGREP "yes..yes" >/dev
/null
2>&1; then
25328 CPP_NEED_TRADITIONAL
=no
25330 CPP_NEED_TRADITIONAL
=yes
25335 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"
25337 ac_config_commands
="$ac_config_commands default"
25339 cat >confcache
<<\_ACEOF
25340 # This file is a shell script that caches the results of configure
25341 # tests run on this system so they can be shared between configure
25342 # scripts and configure runs, see configure's option --config-cache.
25343 # It is not useful on other systems. If it contains results you don't
25344 # want to keep, you may remove or edit it.
25346 # config.status only pays attention to the cache file if you give it
25347 # the --recheck option to rerun configure.
25349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25351 # following values.
25355 # The following way of writing the cache mishandles newlines in values,
25356 # but we know of no workaround that is simple, portable, and efficient.
25357 # So, we kill variables containing newlines.
25358 # Ultrix sh set writes to stderr and can't be redirected directly,
25359 # and sets the high bit in the cache file unless we assign to the vars.
25361 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25362 eval ac_val
=\$
$ac_var
25366 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25370 _ | IFS | as_nl
) ;; #(
25371 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25372 *) $as_unset $ac_var ;;
25378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25379 *${as_nl}ac_space
=\
*)
25380 # `set' does not quote correctly, so add quotes (double-quote
25381 # substitution turns \\\\ into \\, and sed turns \\ into \).
25384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25387 # `set' quotes correctly as required by POSIX, so do not add quotes.
25388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25401 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25402 if test -w "$cache_file"; then
25403 test "x$cache_file" != "x/dev/null" &&
25404 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25405 $as_echo "$as_me: updating cache $cache_file" >&6;}
25406 cat confcache
>$cache_file
25408 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25414 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25415 # Let make expand exec_prefix.
25416 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25418 DEFS
=-DHAVE_CONFIG_H
25422 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25423 # 1. Remove the extension, and $U if already installed.
25424 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25425 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25427 # will be set to the directory where LIBOBJS objects are built.
25428 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25429 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25431 LIBOBJS
=$ac_libobjs
25433 LTLIBOBJS
=$ac_ltlibobjs
25437 : ${CONFIG_STATUS=./config.status}
25439 ac_clean_files_save
=$ac_clean_files
25440 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25441 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25443 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25445 # Generated by $as_me.
25446 # Run this file to recreate the current configuration.
25447 # Compiler output produced by configure, useful for debugging
25448 # configure, is in config.log if it exists.
25451 ac_cs_recheck=false
25453 SHELL=\${CONFIG_SHELL-$SHELL}
25456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25457 ## --------------------- ##
25458 ## M4sh Initialization. ##
25459 ## --------------------- ##
25461 # Be more Bourne compatible
25462 DUALCASE
=1; export DUALCASE
# for MKS sh
25463 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25466 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25467 # is contrary to our usage. Disable this feature.
25468 alias -g '${1+"$@"}'='"$@"'
25469 setopt NO_GLOB_SUBST
25471 case `(set -o) 2>/dev/null` in
25472 *posix
*) set -o posix
;;
25481 # Avoid depending upon Character Ranges.
25482 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25483 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25484 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25485 as_cr_digits
='0123456789'
25486 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25492 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25495 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25496 as_echo='printf %s
\n'
25497 as_echo_n='printf %s
'
25499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25500 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25501 as_echo_n='/usr
/ucb
/echo -n'
25503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25504 as_echo_n_body='eval
25508 expr "X$arg" : "X\\(.*\\)$as_nl";
25509 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25511 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25513 export as_echo_n_body
25514 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25516 export as_echo_body
25517 as_echo='sh
-c $as_echo_body as_echo
'
25520 # The user is always right.
25521 if test "${PATH_SEPARATOR+set}" != set; then
25523 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25524 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25529 # Support unset when possible.
25530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25538 # We need space, tab and new line, in precisely that order. Quoting is
25539 # there to prevent editors from complaining about space-tab.
25540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25541 # splitting by setting IFS to empty value.)
25544 # Find who we are. Look in the path if we contain no directory separator.
25546 *[\\/]* ) as_myself=$0 ;;
25547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25548 for as_dir in $PATH
25551 test -z "$as_dir" && as_dir=.
25552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25558 # We did not find ourselves, most probably we were run as `sh COMMAND'
25559 # in which case we are not to be found in the path.
25560 if test "x$as_myself" = x
; then
25563 if test ! -f "$as_myself"; then
25564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25565 { (exit 1); exit 1; }
25568 # Work around bugs in pre-3.0 UWIN ksh.
25569 for as_var
in ENV MAIL MAILPATH
25570 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25582 # Required to use basename.
25583 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25584 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25590 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25591 as_basename
=basename
25597 # Name of the executable.
25598 as_me
=`$as_basename -- "$0" ||
25599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25600 X"$0" : 'X\(//\)$' \| \
25601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25603 sed '/^.*\/\([^/][^/]*\)\/*$/{
25622 as_lineno_1
=$LINENO
25623 as_lineno_2
=$LINENO
25624 test "x$as_lineno_1" != "x$as_lineno_2" &&
25625 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25628 # uniformly replaced by the line number. The first 'sed' inserts a
25629 # line-number line after each line using $LINENO; the second 'sed'
25630 # does the real work. The second script uses 'N' to pair each
25631 # line-number line with the line containing $LINENO, and appends
25632 # trailing '-' during substitution so that $LINENO is not a special
25633 # case at line end.
25634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25635 # scripts with optimization help from Paolo Bonzini. Blame Lee
25636 # E. McMahon (1931-1989) for sed's syntax. :-)
25648 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25651 ' >$as_me.lineno
&&
25652 chmod +x
"$as_me.lineno" ||
25653 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25654 { (exit 1); exit 1; }; }
25656 # Don't try to exec as it changes $[0], causing all sort of problems
25657 # (the dirname of $[0] is not the place where we might find the
25658 # original and so on. Autoconf is especially sensitive to this).
25659 .
"./$as_me.lineno"
25660 # Exit status is that of the last command.
25665 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25671 ECHO_C
= ECHO_N
= ECHO_T
=
25672 case `echo -n x` in
25674 case `echo 'x\c'` in
25675 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25681 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25682 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25688 rm -f conf$$ conf$$.exe conf$$.
file
25689 if test -d conf$$.dir
; then
25690 rm -f conf$$.dir
/conf$$.
file
25693 mkdir conf$$.dir
2>/dev
/null
25695 if (echo >conf$$.
file) 2>/dev
/null
; then
25696 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25698 # ... but there are two gotchas:
25699 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25700 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25701 # In both cases, we have to default to `cp -p'.
25702 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25704 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25712 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25713 rmdir conf$$.dir
2>/dev
/null
25715 if mkdir
-p .
2>/dev
/null
; then
25718 test -d .
/-p && rmdir .
/-p
25722 if test -x / >/dev
/null
2>&1; then
25723 as_test_x
='test -x'
25725 if ls -dL / >/dev
/null
2>&1; then
25732 if test -d "$1"; then
25738 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25739 ???[sx]*):;;*)false;;esac;fi
25743 as_executable_p
=$as_test_x
25745 # Sed expression to map a string onto a valid CPP name.
25746 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25748 # Sed expression to map a string onto a valid variable name.
25749 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25754 # Save the log message, to keep $[0] and so on meaningful, and to
25755 # report actual input values of CONFIG_FILES etc. instead of their
25756 # values after options handling.
25758 This file was extended by emacs $as_me 23.0.91, which was
25759 generated by GNU Autoconf 2.63. Invocation command line was
25761 CONFIG_FILES = $CONFIG_FILES
25762 CONFIG_HEADERS = $CONFIG_HEADERS
25763 CONFIG_LINKS = $CONFIG_LINKS
25764 CONFIG_COMMANDS = $CONFIG_COMMANDS
25767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25772 case $ac_config_files in *"
25773 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25776 case $ac_config_headers in *"
25777 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25782 # Files that config.status was made for.
25783 config_files="$ac_config_files"
25784 config_headers="$ac_config_headers"
25785 config_commands="$ac_config_commands"
25789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25791 \`$as_me' instantiates files from templates according to the
25792 current configuration.
25794 Usage: $0 [OPTION]... [FILE]...
25796 -h, --help print this help, then exit
25797 -V, --version print version number and configuration settings, then exit
25798 -q, --quiet, --silent
25799 do not print progress messages
25800 -d, --debug don't remove temporary files
25801 --recheck update $as_me by reconfiguring in the same conditions
25802 --file=FILE[:TEMPLATE]
25803 instantiate the configuration file FILE
25804 --header=FILE[:TEMPLATE]
25805 instantiate the configuration header FILE
25807 Configuration files:
25810 Configuration headers:
25813 Configuration commands:
25816 Report bugs to <bug-autoconf@gnu.org>."
25819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25821 emacs config.status 23.0.91
25822 configured by $0, generated by GNU Autoconf 2.63,
25823 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25825 Copyright (C) 2008 Free Software Foundation, Inc.
25826 This config.status script is free software; the Free Software Foundation
25827 gives unlimited permission to copy, distribute and modify it."
25832 test -n "\$AWK" || AWK=awk
25835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25836 # The default lists apply if the user does not specify any file.
25842 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25843 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25854 # Handling of the options.
25855 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25857 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25858 $as_echo "$ac_cs_version"; exit ;;
25859 --debug |
--debu |
--deb |
--de |
--d |
-d )
25861 --file |
--fil |
--fi |
--f )
25864 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25866 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
25867 ac_need_defaults
=false
;;
25868 --header |
--heade |
--head |
--hea )
25871 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25873 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
25874 ac_need_defaults
=false
;;
25876 # Conflict between --help and --header
25877 { $as_echo "$as_me: error: ambiguous option: $1
25878 Try \`$0 --help' for more information." >&2
25879 { (exit 1); exit 1; }; };;
25880 --help |
--hel |
-h )
25881 $as_echo "$ac_cs_usage"; exit ;;
25882 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25883 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25886 # This is an error.
25887 -*) { $as_echo "$as_me: error: unrecognized option: $1
25888 Try \`$0 --help' for more information." >&2
25889 { (exit 1); exit 1; }; } ;;
25891 *) ac_config_targets
="$ac_config_targets $1"
25892 ac_need_defaults
=false
;;
25898 ac_configure_extra_args
=
25900 if $ac_cs_silent; then
25902 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25907 if \$ac_cs_recheck; then
25908 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25911 CONFIG_SHELL='$SHELL'
25912 export CONFIG_SHELL
25917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25922 ## Running $as_me. ##
25928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25932 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25938 # Handling of arguments.
25939 for ac_config_target
in $ac_config_targets
25941 case $ac_config_target in
25942 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25943 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25944 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25945 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25946 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25947 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25948 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25949 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25950 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25951 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25952 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25953 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25954 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25956 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25957 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25958 { (exit 1); exit 1; }; };;
25963 # If the user did not use the arguments to specify the items to instantiate,
25964 # then the envvar interface is used. Set only those that are not.
25965 # We use the long form for the default assignment because of an extremely
25966 # bizarre bug on SunOS 4.1.3.
25967 if $ac_need_defaults; then
25968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25973 # Have a temporary directory for convenience. Make it in the build tree
25974 # simply because there is no reason against having it here, and in addition,
25975 # creating and moving files from /tmp can sometimes cause problems.
25976 # Hook for its removal unless debugging.
25977 # Note that there is a small window in which the directory will not be cleaned:
25978 # after its creation but before its name has been assigned to `$tmp'.
25982 trap 'exit_status=$?
25983 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25985 trap '{ (exit 1); exit 1; }' 1 2 13 15
25987 # Create a (secure) tmp directory for tmp files.
25990 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25991 test -n "$tmp" && test -d "$tmp"
25994 tmp
=.
/conf$$
-$RANDOM
25995 (umask 077 && mkdir
"$tmp")
25998 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25999 { (exit 1); exit 1; }
26002 # Set up the scripts for CONFIG_FILES section.
26003 # No need to generate them if there are no CONFIG_FILES.
26004 # This happens for instance with `./config.status config.h'.
26005 if test -n "$CONFIG_FILES"; then
26009 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26013 ac_cs_awk_cr
=$ac_cr
26016 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26021 echo "cat >conf$$subs.awk <<_ACEOF" &&
26022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26024 } >conf$$subs.sh ||
26025 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26026 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26027 { (exit 1); exit 1; }; }
26028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26030 for ac_last_try in false false false false false :; do
26031 . ./conf$$subs.sh ||
26032 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26033 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26034 { (exit 1); exit 1; }; }
26036 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26037 if test $ac_delim_n = $ac_delim_num; then
26039 elif $ac_last_try; then
26040 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26041 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26042 { (exit 1); exit 1; }; }
26044 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26047 rm -f conf$$subs.sh
26049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26050 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26054 s/^/S["/; s
/!.
*/"]=/
26064 s/\(.\{148\}\).*/\1/
26066 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26071 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26078 s/\(.\{148\}\).*/\1/
26080 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26084 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26089 ' <conf$$subs.awk | sed '
26094 ' >>$CONFIG_STATUS || ac_write_fail=1
26095 rm -f conf$$subs.awk
26096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26098 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26099 for (key in S) S_is_set[key] = 1
26105 nfields = split(line, field, "@
")
26107 len = length(field[1])
26108 for (i = 2; i < nfields; i++) {
26110 keylen = length(key)
26111 if (S_is_set[key]) {
26113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26114 len += length(value) + length(field[++i])
26125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26126 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26127 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26130 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26131 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26132 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26133 { (exit 1); exit 1; }; }
26136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26138 # trailing colons and then remove the whole line if VPATH becomes empty
26139 # (actually we leave an empty line to preserve line numbers).
26140 if test "x
$srcdir" = x.; then
26141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26142 s/:*\$(srcdir):*/:/
26143 s/:*\${srcdir}:*/:/
26145 s/^\([^=]*=[ ]*\):*/\1/
26151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26152 fi # test -n "$CONFIG_FILES"
26154 # Set up the scripts for CONFIG_HEADERS section.
26155 # No need to generate them if there are no CONFIG_HEADERS.
26156 # This happens for instance with `./config.status Makefile'.
26157 if test -n "$CONFIG_HEADERS"; then
26158 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26162 # Transform confdefs.h into an awk script `defines.awk', embedded as
26163 # here-document in config.status, that substitutes the proper values into
26164 # config.h.in to produce config.h.
26166 # Create a delimiter string that does not exist in confdefs.h, to ease
26167 # handling of long lines.
26169 for ac_last_try in false false :; do
26170 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26171 if test -z "$ac_t"; then
26173 elif $ac_last_try; then
26174 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26175 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26176 { (exit 1); exit 1; }; }
26178 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26182 # For the awk script, D is an array of macro values keyed by name,
26183 # likewise P contains macro parameters if any. Preserve backslash
26184 # newline sequences.
26186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26188 s/.\{148\}/&'"$ac_delim"'/g
26191 s/^[ ]*#[ ]*define[ ][ ]*/ /
26198 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26200 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26205 D["\
1"]=" \
3\\\\\\n
"\\/p
26207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26212 s/.\{148\}/&'"$ac_delim"'/g
26217 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26220 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26222 ' <confdefs.h | sed '
26223 s/'"$ac_delim"'/"\\\
26224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26227 for (key in D) D_is_set[key] = 1
26230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26232 split(line, arg, " ")
26233 if (arg[1] == "#") {
26237 defundef
= substr
(arg
[1], 2)
26240 split(mac1
, mac2
, "(") #)
26242 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26243 if (D_is_set
[macro
]) {
26244 # Preserve the white space surrounding the "#".
26245 print prefix
"define", macro P
[macro
] D
[macro
]
26248 # Replace #undef with comments. This is necessary, for example,
26249 # in the case of _POSIX_SOURCE, which is predefined and required
26250 # on some systems where configure will not decide to define it.
26251 if (defundef
== "undef") {
26252 print
"/*", prefix defundef
, macro
, "*/"
26260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26261 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26262 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26263 { (exit 1); exit 1; }; }
26264 fi # test -n "$CONFIG_HEADERS"
26267 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26272 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26274 case $ac_mode$ac_tag in
26276 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26277 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26278 { (exit 1); exit 1; }; };;
26279 :[FH
]-) ac_tag
=-:-;;
26280 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26297 -) ac_f
="$tmp/stdin";;
26298 *) # Look for the file first in the build tree, then in the source tree
26299 # (if the path is not absolute). The absolute path cannot be DOS-style,
26300 # because $ac_f cannot contain `:'.
26304 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26306 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26307 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26308 { (exit 1); exit 1; }; };;
26310 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26311 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26314 # Let's still pretend it is `configure' which instantiates (i.e., don't
26315 # use $as_me), people would be surprised to read:
26316 # /* config.h. Generated by config.status. */
26317 configure_input
='Generated from '`
26318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26320 if test x
"$ac_file" != x-
; then
26321 configure_input
="$ac_file. $configure_input"
26322 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26323 $as_echo "$as_me: creating $ac_file" >&6;}
26325 # Neutralize special characters interpreted by sed in replacement strings.
26326 case $configure_input in #(
26327 *\
&* |
*\|
* |
*\\* )
26328 ac_sed_conf_input
=`$as_echo "$configure_input" |
26329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26330 *) ac_sed_conf_input
=$configure_input;;
26334 *:-:* |
*:-) cat >"$tmp/stdin" \
26335 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26337 { (exit 1); exit 1; }; } ;;
26342 ac_dir
=`$as_dirname -- "$ac_file" ||
26343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26344 X"$ac_file" : 'X\(//\)[^/]' \| \
26345 X"$ac_file" : 'X\(//\)$' \| \
26346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26347 $as_echo X"$ac_file" |
26348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26352 /^X\(\/\/\)[^/].*/{
26367 -*) as_dir
=.
/$as_dir;;
26369 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26373 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26374 *) as_qdir
=$as_dir;;
26376 as_dirs
="'$as_qdir' $as_dirs"
26377 as_dir
=`$as_dirname -- "$as_dir" ||
26378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26379 X"$as_dir" : 'X\(//\)[^/]' \| \
26380 X"$as_dir" : 'X\(//\)$' \| \
26381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26382 $as_echo X"$as_dir" |
26383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26387 /^X\(\/\/\)[^/].*/{
26400 test -d "$as_dir" && break
26402 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26403 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26404 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26405 { (exit 1); exit 1; }; }; }
26409 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26411 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26412 # A ".." for each directory in $ac_dir_suffix.
26413 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26414 case $ac_top_builddir_sub in
26415 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26416 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26419 ac_abs_top_builddir
=$ac_pwd
26420 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26421 # for backward compatibility:
26422 ac_top_builddir
=$ac_top_build_prefix
26425 .
) # We are building in place.
26427 ac_top_srcdir
=$ac_top_builddir_sub
26428 ac_abs_top_srcdir
=$ac_pwd ;;
26429 [\\/]* | ?
:[\\/]* ) # Absolute name.
26430 ac_srcdir
=$srcdir$ac_dir_suffix;
26431 ac_top_srcdir
=$srcdir
26432 ac_abs_top_srcdir
=$srcdir ;;
26433 *) # Relative name.
26434 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26435 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26436 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26438 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26448 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26449 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26454 # If the template does not know about datarootdir, expand it.
26455 # FIXME: This hack should be removed a few years after 2.60.
26456 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26470 *datarootdir
*) ac_datarootdir_seen
=yes;;
26471 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26472 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26473 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26476 ac_datarootdir_hack='
26477 s&@datadir@&$datadir&g
26478 s&@docdir@&$docdir&g
26479 s&@infodir@&$infodir&g
26480 s&@localedir@&$localedir&g
26481 s&@mandir@&$mandir&g
26482 s&\\\${datarootdir}&$datarootdir&g' ;;
26486 # Neutralize VPATH when `$srcdir' = `.'.
26487 # Shell code in configure.ac might set extrasub.
26488 # FIXME: do we really want to maintain this feature?
26489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26490 ac_sed_extra="$ac_vpsub
26493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26495 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26496 s|@configure_input@|
$ac_sed_conf_input|
;t t
26497 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26498 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26499 s
&@srcdir@
&$ac_srcdir&;t t
26500 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26501 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26502 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26503 s
&@builddir@
&$ac_builddir&;t t
26504 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26505 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26506 s
&@INSTALL@
&$ac_INSTALL&;t t
26507 $ac_datarootdir_hack
26509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26510 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26511 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26512 { (exit 1); exit 1; }; }
26514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26517 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26518 which seems to be undefined. Please make sure it is defined." >&5
26519 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26520 which seems to be undefined. Please make sure it is defined." >&2;}
26524 -) cat "$tmp/out" && rm -f "$tmp/out";;
26525 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26529 { (exit 1); exit 1; }; }
26535 if test x"$ac_file" != x-; then
26537 $as_echo "/* $configure_input */" \
26538 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26539 } >"$tmp/config.h" \
26540 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26541 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26542 { (exit 1); exit 1; }; }
26543 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26544 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26545 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26548 mv "$tmp/config.h" "$ac_file" \
26549 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26550 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26551 { (exit 1); exit 1; }; }
26554 $as_echo "/* $configure_input */" \
26555 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26556 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26557 $as_echo "$as_me: error: could not create -" >&2;}
26558 { (exit 1); exit 1; }; }
26562 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26563 $as_echo "$as_me: executing $ac_file commands" >&6;}
26568 case $ac_file$ac_mode in
26571 ### Make the necessary directories, if they don't exist.
26572 for dir
in etc lisp
; do
26573 test -d ${dir} || mkdir
${dir}
26576 # Build src/Makefile from ${srcdir}/src/Makefile.c
26577 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26578 # This must be done after src/config.h is built, since we rely on that file.
26580 echo creating src
/epaths.h
26581 ${MAKE-make} epaths-force
26583 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26584 # `..' to `. .' unless invoked with -traditional
26586 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26587 CPPFLAGS
="$CPPFLAGS -traditional"
26590 echo creating lib-src
/Makefile
26592 rm -f junk.c junk1.c junk2.c
26593 sed -e '/start of cpp stuff/q' \
26594 < Makefile.c
> junk1.c
26595 sed -e '1,/start of cpp stuff/d'\
26596 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26597 < Makefile.c
> junk.c
26598 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26599 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26600 cat junk1.c junk2.c
> Makefile.new
26601 rm -f junk.c junk1.c junk2.c
26602 chmod 444 Makefile.new
26603 mv -f Makefile.new Makefile
26606 echo creating src
/Makefile
26608 rm -f junk.c junk1.c junk2.c
26609 sed -e '/start of cpp stuff/q' \
26610 < Makefile.c
> junk1.c
26611 sed -e '1,/start of cpp stuff/d'\
26612 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26613 < Makefile.c
> junk.c
26614 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26615 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26616 cat junk1.c junk2.c
> Makefile.new
26617 rm -f junk.c junk1.c junk2.c
26618 chmod 444 Makefile.new
26619 mv -f Makefile.new Makefile
26622 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26623 echo creating src
/.gdbinit
26624 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26633 { (exit 0); exit 0; }
26635 chmod +x
$CONFIG_STATUS
26636 ac_clean_files
=$ac_clean_files_save
26638 test $ac_write_fail = 0 ||
26639 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26640 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26641 { (exit 1); exit 1; }; }
26644 # configure is writing to config.log, and then calls config.status.
26645 # config.status does its own redirection, appending to config.log.
26646 # Unfortunately, on DOS this fails, as config.log is still kept open
26647 # by configure, so config.status won't be able to write to it; its
26648 # output is simply discarded. So we exec the FD to /dev/null,
26649 # effectively closing config.log, so it can be properly (re)opened and
26650 # appended to by config.status. When coming back to configure, we
26651 # need to make the FD available again.
26652 if test "$no_create" != yes; then
26654 ac_config_status_args
=
26655 test "$silent" = yes &&
26656 ac_config_status_args
="$ac_config_status_args --quiet"
26658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26661 # would make configure fail if this is the last instruction.
26662 $ac_cs_success ||
{ (exit 1); exit 1; }
26664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26665 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}