2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='23.1.50'
598 PACKAGE_STRING
='emacs 23.1.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
744 x_default_search_path
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
766 LIB_SRC_EXTRA_INSTALLABLES
770 enable_option_checking
787 with_toolkit_scroll_bars
798 enable_ns_self_contained
800 enable_maintainer_mode
807 ac_precious_vars
='build_alias
819 # Initialize some variables set by options.
821 ac_init_version
=false
822 ac_unrecognized_opts
=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name
=s
,x
,x
,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir
='${exec_prefix}/bin'
848 sbindir
='${exec_prefix}/sbin'
849 libexecdir
='${exec_prefix}/libexec'
850 datarootdir
='${prefix}/share'
851 datadir
='${datarootdir}'
852 sysconfdir
='${prefix}/etc'
853 sharedstatedir
='${prefix}/com'
854 localstatedir
='${prefix}/var'
855 includedir
='${prefix}/include'
856 oldincludedir
='/usr/include'
857 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir
='${datarootdir}/info'
863 libdir
='${exec_prefix}/lib'
864 localedir
='${datarootdir}/locale'
865 mandir
='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\
$ac_option
879 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
925 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
926 { (exit 1); exit 1; }; }
927 ac_useropt_orig
=$ac_useropt
928 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
934 ac_unrecognized_sep
=', ';;
936 eval enable_
$ac_useropt=no
;;
938 -docdir |
--docdir |
--docdi |
--doc |
--do)
940 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
943 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
945 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
948 -enable-* |
--enable-*)
949 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig
=$ac_useropt
955 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep
=', ';;
963 eval enable_
$ac_useropt=\
$ac_optarg ;;
965 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
966 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
967 |
--exec |
--exe |
--ex)
968 ac_prev
=exec_prefix
;;
969 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
970 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
971 |
--exec=* |
--exe=* |
--ex=*)
972 exec_prefix
=$ac_optarg ;;
974 -gas |
--gas |
--ga |
--g)
975 # Obsolete; use --with-gas.
978 -help |
--help |
--hel |
--he |
-h)
980 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
981 ac_init_help
=recursive
;;
982 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
983 ac_init_help
=short
;;
985 -host |
--host |
--hos |
--ho)
986 ac_prev
=host_alias
;;
987 -host=* |
--host=* |
--hos=* |
--ho=*)
988 host_alias
=$ac_optarg ;;
990 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
992 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
994 htmldir
=$ac_optarg ;;
996 -includedir |
--includedir |
--includedi |
--included |
--include \
997 |
--includ |
--inclu |
--incl |
--inc)
998 ac_prev
=includedir
;;
999 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1000 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1001 includedir
=$ac_optarg ;;
1003 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1005 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1006 infodir
=$ac_optarg ;;
1008 -libdir |
--libdir |
--libdi |
--libd)
1010 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1011 libdir
=$ac_optarg ;;
1013 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1014 |
--libexe |
--libex |
--libe)
1015 ac_prev
=libexecdir
;;
1016 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1017 |
--libexe=* |
--libex=* |
--libe=*)
1018 libexecdir
=$ac_optarg ;;
1020 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1021 ac_prev
=localedir
;;
1022 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1023 localedir
=$ac_optarg ;;
1025 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1026 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1027 ac_prev
=localstatedir
;;
1028 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1029 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1030 localstatedir
=$ac_optarg ;;
1032 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1034 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1035 mandir
=$ac_optarg ;;
1037 -nfp |
--nfp |
--nf)
1038 # Obsolete; use --without-fp.
1041 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1042 |
--no-cr |
--no-c |
-n)
1045 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1046 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1049 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1050 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1051 |
--oldin |
--oldi |
--old |
--ol |
--o)
1052 ac_prev
=oldincludedir
;;
1053 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1054 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1055 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1056 oldincludedir
=$ac_optarg ;;
1058 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1060 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1061 prefix
=$ac_optarg ;;
1063 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1064 |
--program-pre |
--program-pr |
--program-p)
1065 ac_prev
=program_prefix
;;
1066 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1067 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1068 program_prefix
=$ac_optarg ;;
1070 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1071 |
--program-suf |
--program-su |
--program-s)
1072 ac_prev
=program_suffix
;;
1073 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1074 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1075 program_suffix
=$ac_optarg ;;
1077 -program-transform-name |
--program-transform-name \
1078 |
--program-transform-nam |
--program-transform-na \
1079 |
--program-transform-n |
--program-transform- \
1080 |
--program-transform |
--program-transfor \
1081 |
--program-transfo |
--program-transf \
1082 |
--program-trans |
--program-tran \
1083 |
--progr-tra |
--program-tr |
--program-t)
1084 ac_prev
=program_transform_name
;;
1085 -program-transform-name=* |
--program-transform-name=* \
1086 |
--program-transform-nam=* |
--program-transform-na=* \
1087 |
--program-transform-n=* |
--program-transform-=* \
1088 |
--program-transform=* |
--program-transfor=* \
1089 |
--program-transfo=* |
--program-transf=* \
1090 |
--program-trans=* |
--program-tran=* \
1091 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1092 program_transform_name
=$ac_optarg ;;
1094 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1096 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1097 pdfdir
=$ac_optarg ;;
1099 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1101 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1104 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1105 |
-silent |
--silent |
--silen |
--sile |
--sil)
1108 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1110 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1112 sbindir
=$ac_optarg ;;
1114 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1115 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1116 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1118 ac_prev
=sharedstatedir
;;
1119 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1120 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1121 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1123 sharedstatedir
=$ac_optarg ;;
1125 -site |
--site |
--sit)
1127 -site=* |
--site=* |
--sit=*)
1130 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1132 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1133 srcdir
=$ac_optarg ;;
1135 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1136 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1137 ac_prev
=sysconfdir
;;
1138 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1139 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1140 sysconfdir
=$ac_optarg ;;
1142 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1143 ac_prev
=target_alias
;;
1144 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1145 target_alias
=$ac_optarg ;;
1147 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1150 -version |
--version |
--versio |
--versi |
--vers |
-V)
1151 ac_init_version
=: ;;
1154 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval with_
$ac_useropt=\
$ac_optarg ;;
1170 -without-* |
--without-*)
1171 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=no
;;
1188 # Obsolete; use --with-x.
1191 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1192 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1193 ac_prev
=x_includes
;;
1194 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1195 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1196 x_includes
=$ac_optarg ;;
1198 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1199 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1200 ac_prev
=x_libraries
;;
1201 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1202 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1203 x_libraries
=$ac_optarg ;;
1205 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1206 Try \`$0 --help' for more information." >&2
1207 { (exit 1); exit 1; }; }
1211 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1214 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1215 { (exit 1); exit 1; }; }
1216 eval $ac_envvar=\
$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 if test -n "$ac_prev"; then
1231 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1232 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1233 { (exit 1); exit 1; }; }
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1240 { (exit 1); exit 1; }; } ;;
1241 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 # Check all directory arguments for consistency.
1246 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val
=\$
$ac_var
1252 # Remove trailing slashes.
1255 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\
$ac_val;;
1258 # Be sure to have absolute directory names.
1260 [\\/$
]* | ?
:[\\/]* ) continue;;
1261 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1263 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1264 { (exit 1); exit 1; }; }
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target
=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x
; then
1276 if test "x$build_alias" = x
; then
1277 cross_compiling
=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1286 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1288 test "$silent" = yes && exec 6>/dev
/null
1291 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1292 ac_ls_di
=`ls -di .` &&
1293 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1294 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1295 { (exit 1); exit 1; }; }
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1298 { (exit 1); exit 1; }; }
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted
=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir
=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1333 ac_srcdir_defaulted
=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1337 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1338 { (exit 1); exit 1; }; }
1340 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1343 { (exit 1); exit 1; }; }
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var
in $ac_precious_vars; do
1356 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1358 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1432 --x-includes=DIR X include files are
in DIR
1433 --x-libraries=DIR X library files are
in DIR
1436 --build=BUILD configure
for building on BUILD
[guessed
]
1437 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1448 --disable-option-checking ignore unrecognized
--enable/--with options
1449 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1450 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1451 --disable-ns-self-contained
1452 disable self contained build under NeXTstep
1453 --enable-asserts compile code with asserts enabled
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful
(and
1456 sometimes confusing
) to the casual installer
1457 --enable-locallisppath=PATH
1458 directories Emacs should search
for lisp files
1459 specific to this site
1460 --enable-checking[=LIST
]
1461 enable expensive run-time checks. With LIST
, enable
1462 only specific categories of checks. Categories are
:
1463 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1464 stringfreelist
, xmallocoverrun
, conslist
1465 --enable-profiling build emacs with profiling support. This might not
1466 work on all platforms
1467 --disable-largefile omit support
for large files
1470 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1471 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1472 --without-pop don
't support POP mail retrieval with movemail
1473 --with-kerberos support Kerberos-authenticated POP
1474 --with-kerberos5 support Kerberos version 5 authenticated POP
1475 --with-hesiod support Hesiod to get the POP server host
1476 --without-sound don't compile with sound support
1477 --without-sync-input process async input synchronously
1478 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1480 --without-xpm don
't compile with XPM image support
1481 --without-jpeg don't compile with JPEG image support
1482 --without-tiff don
't compile with TIFF image support
1483 --without-gif don't compile with GIF image support
1484 --without-png don
't compile with PNG image support
1485 --without-rsvg don't compile with SVG image support
1486 --without-xft don
't use XFT for anti aliased fonts
1487 --without-libotf don't use libotf
for OpenType font support
1488 --without-m17n-flt don
't use m17n-flt for text shaping
1489 --without-toolkit-scroll-bars
1490 don't use Motif or Xaw3d scroll bars
1491 --without-xaw3d don
't use Xaw3d
1492 --without-xim don't use X11 XIM
1493 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1494 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1496 --without-dbus don't compile with D-Bus support
1497 --without-makeinfo don
't require makeinfo for building manuals
1499 --with-pkg-config-prog=PATH
1500 path to pkg-config for finding GTK and librsvg
1501 --with-gnustep-conf=PATH
1502 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1503 or /etc/GNUstep/GNUstep.conf
1504 --with-x use the X Window System
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 XMKMF Path to xmkmf, Makefile generator for X Window System
1517 Use these variables to override the choices made by `configure' or to
help
1518 it to
find libraries and programs with nonstandard names
/locations.
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1533 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1535 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1540 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1543 ac_abs_top_builddir
=$ac_pwd
1544 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir
=$ac_top_build_prefix
1549 .
) # We are building in place.
1551 ac_top_srcdir
=$ac_top_builddir_sub
1552 ac_abs_top_srcdir
=$ac_pwd ;;
1553 [\\/]* | ?
:[\\/]* ) # Absolute name.
1554 ac_srcdir
=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir
=$srcdir
1556 ac_abs_top_srcdir
=$srcdir ;;
1558 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1562 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1564 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1565 # Check for guested configure.
1566 if test -f "$ac_srcdir/configure.gnu"; then
1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1569 elif test -f "$ac_srcdir/configure"; then
1571 $SHELL "$ac_srcdir/configure" --help=recursive
1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1579 test -n "$ac_init_help" && exit $ac_status
1580 if $ac_init_version; then
1582 emacs configure
23.1.50
1583 generated by GNU Autoconf
2.62
1585 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1586 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1587 This configure
script is free software
; the Free Software Foundation
1588 gives unlimited permission to copy
, distribute and modify it.
1592 cat >config.log
<<_ACEOF
1593 This file contains any messages produced by compilers while
1594 running configure, to aid debugging if configure makes a mistake.
1596 It was created by emacs $as_me 23.1.50, which was
1597 generated by GNU Autoconf 2.62. Invocation command line was
1609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir
=.
1633 $as_echo "PATH: $as_dir"
1649 # Keep a trace of the command line.
1650 # Strip out --no-create and --no-recursion so they do not pile up.
1651 # Strip out --silent because we don't want to record it for future runs.
1652 # Also quote any args containing shell meta-characters.
1653 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_must_keep_next
=false
1663 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1664 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1665 |
-silent |
--silent |
--silen |
--sile |
--sil)
1668 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1671 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1673 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1674 if test $ac_must_keep_next = true
; then
1675 ac_must_keep_next
=false
# Got value, back to normal.
1678 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1679 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1680 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1681 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1682 case "$ac_configure_args0 " in
1683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1686 -* ) ac_must_keep_next
=true
;;
1689 ac_configure_args
="$ac_configure_args '$ac_arg'"
1694 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1695 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1697 # When interrupted or exit'd, cleanup temporary files, and complete
1698 # config.log. We remove comments because anyway the quotes in there
1699 # would cause problems or look ugly.
1700 # WARNING: Use '\'' to represent an apostrophe within the trap.
1701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1702 trap 'exit_status=$?
1703 # Save into config.log some information that might help in debugging.
1708 ## ---------------- ##
1709 ## Cache variables. ##
1710 ## ---------------- ##
1713 # The following way of writing the cache mishandles newlines in values,
1715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1716 eval ac_val=\$$ac_var
1720 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1721 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1724 _ | IFS | as_nl) ;; #(
1725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 $as_echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var
in $ac_subst_files
1770 eval ac_val
=\$
$ac_var
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 $as_echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 $as_echo "$as_me: caught signal $ac_signal"
1791 $as_echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal
in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest
* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h
<<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h
<<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h
<<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h
<<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h
<<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer an explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837 ac_site_file1
=$CONFIG_SITE
1838 elif test "x$prefix" != xNONE
; then
1839 ac_site_file1
=$prefix/share
/config.site
1840 ac_site_file2
=$prefix/etc
/config.site
1842 ac_site_file1
=$ac_default_prefix/share
/config.site
1843 ac_site_file2
=$ac_default_prefix/etc
/config.site
1845 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1847 test "x$ac_site_file" = xNONE
&& continue
1848 if test -r "$ac_site_file"; then
1849 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1851 sed 's/^/| /' "$ac_site_file" >&5
1856 if test -r "$cache_file"; then
1857 # Some versions of bash will fail to source /dev/null (special
1858 # files actually), so we avoid doing that.
1859 if test -f "$cache_file"; then
1860 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 $as_echo "$as_me: loading cache $cache_file" >&6;}
1863 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1864 *) .
"./$cache_file";;
1868 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 $as_echo "$as_me: creating cache $cache_file" >&6;}
1873 ac_header_list
="$ac_header_list sys/time.h"
1874 ac_header_list
="$ac_header_list unistd.h"
1875 ac_func_list
="$ac_func_list alarm"
1876 # Check that the precious variables saved in the cache have kept the same
1878 ac_cache_corrupted
=false
1879 for ac_var
in $ac_precious_vars; do
1880 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1881 eval ac_new_set
=\
$ac_env_${ac_var}_set
1882 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1883 eval ac_new_val
=\
$ac_env_${ac_var}_value
1884 case $ac_old_set,$ac_new_set in
1886 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888 ac_cache_corrupted
=: ;;
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892 ac_cache_corrupted
=: ;;
1895 if test "x$ac_old_val" != "x$ac_new_val"; then
1896 # differences in whitespace do not lead to failure.
1897 ac_old_val_w
=`echo x $ac_old_val`
1898 ac_new_val_w
=`echo x $ac_new_val`
1899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1902 ac_cache_corrupted
=:
1904 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1906 eval $ac_var=\
$ac_old_val
1908 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1910 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1917 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg
=$ac_var=$ac_new_val ;;
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1926 if $ac_cache_corrupted; then
1927 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1959 ac_cpp
='$CPP $CPPFLAGS'
1960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1965 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1969 test "$program_prefix" != NONE
&&
1970 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1971 # Use a double $ so make ignores it.
1972 test "$program_suffix" != NONE
&&
1973 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1974 # Double any \ or $.
1975 # By default was `s,x,x', remove it if useless.
1976 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
1977 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
1980 lispdir
='${datadir}/emacs/${version}/lisp'
1981 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1982 '${datadir}/emacs/site-lisp'
1983 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1984 etcdir
='${datadir}/emacs/${version}/etc'
1985 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1986 docdir
='${datadir}/emacs/${version}/etc'
1987 gamedir
='${localstatedir}/games/emacs'
1994 # Check whether --with-pop was given.
1995 if test "${with_pop+set}" = set; then
2001 if test "$with_pop" = yes; then
2002 cat >>confdefs.h
<<\_ACEOF
2003 #define MAIL_USE_POP 1
2010 # Check whether --with-kerberos was given.
2011 if test "${with_kerberos+set}" = set; then
2012 withval
=$with_kerberos;
2017 if test "$with_kerberos" != no
; then
2018 cat >>confdefs.h
<<\_ACEOF
2026 # Check whether --with-kerberos5 was given.
2027 if test "${with_kerberos5+set}" = set; then
2028 withval
=$with_kerberos5;
2033 if test "${with_kerberos5}" != no
; then
2034 if test "${with_kerberos}" = no
; then
2036 cat >>confdefs.h
<<\_ACEOF
2042 cat >>confdefs.h
<<\_ACEOF
2049 # Check whether --with-hesiod was given.
2050 if test "${with_hesiod+set}" = set; then
2051 withval
=$with_hesiod;
2056 if test "$with_hesiod" != no
; then
2058 cat >>confdefs.h
<<\_ACEOF
2065 # Check whether --with-sound was given.
2066 if test "${with_sound+set}" = set; then
2067 withval
=$with_sound;
2074 # Check whether --with-sync-input was given.
2075 if test "${with_sync_input+set}" = set; then
2076 withval
=$with_sync_input;
2081 if test "$with_sync_input" = yes; then
2083 cat >>confdefs.h
<<\_ACEOF
2084 #define SYNC_INPUT 1
2090 # Check whether --with-x-toolkit was given.
2091 if test "${with_x_toolkit+set}" = set; then
2092 withval
=$with_x_toolkit; case "${withval}" in
2093 y | ye |
yes ) val
=gtk
;;
2095 l | lu | luc | luci | lucid
) val
=lucid
;;
2096 a |
at | ath | athe | athen | athena
) val
=athena
;;
2097 m | mo | mot | moti | motif
) val
=motif
;;
2098 g | gt | gtk
) val
=gtk
;;
2100 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2101 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2102 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2103 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2104 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2105 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2106 { (exit 1); exit 1; }; }
2115 # Check whether --with-xpm was given.
2116 if test "${with_xpm+set}" = set; then
2123 # Check whether --with-jpeg was given.
2124 if test "${with_jpeg+set}" = set; then
2131 # Check whether --with-tiff was given.
2132 if test "${with_tiff+set}" = set; then
2139 # Check whether --with-gif was given.
2140 if test "${with_gif+set}" = set; then
2147 # Check whether --with-png was given.
2148 if test "${with_png+set}" = set; then
2155 # Check whether --with-rsvg was given.
2156 if test "${with_rsvg+set}" = set; then
2164 # Check whether --with-xft was given.
2165 if test "${with_xft+set}" = set; then
2172 # Check whether --with-libotf was given.
2173 if test "${with_libotf+set}" = set; then
2174 withval
=$with_libotf;
2180 # Check whether --with-m17n-flt was given.
2181 if test "${with_m17n_flt+set}" = set; then
2182 withval
=$with_m17n_flt;
2189 # Check whether --with-toolkit-scroll-bars was given.
2190 if test "${with_toolkit_scroll_bars+set}" = set; then
2191 withval
=$with_toolkit_scroll_bars;
2193 with_toolkit_scroll_bars
=yes
2197 # Check whether --with-xaw3d was given.
2198 if test "${with_xaw3d+set}" = set; then
2199 withval
=$with_xaw3d;
2205 # Check whether --with-xim was given.
2206 if test "${with_xim+set}" = set; then
2213 # Check whether --with-ns was given.
2214 if test "${with_ns+set}" = set; then
2222 # Check whether --with-gpm was given.
2223 if test "${with_gpm+set}" = set; then
2230 # Check whether --with-dbus was given.
2231 if test "${with_dbus+set}" = set; then
2238 ## For the times when you want to build Emacs but don't have
2239 ## a suitable makeinfo, and can live without the manuals.
2241 # Check whether --with-makeinfo was given.
2242 if test "${with_makeinfo+set}" = set; then
2243 withval
=$with_makeinfo;
2250 # Check whether --with-gtk was given.
2251 if test "${with_gtk+set}" = set; then
2252 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2253 specify a toolkit." >&5
2254 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2255 specify a toolkit." >&2;}
2256 { (exit 1); exit 1; }; }
2261 # Check whether --with-gcc was given.
2262 if test "${with_gcc+set}" = set; then
2263 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2264 variable to specify a compiler." >&5
2265 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2266 variable to specify a compiler." >&2;}
2267 { (exit 1); exit 1; }; }
2272 # Check whether --with-pkg-config-prog was given.
2273 if test "${with_pkg_config_prog+set}" = set; then
2274 withval
=$with_pkg_config_prog;
2277 if test "X${with_pkg_config_prog}" != X
; then
2278 if test "${with_pkg_config_prog}" != yes; then
2279 PKG_CONFIG
="${with_pkg_config_prog}"
2284 # Check whether --with-gnustep-conf was given.
2285 if test "${with_gnustep_conf+set}" = set; then
2286 withval
=$with_gnustep_conf;
2289 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2290 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2291 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2292 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2294 # Check whether --enable-ns-self-contained was given.
2295 if test "${enable_ns_self_contained+set}" = set; then
2296 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2298 EN_NS_SELF_CONTAINED
=yes
2302 # Check whether --enable-asserts was given.
2303 if test "${enable_asserts+set}" = set; then
2304 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2310 # Check whether --enable-maintainer-mode was given.
2311 if test "${enable_maintainer_mode+set}" = set; then
2312 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2314 USE_MAINTAINER_MODE
=no
2317 if test $USE_MAINTAINER_MODE = yes; then
2324 # Check whether --enable-locallisppath was given.
2325 if test "${enable_locallisppath+set}" = set; then
2326 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2328 elif test "${enableval}" != "yes"; then
2329 locallisppath
=${enableval}
2334 # Check whether --enable-checking was given.
2335 if test "${enable_checking+set}" = set; then
2336 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2339 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2340 for check
in $ac_checking_flags
2343 # these set all the flags to specific states
2344 yes) ac_enable_checking
=1 ;;
2345 no
) ac_enable_checking
= ;
2346 ac_gc_check_stringbytes
= ;
2347 ac_gc_check_string_overrun
= ;
2348 ac_gc_check_string_free_list
= ;
2349 ac_xmalloc_overrun
= ;
2350 ac_gc_check_cons_list
= ;;
2351 all
) ac_enable_checking
=1 ;
2352 ac_gc_check_stringbytes
=1 ;
2353 ac_gc_check_string_overrun
=1 ;
2354 ac_gc_check_string_free_list
=1 ;
2355 ac_xmalloc_overrun
=1 ;
2356 ac_gc_check_cons_list
=1 ;;
2357 # these enable particular checks
2358 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2359 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2360 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2361 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2362 conslist
) ac_gc_check_cons_list
=1 ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2364 $as_echo "$as_me: error: unknown check category $check" >&2;}
2365 { (exit 1); exit 1; }; } ;;
2370 if test x
$ac_enable_checking != x
; then
2372 cat >>confdefs.h
<<\_ACEOF
2373 #define ENABLE_CHECKING 1
2377 if test x
$ac_gc_check_stringbytes != x
; then
2379 cat >>confdefs.h
<<\_ACEOF
2380 #define GC_CHECK_STRING_BYTES 1
2384 if test x
$ac_gc_check_stringoverrun != x
; then
2386 cat >>confdefs.h
<<\_ACEOF
2387 #define GC_CHECK_STRING_OVERRUN 1
2391 if test x
$ac_gc_check_string_free_list != x
; then
2393 cat >>confdefs.h
<<\_ACEOF
2394 #define GC_CHECK_STRING_FREE_LIST 1
2398 if test x
$ac_xmalloc_overrun != x
; then
2400 cat >>confdefs.h
<<\_ACEOF
2401 #define XMALLOC_OVERRUN_CHECK 1
2405 if test x
$ac_gc_check_cons_list != x
; then
2407 cat >>confdefs.h
<<\_ACEOF
2408 #define GC_CHECK_CONS_LIST 1
2413 # Check whether --enable-profiling was given.
2414 if test "${enable_profiling+set}" = set; then
2415 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2418 if test x
$ac_enable_profiling != x
; then
2419 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2420 PROFILING_LDFLAGS
="-pg"
2426 #### Make srcdir absolute, if it isn't already. It's important to
2427 #### avoid running the path through pwd unnecessarily, since pwd can
2428 #### give you automounter prefixes, which can go away. We do all this
2429 #### so Emacs can find its files when run uninstalled.
2430 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2435 ## We may be able to use the $PWD environment variable to make this
2436 ## absolute. But sometimes PWD is inaccurate.
2437 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2438 ## but that tested only for a well-formed and valid PWD,
2439 ## it did not object when PWD was well-formed and valid but just wrong.
2440 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2444 srcdir
="`(cd ${srcdir}; pwd)`"
2447 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2450 #### Check if the source directory already has a configured system in it.
2451 if test `pwd` != `(cd ${srcdir} && pwd)` \
2452 && test -f "${srcdir}/src/config.h" ; then
2453 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2454 as a build directory right now; it has been configured in its own
2455 right. To configure in another directory as well, you MUST
2456 use GNU make. If you do not have GNU make, then you must
2457 now do \`make distclean' in ${srcdir},
2458 and then run $0 again." >&5
2459 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2460 as a build directory right now; it has been configured in its own
2461 right. To configure in another directory as well, you MUST
2462 use GNU make. If you do not have GNU make, then you must
2463 now do \`make distclean' in ${srcdir},
2464 and then run $0 again." >&2;}
2467 #### Given the configuration name, set machfile and opsysfile to the
2468 #### names of the m/*.h and s/*.h files we should use.
2470 ### Canonicalize the configuration name.
2473 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2476 ac_install_sh
="$ac_aux_dir/install-sh -c"
2478 elif test -f "$ac_dir/install.sh"; then
2480 ac_install_sh
="$ac_aux_dir/install.sh -c"
2482 elif test -f "$ac_dir/shtool"; then
2484 ac_install_sh
="$ac_aux_dir/shtool install -c"
2488 if test -z "$ac_aux_dir"; then
2489 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2490 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2491 { (exit 1); exit 1; }; }
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2499 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2500 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2505 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2506 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2507 { (exit 1); exit 1; }; }
2509 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2510 $as_echo_n "checking build system type... " >&6; }
2511 if test "${ac_cv_build+set}" = set; then
2512 $as_echo_n "(cached) " >&6
2514 ac_build_alias
=$build_alias
2515 test "x$ac_build_alias" = x
&&
2516 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2517 test "x$ac_build_alias" = x
&&
2518 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2519 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2520 { (exit 1); exit 1; }; }
2521 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2522 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2523 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2524 { (exit 1); exit 1; }; }
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2528 $as_echo "$ac_cv_build" >&6; }
2529 case $ac_cv_build in
2531 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2532 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2533 { (exit 1); exit 1; }; };;
2536 ac_save_IFS
=$IFS; IFS
='-'
2542 # Remember, the first character of IFS is used to create $*,
2543 # except with old shells:
2546 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2549 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2550 $as_echo_n "checking host system type... " >&6; }
2551 if test "${ac_cv_host+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2554 if test "x$host_alias" = x
; then
2555 ac_cv_host
=$ac_cv_build
2557 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2558 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2559 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2560 { (exit 1); exit 1; }; }
2564 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2565 $as_echo "$ac_cv_host" >&6; }
2568 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2569 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2570 { (exit 1); exit 1; }; };;
2573 ac_save_IFS
=$IFS; IFS
='-'
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2583 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587 configuration
=${host_alias-${build_alias-$host}}
2591 ### If you add support for a new configuration, add code to this
2592 ### switch statement to recognize your configuration name and select
2593 ### the appropriate operating system and machine description files.
2595 ### You would hope that you could choose an m/*.h file pretty much
2596 ### based on the machine portion of the configuration name, and an s-
2597 ### file based on the operating system portion. However, it turns out
2598 ### that each m/*.h file is pretty manufacturer-specific - for
2599 ### example mips.h is MIPS
2600 ### So we basically have to have a special case for each
2601 ### configuration name.
2603 ### As far as handling version numbers on operating systems is
2604 ### concerned, make sure things will fail in a fixable way. If
2605 ### /etc/MACHINES doesn't say anything about version numbers, be
2606 ### prepared to handle anything reasonably. If version numbers
2607 ### matter, be sure /etc/MACHINES says something about it.
2609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2610 ### "System V Release 4"; he writes, "The old convention encouraged
2611 ### confusion between `system' and `release' levels'."
2613 machine
='' opsys
='' unported
=no
2614 case "${canonical}" in
2619 case "${canonical}" in
2620 alpha
*-*-freebsd*) machine
=alpha
;;
2621 arm
*-*-freebsd*) machine
=arm
;;
2622 ia64-
*-freebsd*) machine
=ia64
;;
2623 sparc-
*-freebsd*) machine
=sparc
;;
2624 sparc64-
*-freebsd*) machine
=sparc
;;
2625 powerpc-
*-freebsd*) machine
=macppc
;;
2626 i
[3456]86-*-freebsd*) machine
=intel386
;;
2627 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2631 ## FreeBSD kernel + glibc based userland
2634 case "${canonical}" in
2635 alpha
*-*-kfreebsd*) machine
=alpha
;;
2636 ia64-
*-kfreebsd*) machine
=ia64
;;
2637 sparc-
*-kfreebsd*) machine
=sparc
;;
2638 sparc64-
*-kfreebsd*) machine
=sparc
;;
2639 powerpc-
*-kfreebsd*) machine
=macppc
;;
2640 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2641 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2648 if test -f /usr
/lib
/crti.o
; then
2650 cat >>confdefs.h
<<\_ACEOF
2651 #define HAVE_CRTIN /**/
2656 case "${canonical}" in
2657 alpha
*-*-netbsd*) machine
=alpha
;;
2658 i
[3456]86-*-netbsd*) machine
=intel386
;;
2659 mips-
*-netbsd*) machine
=mips
;;
2660 mipsel-
*-netbsd*) machine
=mips
;;
2661 mipseb-
*-netbsd*) machine
=mips
;;
2662 powerpc-
*-netbsd*) machine
=macppc
;;
2663 sparc
*-*-netbsd*) machine
=sparc
;;
2664 vax-
*-netbsd*) machine
=vax
;;
2665 arm-
*-netbsd*) machine
=arm
;;
2666 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2667 hppa-
*-netbsd*) machine
=hp800
;;
2668 m68k-
*-netbsd*) machine
=m68k
;;
2675 case "${canonical}" in
2676 alpha
*-*-openbsd*) machine
=alpha
;;
2677 arm-
*-openbsd*) machine
=arm
;;
2678 i386-
*-openbsd*) machine
=intel386
;;
2679 powerpc-
*-openbsd*) machine
=macppc
;;
2680 sparc
*-*-openbsd*) machine
=sparc
;;
2681 vax-
*-openbsd*) machine
=vax
;;
2682 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2683 hppa-
*-openbsd*) machine
=hp800
;;
2690 case "${canonical}" in
2691 i
[3456]86-*-lynxos*) machine
=intel386
;;
2692 powerpc-
*-lynxos*) machine
=powerpc
;;
2696 alpha
*-*-linux-gnu* )
2697 machine
=alpha opsys
=gnu-linux
2701 machine
=arm opsys
=gnu-linux
2704 ## Apple Darwin / Mac OS X
2706 case "${canonical}" in
2707 i
[3456]86-* ) machine
=intel386
;;
2708 powerpc-
* ) machine
=macppc
;;
2712 # Define CPP as follows to make autoconf work correctly.
2713 CPP
="${CC-cc} -E -no-cpp-precomp"
2714 # Use fink packages if available.
2715 if test -d /sw
/include
&& test -d /sw
/lib
; then
2716 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2717 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2718 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2722 ## HP 9000 series 700 and 800, running HP/UX
2723 hppa
*-hp-hpux10.2
* )
2724 machine
=hp800 opsys
=hpux10-20
2726 hppa
*-hp-hpux1[1-9]* )
2727 machine
=hp800 opsys
=hpux11
2728 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2731 hppa
*-*-linux-gnu* )
2732 machine
=hp800 opsys
=gnu-linux
2737 machine
=ibms390 opsys
=gnu-linux
2739 s390x-
*-linux-gnu* )
2740 machine
=ibms390x opsys
=gnu-linux
2742 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2743 machine
=ibmrs6000 opsys
=aix4-2
2745 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2746 machine
=ibmrs6000 opsys
=aix4-2
2748 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2749 machine
=ibmrs6000 opsys
=aix4-2
2751 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2752 machine
=ibmrs6000 opsys
=aix4-2
2755 ## Macintosh PowerPC
2756 powerpc
*-*-linux-gnu* )
2757 machine
=macppc opsys
=gnu-linux
2760 ## Silicon Graphics machines
2763 machine
=iris4d opsys
=irix6-5
2764 # Without defining _LANGUAGE_C, things get masked out in the headers
2765 # so that, for instance, grepping for `free' in stdlib.h fails and
2766 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2767 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2768 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2772 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2773 machine
=sparc opsys
=gnu-linux
2777 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2778 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2779 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2780 case "${canonical}" in
2781 i
[3456]86-*-* ) machine
=intel386
;;
2782 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2783 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2784 sparc
* ) machine
=sparc
;;
2787 case "${canonical}" in
2788 *-sunos5.3
* |
*-solaris2.3
* )
2790 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2792 *-sunos5.4
* |
*-solaris2.4
* )
2794 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2797 *-sunos5.5
* |
*-solaris2.5
* )
2799 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2802 *-sunos5.6
* |
*-solaris2.6
* )
2804 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2807 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2809 emacs_check_sunpro_c
=yes
2810 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2812 *-sunos5* |
*-solaris* )
2814 emacs_check_sunpro_c
=yes
2815 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 ## Watch out for a compiler that we know will not work.
2819 case "${canonical}" in
2820 *-solaris* |
*-sunos5* )
2821 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2822 ## /usr/ucb/cc doesn't work;
2823 ## we should find some other compiler that does work.
2834 case "${canonical}" in
2835 *-vms* ) opsys
=vms
;;
2842 machine
=ia64 opsys
=gnu-linux
2845 ## Intel 386 machines where we don't care about the manufacturer
2848 case "${canonical}" in
2849 *-cygwin ) opsys
=cygwin
;;
2850 *-darwin* ) opsys
=darwin
2851 CPP
="${CC-cc} -E -no-cpp-precomp"
2853 *-linux-gnu* ) opsys
=gnu-linux
;;
2854 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2855 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2856 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2857 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2861 ## m68k Linux-based GNU system
2863 machine
=m68k opsys
=gnu-linux
2866 ## Mips Linux-based GNU system
2867 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2868 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2869 machine
=mips opsys
=gnu-linux
2872 ## AMD x86-64 Linux-based GNU system
2873 x86_64-
*-linux-gnu* )
2874 machine
=amdx86-64 opsys
=gnu-linux
2877 ## Tensilica Xtensa Linux-based GNU system
2878 xtensa
*-*-linux-gnu* )
2879 machine
=xtensa opsys
=gnu-linux
2882 ## SuperH Linux-based GNU system
2883 sh
[34]*-*-linux-gnu* )
2884 machine
=sh3 opsys
=gnu-linux
2892 ### If the code above didn't choose an operating system, just choose
2893 ### an operating system based on the configuration name. You really
2894 ### only want to use this when you have no idea what the right
2895 ### operating system is; if you know what operating systems a machine
2896 ### runs, it's cleaner to make it explicit in the case statement
2898 if test x
"${opsys}" = x
; then
2899 case "${canonical}" in
2900 *-gnu* ) opsys
=gnu
;;
2901 *-sysv4.2uw
* ) opsys
=unixware
;;
2902 *-sysv5uw* ) opsys
=unixware
;;
2903 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2904 *-sysv4.1
* |
*-sysvr4.1
* )
2905 NON_GNU_CPP
=/usr
/lib
/cpp
2907 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2908 if [ x
$NON_GNU_CPP = x
]; then
2909 if [ -f /usr
/ccs
/lib
/cpp
]; then
2910 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2912 NON_GNU_CPP
=/lib
/cpp
2916 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2925 if test $unported = yes; then
2926 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2927 Check \`etc/MACHINES' for recognized configuration names." >&5
2928 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2929 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2930 { (exit 1); exit 1; }; }
2933 machfile
="m/${machine}.h"
2934 opsysfile
="s/${opsys}.h"
2937 #### Choose a compiler.
2938 test -n "$CC" && cc_specified
=yes
2940 # Save the value of CFLAGS that the user specified.
2941 SPECIFIED_CFLAGS
="$CFLAGS"
2944 ac_cpp
='$CPP $CPPFLAGS'
2945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC
="$CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2981 { $as_echo "$as_me:$LINENO: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc
; ac_word
=$2
2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir
=.
3004 for ac_exec_ext
in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC
="gcc"
3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3021 { $as_echo "$as_me:$LINENO: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_CC" = x
; then
3028 case $cross_compiling:$ac_tool_warned in
3030 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3031 whose name does not start with the host triplet. If you think this
3032 configuration is useful to you, please write to autoconf@gnu.org." >&5
3033 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3034 whose name does not start with the host triplet. If you think this
3035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3036 ac_tool_warned
=yes ;;
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3047 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_CC+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC
="$CC" # Let the user override the test.
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 for ac_exec_ext
in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:$LINENO: result: no" >&5
3079 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 # Extract the first word of "cc", so it can be a program name with args.
3087 set dummy cc
; ac_word
=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC
="$CC" # Let the user override the test.
3097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir
=.
3102 for ac_exec_ext
in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3105 ac_prog_rejected
=yes
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test $ac_prog_rejected = yes; then
3117 # We found a bogon in the path, so make sure we never use it.
3118 set dummy
$ac_cv_prog_CC
3120 if test $# != 0; then
3121 # We chose a different compiler from the bogus one.
3122 # However, it has the same basename, so the bogon will be chosen
3123 # first if we set CC to just the basename; use the full file name.
3125 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 if test -n "$ac_tool_prefix"; then
3143 for ac_prog
in cl.exe
3145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3146 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if test "${ac_cv_prog_CC+set}" = set; then
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$CC"; then
3153 ac_cv_prog_CC
="$CC" # Let the user override the test.
3155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir
=.
3160 for ac_exec_ext
in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:$LINENO: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$CC" && break
3185 if test -z "$CC"; then
3187 for ac_prog
in cl.exe
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy
$ac_prog; ac_word
=$2
3191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir
=.
3204 for ac_exec_ext
in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC
="$ac_prog"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3221 { $as_echo "$as_me:$LINENO: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$ac_ct_CC" && break
3229 if test "x$ac_ct_CC" = x
; then
3232 case $cross_compiling:$ac_tool_warned in
3234 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3235 whose name does not start with the host triplet. If you think this
3236 configuration is useful to you, please write to autoconf@gnu.org." >&5
3237 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3238 whose name does not start with the host triplet. If you think this
3239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3240 ac_tool_warned
=yes ;;
3249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&5
3251 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details." >&2;}
3253 { (exit 1); exit 1; }; }
3255 # Provide some information about the compiler.
3256 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3259 { (ac_try
="$ac_compiler --version >&5"
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compiler --version >&5") 2>&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }
3270 { (ac_try="$ac_compiler -v >&5"
3272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3273 *) ac_try_echo
=$ac_try;;
3275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_compiler -v >&5") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }
3281 { (ac_try
="$ac_compiler -V >&5"
3283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3287 $as_echo "$ac_try_echo") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3308 ac_clean_files_save=$ac_clean_files
3309 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3310 # Try to create an executable without -o first, disregard a.out.
3311 # It will help us diagnose broken compilers, and finding out an intuition
3313 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3314 $as_echo_n "checking for C compiler default output file name... " >&6; }
3315 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3317 # The possible output files:
3318 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3321 for ac_file in $ac_files
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3330 if { (ac_try="$ac_link_default"
3332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3333 *) ac_try_echo
=$ac_try;;
3335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_link_default") 2>&5
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; then
3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3342 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3343 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3344 # so that the user can short-circuit this test for compilers unknown to
3346 for ac_file
in $ac_files ''
3348 test -f "$ac_file" ||
continue
3350 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3353 # We found the default executable, but exeext='' is most
3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3359 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 # We set ac_cv_exeext here because the later test for it is not
3362 # safe: cross compilers may not add the suffix if given an `-o'
3363 # argument, so we may need to know it at that point already.
3364 # Even if this section looks crufty: it has the advantage of
3371 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3377 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 if test -z "$ac_file"; then
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.
$ac_ext >&5
3383 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: C compiler cannot create executables
3386 See \`config.log' for more details." >&2;}
3387 { (exit 77); exit 77; }; }
3390 ac_exeext
=$ac_cv_exeext
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3395 $as_echo_n "checking whether the C compiler works... " >&6; }
3396 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3397 # If not cross compiling, check that we can run a simple program.
3398 if test "$cross_compiling" != yes; then
3399 if { ac_try
='./$ac_file'
3400 { (case "(($ac_try" in
3401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406 (eval "$ac_try") 2>&5
3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3412 if test "$cross_compiling" = maybe; then
3415 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details.
" >&5
3418 $as_echo "$as_me: error
: cannot run C compiled programs.
3419 If you meant to cross compile
, use \
`--host'.
3420 See \`config.log
' for more details." >&2;}
3421 { (exit 1); exit 1; }; }
3425 { $as_echo "$as_me:$LINENO: result: yes" >&5
3426 $as_echo "yes" >&6; }
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3433 $as_echo_n "checking whether we are cross compiling... " >&6; }
3434 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3435 $as_echo "$cross_compiling" >&6; }
3437 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3438 $as_echo_n "checking for suffix of executables... " >&6; }
3439 if { (ac_try="$ac_link"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446 (eval "$ac_link") 2>&5
3448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3451 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3452 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3454 for ac_file
in conftest.exe conftest conftest.
*; do
3455 test -f "$ac_file" ||
continue
3457 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3458 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3471 rm -f conftest
$ac_cv_exeext
3472 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3473 $as_echo "$ac_cv_exeext" >&6; }
3475 rm -f conftest.
$ac_ext
3476 EXEEXT
=$ac_cv_exeext
3478 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if test "${ac_cv_objext+set}" = set; then
3481 $as_echo_n "(cached) " >&6
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3498 rm -f conftest.o conftest.obj
3499 if { (ac_try
="$ac_compile"
3501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505 $as_echo "$ac_try_echo") >&5
3506 (eval "$ac_compile") 2>&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; then
3510 for ac_file in conftest.o conftest.obj conftest.*; do
3511 test -f "$ac_file" || continue;
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3523 See \`config.log
' for more details." >&5
3524 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details.
" >&2;}
3526 { (exit 1); exit 1; }; }
3529 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3531 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3532 $as_echo "$ac_cv_objext" >&6; }
3533 OBJEXT=$ac_cv_objext
3535 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3536 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3537 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3538 $as_echo_n "(cached
) " >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3578 $as_echo "$as_me: failed program was
:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3598 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then
3600 $as_echo_n "(cached
) " >&6
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1 >conftest.err
3633 cat conftest.err >&5
3634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3635 (exit $ac_status); } && {
3636 test -z "$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3638 } && test -s conftest.$ac_objext; then
3641 $as_echo "$as_me: failed program was
:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3667 $as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compile") 2>conftest.er1
3670 grep -v '^ *+' conftest.er1 >conftest.err
3672 cat conftest.err >&5
3673 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3674 (exit $ac_status); } && {
3675 test -z "$ac_c_werror_flag" ||
3676 test ! -s conftest.err
3677 } && test -s conftest.$ac_objext; then
3680 $as_echo "$as_me: failed program was
:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3720 $as_echo "$as_me: failed program was
:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3735 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3746 if test "$GCC" = yes; then
3752 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3753 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3754 if test "${ac_cv_prog_cc_c89+set}" = set; then
3755 $as_echo_n "(cached
) " >&6
3757 ac_cv_prog_cc_c89=no
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3767 #include <sys/types.h>
3768 #include <sys/stat.h>
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3783 s = g (p, va_arg (v,int));
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 CC="$ac_save_CC $ac_arg"
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3827 $as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 ac_cv_prog_cc_c89=$ac_arg
3840 $as_echo "$as_me: failed program was
:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3846 rm -f core conftest.err conftest.$ac_objext
3847 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3849 rm -f conftest.$ac_ext
3854 case "x
$ac_cv_prog_cc_c89" in
3856 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3857 $as_echo "none needed
" >&6; } ;;
3859 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3860 $as_echo "unsupported
" >&6; } ;;
3862 CC="$CC $ac_cv_prog_cc_c89"
3863 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3869 ac_cpp='$CPP $CPPFLAGS'
3870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875 # On Suns, sometimes $CPP names a directory.
3876 if test -n "$CPP" && test -d "$CPP"; then
3880 ## If not using gcc, and on Solaris, and no CPP specified, see if
3881 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3882 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3883 test x"$CPP" = x; then
3884 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3885 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3887 if test "${emacs_cv_sunpro_c+set}" = set; then
3888 $as_echo_n "(cached
) " >&6
3890 cat >conftest.$ac_ext <<_ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext conftest$ac_exeext
3909 if { (ac_try="$ac_link"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_link") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest$ac_exeext && {
3926 test "$cross_compiling" = yes ||
3927 $as_test_x conftest$ac_exeext
3929 emacs_cv_sunpro_c=yes
3931 $as_echo "$as_me: failed program was
:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 emacs_cv_sunpro_c=no
3937 rm -rf conftest.dSYM
3938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3939 conftest$ac_exeext conftest.$ac_ext
3942 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3943 $as_echo "$emacs_cv_sunpro_c" >&6; }
3945 if test x"$emacs_cv_sunpro_c" = xyes; then
3946 NON_GNU_CPP="$CC -E -Xs"
3950 #### Some systems specify a CPP to use unless we are using GCC.
3951 #### Now that we know whether we are using GCC, we can decide whether
3952 #### to use that one.
3953 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3958 #### Some systems specify a CC to use unless we are using GCC.
3959 #### Now that we know whether we are using GCC, we can decide whether
3960 #### to use that one.
3961 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3962 test x$cc_specified != xyes
3967 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3969 CC="$CC $GCC_TEST_OPTIONS"
3972 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3974 CC="$CC $NON_GCC_TEST_OPTIONS"
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3983 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3984 # On Suns, sometimes $CPP names a directory.
3985 if test -n "$CPP" && test -d "$CPP"; then
3988 if test -z "$CPP"; then
3989 if test "${ac_cv_prog_CPP+set}" = set; then
3990 $as_echo_n "(cached
) " >&6
3992 # Double quotes because CPP needs to be expanded
3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3996 for ac_c_preproc_warn_flag in '' yes
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error
" is here to catch this case.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4011 # include <limits.h>
4013 # include <assert.h>
4017 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4030 (exit $ac_status); } >/dev/null && {
4031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4036 $as_echo "$as_me: failed program was
:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4053 #include <ac_nonexistent.h>
4055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4068 (exit $ac_status); } >/dev/null && {
4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4072 # Broken: success on invalid input.
4075 $as_echo "$as_me: failed program was
:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4078 # Passes both tests.
4083 rm -f conftest.err conftest.$ac_ext
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.err conftest.$ac_ext
4088 if $ac_preproc_ok; then
4100 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4103 for ac_c_preproc_warn_flag in '' yes
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error
" is here to catch this case.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4118 # include <limits.h>
4120 # include <assert.h>
4124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4130 $as_echo "$ac_try_echo") >&5
4131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4133 grep -v '^ *+' conftest.er1 >conftest.err
4135 cat conftest.err >&5
4136 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4137 (exit $ac_status); } >/dev/null && {
4138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4139 test ! -s conftest.err
4143 $as_echo "$as_me: failed program was
:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4146 # Broken: fails on valid input.
4150 rm -f conftest.err conftest.$ac_ext
4152 # OK, works on sane cases. Now check whether nonexistent headers
4153 # can be detected and how.
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4175 (exit $ac_status); } >/dev/null && {
4176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177 test ! -s conftest.err
4179 # Broken: success on invalid input.
4182 $as_echo "$as_me: failed program was
:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Passes both tests.
4190 rm -f conftest.err conftest.$ac_ext
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4198 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4199 See \
`config.log' for more details." >&5
4200 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4201 See \`config.log
' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4208 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4213 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then
4215 $as_echo_n "(cached) " >&6
4217 if test -z "$GREP"; then
4218 ac_path_GREP_found=false
4219 # Loop through the user's path and
test for each of PROGNAME-LIST
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_prog
in grep ggrep
; do
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4229 # Check for GNU ac_path_GREP and select it if it is found.
4230 # Check for GNU $ac_path_GREP
4231 case `"$ac_path_GREP" --version 2>&1` in
4233 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4236 $as_echo_n 0123456789 >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 $as_echo 'GREP' >> "conftest.nl"
4243 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4244 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4245 ac_count
=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_GREP
="$ac_path_GREP"
4249 ac_path_GREP_max
=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4257 $ac_path_GREP_found && break 3
4262 if test -z "$ac_cv_path_GREP"; then
4263 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265 { (exit 1); exit 1; }; }
4268 ac_cv_path_GREP
=$GREP
4272 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP
="$ac_cv_path_GREP"
4277 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if test "${ac_cv_path_EGREP+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4282 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4283 then ac_cv_path_EGREP
="$GREP -E"
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found
=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_prog
in egrep; do
4294 for ac_exec_ext
in '' $ac_executable_extensions; do
4295 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4301 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4304 $as_echo_n 0123456789 >"conftest.in"
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4312 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4313 ac_count
=`expr $ac_count + 1`
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP
="$ac_path_EGREP"
4317 ac_path_EGREP_max
=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4322 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4325 $ac_path_EGREP_found && break 3
4330 if test -z "$ac_cv_path_EGREP"; then
4331 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4332 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4333 { (exit 1); exit 1; }; }
4336 ac_cv_path_EGREP
=$EGREP
4341 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP
="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if test "${ac_cv_header_stdc+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4351 cat >conftest.
$ac_ext <<_ACEOF
4354 cat confdefs.h
>>conftest.
$ac_ext
4355 cat >>conftest.
$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4370 rm -f conftest.
$ac_objext
4371 if { (ac_try
="$ac_compile"
4373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4377 $as_echo "$ac_try_echo") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.$ac_objext; then
4388 ac_cv_header_stdc=yes
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 ac_cv_header_stdc=no
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 if test $ac_cv_header_stdc = yes; then
4399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "memchr" >/dev/null 2>&1; then
4413 ac_cv_header_stdc=no
4419 if test $ac_cv_header_stdc = yes; then
4420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4421 cat >conftest.$ac_ext <<_ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4431 $EGREP "free" >/dev/null 2>&1; then
4434 ac_cv_header_stdc=no
4440 if test $ac_cv_header_stdc = yes; then
4441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4442 if test "$cross_compiling" = yes; then
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4453 #if ((' ' & 0x0FF) == 0x020)
4454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4457 # define ISLOWER(c) \
4458 (('a' <= (c) && (c) <= 'i') \
4459 || ('j' <= (c) && (c) <= 'r') \
4460 || ('s' <= (c) && (c) <= 'z'))
4461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4469 for (i = 0; i < 256; i++)
4470 if (XOR (islower (i), ISLOWER (i))
4471 || toupper (i) != TOUPPER (i))
4476 rm -f conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4480 *) ac_try_echo
=$ac_try;;
4482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_link") 2>&5
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4488 { (case "(($ac_try" in
4489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4493 $as_echo "$ac_try_echo") >&5
4494 (eval "$ac_try") 2>&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
4500 $as_echo "$as_me: program exited with status $ac_status" >&5
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_cv_header_stdc=no
4507 rm -rf conftest.dSYM
4508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4515 $as_echo "$ac_cv_header_stdc" >&6; }
4516 if test $ac_cv_header_stdc = yes; then
4518 cat >>confdefs.h <<\_ACEOF
4519 #define STDC_HEADERS 1
4524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4534 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4535 inttypes.h stdint.h unistd.h
4537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4538 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4539 $as_echo_n "checking for $ac_header... " >&6; }
4540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4541 $as_echo_n "(cached) " >&6
4543 cat >conftest.$ac_ext <<_ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 $ac_includes_default
4551 #include <$ac_header>
4553 rm -f conftest.$ac_objext
4554 if { (ac_try="$ac_compile"
4556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4557 *) ac_try_echo
=$ac_try;;
4559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4560 $as_echo "$ac_try_echo") >&5
4561 (eval "$ac_compile") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } && {
4568 test -z "$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 } && test -s conftest.
$ac_objext; then
4571 eval "$as_ac_Header=yes"
4573 $as_echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.
$ac_ext >&5
4576 eval "$as_ac_Header=no"
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4581 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4582 $as_echo "$as_val"'`
4583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4584 $as_echo "$ac_res" >&6; }
4585 if test `eval 'as_val=${'$as_ac_Header'}
4586 $as_echo "$as_val"'` = yes; then
4587 cat >>confdefs.h
<<_ACEOF
4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 if test "${ac_cv_header_minix_config_h+set}" = set; then
4598 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4599 $as_echo_n "checking for minix/config.h... " >&6; }
4600 if test "${ac_cv_header_minix_config_h+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4604 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4606 # Is the header compilable?
4607 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4608 $as_echo_n "checking minix/config.h usability... " >&6; }
4609 cat >conftest.
$ac_ext <<_ACEOF
4612 cat confdefs.h
>>conftest.
$ac_ext
4613 cat >>conftest.
$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 $ac_includes_default
4616 #include <minix/config.h>
4618 rm -f conftest.
$ac_objext
4619 if { (ac_try
="$ac_compile"
4621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4625 $as_echo "$ac_try_echo") >&5
4626 (eval "$ac_compile") 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } && {
4633 test -z "$ac_c_werror_flag" ||
4634 test ! -s conftest.err
4635 } && test -s conftest.$ac_objext; then
4636 ac_header_compiler=yes
4638 $as_echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4641 ac_header_compiler=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4646 $as_echo "$ac_header_compiler" >&6; }
4648 # Is the header present?
4649 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4650 $as_echo_n "checking minix/config.h presence... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 #include <minix/config.h>
4659 if { (ac_try="$ac_cpp conftest.$ac_ext"
4661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4662 *) ac_try_echo
=$ac_try;;
4664 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1
>conftest.err
4670 cat conftest.err
>&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev
/null
&& {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4676 ac_header_preproc
=yes
4678 $as_echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.
$ac_ext >&5
4681 ac_header_preproc
=no
4684 rm -f conftest.err conftest.
$ac_ext
4685 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4686 $as_echo "$ac_header_preproc" >&6; }
4688 # So? What about this header?
4689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4692 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4693 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4694 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4695 ac_header_preproc
=yes
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4701 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4702 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4703 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4704 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4705 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4706 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4707 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4713 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4714 $as_echo_n "checking for minix/config.h... " >&6; }
4715 if test "${ac_cv_header_minix_config_h+set}" = set; then
4716 $as_echo_n "(cached) " >&6
4718 ac_cv_header_minix_config_h
=$ac_header_preproc
4720 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4721 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4724 if test $ac_cv_header_minix_config_h = yes; then
4731 if test "$MINIX" = yes; then
4733 cat >>confdefs.h
<<\_ACEOF
4734 #define _POSIX_SOURCE 1
4738 cat >>confdefs.h
<<\_ACEOF
4739 #define _POSIX_1_SOURCE 2
4743 cat >>confdefs.h
<<\_ACEOF
4751 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4752 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4753 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4754 $as_echo_n "(cached) " >&6
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4763 # define __EXTENSIONS__ 1
4764 $ac_includes_default
4773 rm -f conftest.
$ac_objext
4774 if { (ac_try
="$ac_compile"
4776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_compile") 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } && {
4788 test -z "$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 } && test -s conftest.$ac_objext; then
4791 ac_cv_safe_to_define___extensions__=yes
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4796 ac_cv_safe_to_define___extensions__=no
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4802 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4803 test $ac_cv_safe_to_define___extensions__ = yes &&
4804 cat >>confdefs.h <<\_ACEOF
4805 #define __EXTENSIONS__ 1
4808 cat >>confdefs.h <<\_ACEOF
4809 #define _ALL_SOURCE 1
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _GNU_SOURCE 1
4816 cat >>confdefs.h <<\_ACEOF
4817 #define _POSIX_PTHREAD_SEMANTICS 1
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _TANDEM_SOURCE 1
4826 ### Use -Wno-pointer-sign if the compiler supports it
4827 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4828 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4829 SAVE_CFLAGS="$CFLAGS"
4830 CFLAGS="$CFLAGS -Wno-pointer-sign"
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4846 rm -f conftest.$ac_objext
4847 if { (ac_try="$ac_compile"
4849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4850 *) ac_try_echo
=$ac_try;;
4852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1
>conftest.err
4858 cat conftest.err
>&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.
$ac_objext; then
4866 $as_echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.
$ac_ext >&5
4872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4873 if test $has_option = yes; then
4874 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4876 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4877 $as_echo "$has_option" >&6; }
4878 CFLAGS
="$SAVE_CFLAGS"
4882 #### Some other nice autoconf tests.
4884 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4885 $as_echo_n "checking whether ln -s works... " >&6; }
4887 if test "$LN_S" = "ln -s"; then
4888 { $as_echo "$as_me:$LINENO: result: yes" >&5
4889 $as_echo "yes" >&6; }
4891 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4892 $as_echo "no, using $LN_S" >&6; }
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4900 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4901 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4902 # On Suns, sometimes $CPP names a directory.
4903 if test -n "$CPP" && test -d "$CPP"; then
4906 if test -z "$CPP"; then
4907 if test "${ac_cv_prog_CPP+set}" = set; then
4908 $as_echo_n "(cached) " >&6
4910 # Double quotes because CPP needs to be expanded
4911 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4914 for ac_c_preproc_warn_flag
in '' yes
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 # include <limits.h>
4931 # include <assert.h>
4935 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1 >conftest.err
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4957 # Broken: fails on valid input.
4961 rm -f conftest.err conftest.$ac_ext
4963 # OK, works on sane cases. Now check whether nonexistent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4973 if { (ac_try="$ac_cpp conftest.$ac_ext"
4975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4976 *) ac_try_echo
=$ac_try;;
4978 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4979 $as_echo "$ac_try_echo") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4982 grep -v '^ *+' conftest.er1
>conftest.err
4984 cat conftest.err
>&5
4985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev
/null
&& {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4990 # Broken: success on invalid input.
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4996 # Passes both tests.
5001 rm -f conftest.err conftest.
$ac_ext
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.
$ac_ext
5006 if $ac_preproc_ok; then
5018 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5019 $as_echo "$CPP" >&6; }
5021 for ac_c_preproc_warn_flag
in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.
$ac_ext <<_ACEOF
5032 cat confdefs.h
>>conftest.
$ac_ext
5033 cat >>conftest.
$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 # include <limits.h>
5038 # include <assert.h>
5042 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1 >conftest.err
5053 cat conftest.err >&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev/null && {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 # Broken: fails on valid input.
5068 rm -f conftest.err conftest.$ac_ext
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5083 *) ac_try_echo
=$ac_try;;
5085 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1
>conftest.err
5091 cat conftest.err
>&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev
/null
&& {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5097 # Broken: success on invalid input.
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.
$ac_ext >&5
5103 # Passes both tests.
5108 rm -f conftest.err conftest.
$ac_ext
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.
$ac_ext
5113 if $ac_preproc_ok; then
5116 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5124 ac_cpp
='$CPP $CPPFLAGS'
5125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5129 # Find a good install program. We prefer a C program (faster),
5130 # so one script is as good as another. But avoid the broken or
5131 # incompatible versions:
5132 # SysV /etc/install, /usr/sbin/install
5133 # SunOS /usr/etc/install
5134 # IRIX /sbin/install
5136 # AmigaOS /C/install, which installs bootblocks on floppy discs
5137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5140 # OS/2's system install, which has a completely different semantic
5141 # ./install, which can be erroneously created by make from ./install.sh.
5142 # Reject install programs that cannot install multiple files.
5143 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5144 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5145 if test -z "$INSTALL"; then
5146 if test "${ac_cv_path_install+set}" = set; then
5147 $as_echo_n "(cached) " >&6
5149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir
=.
5154 # Account for people who put trailing slashes in PATH elements.
5156 .
/ | .
// |
/cC
/* | \
5157 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5158 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5161 # OSF1 and SCO ODT 3.0 have their own names for install.
5162 # Don't use installbsd from OSF since it installs stuff as root
5164 for ac_prog
in ginstall scoinst
install; do
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5167 if test $ac_prog = install &&
5168 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5169 # AIX install. It has an incompatible calling convention.
5171 elif test $ac_prog = install &&
5172 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5173 # program-specific install script used by HP pwplus--don't use.
5176 rm -rf conftest.one conftest.two conftest.dir
5177 echo one
> conftest.one
5178 echo two
> conftest.two
5180 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5181 test -s conftest.one
&& test -s conftest.two
&&
5182 test -s conftest.dir
/conftest.one
&&
5183 test -s conftest.dir
/conftest.two
5185 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5198 rm -rf conftest.one conftest.two conftest.dir
5201 if test "${ac_cv_path_install+set}" = set; then
5202 INSTALL
=$ac_cv_path_install
5204 # As a last resort, use the slow shell script. Don't cache a
5205 # value for INSTALL within a source directory, because that will
5206 # break other packages using the cache if that directory is
5207 # removed, or if the value is a relative name.
5208 INSTALL
=$ac_install_sh
5211 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5212 $as_echo "$INSTALL" >&6; }
5214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5215 # It thinks the first close brace ends the variable substitution.
5216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5218 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5220 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5222 if test "x$RANLIB" = x
; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5225 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_RANLIB+set}" = set; then
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$RANLIB"; then
5232 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir
=.
5239 for ac_exec_ext
in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 RANLIB
=$ac_cv_prog_RANLIB
5252 if test -n "$RANLIB"; then
5253 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5254 $as_echo "$RANLIB" >&6; }
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$ac_cv_prog_RANLIB"; then
5263 ac_ct_RANLIB
=$RANLIB
5264 # Extract the first word of "ranlib", so it can be a program name with args.
5265 set dummy ranlib
; ac_word
=$2
5266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$ac_ct_RANLIB"; then
5272 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir
=.
5279 for ac_exec_ext
in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5292 if test -n "$ac_ct_RANLIB"; then
5293 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5294 $as_echo "$ac_ct_RANLIB" >&6; }
5296 { $as_echo "$as_me:$LINENO: result: no" >&5
5297 $as_echo "no" >&6; }
5300 if test "x$ac_ct_RANLIB" = x
; then
5303 case $cross_compiling:$ac_tool_warned in
5305 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5306 whose name does not start with the host triplet. If you think this
5307 configuration is useful to you, please write to autoconf@gnu.org." >&5
5308 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5309 whose name does not start with the host triplet. If you think this
5310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5311 ac_tool_warned
=yes ;;
5313 RANLIB
=$ac_ct_RANLIB
5316 RANLIB
="$ac_cv_prog_RANLIB"
5320 # Extract the first word of "install-info", so it can be a program name with args.
5321 set dummy install-info
; ac_word
=$2
5322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5325 $as_echo_n "(cached) " >&6
5327 case $INSTALL_INFO in
5329 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5336 test -z "$as_dir" && as_dir
=.
5337 for ac_exec_ext
in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5351 if test -n "$INSTALL_INFO"; then
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5353 $as_echo "$INSTALL_INFO" >&6; }
5355 { $as_echo "$as_me:$LINENO: result: no" >&5
5356 $as_echo "no" >&6; }
5360 # Extract the first word of "install-info", so it can be a program name with args.
5361 set dummy install-info
; ac_word
=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5367 case $INSTALL_INFO in
5369 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 for as_dir
in /usr
/sbin
5376 test -z "$as_dir" && as_dir
=.
5377 for ac_exec_ext
in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5391 if test -n "$INSTALL_INFO"; then
5392 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5393 $as_echo "$INSTALL_INFO" >&6; }
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5400 # Extract the first word of "install-info", so it can be a program name with args.
5401 set dummy install-info
; ac_word
=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5407 case $INSTALL_INFO in
5409 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir
=.
5417 for ac_exec_ext
in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5431 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5432 if test -n "$INSTALL_INFO"; then
5433 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5434 $as_echo "$INSTALL_INFO" >&6; }
5436 { $as_echo "$as_me:$LINENO: result: no" >&5
5437 $as_echo "no" >&6; }
5441 # Extract the first word of "gzip", so it can be a program name with args.
5442 set dummy
gzip; ac_word
=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir
=.
5458 for ac_exec_ext
in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5472 if test -n "$GZIP_PROG"; then
5473 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5474 $as_echo "$GZIP_PROG" >&6; }
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477 $as_echo "no" >&6; }
5483 ## Need makeinfo >= 4.6 (?) to build the manuals.
5484 # Extract the first word of "makeinfo", so it can be a program name with args.
5485 set dummy makeinfo
; ac_word
=$2
5486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5489 $as_echo_n "(cached) " >&6
5493 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5515 MAKEINFO
=$ac_cv_path_MAKEINFO
5516 if test -n "$MAKEINFO"; then
5517 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5518 $as_echo "$MAKEINFO" >&6; }
5520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5525 if test "$MAKEINFO" != "no" && \
5526 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
5530 ## Makeinfo is unusual. For a released Emacs, the manuals are
5531 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5532 ## therefore in the category of "special tools" not normally required, which
5533 ## configure does not have to check for (eg autoconf itself).
5534 ## In a CVS checkout on the other hand, the manuals are not included.
5535 ## So makeinfo is a requirement to build from CVS, and configure
5536 ## should test for it as it does for any other build requirement.
5537 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5538 ## with pre-built manuals, from a CVS checkout.
5539 if test "$MAKEINFO" = "no"; then
5540 if test "x${with_makeinfo}" = "xno"; then
5542 elif ! test -e $srcdir/info
/emacs
; then
5543 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5544 source tree does not seem to have pre-built manuals in the \`info' directory.
5545 Either install a suitable version of makeinfo, or re-run configure
5546 with the \`--without-makeinfo' option to build without the manuals. " >&5
5547 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5548 source tree does not seem to have pre-built manuals in the \`info' directory.
5549 Either install a suitable version of makeinfo, or re-run configure
5550 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5551 { (exit 1); exit 1; }; }
5556 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5558 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5561 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5563 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5567 late_LDFLAGS
=$LDFLAGS
5568 if test "$GCC" = yes; then
5569 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5571 LDFLAGS
="$LDFLAGS -znocombreloc"
5574 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5575 $as_echo_n "checking for -znocombreloc... " >&6; }
5576 cat >conftest.
$ac_ext <<_ACEOF
5579 rm -f conftest.
$ac_objext conftest
$ac_exeext
5580 if { (ac_try
="$ac_link"
5582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5586 $as_echo "$ac_try_echo") >&5
5587 (eval "$ac_link") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest$ac_exeext && {
5597 test "$cross_compiling" = yes ||
5598 $as_test_x conftest$ac_exeext
5600 { $as_echo "$as_me:$LINENO: result: yes" >&5
5601 $as_echo "yes" >&6; }
5603 $as_echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 LDFLAGS=$late_LDFLAGS
5607 { $as_echo "$as_me:$LINENO: result: no" >&5
5608 $as_echo "no" >&6; }
5611 rm -rf conftest.dSYM
5612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5613 conftest$ac_exeext conftest.$ac_ext
5615 #### Extract some information from the operating system and machine files.
5617 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5618 - which libraries the lib-src programs will want, and
5619 - whether the GNU malloc routines are usable..." >&5
5620 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5621 - which libraries the lib-src programs will want, and
5622 - whether the GNU malloc routines are usable..." >&6;}
5624 ### First figure out CFLAGS (which we use for running the compiler here)
5625 ### and REAL_CFLAGS (which we use for real compilation).
5626 ### The two are the same except on a few systems, where they are made
5627 ### different to work around various lossages. For example,
5628 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5629 ### as implying static linking.
5631 ### If the CFLAGS env var is specified, we use that value
5632 ### instead of the default.
5634 ### It's not important that this name contain the PID; you can't run
5635 ### two configures in the same directory and have anything work
5637 tempcname="conftest.c"
5640 #include "'${srcdir}'/src/'${opsysfile}'"
5641 #include "'${srcdir}'/src/'${machfile}'"
5642 #ifndef LIBS_MACHINE
5643 #define LIBS_MACHINE
5648 #ifndef C_SWITCH_SYSTEM
5649 #define C_SWITCH_SYSTEM
5651 #ifndef C_SWITCH_MACHINE
5652 #define C_SWITCH_MACHINE
5654 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5655 configure___ c_switch_system=C_SWITCH_SYSTEM
5656 configure___ c_switch_machine=C_SWITCH_MACHINE
5659 #define LIB_X11_LIB -lX11
5662 #ifndef LIBX11_SYSTEM
5663 #define LIBX11_SYSTEM
5665 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5668 configure___ unexec=UNEXEC
5670 configure___ unexec=unexec.o
5673 #ifdef SYSTEM_MALLOC
5674 configure___ system_malloc=yes
5676 configure___ system_malloc=no
5679 #ifdef USE_MMAP_FOR_BUFFERS
5680 configure___ use_mmap_for_buffers=yes
5682 configure___ use_mmap_for_buffers=no
5685 #ifndef C_DEBUG_SWITCH
5686 #define C_DEBUG_SWITCH -g
5689 #ifndef C_OPTIMIZE_SWITCH
5691 #define C_OPTIMIZE_SWITCH -O2
5693 #define C_OPTIMIZE_SWITCH -O
5697 #ifndef C_WARNINGS_SWITCH
5698 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5701 #ifndef LD_SWITCH_MACHINE
5702 #define LD_SWITCH_MACHINE
5705 #ifndef LD_SWITCH_SYSTEM
5706 #define LD_SWITCH_SYSTEM
5709 #ifndef LD_SWITCH_X_SITE_AUX
5710 #define LD_SWITCH_X_SITE_AUX
5713 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5714 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5716 #ifdef THIS_IS_CONFIGURE
5718 /* Get the CFLAGS for tests in configure. */
5720 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5722 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5725 #else /* not THIS_IS_CONFIGURE */
5727 /* Get the CFLAGS for real compilation. */
5729 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5731 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5734 #endif /* not THIS_IS_CONFIGURE */
5737 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5739 # The value of CPP is a quoted variable reference, so we need to do this
5740 # to get its actual value...
5741 CPP=`eval "echo $CPP"`
5742 eval `${CPP} -Isrc ${tempcname} \
5743 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5744 if test "x$SPECIFIED_CFLAGS" = x; then
5745 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5746 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5748 REAL_CFLAGS="$CFLAGS"
5752 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5754 ### Make sure subsequent tests use flags consistent with the build flags.
5756 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5757 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5759 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5764 # Check whether --enable-largefile was given.
5765 if test "${enable_largefile+set}" = set; then
5766 enableval=$enable_largefile;
5769 if test "$enable_largefile" != no; then
5771 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5772 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5773 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5776 ac_cv_sys_largefile_CC=no
5777 if test "$GCC" != yes; then
5780 # IRIX 6.2 and later do not support large files by default,
5781 # so use the C compiler's -n32 option if that helps.
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 /* Check that off_t can represent 2**63 - 1 correctly.
5790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5791 since some C++ compilers masquerading as C compilers
5792 incorrectly reject 9223372036854775807. */
5793 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5795 && LARGE_OFF_T % 2147483647 == 1)
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5809 *) ac_try_echo
=$ac_try;;
5811 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813 (eval "$ac_compile") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest.
$ac_objext; then
5825 $as_echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5831 rm -f core conftest.err conftest.
$ac_objext
5833 rm -f conftest.
$ac_objext
5834 if { (ac_try
="$ac_compile"
5836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_compile") 2>conftest.er1
5843 grep -v '^ *+' conftest.er1 >conftest.err
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && {
5848 test -z "$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 } && test -s conftest.$ac_objext; then
5851 ac_cv_sys_largefile_CC=' -n32'; break
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5859 rm -f core conftest.err conftest.$ac_objext
5863 rm -f conftest.$ac_ext
5866 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5867 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5868 if test "$ac_cv_sys_largefile_CC" != no; then
5869 CC=$CC$ac_cv_sys_largefile_CC
5872 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5873 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5905 *) ac_try_echo
=$ac_try;;
5907 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5908 $as_echo "$ac_try_echo") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.
$ac_objext; then
5919 ac_cv_sys_file_offset_bits
=no
; break
5921 $as_echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #define _FILE_OFFSET_BITS 64
5935 #include <sys/types.h>
5936 /* Check that off_t can represent 2**63 - 1 correctly.
5937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5938 since some C++ compilers masquerading as C compilers
5939 incorrectly reject 9223372036854775807. */
5940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5942 && LARGE_OFF_T % 2147483647 == 1)
5952 rm -f conftest.
$ac_objext
5953 if { (ac_try
="$ac_compile"
5955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5959 $as_echo "$ac_try_echo") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1 >conftest.err
5964 cat conftest.err >&5
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_objext; then
5970 ac_cv_sys_file_offset_bits=64; break
5972 $as_echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979 ac_cv_sys_file_offset_bits=unknown
5983 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5984 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5985 case $ac_cv_sys_file_offset_bits in #(
5988 cat >>confdefs.h <<_ACEOF
5989 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5994 if test $ac_cv_sys_file_offset_bits = unknown; then
5995 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5996 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5997 if test "${ac_cv_sys_large_files+set}" = set; then
5998 $as_echo_n "(cached) " >&6
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #include <sys/types.h>
6008 /* Check that off_t can represent 2**63 - 1 correctly.
6009 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6010 since some C++ compilers masquerading as C compilers
6011 incorrectly reject 9223372036854775807. */
6012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6013 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6014 && LARGE_OFF_T % 2147483647 == 1)
6024 rm -f conftest.$ac_objext
6025 if { (ac_try="$ac_compile"
6027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6028 *) ac_try_echo
=$ac_try;;
6030 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6031 $as_echo "$ac_try_echo") >&5
6032 (eval "$ac_compile") 2>conftest.er1
6034 grep -v '^ *+' conftest.er1
>conftest.err
6036 cat conftest.err
>&5
6037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && {
6039 test -z "$ac_c_werror_flag" ||
6040 test ! -s conftest.err
6041 } && test -s conftest.
$ac_objext; then
6042 ac_cv_sys_large_files
=no
; break
6044 $as_echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.
$ac_ext >&5
6050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 cat >conftest.
$ac_ext <<_ACEOF
6054 cat confdefs.h
>>conftest.
$ac_ext
6055 cat >>conftest.
$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 #define _LARGE_FILES 1
6058 #include <sys/types.h>
6059 /* Check that off_t can represent 2**63 - 1 correctly.
6060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6061 since some C++ compilers masquerading as C compilers
6062 incorrectly reject 9223372036854775807. */
6063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6065 && LARGE_OFF_T % 2147483647 == 1)
6075 rm -f conftest.
$ac_objext
6076 if { (ac_try
="$ac_compile"
6078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082 $as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 ac_cv_sys_large_files=1; break
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 ac_cv_sys_large_files=unknown
6106 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6107 $as_echo "$ac_cv_sys_large_files" >&6; }
6108 case $ac_cv_sys_large_files in #(
6111 cat >>confdefs.h <<_ACEOF
6112 #define _LARGE_FILES $ac_cv_sys_large_files
6122 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6123 ### be located in either /usr/lib64 or /usr/lib.
6124 ### In some rare cases, /usr/lib64 exists but does not contain the
6125 ### relevant files (bug#1287). Hence test for crtn.o.
6126 case "${canonical}" in
6127 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6128 if test -e /usr/lib64/crtn.o; then
6130 cat >>confdefs.h <<\_ACEOF
6131 #define HAVE_LIB64_DIR 1
6140 if test "${with_sound}" != "no"; then
6141 # Sound support for GNU/Linux and the free BSDs.
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 $as_echo_n "checking for $ac_header... " >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 $as_echo_n "(cached) " >&6
6154 ac_res=`eval 'as_val=${'$as_ac_Header'}
6155 $as_echo "$as_val"'`
6156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6157 $as_echo "$ac_res" >&6; }
6159 # Is the header compilable?
6160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6161 $as_echo_n "checking $ac_header usability... " >&6; }
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 #include <$ac_header>
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6175 *) ac_try_echo
=$ac_try;;
6177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6178 $as_echo "$ac_try_echo") >&5
6179 (eval "$ac_compile") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1
>conftest.err
6183 cat conftest.err
>&5
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } && {
6186 test -z "$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 } && test -s conftest.
$ac_objext; then
6189 ac_header_compiler
=yes
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.
$ac_ext >&5
6194 ac_header_compiler
=no
6197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199 $as_echo "$ac_header_compiler" >&6; }
6201 # Is the header present?
6202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203 $as_echo_n "checking $ac_header presence... " >&6; }
6204 cat >conftest.
$ac_ext <<_ACEOF
6207 cat confdefs.h
>>conftest.
$ac_ext
6208 cat >>conftest.
$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 #include <$ac_header>
6212 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6218 $as_echo "$ac_try_echo") >&5
6219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6221 grep -v '^ *+' conftest.er1 >conftest.err
6223 cat conftest.err >&5
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } >/dev/null && {
6226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6229 ac_header_preproc=yes
6231 $as_echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_header_preproc=no
6237 rm -f conftest.err conftest.$ac_ext
6238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6239 $as_echo "$ac_header_preproc" >&6; }
6241 # So? What about this header?
6242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6248 ac_header_preproc=yes
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6254 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6258 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 $as_echo_n "checking for $ac_header... " >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269 $as_echo_n "(cached) " >&6
6271 eval "$as_ac_Header=\$ac_header_preproc"
6273 ac_res=`eval 'as_val=${'$as_ac_Header'}
6274 $as_echo "$as_val"'`
6275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6276 $as_echo "$ac_res" >&6; }
6279 if test `eval 'as_val=${'$as_ac_Header'}
6280 $as_echo "$as_val"'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6289 # Emulation library used on NetBSD.
6290 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6291 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6292 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6293 $as_echo_n "(cached) " >&6
6295 ac_check_lib_save_LIBS=$LIBS
6296 LIBS="-lossaudio $LIBS"
6297 cat >conftest.$ac_ext <<_ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6304 /* Override any GCC internal prototype to avoid an error.
6305 Use char because int might match the return type of a GCC
6306 builtin and then its argument prototype would still apply. */
6314 return _oss_ioctl ();
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (ac_try="$ac_link"
6322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6323 *) ac_try_echo
=$ac_try;;
6325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6326 $as_echo "$ac_try_echo") >&5
6327 (eval "$ac_link") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1
>conftest.err
6331 cat conftest.err
>&5
6332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest
$ac_exeext && {
6337 test "$cross_compiling" = yes ||
6338 $as_test_x conftest
$ac_exeext
6340 ac_cv_lib_ossaudio__oss_ioctl
=yes
6342 $as_echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.
$ac_ext >&5
6345 ac_cv_lib_ossaudio__oss_ioctl
=no
6348 rm -rf conftest.dSYM
6349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6350 conftest
$ac_exeext conftest.
$ac_ext
6351 LIBS
=$ac_check_lib_save_LIBS
6353 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6354 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6355 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6364 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6368 # Extract the first word of "pkg-config", so it can be a program name with args.
6369 set dummy pkg-config
; ac_word
=$2
6370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6373 $as_echo_n "(cached) " >&6
6377 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir
=.
6385 for ac_exec_ext
in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6388 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6399 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6400 if test -n "$PKG_CONFIG"; then
6401 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6402 $as_echo "$PKG_CONFIG" >&6; }
6404 { $as_echo "$as_me:$LINENO: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test "$PKG_CONFIG" = "no" ; then
6413 PKG_CONFIG_MIN_VERSION
=0.9.0
6414 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6415 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6416 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6418 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6419 { $as_echo "$as_me:$LINENO: result: yes" >&5
6420 $as_echo "yes" >&6; }
6423 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6424 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6425 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6426 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6427 $as_echo "$ALSA_CFLAGS" >&6; }
6429 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6430 $as_echo_n "checking ALSA_LIBS... " >&6; }
6431 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6433 $as_echo "$ALSA_LIBS" >&6; }
6435 { $as_echo "$as_me:$LINENO: result: no" >&5
6436 $as_echo "no" >&6; }
6439 ## If we have a custom action on failure, don't print errors, but
6440 ## do set a variable so people can do so.
6441 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6448 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6449 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6453 if test $succeeded = yes; then
6459 if test $HAVE_ALSA = yes; then
6460 SAVE_CFLAGS
="$CFLAGS"
6461 SAVE_LDFLAGS
="$LDFLAGS"
6462 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6463 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6470 #include <asoundlib.h>
6474 snd_lib_error_set_handler (0);
6479 rm -f conftest.
$ac_objext
6480 if { (ac_try
="$ac_compile"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1 >conftest.err
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 emacs_alsa_normal=yes
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 emacs_alsa_normal=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$emacs_alsa_normal" != yes; then
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <alsa/asoundlib.h>
6517 snd_lib_error_set_handler (0);
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6526 *) ac_try_echo
=$ac_try;;
6528 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6529 $as_echo "$ac_try_echo") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.
$ac_objext; then
6540 emacs_alsa_subdir
=yes
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 emacs_alsa_subdir
=no
6548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 if test "$emacs_alsa_subdir" != yes; then
6550 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6551 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6552 { (exit 1); exit 1; }; }
6554 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6557 CFLAGS
="$SAVE_CFLAGS"
6558 LDFLAGS
="$SAVE_LDFLAGS"
6559 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6560 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6562 cat >>confdefs.h
<<\_ACEOF
6595 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6596 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6597 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6598 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6602 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6604 $as_echo_n "checking for $ac_header... " >&6; }
6605 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6606 $as_echo_n "(cached) " >&6
6608 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6609 $as_echo "$as_val"'`
6610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6611 $as_echo "$ac_res" >&6; }
6613 # Is the header compilable?
6614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6615 $as_echo_n "checking $ac_header usability... " >&6; }
6616 cat >conftest.
$ac_ext <<_ACEOF
6619 cat confdefs.h
>>conftest.
$ac_ext
6620 cat >>conftest.
$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6623 #include <$ac_header>
6625 rm -f conftest.
$ac_objext
6626 if { (ac_try
="$ac_compile"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6632 $as_echo "$ac_try_echo") >&5
6633 (eval "$ac_compile") 2>conftest.er1
6635 grep -v '^ *+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && {
6640 test -z "$ac_c_werror_flag" ||
6641 test ! -s conftest.err
6642 } && test -s conftest.$ac_objext; then
6643 ac_header_compiler=yes
6645 $as_echo "$as_me: failed program was:" >&5
6646 sed 's/^/| /' conftest.$ac_ext >&5
6648 ac_header_compiler=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6653 $as_echo "$ac_header_compiler" >&6; }
6655 # Is the header present?
6656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6657 $as_echo_n "checking $ac_header presence... " >&6; }
6658 cat >conftest.$ac_ext <<_ACEOF
6661 cat confdefs.h >>conftest.$ac_ext
6662 cat >>conftest.$ac_ext <<_ACEOF
6663 /* end confdefs.h. */
6664 #include <$ac_header>
6666 if { (ac_try="$ac_cpp conftest.$ac_ext"
6668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6669 *) ac_try_echo
=$ac_try;;
6671 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1
>conftest.err
6677 cat conftest.err
>&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } >/dev
/null
&& {
6680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6683 ac_header_preproc
=yes
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6688 ac_header_preproc
=no
6691 rm -f conftest.err conftest.
$ac_ext
6692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6693 $as_echo "$ac_header_preproc" >&6; }
6695 # So? What about this header?
6696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6702 ac_header_preproc
=yes
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6721 $as_echo_n "checking for $ac_header... " >&6; }
6722 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6723 $as_echo_n "(cached) " >&6
6725 eval "$as_ac_Header=\$ac_header_preproc"
6727 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6728 $as_echo "$as_val"'`
6729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6733 if test `eval 'as_val=${'$as_ac_Header'}
6734 $as_echo "$as_val"'` = yes; then
6735 cat >>confdefs.h
<<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6745 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 #include <sys/personality.h>
6756 personality (PER_LINUX32)
6761 rm -f conftest.
$ac_objext
6762 if { (ac_try
="$ac_compile"
6764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 emacs_cv_personality_linux32=yes
6781 $as_echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 emacs_cv_personality_linux32=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6789 $as_echo "$emacs_cv_personality_linux32" >&6; }
6791 if test $emacs_cv_personality_linux32 = yes; then
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_PERSONALITY_LINUX32 1
6800 for ac_header in term.h
6802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 $as_echo_n "checking for $ac_header... " >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806 $as_echo_n "(cached) " >&6
6808 cat >conftest.$ac_ext <<_ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <$ac_header>
6816 if { (ac_try="$ac_cpp conftest.$ac_ext"
6818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6819 *) ac_try_echo
=$ac_try;;
6821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6822 $as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6825 grep -v '^ *+' conftest.er1
>conftest.err
6827 cat conftest.err
>&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev
/null
&& {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6833 eval "$as_ac_Header=yes"
6835 $as_echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6838 eval "$as_ac_Header=no"
6841 rm -f conftest.err conftest.
$ac_ext
6843 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6844 $as_echo "$as_val"'`
6845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if test `eval 'as_val=${'$as_ac_Header'}
6848 $as_echo "$as_val"'` = yes; then
6849 cat >>confdefs.h
<<_ACEOF
6850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6858 $as_echo_n "checking for ANSI C header files... " >&6; }
6859 if test "${ac_cv_header_stdc+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6862 cat >conftest.
$ac_ext <<_ACEOF
6865 cat confdefs.h
>>conftest.
$ac_ext
6866 cat >>conftest.
$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6881 rm -f conftest.
$ac_objext
6882 if { (ac_try
="$ac_compile"
6884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 ac_cv_header_stdc=yes
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_cv_header_stdc=no
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 if test $ac_cv_header_stdc = yes; then
6910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "memchr" >/dev/null 2>&1; then
6924 ac_cv_header_stdc=no
6930 if test $ac_cv_header_stdc = yes; then
6931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "free" >/dev/null 2>&1; then
6945 ac_cv_header_stdc=no
6951 if test $ac_cv_header_stdc = yes; then
6952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6953 if test "$cross_compiling" = yes; then
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6964 #if ((' ' & 0x0FF) == 0x020)
6965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6968 # define ISLOWER(c) \
6969 (('a' <= (c) && (c) <= 'i') \
6970 || ('j' <= (c) && (c) <= 'r') \
6971 || ('s' <= (c) && (c) <= 'z'))
6972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6980 for (i = 0; i < 256; i++)
6981 if (XOR (islower (i), ISLOWER (i))
6982 || toupper (i) != TOUPPER (i))
6987 rm -f conftest$ac_exeext
6988 if { (ac_try="$ac_link"
6990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6991 *) ac_try_echo
=$ac_try;;
6993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_link") 2>&5
6997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6999 { (case "(($ac_try" in
7000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_try") 2>&5
7007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7011 $as_echo "$as_me: program exited with status $ac_status" >&5
7012 $as_echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_stdc=no
7018 rm -rf conftest.dSYM
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 $as_echo "$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7035 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7036 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7037 if test "${ac_cv_header_time+set}" = set; then
7038 $as_echo_n "(cached) " >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <sys/types.h>
7047 #include <sys/time.h>
7053 if ((struct tm *) 0)
7059 rm -f conftest.$ac_objext
7060 if { (ac_try="$ac_compile"
7062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7063 *) ac_try_echo
=$ac_try;;
7065 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7066 $as_echo "$ac_try_echo") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.
$ac_objext; then
7077 ac_cv_header_time
=yes
7079 $as_echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.
$ac_ext >&5
7082 ac_cv_header_time
=no
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7088 $as_echo "$ac_cv_header_time" >&6; }
7089 if test $ac_cv_header_time = yes; then
7091 cat >>confdefs.h
<<\_ACEOF
7092 #define TIME_WITH_SYS_TIME 1
7097 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7098 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7099 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7102 cat >conftest.
$ac_ext <<_ACEOF
7105 cat confdefs.h
>>conftest.
$ac_ext
7106 cat >>conftest.
$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 $ac_includes_default
7120 rm -f conftest.
$ac_objext
7121 if { (ac_try
="$ac_compile"
7123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127 $as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1 >conftest.err
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_have_decl_sys_siglist=yes
7140 $as_echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7143 ac_cv_have_decl_sys_siglist=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7149 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7150 if test $ac_cv_have_decl_sys_siglist = yes; then
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_DECL_SYS_SIGLIST 1
7158 cat >>confdefs.h <<_ACEOF
7159 #define HAVE_DECL_SYS_SIGLIST 0
7166 if test $ac_cv_have_decl_sys_siglist != yes; then
7167 # For Tru64, at least:
7168 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7169 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7170 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7171 $as_echo_n "(cached) " >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7183 #ifndef __sys_siglist
7184 (void) __sys_siglist;
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7195 *) ac_try_echo
=$ac_try;;
7197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7201 grep -v '^ *+' conftest.er1
>conftest.err
7203 cat conftest.err
>&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.
$ac_objext; then
7209 ac_cv_have_decl___sys_siglist
=yes
7211 $as_echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7214 ac_cv_have_decl___sys_siglist
=no
7217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7220 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7221 if test $ac_cv_have_decl___sys_siglist = yes; then
7223 cat >>confdefs.h
<<_ACEOF
7224 #define HAVE_DECL___SYS_SIGLIST 1
7229 cat >>confdefs.h
<<_ACEOF
7230 #define HAVE_DECL___SYS_SIGLIST 0
7237 if test $ac_cv_have_decl___sys_siglist = yes; then
7239 cat >>confdefs.h
<<\_ACEOF
7240 #define sys_siglist __sys_siglist
7245 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7246 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7247 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7250 cat >conftest.
$ac_ext <<_ACEOF
7253 cat confdefs.h
>>conftest.
$ac_ext
7254 cat >>conftest.
$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 #include <sys/types.h>
7257 #include <sys/wait.h>
7259 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7262 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7270 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7275 rm -f conftest.
$ac_objext
7276 if { (ac_try
="$ac_compile"
7278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7282 $as_echo "$ac_try_echo") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7293 ac_cv_header_sys_wait_h=yes
7295 $as_echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_header_sys_wait_h=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7304 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7305 if test $ac_cv_header_sys_wait_h = yes; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_SYS_WAIT_H 1
7314 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7315 $as_echo_n "checking for struct utimbuf... " >&6; }
7316 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7317 $as_echo_n "(cached) " >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 #ifdef TIME_WITH_SYS_TIME
7326 #include <sys/time.h>
7329 #ifdef HAVE_SYS_TIME_H
7330 #include <sys/time.h>
7341 static struct utimbuf x; x.actime = x.modtime;
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7350 *) ac_try_echo
=$ac_try;;
7352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_compile") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1
>conftest.err
7358 cat conftest.err
>&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest.
$ac_objext; then
7364 emacs_cv_struct_utimbuf
=yes
7366 $as_echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.
$ac_ext >&5
7369 emacs_cv_struct_utimbuf
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7374 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7375 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7376 if test $emacs_cv_struct_utimbuf = yes; then
7378 cat >>confdefs.h
<<\_ACEOF
7379 #define HAVE_STRUCT_UTIMBUF 1
7384 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7385 $as_echo_n "checking return type of signal handlers... " >&6; }
7386 if test "${ac_cv_type_signal+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7389 cat >conftest.
$ac_ext <<_ACEOF
7392 cat confdefs.h
>>conftest.
$ac_ext
7393 cat >>conftest.
$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7401 return *(signal (0, 0)) (0) == 1;
7406 rm -f conftest.
$ac_objext
7407 if { (ac_try
="$ac_compile"
7409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_type_signal=int
7426 $as_echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_cv_type_signal=void
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7435 $as_echo "$ac_cv_type_signal" >&6; }
7437 cat >>confdefs.h <<_ACEOF
7438 #define RETSIGTYPE $ac_cv_type_signal
7443 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7444 $as_echo_n "checking for speed_t... " >&6; }
7445 if test "${emacs_cv_speed_t+set}" = set; then
7446 $as_echo_n "(cached) " >&6
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <termios.h>
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7467 *) ac_try_echo
=$ac_try;;
7469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7470 $as_echo "$ac_try_echo") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1
>conftest.err
7475 cat conftest.err
>&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.
$ac_objext; then
7481 emacs_cv_speed_t
=yes
7483 $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.
$ac_ext >&5
7489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7492 $as_echo "$emacs_cv_speed_t" >&6; }
7493 if test $emacs_cv_speed_t = yes; then
7495 cat >>confdefs.h
<<\_ACEOF
7496 #define HAVE_SPEED_T 1
7501 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7502 $as_echo_n "checking for struct timeval... " >&6; }
7503 if test "${emacs_cv_struct_timeval+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7506 cat >conftest.
$ac_ext <<_ACEOF
7509 cat confdefs.h
>>conftest.
$ac_ext
7510 cat >>conftest.
$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 #ifdef TIME_WITH_SYS_TIME
7513 #include <sys/time.h>
7516 #ifdef HAVE_SYS_TIME_H
7517 #include <sys/time.h>
7525 static struct timeval x; x.tv_sec = x.tv_usec;
7530 rm -f conftest.
$ac_objext
7531 if { (ac_try
="$ac_compile"
7533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7537 $as_echo "$ac_try_echo") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 emacs_cv_struct_timeval=yes
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 emacs_cv_struct_timeval=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7559 $as_echo "$emacs_cv_struct_timeval" >&6; }
7560 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7561 if test $emacs_cv_struct_timeval = yes; then
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_TIMEVAL 1
7569 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7570 $as_echo_n "checking for struct exception... " >&6; }
7571 if test "${emacs_cv_struct_exception+set}" = set; then
7572 $as_echo_n "(cached) " >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7584 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7593 *) ac_try_echo
=$ac_try;;
7595 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7596 $as_echo "$ac_try_echo") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7599 grep -v '^ *+' conftest.er1
>conftest.err
7601 cat conftest.err
>&5
7602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.
$ac_objext; then
7607 emacs_cv_struct_exception
=yes
7609 $as_echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.
$ac_ext >&5
7612 emacs_cv_struct_exception
=no
7615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7617 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7618 $as_echo "$emacs_cv_struct_exception" >&6; }
7619 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7620 if test $emacs_cv_struct_exception != yes; then
7622 cat >>confdefs.h
<<\_ACEOF
7623 #define NO_MATHERR 1
7629 for ac_header
in sys
/socket.h
7631 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 $as_echo_n "checking for $ac_header... " >&6; }
7635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 $as_echo_n "(cached) " >&6
7638 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7639 $as_echo "$as_val"'`
7640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7643 # Is the header compilable?
7644 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7645 $as_echo_n "checking $ac_header usability... " >&6; }
7646 cat >conftest.
$ac_ext <<_ACEOF
7649 cat confdefs.h
>>conftest.
$ac_ext
7650 cat >>conftest.
$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 #include <$ac_header>
7655 rm -f conftest.
$ac_objext
7656 if { (ac_try
="$ac_compile"
7658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662 $as_echo "$ac_try_echo") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_header_compiler=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 $as_echo "$ac_header_compiler" >&6; }
7685 # Is the header present?
7686 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 $as_echo_n "checking $ac_header presence... " >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7699 *) ac_try_echo
=$ac_try;;
7701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev
/null
&& {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7713 ac_header_preproc
=yes
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_header_preproc
=no
7721 rm -f conftest.err conftest.
$ac_ext
7722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 $as_echo "$ac_header_preproc" >&6; }
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc
=yes
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 $as_echo_n "checking for $ac_header... " >&6; }
7752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 $as_echo_n "(cached) " >&6
7755 eval "$as_ac_Header=\$ac_header_preproc"
7757 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7758 $as_echo "$as_val"'`
7759 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7760 $as_echo "$ac_res" >&6; }
7763 if test `eval 'as_val=${'$as_ac_Header'}
7764 $as_echo "$as_val"'` = yes; then
7765 cat >>confdefs.h
<<_ACEOF
7766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7774 for ac_header
in net
/if.h
7776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7778 $as_echo_n "checking for $ac_header... " >&6; }
7779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7780 $as_echo_n "(cached) " >&6
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 #if HAVE_SYS_SOCKET_H
7790 #include <sys/socket.h>
7793 #include <$ac_header>
7795 rm -f conftest.
$ac_objext
7796 if { (ac_try
="$ac_compile"
7798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_compile") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && {
7810 test -z "$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7812 } && test -s conftest.$ac_objext; then
7813 eval "$as_ac_Header=yes"
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7818 eval "$as_ac_Header=no"
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 ac_res=`eval 'as_val=${'$as_ac_Header'}
7824 $as_echo "$as_val"'`
7825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7826 $as_echo "$ac_res" >&6; }
7827 if test `eval 'as_val=${'$as_ac_Header'}
7828 $as_echo "$as_val"'` = yes; then
7829 cat >>confdefs.h <<_ACEOF
7830 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7838 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7839 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7840 if test "${ac_cv_struct_tm+set}" = set; then
7841 $as_echo_n "(cached) " >&6
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <sys/types.h>
7856 int *p = &tm.tm_sec;
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7866 *) ac_try_echo
=$ac_try;;
7868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7869 $as_echo "$ac_try_echo") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1
>conftest.err
7874 cat conftest.err
>&5
7875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.
$ac_objext; then
7880 ac_cv_struct_tm
=time.h
7882 $as_echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.
$ac_ext >&5
7885 ac_cv_struct_tm
=sys
/time.h
7888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7891 $as_echo "$ac_cv_struct_tm" >&6; }
7892 if test $ac_cv_struct_tm = sys
/time.h
; then
7894 cat >>confdefs.h
<<\_ACEOF
7895 #define TM_IN_SYS_TIME 1
7900 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7901 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7902 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7905 cat >conftest.
$ac_ext <<_ACEOF
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <sys/types.h>
7912 #include <$ac_cv_struct_tm>
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_zone)
7925 rm -f conftest.
$ac_objext
7926 if { (ac_try
="$ac_compile"
7928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 ac_cv_member_struct_tm_tm_zone=yes
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7955 #include <$ac_cv_struct_tm>
7961 static struct tm ac_aggr;
7962 if (sizeof ac_aggr.tm_zone)
7968 rm -f conftest.$ac_objext
7969 if { (ac_try="$ac_compile"
7971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7972 *) ac_try_echo
=$ac_try;;
7974 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7975 $as_echo "$ac_try_echo") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1
>conftest.err
7980 cat conftest.err
>&5
7981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.
$ac_objext; then
7986 ac_cv_member_struct_tm_tm_zone
=yes
7988 $as_echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.
$ac_ext >&5
7991 ac_cv_member_struct_tm_tm_zone
=no
7994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8000 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8001 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8003 cat >>confdefs.h
<<_ACEOF
8004 #define HAVE_STRUCT_TM_TM_ZONE 1
8010 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8012 cat >>confdefs.h
<<\_ACEOF
8013 #define HAVE_TM_ZONE 1
8017 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8018 $as_echo_n "checking whether tzname is declared... " >&6; }
8019 if test "${ac_cv_have_decl_tzname+set}" = set; then
8020 $as_echo_n "(cached) " >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8041 rm -f conftest.
$ac_objext
8042 if { (ac_try
="$ac_compile"
8044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_have_decl_tzname=yes
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_have_decl_tzname=no
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8070 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8071 if test $ac_cv_have_decl_tzname = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DECL_TZNAME 1
8079 cat >>confdefs.h <<_ACEOF
8080 #define HAVE_DECL_TZNAME 0
8087 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8088 $as_echo_n "checking for tzname... " >&6; }
8089 if test "${ac_cv_var_tzname+set}" = set; then
8090 $as_echo_n "(cached) " >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8099 #if !HAVE_DECL_TZNAME
8100 extern char *tzname[];
8106 return tzname[0][0];
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8115 *) ac_try_echo
=$ac_try;;
8117 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8118 $as_echo "$ac_try_echo") >&5
8119 (eval "$ac_link") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1
>conftest.err
8123 cat conftest.err
>&5
8124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest
$ac_exeext && {
8129 test "$cross_compiling" = yes ||
8130 $as_test_x conftest
$ac_exeext
8132 ac_cv_var_tzname
=yes
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.
$ac_ext >&5
8140 rm -rf conftest.dSYM
8141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8142 conftest
$ac_exeext conftest.
$ac_ext
8144 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8145 $as_echo "$ac_cv_var_tzname" >&6; }
8146 if test $ac_cv_var_tzname = yes; then
8148 cat >>confdefs.h
<<\_ACEOF
8149 #define HAVE_TZNAME 1
8155 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8156 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8157 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8158 $as_echo_n "(cached) " >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8171 static struct tm ac_aggr;
8172 if (ac_aggr.tm_gmtoff)
8178 rm -f conftest.
$ac_objext
8179 if { (ac_try
="$ac_compile"
8181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_tm_tm_gmtoff=yes
8198 $as_echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8212 static struct tm ac_aggr;
8213 if (sizeof ac_aggr.tm_gmtoff)
8219 rm -f conftest.$ac_objext
8220 if { (ac_try="$ac_compile"
8222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8223 *) ac_try_echo
=$ac_try;;
8225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8226 $as_echo "$ac_try_echo") >&5
8227 (eval "$ac_compile") 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && {
8234 test -z "$ac_c_werror_flag" ||
8235 test ! -s conftest.err
8236 } && test -s conftest.
$ac_objext; then
8237 ac_cv_member_struct_tm_tm_gmtoff
=yes
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8242 ac_cv_member_struct_tm_tm_gmtoff
=no
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8251 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8252 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8254 cat >>confdefs.h
<<\_ACEOF
8255 #define HAVE_TM_GMTOFF 1
8260 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8261 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8262 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8282 static struct ifreq ac_aggr;
8283 if (ac_aggr.ifr_flags)
8289 rm -f conftest.
$ac_objext
8290 if { (ac_try
="$ac_compile"
8292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296 $as_echo "$ac_try_echo") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1 >conftest.err
8301 cat conftest.err >&5
8302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_flags=yes
8309 $as_echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 #if HAVE_SYS_SOCKET_H
8320 #include <sys/socket.h>
8329 static struct ifreq ac_aggr;
8330 if (sizeof ac_aggr.ifr_flags)
8336 rm -f conftest.$ac_objext
8337 if { (ac_try="$ac_compile"
8339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8340 *) ac_try_echo
=$ac_try;;
8342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_compile") 2>conftest.er1
8346 grep -v '^ *+' conftest.er1
>conftest.err
8348 cat conftest.err
>&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest.
$ac_objext; then
8354 ac_cv_member_struct_ifreq_ifr_flags
=yes
8356 $as_echo "$as_me: failed program was:" >&5
8357 sed 's/^/| /' conftest.
$ac_ext >&5
8359 ac_cv_member_struct_ifreq_ifr_flags
=no
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8367 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8368 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8369 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8371 cat >>confdefs.h
<<_ACEOF
8372 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8377 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8378 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8379 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8382 cat >conftest.
$ac_ext <<_ACEOF
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #if HAVE_SYS_SOCKET_H
8390 #include <sys/socket.h>
8399 static struct ifreq ac_aggr;
8400 if (ac_aggr.ifr_hwaddr)
8406 rm -f conftest.
$ac_objext
8407 if { (ac_try
="$ac_compile"
8409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_hwaddr)
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8457 *) ac_try_echo
=$ac_try;;
8459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.
$ac_objext; then
8471 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8473 $as_echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.
$ac_ext >&5
8476 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8484 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8485 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8486 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8488 cat >>confdefs.h
<<_ACEOF
8489 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8494 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8495 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8496 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8499 cat >conftest.
$ac_ext <<_ACEOF
8502 cat confdefs.h
>>conftest.
$ac_ext
8503 cat >>conftest.
$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8516 static struct ifreq ac_aggr;
8517 if (ac_aggr.ifr_netmask)
8523 rm -f conftest.
$ac_objext
8524 if { (ac_try
="$ac_compile"
8526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_netmask=yes
8543 $as_echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_netmask)
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8574 *) ac_try_echo
=$ac_try;;
8576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8577 $as_echo "$ac_try_echo") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1
>conftest.err
8582 cat conftest.err
>&5
8583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.
$ac_objext; then
8588 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8590 $as_echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8593 ac_cv_member_struct_ifreq_ifr_netmask
=no
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8602 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8603 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8605 cat >>confdefs.h
<<_ACEOF
8606 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8611 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8612 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8613 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8616 cat >conftest.
$ac_ext <<_ACEOF
8619 cat confdefs.h
>>conftest.
$ac_ext
8620 cat >>conftest.
$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8623 #if HAVE_SYS_SOCKET_H
8624 #include <sys/socket.h>
8633 static struct ifreq ac_aggr;
8634 if (ac_aggr.ifr_broadaddr)
8640 rm -f conftest.
$ac_objext
8641 if { (ac_try
="$ac_compile"
8643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8660 $as_echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_broadaddr)
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8691 *) ac_try_echo
=$ac_try;;
8693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695 (eval "$ac_compile") 2>conftest.er1
8697 grep -v '^ *+' conftest.er1
>conftest.err
8699 cat conftest.err
>&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } && {
8702 test -z "$ac_c_werror_flag" ||
8703 test ! -s conftest.err
8704 } && test -s conftest.
$ac_objext; then
8705 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8707 $as_echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.
$ac_ext >&5
8710 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8719 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8720 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8722 cat >>confdefs.h
<<_ACEOF
8723 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8728 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8729 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8730 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8731 $as_echo_n "(cached) " >&6
8733 cat >conftest.
$ac_ext <<_ACEOF
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 #if HAVE_SYS_SOCKET_H
8741 #include <sys/socket.h>
8750 static struct ifreq ac_aggr;
8751 if (ac_aggr.ifr_addr)
8757 rm -f conftest.
$ac_objext
8758 if { (ac_try
="$ac_compile"
8760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1 >conftest.err
8769 cat conftest.err >&5
8770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.$ac_objext; then
8775 ac_cv_member_struct_ifreq_ifr_addr=yes
8777 $as_echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8787 #if HAVE_SYS_SOCKET_H
8788 #include <sys/socket.h>
8797 static struct ifreq ac_aggr;
8798 if (sizeof ac_aggr.ifr_addr)
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8808 *) ac_try_echo
=$ac_try;;
8810 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8811 $as_echo "$ac_try_echo") >&5
8812 (eval "$ac_compile") 2>conftest.er1
8814 grep -v '^ *+' conftest.er1
>conftest.err
8816 cat conftest.err
>&5
8817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } && {
8819 test -z "$ac_c_werror_flag" ||
8820 test ! -s conftest.err
8821 } && test -s conftest.
$ac_objext; then
8822 ac_cv_member_struct_ifreq_ifr_addr
=yes
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.
$ac_ext >&5
8827 ac_cv_member_struct_ifreq_ifr_addr
=no
8830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8836 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8837 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8839 cat >>confdefs.h
<<_ACEOF
8840 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8848 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8849 $as_echo_n "checking for function prototypes... " >&6; }
8850 if test "$ac_cv_prog_cc_c89" != no
; then
8851 { $as_echo "$as_me:$LINENO: result: yes" >&5
8852 $as_echo "yes" >&6; }
8854 cat >>confdefs.h
<<\_ACEOF
8855 #define PROTOTYPES 1
8859 cat >>confdefs.h
<<\_ACEOF
8860 #define __PROTOTYPES 1
8864 { $as_echo "$as_me:$LINENO: result: no" >&5
8865 $as_echo "no" >&6; }
8868 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8869 $as_echo_n "checking for working volatile... " >&6; }
8870 if test "${ac_cv_c_volatile+set}" = set; then
8871 $as_echo_n "(cached) " >&6
8873 cat >conftest.
$ac_ext <<_ACEOF
8876 cat confdefs.h
>>conftest.
$ac_ext
8877 cat >>conftest.
$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8885 int * volatile y = (int *) 0;
8891 rm -f conftest.
$ac_objext
8892 if { (ac_try
="$ac_compile"
8894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_c_volatile=yes
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8920 $as_echo "$ac_cv_c_volatile" >&6; }
8921 if test $ac_cv_c_volatile = no; then
8923 cat >>confdefs.h <<\_ACEOF
8924 #define volatile /**/
8929 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8930 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8931 if test "${ac_cv_c_const+set}" = set; then
8932 $as_echo_n "(cached) " >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8944 /* FIXME: Include the comments suggested by Paul. */
8946 /* Ultrix mips cc rejects this. */
8947 typedef int charset[2];
8949 /* SunOS 4.1.1 cc rejects this. */
8950 char const *const *pcpcc;
8952 /* NEC SVR4.0.2 mips cc rejects this. */
8953 struct point {int x, y;};
8954 static struct point const zero = {0,0};
8955 /* AIX XL C 1.02.0.0 rejects this.
8956 It does not let you subtract one const X* pointer from another in
8957 an arm of an if-expression whose if-part is not a constant
8959 const char *g = "string";
8960 pcpcc = &g + (g ? g-g : 0);
8961 /* HPUX 7.0 cc rejects these. */
8963 ppc = (char**) pcpcc;
8964 pcpcc = (char const *const *) ppc;
8965 { /* SCO 3.2v4 cc rejects this. */
8967 char const *s = 0 ? (char *) 0 : (char const *) 0;
8972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8974 const int *foo = &x[0];
8977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8978 typedef const int *iptr;
8982 { /* AIX XL C 1.02.0.0 rejects this saying
8983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8984 struct s { int j; const int *ap[3]; };
8985 struct s *b; b->j = 5;
8987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8991 return !cs[0] && !zero.x;
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9002 *) ac_try_echo
=$ac_try;;
9004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_compile") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1
>conftest.err
9010 cat conftest.err
>&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest.
$ac_objext; then
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9027 $as_echo "$ac_cv_c_const" >&6; }
9028 if test $ac_cv_c_const = no
; then
9030 cat >>confdefs.h
<<\_ACEOF
9036 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9037 $as_echo_n "checking for void * support... " >&6; }
9038 if test "${emacs_cv_void_star+set}" = set; then
9039 $as_echo_n "(cached) " >&6
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9056 rm -f conftest.
$ac_objext
9057 if { (ac_try
="$ac_compile"
9059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9063 $as_echo "$ac_try_echo") >&5
9064 (eval "$ac_compile") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest.$ac_objext; then
9074 emacs_cv_void_star=yes
9076 $as_echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9079 emacs_cv_void_star=no
9082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9085 $as_echo "$emacs_cv_void_star" >&6; }
9086 if test $emacs_cv_void_star = yes; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define POINTER_TYPE void
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE char
9102 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9105 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9107 $as_echo_n "(cached) " >&6
9109 cat >conftest.make <<\_ACEOF
9112 @echo '@@@%%%=$(MAKE)=@@@%%%'
9114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9115 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9117 eval ac_cv_prog_make_${ac_make}_set=yes;;
9119 eval ac_cv_prog_make_${ac_make}_set=no;;
9123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9124 { $as_echo "$as_me:$LINENO: result: yes" >&5
9125 $as_echo "yes" >&6; }
9128 { $as_echo "$as_me:$LINENO: result: no" >&5
9129 $as_echo "no" >&6; }
9130 SET_MAKE="MAKE=${MAKE-make}"
9134 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9135 $as_echo_n "checking for long file names... " >&6; }
9136 if test "${ac_cv_sys_long_file_names+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9139 ac_cv_sys_long_file_names=yes
9140 # Test for long file names in all the places we know might matter:
9141 # . the current directory, where building will happen
9142 # $prefix/lib where we will be installing things
9143 # $exec_prefix/lib likewise
9144 # $TMPDIR if set, where it might want to write temporary files
9145 # /tmp where it might want to write temporary files
9148 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9149 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9150 # in the usual case where exec_prefix is '${prefix}'.
9152 . | /* | ?:[\\/]*) ;; #(
9155 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9156 ac_xdir=$ac_dir/cf$$
9157 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9158 ac_tf1=$ac_xdir/conftest9012345
9159 ac_tf2=$ac_xdir/conftest9012346
9160 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9161 ac_cv_sys_long_file_names=no
9162 rm -f -r "$ac_xdir" 2>/dev/null
9163 test $ac_cv_sys_long_file_names = no && break
9166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9167 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9168 if test $ac_cv_sys_long_file_names = yes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_LONG_FILE_NAMES 1
9177 #### Choose a window system.
9179 { $as_echo "$as_me:$LINENO: checking for X" >&5
9180 $as_echo_n "checking for X... " >&6; }
9183 # Check whether --with-x was given.
9184 if test "${with_x+set}" = set; then
9188 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9189 if test "x$with_x" = xno; then
9190 # The user explicitly disabled X.
9193 case $x_includes,$x_libraries in #(
9194 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9195 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9196 { (exit 1); exit 1; }; };; #(
9197 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9200 # One or both of the vars are not set, and there is no cached value.
9201 ac_x_includes=no ac_x_libraries=no
9202 rm -f -r conftest.dir
9203 if mkdir conftest.dir; then
9205 cat >Imakefile <<'_ACEOF'
9207 @echo incroot='${INCROOT}'
9209 @echo usrlibdir='${USRLIBDIR}'
9211 @echo libdir='${LIBDIR}'
9213 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 for ac_var in incroot usrlibdir libdir; do
9216 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9218 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9219 for ac_extension in a so sl dylib la dll; do
9220 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9221 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9222 ac_im_usrlibdir=$ac_im_libdir; break
9225 # Screen out bogus values from the imake configuration. They are
9226 # bogus both because they are the default anyway, and because
9227 # using them would break gcc on systems where it needs fixed includes.
9228 case $ac_im_incroot in
9229 /usr/include) ac_x_includes= ;;
9230 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9232 case $ac_im_usrlibdir in
9234 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9238 rm -f -r conftest.dir
9241 # Standard set of common directories for X headers.
9242 # Check X11 before X11Rn because it is often a symlink to the current release.
9254 /usr/local/X11/include
9255 /usr/local/X11R6/include
9256 /usr/local/X11R5/include
9257 /usr/local/X11R4/include
9259 /usr/local/include/X11
9260 /usr/local/include/X11R6
9261 /usr/local/include/X11R5
9262 /usr/local/include/X11R4
9266 /usr/XFree86/include/X11
9270 /usr/unsupported/include
9272 /usr/local/x11r5/include
9273 /usr/lpp/Xamples/include
9275 /usr/openwin/include
9276 /usr/openwin/share/include'
9278 if test "$ac_x_includes" = no; then
9279 # Guess where to find include files, by looking for Xlib.h.
9280 # First, try using that file with no special directory specified.
9281 cat >conftest.$ac_ext <<_ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h. */
9287 #include <X11/Xlib.h>
9289 if { (ac_try="$ac_cpp conftest.$ac_ext"
9291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9292 *) ac_try_echo
=$ac_try;;
9294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9295 $as_echo "$ac_try_echo") >&5
9296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9298 grep -v '^ *+' conftest.er1
>conftest.err
9300 cat conftest.err
>&5
9301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } >/dev
/null
&& {
9303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9304 test ! -s conftest.err
9306 # We can compile using X headers with no special include directory.
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.
$ac_ext >&5
9312 for ac_dir
in $ac_x_header_dirs; do
9313 if test -r "$ac_dir/X11/Xlib.h"; then
9314 ac_x_includes
=$ac_dir
9320 rm -f conftest.err conftest.
$ac_ext
9321 fi # $ac_x_includes = no
9323 if test "$ac_x_libraries" = no
; then
9324 # Check for the libraries.
9325 # See if we find them without any special options.
9326 # Don't add to $LIBS permanently.
9329 cat >conftest.
$ac_ext <<_ACEOF
9332 cat confdefs.h
>>conftest.
$ac_ext
9333 cat >>conftest.
$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <X11/Xlib.h>
9344 rm -f conftest.
$ac_objext conftest
$ac_exeext
9345 if { (ac_try
="$ac_link"
9347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351 $as_echo "$ac_try_echo") >&5
9352 (eval "$ac_link") 2>conftest.er1
9354 grep -v '^ *+' conftest.er1 >conftest.err
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest$ac_exeext && {
9362 test "$cross_compiling" = yes ||
9363 $as_test_x conftest$ac_exeext
9366 # We can link X programs with no special library path.
9369 $as_echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9375 # Don't even attempt the hair of trying to link an X program!
9376 for ac_extension in a so sl dylib la dll; do
9377 if test -r "$ac_dir/libX11.$ac_extension"; then
9378 ac_x_libraries=$ac_dir
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi # $ac_x_libraries = no
9390 case $ac_x_includes,$ac_x_libraries in #(
9392 # Didn't find X, or a directory has "'" in its name.
9393 ac_cv_have_x="have_x=no";; #(
9395 # Record where we found X for the cache.
9396 ac_cv_have_x="have_x=yes\
9397 ac_x_includes='$ac_x_includes'\
9398 ac_x_libraries='$ac_x_libraries'"
9404 eval "$ac_cv_have_x"
9407 if test "$have_x" != yes; then
9408 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9409 $as_echo "$have_x" >&6; }
9412 # If each of the values was on the command line, it overrides each guess.
9413 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9414 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9415 # Update the cache value to reflect the command line values.
9416 ac_cv_have_x="have_x=yes\
9417 ac_x_includes='$x_includes'\
9418 ac_x_libraries='$x_libraries'"
9419 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9420 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9423 if test "$no_x" = yes; then
9429 ## Workaround for bug in autoconf <= 2.62.
9430 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9431 ## No need to do anything special for these standard directories.
9432 ## This is an experiment, take it out if it causes problems.
9433 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9435 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9439 if test "${x_libraries}" != NONE; then
9440 if test -n "${x_libraries}"; then
9441 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9442 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9444 x_default_search_path=""
9445 x_search_path=${x_libraries}
9446 if test -z "${x_search_path}"; then
9447 x_search_path=/usr/lib
9449 for x_library in `echo ${x_search_path}: | \
9450 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9452 ${x_library}/X11/%L/%T/%N%C%S:\
9453 ${x_library}/X11/%l/%T/%N%C%S:\
9454 ${x_library}/X11/%T/%N%C%S:\
9455 ${x_library}/X11/%L/%T/%N%S:\
9456 ${x_library}/X11/%l/%T/%N%S:\
9457 ${x_library}/X11/%T/%N%S"
9458 if test x"${x_default_search_path}" = x; then
9459 x_default_search_path=${x_search_path}
9461 x_default_search_path="${x_search_path}:${x_default_search_path}"
9465 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9466 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9469 if test x"${x_includes}" = x; then
9470 bitmapdir=/usr/include/X11/bitmaps
9472 # accumulate include directories that have X11 bitmap subdirectories
9474 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9475 if test -d "${bmd}/X11/bitmaps"; then
9476 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9478 if test -d "${bmd}/bitmaps"; then
9479 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9482 if test ${bmd_acc} != "dummyval"; then
9483 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9490 tmp_CPPFLAGS="$CPPFLAGS"
9491 tmp_CFLAGS="$CFLAGS"
9492 CPPFLAGS="$CPPFLAGS -x objective-c"
9493 CFLAGS="$CFLAGS -x objective-c"
9494 if test "${with_ns}" != no; then
9495 if test "${opsys}" = darwin; then
9497 ns_appdir=`pwd`/nextstep/Emacs.app
9498 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9499 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9500 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9501 elif test -f $GNUSTEP_CONFIG_FILE; then
9503 ns_appdir=`pwd`/nextstep/Emacs.app
9504 ns_appbindir=`pwd`/nextstep/Emacs.app
9505 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9506 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9507 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9508 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9509 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9510 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9511 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9512 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9513 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9515 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9516 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9517 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9518 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9519 $as_echo_n "(cached) " >&6
9521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9522 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9524 # Is the header compilable?
9525 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9526 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533 $ac_includes_default
9534 #include <AppKit/AppKit.h>
9536 rm -f conftest.$ac_objext
9537 if { (ac_try="$ac_compile"
9539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9540 *) ac_try_echo
=$ac_try;;
9542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_compile") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest.
$ac_objext; then
9554 ac_header_compiler
=yes
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9559 ac_header_compiler
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9564 $as_echo "$ac_header_compiler" >&6; }
9566 # Is the header present?
9567 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9568 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9569 cat >conftest.
$ac_ext <<_ACEOF
9572 cat confdefs.h
>>conftest.
$ac_ext
9573 cat >>conftest.
$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575 #include <AppKit/AppKit.h>
9577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev/null && {
9591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9594 ac_header_preproc=yes
9596 $as_echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_header_preproc=no
9602 rm -f conftest.err conftest.$ac_ext
9603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9604 $as_echo "$ac_header_preproc" >&6; }
9606 # So? What about this header?
9607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9610 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9611 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9612 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9613 ac_header_preproc=yes
9616 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9617 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9619 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9620 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9621 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9622 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9623 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9624 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9625 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9626 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9627 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9631 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9632 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9633 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9634 $as_echo_n "(cached) " >&6
9636 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9639 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9642 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9645 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9646 files are missing or cannot be compiled." >&5
9647 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9648 files are missing or cannot be compiled.
" >&2;}
9649 { (exit 1); exit 1; }; }
9653 NS_HAVE_NSINTEGER=yes
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9660 #include <Foundation/NSObjCRuntime.h>
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9676 $as_echo "$ac_try_echo") >&5
9677 (eval "$ac_compile") 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9683 (exit $ac_status); } && {
9684 test -z "$ac_c_werror_flag" ||
9685 test ! -s conftest.err
9686 } && test -s conftest.$ac_objext; then
9687 ns_have_nsinteger=yes
9689 $as_echo "$as_me: failed program was
:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9692 ns_have_nsinteger=no
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696 if test $ns_have_nsinteger = no; then
9697 NS_HAVE_NSINTEGER=no
9700 if test "${HAVE_NS}" = yes; then
9701 window_system=nextstep
9703 # set up packaging dirs
9704 exec_prefix=${ns_appbindir}
9705 libexecdir=${ns_appbindir}/libexec
9706 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9707 prefix=${ns_appresdir}
9710 CFLAGS="$tmp_CFLAGS"
9711 CPPFLAGS="$tmp_CPPFLAGS"
9713 case "${window_system}" in
9717 case "${with_x_toolkit}" in
9718 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9719 motif ) USE_X_TOOLKIT=MOTIF ;;
9721 USE_X_TOOLKIT=none ;;
9722 no ) USE_X_TOOLKIT=none ;;
9723 * ) USE_X_TOOLKIT=maybe ;;
9733 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9734 # Extract the first word of "X
", so it can be a program name with args.
9735 set dummy X; ac_word=$2
9736 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
9737 $as_echo_n "checking
for $ac_word...
" >&6; }
9738 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9739 $as_echo_n "(cached
) " >&6
9741 if test -n "$HAVE_XSERVER"; then
9742 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9751 ac_cv_prog_HAVE_XSERVER="true
"
9752 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9759 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9762 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9763 if test -n "$HAVE_XSERVER"; then
9764 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9765 $as_echo "$HAVE_XSERVER" >&6; }
9767 { $as_echo "$as_me:$LINENO: result
: no
" >&5
9768 $as_echo "no
" >&6; }
9772 if test "$HAVE_XSERVER" = true ||
9773 test -n "$DISPLAY" ||
9774 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9775 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9776 were found. You should
install the relevant development files
for X
9777 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9778 sure you have development files
for image handling
, i.e.
9779 tiff
, gif
, jpeg
, png and xpm.
9780 If you are sure you want Emacs compiled without X window support
, pass
9783 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
9784 were found. You should
install the relevant development files
for X
9785 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9786 sure you have development files
for image handling
, i.e.
9787 tiff
, gif
, jpeg
, png and xpm.
9788 If you are sure you want Emacs compiled without X window support
, pass
9790 to configure.
" >&2;}
9791 { (exit 1); exit 1; }; }
9795 ### If we're using X11, we should use the X menu package.
9798 yes ) HAVE_MENUS=yes ;;
9801 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9802 # Assume not, until told otherwise.
9805 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9806 $as_echo_n "checking
for malloc_get_state...
" >&6; }
9807 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9808 $as_echo_n "(cached
) " >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818 #define malloc_get_state innocuous_malloc_get_state
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char malloc_get_state (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9826 # include <limits.h>
9828 # include <assert.h>
9831 #undef malloc_get_state
9833 /* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9839 char malloc_get_state ();
9840 /* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9850 return malloc_get_state ();
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9876 ac_cv_func_malloc_get_state=yes
9878 $as_echo "$as_me: failed program was
:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_func_malloc_get_state=no
9884 rm -rf conftest.dSYM
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9889 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9890 if test $ac_cv_func_malloc_get_state = yes; then
9896 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9897 $as_echo_n "checking
for malloc_set_state...
" >&6; }
9898 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9899 $as_echo_n "(cached
) " >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9909 #define malloc_set_state innocuous_malloc_set_state
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char malloc_set_state (); below.
9913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9914 <limits.h> exists even on freestanding compilers. */
9917 # include <limits.h>
9919 # include <assert.h>
9922 #undef malloc_set_state
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9930 char malloc_set_state ();
9931 /* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9941 return malloc_set_state ();
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (ac_try="$ac_link"
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9952 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9953 $as_echo "$ac_try_echo") >&5
9954 (eval "$ac_link") 2>conftest.er1
9956 grep -v '^ *+' conftest.er1 >conftest.err
9958 cat conftest.err >&5
9959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9960 (exit $ac_status); } && {
9961 test -z "$ac_c_werror_flag" ||
9962 test ! -s conftest.err
9963 } && test -s conftest$ac_exeext && {
9964 test "$cross_compiling" = yes ||
9965 $as_test_x conftest$ac_exeext
9967 ac_cv_func_malloc_set_state=yes
9969 $as_echo "$as_me: failed program was
:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 ac_cv_func_malloc_set_state=no
9975 rm -rf conftest.dSYM
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9980 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9981 if test $ac_cv_func_malloc_set_state = yes; then
9987 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9988 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
9989 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9990 $as_echo_n "(cached
) " >&6
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 extern void (* __after_morecore_hook)();
10002 __after_morecore_hook = 0
10007 rm -f conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext && {
10025 test "$cross_compiling" = yes ||
10026 $as_test_x conftest$ac_exeext
10028 emacs_cv_var___after_morecore_hook=yes
10030 $as_echo "$as_me: failed program was
:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 emacs_cv_var___after_morecore_hook=no
10036 rm -rf conftest.dSYM
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10040 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10041 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10042 if test $emacs_cv_var___after_morecore_hook = no; then
10045 if test "${system_malloc}" = "yes"; then
10047 GNU_MALLOC_reason="
10048 (The GNU allocators don
't work with this system configuration.)"
10050 if test "$doug_lea_malloc" = "yes" ; then
10051 if test "$GNU_MALLOC" = yes ; then
10052 GNU_MALLOC_reason="
10053 (Using Doug Lea's new malloc from the GNU C Library.
)"
10056 cat >>confdefs.h <<\_ACEOF
10057 #define DOUG_LEA_MALLOC 1
10062 if test x"${REL_ALLOC}" = x; then
10063 REL_ALLOC=${GNU_MALLOC}
10069 for ac_header in stdlib.h unistd.h
10071 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10073 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10074 $as_echo_n "checking
for $ac_header...
" >&6; }
10075 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10076 $as_echo_n "(cached
) " >&6
10078 ac_res=`eval 'as_val=${'$as_ac_Header'}
10079 $as_echo "$as_val"'`
10080 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10081 $as_echo "$ac_res" >&6; }
10083 # Is the header compilable?
10084 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10085 $as_echo_n "checking
$ac_header usability...
" >&6; }
10086 cat >conftest.$ac_ext <<_ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 $ac_includes_default
10093 #include <$ac_header>
10095 rm -f conftest.$ac_objext
10096 if { (ac_try="$ac_compile"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10101 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10102 $as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1 >conftest.err
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
10113 ac_header_compiler=yes
10115 $as_echo "$as_me: failed program was
:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_header_compiler=no
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10123 $as_echo "$ac_header_compiler" >&6; }
10125 # Is the header present?
10126 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10127 $as_echo_n "checking
$ac_header presence...
" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h. */
10134 #include <$ac_header>
10136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10142 $as_echo "$ac_try_echo") >&5
10143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10149 (exit $ac_status); } >/dev/null && {
10150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10153 ac_header_preproc=yes
10155 $as_echo "$as_me: failed program was
:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 ac_header_preproc=no
10161 rm -f conftest.err conftest.$ac_ext
10162 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10163 $as_echo "$ac_header_preproc" >&6; }
10165 # So? What about this header?
10166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10168 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10169 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10172 ac_header_preproc=yes
10175 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10176 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10178 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10179 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10180 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10181 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10182 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10185 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10186 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10190 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10191 $as_echo_n "checking
for $ac_header...
" >&6; }
10192 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10193 $as_echo_n "(cached
) " >&6
10195 eval "$as_ac_Header=\
$ac_header_preproc"
10197 ac_res=`eval 'as_val=${'$as_ac_Header'}
10198 $as_echo "$as_val"'`
10199 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10200 $as_echo "$ac_res" >&6; }
10203 if test `eval 'as_val=${'$as_ac_Header'}
10204 $as_echo "$as_val"'` = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10214 for ac_func in getpagesize
10216 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10217 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10218 $as_echo_n "checking
for $ac_func...
" >&6; }
10219 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10220 $as_echo_n "(cached
) " >&6
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230 #define $ac_func innocuous_$ac_func
10232 /* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char $ac_func (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10238 # include <limits.h>
10240 # include <assert.h>
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10252 /* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255 #if defined __stub_$ac_func || defined __stub___$ac_func
10262 return $ac_func ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (ac_try="$ac_link"
10269 case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext && {
10285 test "$cross_compiling" = yes ||
10286 $as_test_x conftest$ac_exeext
10288 eval "$as_ac_var=yes"
10290 $as_echo "$as_me: failed program was
:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10293 eval "$as_ac_var=no
"
10296 rm -rf conftest.dSYM
10297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298 conftest$ac_exeext conftest.$ac_ext
10300 ac_res=`eval 'as_val=${'$as_ac_var'}
10301 $as_echo "$as_val"'`
10302 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10303 $as_echo "$ac_res" >&6; }
10304 if test `eval 'as_val=${'$as_ac_var'}
10305 $as_echo "$as_val"'` = yes; then
10306 cat >>confdefs.h <<_ACEOF
10307 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10313 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10314 $as_echo_n "checking
for working mmap...
" >&6; }
10315 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10316 $as_echo_n "(cached
) " >&6
10318 if test "$cross_compiling" = yes; then
10319 ac_cv_func_mmap_fixed_mapped=no
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 /* malloc might have been renamed as rpl_malloc. */
10331 /* Thanks to Mike Haertel and Jim Avera for this test.
10332 Here is a matrix of mmap possibilities:
10333 mmap private not fixed
10334 mmap private fixed at somewhere currently unmapped
10335 mmap private fixed at somewhere already mapped
10336 mmap shared not fixed
10337 mmap shared fixed at somewhere currently unmapped
10338 mmap shared fixed at somewhere already mapped
10339 For private mappings, we should verify that changes cannot be read()
10340 back from the file, nor mmap's back from the file at a different
10341 address. (There have been systems where private was not correctly
10342 implemented like the infamous i386 svr4.0, and systems where the
10343 VM page cache was not coherent with the file system buffer cache
10344 like early versions of FreeBSD and possibly contemporary NetBSD.)
10345 For shared mappings, we should conversely verify that changes get
10346 propagated back to all the places they're supposed to be.
10348 Grep wants private fixed already mapped.
10349 The main things grep needs to know about mmap are:
10350 * does it exist and is it safe to write into the mmap'd area
10351 * how to use it (BSD variants) */
10354 #include <sys/mman.h>
10356 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10360 /* This mess was copied from the GNU getpagesize.h. */
10361 #ifndef HAVE_GETPAGESIZE
10362 /* Assume that all systems that can run configure have sys/param.h. */
10363 # ifndef HAVE_SYS_PARAM_H
10364 # define HAVE_SYS_PARAM_H 1
10367 # ifdef _SC_PAGESIZE
10368 # define getpagesize() sysconf(_SC_PAGESIZE)
10369 # else /* no _SC_PAGESIZE */
10370 # ifdef HAVE_SYS_PARAM_H
10371 # include <sys/param.h>
10372 # ifdef EXEC_PAGESIZE
10373 # define getpagesize() EXEC_PAGESIZE
10374 # else /* no EXEC_PAGESIZE */
10376 # define getpagesize() NBPG * CLSIZE
10379 # endif /* no CLSIZE */
10380 # else /* no NBPG */
10382 # define getpagesize() NBPC
10383 # else /* no NBPC */
10385 # define getpagesize() PAGESIZE
10386 # endif /* PAGESIZE */
10387 # endif /* no NBPC */
10388 # endif /* no NBPG */
10389 # endif /* no EXEC_PAGESIZE */
10390 # else /* no HAVE_SYS_PARAM_H */
10391 # define getpagesize() 8192 /* punt totally */
10392 # endif /* no HAVE_SYS_PARAM_H */
10393 # endif /* no _SC_PAGESIZE */
10395 #endif /* no HAVE_GETPAGESIZE */
10400 char *data, *data2, *data3;
10404 pagesize = getpagesize ();
10406 /* First, make a file with some known garbage in it. */
10407 data = (char *) malloc (pagesize);
10410 for (i = 0; i < pagesize; ++i)
10411 *(data + i) = rand ();
10413 fd = creat ("conftest.mmap
", 0600);
10416 if (write (fd, data, pagesize) != pagesize)
10420 /* Next, try to mmap the file at a fixed address which already has
10421 something else allocated at it. If we can, also make sure that
10422 we see the same garbage. */
10423 fd = open ("conftest.mmap
", O_RDWR);
10426 data2 = (char *) malloc (2 * pagesize);
10429 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10430 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10431 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10433 for (i = 0; i < pagesize; ++i)
10434 if (*(data + i) != *(data2 + i))
10437 /* Finally, make sure that changes to the mapped area do not
10438 percolate back to the file as seen by read(). (This is a bug on
10439 some variants of i386 svr4.0.) */
10440 for (i = 0; i < pagesize; ++i)
10441 *(data2 + i) = *(data2 + i) + 1;
10442 data3 = (char *) malloc (pagesize);
10445 if (read (fd, data3, pagesize) != pagesize)
10447 for (i = 0; i < pagesize; ++i)
10448 if (*(data + i) != *(data3 + i))
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10461 $as_echo "$ac_try_echo") >&5
10462 (eval "$ac_link") 2>&5
10464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_try") 2>&5
10474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_func_mmap_fixed_mapped=yes
10478 $as_echo "$as_me: program exited with status
$ac_status" >&5
10479 $as_echo "$as_me: failed program was
:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ( exit $ac_status )
10483 ac_cv_func_mmap_fixed_mapped=no
10485 rm -rf conftest.dSYM
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10491 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10492 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define HAVE_MMAP 1
10500 rm -f conftest.mmap
10502 if test $use_mmap_for_buffers = yes; then
10506 LIBS="$libsrc_libs $LIBS"
10509 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10510 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10511 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10512 $as_echo_n "(cached
) " >&6
10514 ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-ldnet $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10533 return dnet_ntoa ();
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10545 $as_echo "$ac_try_echo") >&5
10546 (eval "$ac_link") 2>conftest.er1
10548 grep -v '^ *+' conftest.er1 >conftest.err
10550 cat conftest.err >&5
10551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10552 (exit $ac_status); } && {
10553 test -z "$ac_c_werror_flag" ||
10554 test ! -s conftest.err
10555 } && test -s conftest$ac_exeext && {
10556 test "$cross_compiling" = yes ||
10557 $as_test_x conftest$ac_exeext
10559 ac_cv_lib_dnet_dnet_ntoa=yes
10561 $as_echo "$as_me: failed program was
:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 ac_cv_lib_dnet_dnet_ntoa=no
10567 rm -rf conftest.dSYM
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10573 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10574 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBDNET 1
10579 LIBS="-ldnet $LIBS"
10584 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10585 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10586 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10587 $as_echo_n "(cached
) " >&6
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-lXbsd $LIBS"
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_link") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest$ac_exeext && {
10625 test "$cross_compiling" = yes ||
10626 $as_test_x conftest$ac_exeext
10628 ac_cv_lib_Xbsd_main=yes
10630 $as_echo "$as_me: failed program was
:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10633 ac_cv_lib_Xbsd_main=no
10636 rm -rf conftest.dSYM
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10642 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10643 if test $ac_cv_lib_Xbsd_main = yes; then
10644 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10649 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10650 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10651 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10652 $as_echo_n "(cached
) " >&6
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lpthreads $LIBS"
10656 cat >conftest.$ac_ext <<_ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10673 return cma_open ();
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1 >conftest.err
10690 cat conftest.err >&5
10691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest$ac_exeext
10699 ac_cv_lib_pthreads_cma_open=yes
10701 $as_echo "$as_me: failed program was
:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_lib_pthreads_cma_open=no
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LIBS=$ac_check_lib_save_LIBS
10712 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10713 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10714 if test $ac_cv_lib_pthreads_cma_open = yes; then
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_LIBPTHREADS 1
10719 LIBS="-lpthreads $LIBS"
10727 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10728 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
10729 if test "${gdb_cv_bigtoc+set}" = set; then
10730 $as_echo_n "(cached
) " >&6
10734 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10735 *) gdb_cv_bigtoc=-bbigtoc ;;
10738 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10739 cat >conftest.$ac_ext <<_ACEOF
10742 cat confdefs.h >>conftest.$ac_ext
10743 cat >>conftest.$ac_ext <<_ACEOF
10744 /* end confdefs.h. */
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10777 $as_echo "$as_me: failed program was
:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10788 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10789 $as_echo "$gdb_cv_bigtoc" >&6; }
10793 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10794 # used for the tests that follow. We set them back to REAL_CFLAGS and
10795 # REAL_CPPFLAGS later on.
10797 REAL_CPPFLAGS="$CPPFLAGS"
10799 if test "${HAVE_X11}" = "yes"; then
10800 DEFS="$C_SWITCH_X_SITE $DEFS"
10801 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10803 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10804 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10806 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10807 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10808 # but it's more convenient here to set LD_RUN_PATH
10809 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10810 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10811 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10815 if test "${opsys}" = "gnu-linux
"; then
10816 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10817 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10828 XOpenDisplay ("foo
");
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841 (eval "$ac_link") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest$ac_exeext && {
10851 test "$cross_compiling" = yes ||
10852 $as_test_x conftest$ac_exeext
10854 xlinux_first_failure=no
10856 $as_echo "$as_me: failed program was
:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 xlinux_first_failure=yes
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10865 if test "${xlinux_first_failure}" = "yes"; then
10866 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10867 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10868 OLD_CPPFLAGS="$CPPFLAGS"
10870 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10871 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10872 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10873 LIBS="$LIBS -b i486-linuxaout
"
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10884 XOpenDisplay ("foo
");
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10910 xlinux_second_failure=no
10912 $as_echo "$as_me: failed program was
:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 xlinux_second_failure=yes
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 if test "${xlinux_second_failure}" = "yes"; then
10922 # If we get the same failure with -b, there is no use adding -b.
10923 # So take it out. This plays safe.
10924 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10925 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10926 CPPFLAGS="$OLD_CPPFLAGS"
10928 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10929 $as_echo "no
" >&6; }
10931 { $as_echo "$as_me:$LINENO: result
: yes" >&5
10932 $as_echo "yes" >&6; }
10935 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10936 $as_echo "no
" >&6; }
10940 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10941 # header files included from there.
10942 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
10943 $as_echo_n "checking
for Xkb...
" >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10951 #include <X11/XKBlib.h>
10955 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10967 $as_echo "$ac_try_echo") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext && {
10978 test "$cross_compiling" = yes ||
10979 $as_test_x conftest$ac_exeext
10983 $as_echo "$as_me: failed program was
:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10989 rm -rf conftest.dSYM
10990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10991 conftest$ac_exeext conftest.$ac_ext
10992 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10993 $as_echo "$emacs_xkb" >&6; }
10994 if test $emacs_xkb = yes; then
10996 cat >>confdefs.h <<\_ACEOF
10997 #define HAVE_XKBGETKEYBOARD 1
11006 for ac_func in XrmSetDatabase XScreenResourceString \
11007 XScreenNumberOfScreen XSetWMProtocols
11009 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11010 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11011 $as_echo_n "checking
for $ac_func...
" >&6; }
11012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11013 $as_echo_n "(cached
) " >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023 #define $ac_func innocuous_$ac_func
11025 /* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char $ac_func (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
11031 # include <limits.h>
11033 # include <assert.h>
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11045 /* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048 #if defined __stub_$ac_func || defined __stub___$ac_func
11055 return $ac_func ();
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11081 eval "$as_ac_var=yes"
11083 $as_echo "$as_me: failed program was
:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no
"
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11093 ac_res=`eval 'as_val=${'$as_ac_var'}
11094 $as_echo "$as_val"'`
11095 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11096 $as_echo "$ac_res" >&6; }
11097 if test `eval 'as_val=${'$as_ac_var'}
11098 $as_echo "$as_val"'` = yes; then
11099 cat >>confdefs.h <<_ACEOF
11100 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11108 if test "${window_system}" = "x11
"; then
11109 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11110 $as_echo_n "checking X11 version
6...
" >&6; }
11111 if test "${emacs_cv_x11_version_6+set}" = set; then
11112 $as_echo_n "(cached
) " >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 #include <X11/Xlib.h>
11124 #if XlibSpecificationRelease < 6
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11139 $as_echo "$ac_try_echo") >&5
11140 (eval "$ac_link") 2>conftest.er1
11142 grep -v '^ *+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest$ac_exeext && {
11150 test "$cross_compiling" = yes ||
11151 $as_test_x conftest$ac_exeext
11153 emacs_cv_x11_version_6=yes
11155 $as_echo "$as_me: failed program was
:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 emacs_cv_x11_version_6=no
11161 rm -rf conftest.dSYM
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163 conftest$ac_exeext conftest.$ac_ext
11166 if test $emacs_cv_x11_version_6 = yes; then
11167 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11168 $as_echo "6 or newer
" >&6; }
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_X11R6 1
11175 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11176 $as_echo "before
6" >&6; }
11181 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11183 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11184 if test "${with_rsvg}" != "no
"; then
11185 RSVG_REQUIRED=2.11.0
11186 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11191 # Extract the first word of "pkg-config
", so it can be a program name with args.
11192 set dummy pkg-config; ac_word=$2
11193 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11194 $as_echo_n "checking
for $ac_word...
" >&6; }
11195 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11196 $as_echo_n "(cached
) " >&6
11198 case $PKG_CONFIG in
11200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11211 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11223 if test -n "$PKG_CONFIG"; then
11224 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11225 $as_echo "$PKG_CONFIG" >&6; }
11227 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11228 $as_echo "no
" >&6; }
11233 if test "$PKG_CONFIG" = "no
" ; then
11236 PKG_CONFIG_MIN_VERSION=0.9.0
11237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11238 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11239 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11241 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11242 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11243 $as_echo "yes" >&6; }
11246 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11247 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11248 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11249 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11250 $as_echo "$RSVG_CFLAGS" >&6; }
11252 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11253 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11254 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11255 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11256 $as_echo "$RSVG_LIBS" >&6; }
11258 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11259 $as_echo "no
" >&6; }
11262 ## If we have a custom action on failure, don't print errors, but
11263 ## do set a variable so people can do so.
11264 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11271 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11272 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11276 if test $succeeded = yes; then
11285 if test ".
${RSVG_CFLAGS}" != ".
"; then
11288 cat >>confdefs.h <<\_ACEOF
11289 #define HAVE_RSVG 1
11292 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11293 LIBS="$RSVG_LIBS $LIBS"
11300 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11303 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11308 # Extract the first word of "pkg-config
", so it can be a program name with args.
11309 set dummy pkg-config; ac_word=$2
11310 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11311 $as_echo_n "checking
for $ac_word...
" >&6; }
11312 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11313 $as_echo_n "(cached
) " >&6
11315 case $PKG_CONFIG in
11317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11328 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11340 if test -n "$PKG_CONFIG"; then
11341 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11342 $as_echo "$PKG_CONFIG" >&6; }
11344 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11345 $as_echo "no
" >&6; }
11350 if test "$PKG_CONFIG" = "no
" ; then
11353 PKG_CONFIG_MIN_VERSION=0.9.0
11354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11355 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11356 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11358 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11359 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11360 $as_echo "yes" >&6; }
11363 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11364 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11365 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11366 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11367 $as_echo "$GTK_CFLAGS" >&6; }
11369 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11370 $as_echo_n "checking GTK_LIBS...
" >&6; }
11371 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11372 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11373 $as_echo "$GTK_LIBS" >&6; }
11375 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11376 $as_echo "no
" >&6; }
11379 ## If we have a custom action on failure, don't print errors, but
11380 ## do set a variable so people can do so.
11381 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11388 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11389 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11393 if test $succeeded = yes; then
11399 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11400 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11401 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11402 { (exit 1); exit 1; }; }
11407 if test x"$pkg_check_gtk" = xyes; then
11411 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11412 CFLAGS="$CFLAGS $GTK_CFLAGS"
11413 LIBS="$GTK_LIBS $LIBS"
11416 for ac_func in gtk_main
11418 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11419 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11420 $as_echo_n "checking
for $ac_func...
" >&6; }
11421 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11422 $as_echo_n "(cached
) " >&6
11424 cat >conftest.$ac_ext <<_ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11432 #define $ac_func innocuous_$ac_func
11434 /* System header to define __stub macros and hopefully few prototypes,
11435 which can conflict with char $ac_func (); below.
11436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11437 <limits.h> exists even on freestanding compilers. */
11440 # include <limits.h>
11442 # include <assert.h>
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11454 /* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457 #if defined __stub_$ac_func || defined __stub___$ac_func
11464 return $ac_func ();
11469 rm -f conftest.$ac_objext conftest$ac_exeext
11470 if { (ac_try="$ac_link"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_link") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest$ac_exeext && {
11487 test "$cross_compiling" = yes ||
11488 $as_test_x conftest$ac_exeext
11490 eval "$as_ac_var=yes"
11492 $as_echo "$as_me: failed program was
:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11495 eval "$as_ac_var=no
"
11498 rm -rf conftest.dSYM
11499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11500 conftest$ac_exeext conftest.$ac_ext
11502 ac_res=`eval 'as_val=${'$as_ac_var'}
11503 $as_echo "$as_val"'`
11504 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11505 $as_echo "$ac_res" >&6; }
11506 if test `eval 'as_val=${'$as_ac_var'}
11507 $as_echo "$as_val"'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11515 if test "${GTK_COMPILES}" != "yes"; then
11516 if test "$USE_X_TOOLKIT" != "maybe
"; then
11517 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11518 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11519 { (exit 1); exit 1; }; };
11524 cat >>confdefs.h <<\_ACEOF
11529 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11532 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11533 closing open displays. This is no problem
if you just use
11534 one display
, but
if you use
more than one and close one of them
11535 Emacs may crash.
" >&5
11536 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11537 closing open displays. This is no problem
if you just use
11538 one display
, but
if you use
more than one and close one of them
11539 Emacs may crash.
" >&2;}
11547 if test "${HAVE_GTK}" = "yes"; then
11549 if test "$with_toolkit_scroll_bars" != no; then
11550 with_toolkit_scroll_bars=yes
11553 HAVE_GTK_MULTIDISPLAY=no
11555 for ac_func in gdk_display_open
11557 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11558 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11559 $as_echo_n "checking
for $ac_func...
" >&6; }
11560 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11561 $as_echo_n "(cached
) " >&6
11563 cat >conftest.$ac_ext <<_ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11571 #define $ac_func innocuous_$ac_func
11573 /* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func (); below.
11575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576 <limits.h> exists even on freestanding compilers. */
11579 # include <limits.h>
11581 # include <assert.h>
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11593 /* The GNU C library defines this for functions which it implements
11594 to always fail with ENOSYS. Some functions are actually named
11595 something starting with __ and the normal name is an alias. */
11596 #if defined __stub_$ac_func || defined __stub___$ac_func
11603 return $ac_func ();
11608 rm -f conftest.$ac_objext conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11615 $as_echo "$ac_try_echo") >&5
11616 (eval "$ac_link") 2>conftest.er1
11618 grep -v '^ *+' conftest.er1 >conftest.err
11620 cat conftest.err >&5
11621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11622 (exit $ac_status); } && {
11623 test -z "$ac_c_werror_flag" ||
11624 test ! -s conftest.err
11625 } && test -s conftest$ac_exeext && {
11626 test "$cross_compiling" = yes ||
11627 $as_test_x conftest$ac_exeext
11629 eval "$as_ac_var=yes"
11631 $as_echo "$as_me: failed program was
:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 eval "$as_ac_var=no
"
11637 rm -rf conftest.dSYM
11638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11639 conftest$ac_exeext conftest.$ac_ext
11641 ac_res=`eval 'as_val=${'$as_ac_var'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11645 if test `eval 'as_val=${'$as_ac_var'}
11646 $as_echo "$as_val"'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11650 HAVE_GTK_MULTIDISPLAY=yes
11654 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_GTK_MULTIDISPLAY 1
11662 HAVE_GTK_FILE_SELECTION=no
11663 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11664 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11665 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11666 $as_echo_n "(cached
) " >&6
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 $ac_includes_default
11675 #include <gtk/gtk.h>
11680 #ifndef GTK_TYPE_FILE_SELECTION
11681 (void) GTK_TYPE_FILE_SELECTION;
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_compile") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest.$ac_objext; then
11706 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11708 $as_echo "$as_me: failed program was
:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11717 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11718 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11719 HAVE_GTK_FILE_SELECTION=yes
11721 HAVE_GTK_FILE_SELECTION=no
11724 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11726 for ac_func in gtk_file_selection_new
11728 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11730 $as_echo_n "checking
for $ac_func...
" >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached
) " >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11750 # include <limits.h>
11752 # include <assert.h>
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11774 return $ac_func ();
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_link") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11800 eval "$as_ac_var=yes"
11802 $as_echo "$as_me: failed program was
:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 eval "$as_ac_var=no
"
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11821 HAVE_GTK_FILE_SELECTION=yes
11823 HAVE_GTK_FILE_SELECTION=no
11829 HAVE_GTK_FILE_CHOOSER=no
11830 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11831 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
11832 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11833 $as_echo_n "(cached
) " >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <gtk/gtk.h>
11847 #ifndef GTK_TYPE_FILE_CHOOSER
11848 (void) GTK_TYPE_FILE_CHOOSER;
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11875 $as_echo "$as_me: failed program was
:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11884 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11885 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11886 HAVE_GTK_FILE_CHOOSER=yes
11888 HAVE_GTK_FILE_CHOOSER=no
11891 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11893 for ac_func in gtk_file_chooser_dialog_new
11895 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11897 $as_echo_n "checking
for $ac_func...
" >&6; }
11898 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached
) " >&6
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11917 # include <limits.h>
11919 # include <assert.h>
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 return $ac_func ();
11946 rm -f conftest.$ac_objext conftest$ac_exeext
11947 if { (ac_try="$ac_link"
11948 case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11967 eval "$as_ac_var=yes"
11969 $as_echo "$as_me: failed program was
:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 eval "$as_ac_var=no
"
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 if test `eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'` = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11988 HAVE_GTK_FILE_CHOOSER=yes
11990 HAVE_GTK_FILE_CHOOSER=no
11996 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11997 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_GTK_FILE_BOTH 1
12005 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12006 HAVE_GTK_AND_PTHREAD=no
12008 for ac_header in pthread.h
12010 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12012 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12013 $as_echo_n "checking
for $ac_header...
" >&6; }
12014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12015 $as_echo_n "(cached
) " >&6
12017 ac_res=`eval 'as_val=${'$as_ac_Header'}
12018 $as_echo "$as_val"'`
12019 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12020 $as_echo "$ac_res" >&6; }
12022 # Is the header compilable?
12023 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12024 $as_echo_n "checking
$ac_header usability...
" >&6; }
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 #include <$ac_header>
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12041 $as_echo "$ac_try_echo") >&5
12042 (eval "$ac_compile") 2>conftest.er1
12044 grep -v '^ *+' conftest.er1 >conftest.err
12046 cat conftest.err >&5
12047 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest.$ac_objext; then
12052 ac_header_compiler=yes
12054 $as_echo "$as_me: failed program was
:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_header_compiler=no
12060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12062 $as_echo "$ac_header_compiler" >&6; }
12064 # Is the header present?
12065 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12066 $as_echo_n "checking
$ac_header presence...
" >&6; }
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <$ac_header>
12075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12088 (exit $ac_status); } >/dev/null && {
12089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12092 ac_header_preproc=yes
12094 $as_echo "$as_me: failed program was
:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_header_preproc=no
12100 rm -f conftest.err conftest.$ac_ext
12101 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12102 $as_echo "$ac_header_preproc" >&6; }
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12108 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12111 ac_header_preproc=yes
12114 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12115 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12117 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12119 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12120 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12121 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12122 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12124 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12125 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12129 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12130 $as_echo_n "checking
for $ac_header...
" >&6; }
12131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12132 $as_echo_n "(cached
) " >&6
12134 eval "$as_ac_Header=\
$ac_header_preproc"
12136 ac_res=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12139 $as_echo "$ac_res" >&6; }
12142 if test `eval 'as_val=${'$as_ac_Header'}
12143 $as_echo "$as_val"'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12152 if test "$ac_cv_header_pthread_h"; then
12153 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12154 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12155 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12156 $as_echo_n "(cached
) " >&6
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lpthread $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12173 char pthread_self ();
12177 return pthread_self ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12203 ac_cv_lib_pthread_pthread_self=yes
12205 $as_echo "$as_me: failed program was
:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_cv_lib_pthread_pthread_self=no
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12217 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12218 if test $ac_cv_lib_pthread_pthread_self = yes; then
12219 HAVE_GTK_AND_PTHREAD=yes
12223 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12224 case "${canonical}" in
12226 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_GTK_AND_PTHREAD 1
12238 if test "${with_dbus}" = "yes"; then
12242 # Extract the first word of "pkg-config
", so it can be a program name with args.
12243 set dummy pkg-config; ac_word=$2
12244 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12245 $as_echo_n "checking
for $ac_word...
" >&6; }
12246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12247 $as_echo_n "(cached
) " >&6
12249 case $PKG_CONFIG in
12251 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12262 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12273 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12274 if test -n "$PKG_CONFIG"; then
12275 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12276 $as_echo "$PKG_CONFIG" >&6; }
12278 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12279 $as_echo "no
" >&6; }
12284 if test "$PKG_CONFIG" = "no
" ; then
12287 PKG_CONFIG_MIN_VERSION=0.9.0
12288 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12289 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12290 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12292 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12293 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12294 $as_echo "yes" >&6; }
12297 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12298 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12299 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12300 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12301 $as_echo "$DBUS_CFLAGS" >&6; }
12303 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12304 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12305 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12306 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12307 $as_echo "$DBUS_LIBS" >&6; }
12309 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12310 $as_echo "no
" >&6; }
12313 ## If we have a custom action on failure, don't print errors, but
12314 ## do set a variable so people can do so.
12315 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12322 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12323 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12327 if test $succeeded = yes; then
12333 if test "$HAVE_DBUS" = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_DBUS 1
12343 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12344 if test "$with_xaw3d" != no; then
12345 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12346 $as_echo_n "checking
for xaw3d...
" >&6; }
12347 if test "${emacs_cv_xaw3d+set}" = set; then
12348 $as_echo_n "(cached
) " >&6
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 #include <X11/Intrinsic.h>
12358 #include <X11/Xaw3d/Simple.h>
12367 rm -f conftest.$ac_objext conftest$ac_exeext
12368 if { (ac_try="$ac_link"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12373 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12374 $as_echo "$ac_try_echo") >&5
12375 (eval "$ac_link") 2>conftest.er1
12377 grep -v '^ *+' conftest.er1 >conftest.err
12379 cat conftest.err >&5
12380 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12381 (exit $ac_status); } && {
12382 test -z "$ac_c_werror_flag" ||
12383 test ! -s conftest.err
12384 } && test -s conftest$ac_exeext && {
12385 test "$cross_compiling" = yes ||
12386 $as_test_x conftest$ac_exeext
12390 $as_echo "$as_me: failed program was
:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12396 rm -rf conftest.dSYM
12397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12398 conftest$ac_exeext conftest.$ac_ext
12404 if test $emacs_cv_xaw3d = yes; then
12405 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12406 $as_echo "yes; using Lucid toolkit
" >&6; }
12407 USE_X_TOOLKIT=LUCID
12410 cat >>confdefs.h <<\_ACEOF
12411 #define HAVE_XAW3D 1
12415 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12416 $as_echo "no
" >&6; }
12417 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
12418 $as_echo_n "checking
for libXaw...
" >&6; }
12419 if test "${emacs_cv_xaw+set}" = set; then
12420 $as_echo_n "(cached
) " >&6
12422 cat >conftest.$ac_ext <<_ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 #include <X11/Intrinsic.h>
12430 #include <X11/Xaw/Simple.h>
12439 rm -f conftest.$ac_objext conftest$ac_exeext
12440 if { (ac_try="$ac_link"
12441 case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12446 $as_echo "$ac_try_echo") >&5
12447 (eval "$ac_link") 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_c_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest$ac_exeext && {
12457 test "$cross_compiling" = yes ||
12458 $as_test_x conftest$ac_exeext
12462 $as_echo "$as_me: failed program was
:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12468 rm -rf conftest.dSYM
12469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12470 conftest$ac_exeext conftest.$ac_ext
12473 if test $emacs_cv_xaw = yes; then
12474 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12475 $as_echo "yes; using Lucid toolkit
" >&6; }
12476 USE_X_TOOLKIT=LUCID
12477 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12478 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12479 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12480 { (exit 1); exit 1; }; }
12482 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12483 $as_echo "no
; do not use toolkit by default
" >&6; }
12489 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12491 if test "${USE_X_TOOLKIT}" != "none
"; then
12492 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12493 $as_echo_n "checking X11 toolkit version...
" >&6; }
12494 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12495 $as_echo_n "(cached
) " >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 #include <X11/Intrinsic.h>
12507 #if XtSpecificationRelease < 6
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (ac_try="$ac_link"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12522 $as_echo "$ac_try_echo") >&5
12523 (eval "$ac_link") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest$ac_exeext && {
12533 test "$cross_compiling" = yes ||
12534 $as_test_x conftest$ac_exeext
12536 emacs_cv_x11_toolkit_version_6=yes
12538 $as_echo "$as_me: failed program was
:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 emacs_cv_x11_toolkit_version_6=no
12544 rm -rf conftest.dSYM
12545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12546 conftest$ac_exeext conftest.$ac_ext
12549 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12550 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12551 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12552 $as_echo "6 or newer
" >&6; }
12554 cat >>confdefs.h <<\_ACEOF
12555 #define HAVE_X11XTR6 1
12559 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
12560 $as_echo "before
6" >&6; }
12564 if test x$HAVE_X11XTR6 = xyes; then
12565 LIBS="-lXt -lSM -lICE $LIBS"
12570 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12571 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
12572 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12573 $as_echo_n "(cached
) " >&6
12575 ac_check_lib_save_LIBS=$LIBS
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12590 char XmuConvertStandardSelection ();
12594 return XmuConvertStandardSelection ();
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12606 $as_echo "$ac_try_echo") >&5
12607 (eval "$ac_link") 2>conftest.er1
12609 grep -v '^ *+' conftest.er1 >conftest.err
12611 cat conftest.err >&5
12612 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12613 (exit $ac_status); } && {
12614 test -z "$ac_c_werror_flag" ||
12615 test ! -s conftest.err
12616 } && test -s conftest$ac_exeext && {
12617 test "$cross_compiling" = yes ||
12618 $as_test_x conftest$ac_exeext
12620 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12622 $as_echo "$as_me: failed program was
:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12628 rm -rf conftest.dSYM
12629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12633 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12634 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12635 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12636 cat >>confdefs.h <<_ACEOF
12637 #define HAVE_LIBXMU 1
12644 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12647 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12648 if test "${HAVE_X11}" = "yes"; then
12649 if test "${USE_X_TOOLKIT}" != "none
"; then
12651 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12652 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
12653 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12654 $as_echo_n "(cached
) " >&6
12656 ac_check_lib_save_LIBS=$LIBS
12657 LIBS="-lXext $LIBS"
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12671 char XShapeQueryExtension ();
12675 return XShapeQueryExtension ();
12680 rm -f conftest.$ac_objext conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12687 $as_echo "$ac_try_echo") >&5
12688 (eval "$ac_link") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest$ac_exeext && {
12698 test "$cross_compiling" = yes ||
12699 $as_test_x conftest$ac_exeext
12701 ac_cv_lib_Xext_XShapeQueryExtension=yes
12703 $as_echo "$as_me: failed program was
:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_cv_lib_Xext_XShapeQueryExtension=no
12709 rm -rf conftest.dSYM
12710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12715 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12716 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define HAVE_LIBXEXT 1
12721 LIBS="-lXext $LIBS"
12728 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12729 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12730 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
12731 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12732 $as_echo_n "(cached
) " >&6
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12744 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12747 Motif version prior to 2.1.
12753 rm -f conftest.$ac_objext
12754 if { (ac_try="$ac_compile"
12755 case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12760 $as_echo "$ac_try_echo") >&5
12761 (eval "$ac_compile") 2>conftest.er1
12763 grep -v '^ *+' conftest.er1 >conftest.err
12765 cat conftest.err >&5
12766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest.$ac_objext; then
12771 emacs_cv_motif_version_2_1=yes
12773 $as_echo "$as_me: failed program was
:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12776 emacs_cv_motif_version_2_1=no
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12782 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12783 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12784 if test $emacs_cv_motif_version_2_1 = yes; then
12787 cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_MOTIF_2_1 1
12791 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12792 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
12793 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12794 $as_echo_n "(cached
) " >&6
12796 ac_check_lib_save_LIBS=$LIBS
12798 cat >conftest.$ac_ext <<_ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12811 char XpCreateContext ();
12815 return XpCreateContext ();
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12826 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>conftest.er1
12830 grep -v '^ *+' conftest.er1 >conftest.err
12832 cat conftest.err >&5
12833 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12834 (exit $ac_status); } && {
12835 test -z "$ac_c_werror_flag" ||
12836 test ! -s conftest.err
12837 } && test -s conftest$ac_exeext && {
12838 test "$cross_compiling" = yes ||
12839 $as_test_x conftest$ac_exeext
12841 ac_cv_lib_Xp_XpCreateContext=yes
12843 $as_echo "$as_me: failed program was
:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12846 ac_cv_lib_Xp_XpCreateContext=no
12849 rm -rf conftest.dSYM
12850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12851 conftest$ac_exeext conftest.$ac_ext
12852 LIBS=$ac_check_lib_save_LIBS
12854 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12855 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12856 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12860 if test ${HAVE_LIBXP} = yes; then
12862 cat >>confdefs.h <<\_ACEOF
12863 #define HAVE_LIBXP 1
12868 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12869 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
12870 if test "${emacs_cv_lesstif+set}" = set; then
12871 $as_echo_n "(cached
) " >&6
12873 # We put this in CFLAGS temporarily to precede other -I options
12874 # that might be in CFLAGS temporarily.
12875 # We put this in CPPFLAGS where it precedes the other -I options.
12876 OLD_CPPFLAGS=$CPPFLAGS
12878 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12879 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12895 rm -f conftest.$ac_objext
12896 if { (ac_try="$ac_compile"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12902 $as_echo "$ac_try_echo") >&5
12903 (eval "$ac_compile") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest.$ac_objext; then
12913 emacs_cv_lesstif=yes
12915 $as_echo "$as_me: failed program was
:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 emacs_cv_lesstif=no
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12924 $as_echo "$emacs_cv_lesstif" >&6; }
12925 if test $emacs_cv_lesstif = yes; then
12926 # Make sure this -I option remains in CPPFLAGS after it is set
12927 # back to REAL_CPPFLAGS.
12928 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12929 # have those other -I options anyway. Ultimately, having this
12930 # directory ultimately in CPPFLAGS will be enough.
12931 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12932 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12935 CPPFLAGS=$OLD_CPPFLAGS
12942 USE_TOOLKIT_SCROLL_BARS=no
12943 if test "${with_toolkit_scroll_bars}" != "no
"; then
12944 if test "${USE_X_TOOLKIT}" != "none
"; then
12945 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12946 cat >>confdefs.h <<\_ACEOF
12947 #define USE_TOOLKIT_SCROLL_BARS 1
12951 USE_TOOLKIT_SCROLL_BARS=yes
12952 elif test "${HAVE_XAW3D}" = "yes"; then
12953 cat >>confdefs.h <<\_ACEOF
12954 #define USE_TOOLKIT_SCROLL_BARS 1
12957 USE_TOOLKIT_SCROLL_BARS=yes
12959 elif test "${HAVE_GTK}" = "yes"; then
12960 cat >>confdefs.h <<\_ACEOF
12961 #define USE_TOOLKIT_SCROLL_BARS 1
12964 USE_TOOLKIT_SCROLL_BARS=yes
12965 elif test "${HAVE_NS}" = "yes"; then
12966 cat >>confdefs.h <<\_ACEOF
12967 #define USE_TOOLKIT_SCROLL_BARS 1
12970 USE_TOOLKIT_SCROLL_BARS=yes
12974 cat >conftest.$ac_ext <<_ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12981 #include <X11/Xlib.h>
12982 #include <X11/Xresource.h>
12991 rm -f conftest.$ac_objext
12992 if { (ac_try="$ac_compile"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_compile") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest.$ac_objext; then
13011 cat >>confdefs.h <<\_ACEOF
13016 $as_echo "$as_me: failed program was
:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 if test "${with_xim}" != "no
"; then
13027 cat >>confdefs.h <<\_ACEOF
13034 if test "${HAVE_XIM}" != "no
"; then
13035 late_CFLAGS=$CFLAGS
13036 if test "$GCC" = yes; then
13037 CFLAGS="$CFLAGS --pedantic-errors"
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 #include <X11/Xlib.h>
13047 #include <X11/Xresource.h>
13056 XPointer *client_data;
13058 /* If we're not using GCC, it's probably not XFree86, and this is
13059 probably right, but we can't use something like --pedantic-errors. */
13060 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13061 char*, XIMProc, XPointer*);
13063 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13069 rm -f conftest.$ac_objext
13070 if { (ac_try="$ac_compile"
13071 case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13076 $as_echo "$ac_try_echo") >&5
13077 (eval "$ac_compile") 2>conftest.er1
13079 grep -v '^ *+' conftest.er1 >conftest.err
13081 cat conftest.err >&5
13082 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13083 (exit $ac_status); } && {
13084 test -z "$ac_c_werror_flag" ||
13085 test ! -s conftest.err
13086 } && test -s conftest.$ac_objext; then
13087 emacs_cv_arg6_star=yes
13089 $as_echo "$as_me: failed program was
:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13097 if test "$emacs_cv_arg6_star" = yes; then
13098 cat >>confdefs.h <<\_ACEOF
13099 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13103 cat >>confdefs.h <<\_ACEOF
13104 #define XRegisterIMInstantiateCallback_arg6 XPointer
13108 CFLAGS=$late_CFLAGS
13111 ### Start of font-backend (under any platform) section.
13112 # (nothing here yet -- this is a placeholder)
13113 ### End of font-backend (under any platform) section.
13115 ### Start of font-backend (under X11) section.
13116 if test "${HAVE_X11}" = "yes"; then
13120 # Extract the first word of "pkg-config
", so it can be a program name with args.
13121 set dummy pkg-config; ac_word=$2
13122 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13123 $as_echo_n "checking
for $ac_word...
" >&6; }
13124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13125 $as_echo_n "(cached
) " >&6
13127 case $PKG_CONFIG in
13129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $PATH
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13140 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13152 if test -n "$PKG_CONFIG"; then
13153 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13154 $as_echo "$PKG_CONFIG" >&6; }
13156 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13157 $as_echo "no
" >&6; }
13162 if test "$PKG_CONFIG" = "no
" ; then
13165 PKG_CONFIG_MIN_VERSION=0.9.0
13166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13167 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13168 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13170 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13171 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13172 $as_echo "yes" >&6; }
13175 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13176 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13177 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13178 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13179 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13181 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13182 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13183 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13184 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13185 $as_echo "$FONTCONFIG_LIBS" >&6; }
13187 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13188 $as_echo "no
" >&6; }
13189 FONTCONFIG_CFLAGS=""
13191 ## If we have a custom action on failure, don't print errors, but
13192 ## do set a variable so people can do so.
13193 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13200 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13201 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13205 if test $succeeded = yes; then
13212 ## Use -lXft if available, unless `--with-xft=no'.
13214 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13217 if test "x
${with_xft}" != "xno
"; then
13222 # Extract the first word of "pkg-config
", so it can be a program name with args.
13223 set dummy pkg-config; ac_word=$2
13224 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 $as_echo_n "(cached
) " >&6
13229 case $PKG_CONFIG in
13231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13242 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13253 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13256 $as_echo "$PKG_CONFIG" >&6; }
13258 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13259 $as_echo "no
" >&6; }
13264 if test "$PKG_CONFIG" = "no
" ; then
13267 PKG_CONFIG_MIN_VERSION=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13270 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13272 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13273 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13274 $as_echo "yes" >&6; }
13277 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13278 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13279 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13280 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13281 $as_echo "$XFT_CFLAGS" >&6; }
13283 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13284 $as_echo_n "checking XFT_LIBS...
" >&6; }
13285 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13286 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13287 $as_echo "$XFT_LIBS" >&6; }
13289 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13290 $as_echo "no
" >&6; }
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13302 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13303 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13307 if test $succeeded = yes; then
13313 if test "$HAVE_XFT" != no; then
13314 OLD_CPPFLAGS="$CPPFLAGS"
13315 OLD_CFLAGS="$CFLAGS"
13317 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13318 CFLAGS="$CFLAGS $XFT_CFLAGS"
13319 LIBS="$XFT_LIBS $LIBS"
13320 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13321 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13322 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13323 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13324 $as_echo_n "(cached
) " >&6
13326 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13327 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13329 # Is the header compilable?
13330 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
13331 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13338 $ac_includes_default
13339 #include <X11/Xft/Xft.h>
13341 rm -f conftest.$ac_objext
13342 if { (ac_try="$ac_compile"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13347 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349 (eval "$ac_compile") 2>conftest.er1
13351 grep -v '^ *+' conftest.er1 >conftest.err
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest.$ac_objext; then
13359 ac_header_compiler=yes
13361 $as_echo "$as_me: failed program was
:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 ac_header_compiler=no
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13369 $as_echo "$ac_header_compiler" >&6; }
13371 # Is the header present?
13372 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13373 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
13374 cat >conftest.$ac_ext <<_ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380 #include <X11/Xft/Xft.h>
13382 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13383 case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13388 $as_echo "$ac_try_echo") >&5
13389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13391 grep -v '^ *+' conftest.er1 >conftest.err
13393 cat conftest.err >&5
13394 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13395 (exit $ac_status); } >/dev/null && {
13396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13399 ac_header_preproc=yes
13401 $as_echo "$as_me: failed program was
:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_header_preproc=no
13407 rm -f conftest.err conftest.$ac_ext
13408 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13409 $as_echo "$ac_header_preproc" >&6; }
13411 # So? What about this header?
13412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13414 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13415 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13416 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13417 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13418 ac_header_preproc=yes
13421 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13422 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13424 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13426 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13427 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13428 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13429 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13430 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13431 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13432 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13436 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13437 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
13438 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13439 $as_echo_n "(cached
) " >&6
13441 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13443 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13444 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13447 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13448 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13449 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
13450 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13451 $as_echo_n "(cached
) " >&6
13453 ac_check_lib_save_LIBS=$LIBS
13454 LIBS="-lXft $XFT_LIBS $LIBS"
13455 cat >conftest.$ac_ext <<_ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h. */
13462 /* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13468 char XftFontOpen ();
13472 return XftFontOpen ();
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485 (eval "$ac_link") 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest$ac_exeext && {
13495 test "$cross_compiling" = yes ||
13496 $as_test_x conftest$ac_exeext
13498 ac_cv_lib_Xft_XftFontOpen=yes
13500 $as_echo "$as_me: failed program was
:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_cv_lib_Xft_XftFontOpen=no
13506 rm -rf conftest.dSYM
13507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13512 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13513 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13521 if test "${HAVE_XFT}" = "yes"; then
13523 cat >>confdefs.h <<\_ACEOF
13528 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13530 CPPFLAGS="$OLD_CPPFLAGS"
13531 CFLAGS="$OLD_CFLAGS"
13533 fi # "${HAVE_XFT}" = "yes"
13534 fi # "$HAVE_XFT" != no
13535 fi # "x
${with_xft}" != "xno
"
13537 if test "$HAVE_XFT" != "yes"; then
13543 ## We used to allow building with FreeType and without Xft.
13544 ## However, the ftx font backend driver is not in good shape.
13545 if test "${HAVE_XFT}" = "yes"; then
13552 if test "${HAVE_FREETYPE}" = "yes"; then
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_FREETYPE 1
13558 if test "${with_libotf}" != "no
"; then
13562 # Extract the first word of "pkg-config
", so it can be a program name with args.
13563 set dummy pkg-config; ac_word=$2
13564 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13565 $as_echo_n "checking
for $ac_word...
" >&6; }
13566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13567 $as_echo_n "(cached
) " >&6
13569 case $PKG_CONFIG in
13571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13582 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13594 if test -n "$PKG_CONFIG"; then
13595 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13596 $as_echo "$PKG_CONFIG" >&6; }
13598 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13599 $as_echo "no
" >&6; }
13604 if test "$PKG_CONFIG" = "no
" ; then
13607 PKG_CONFIG_MIN_VERSION=0.9.0
13608 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13609 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
13610 $as_echo_n "checking
for libotf...
" >&6; }
13612 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13613 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13614 $as_echo "yes" >&6; }
13617 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13618 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
13619 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13620 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13621 $as_echo "$LIBOTF_CFLAGS" >&6; }
13623 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13624 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
13625 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13626 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13627 $as_echo "$LIBOTF_LIBS" >&6; }
13629 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13630 $as_echo "no
" >&6; }
13633 ## If we have a custom action on failure, don't print errors, but
13634 ## do set a variable so people can do so.
13635 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13642 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13643 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13647 if test $succeeded = yes; then
13653 if test "$HAVE_LIBOTF" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_LIBOTF 1
13659 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13660 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
13661 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13662 $as_echo_n "(cached
) " >&6
13664 ac_check_lib_save_LIBS=$LIBS
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13679 char OTF_get_variation_glyphs ();
13683 return OTF_get_variation_glyphs ();
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696 (eval "$ac_link") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext && {
13706 test "$cross_compiling" = yes ||
13707 $as_test_x conftest$ac_exeext
13709 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13711 $as_echo "$as_me: failed program was
:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13717 rm -rf conftest.dSYM
13718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13722 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13723 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13724 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13725 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13727 HAVE_OTF_GET_VARIATION_GLYPHS=no
13730 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13742 if test "${HAVE_LIBOTF}" = yes; then
13743 if test "${with_m17n_flt}" != "no
"; then
13747 # Extract the first word of "pkg-config
", so it can be a program name with args.
13748 set dummy pkg-config; ac_word=$2
13749 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13750 $as_echo_n "checking
for $ac_word...
" >&6; }
13751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13752 $as_echo_n "(cached
) " >&6
13754 case $PKG_CONFIG in
13756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13767 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13779 if test -n "$PKG_CONFIG"; then
13780 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13781 $as_echo "$PKG_CONFIG" >&6; }
13783 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13784 $as_echo "no
" >&6; }
13789 if test "$PKG_CONFIG" = "no
" ; then
13792 PKG_CONFIG_MIN_VERSION=0.9.0
13793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13794 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13795 $as_echo_n "checking
for m17n-flt...
" >&6; }
13797 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13798 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13799 $as_echo "yes" >&6; }
13802 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13803 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
13804 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13805 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13806 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13808 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13809 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
13810 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13811 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13812 $as_echo "$M17N_FLT_LIBS" >&6; }
13814 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13815 $as_echo "no
" >&6; }
13818 ## If we have a custom action on failure, don't print errors, but
13819 ## do set a variable so people can do so.
13820 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13827 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13828 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13832 if test $succeeded = yes; then
13838 if test "$HAVE_M17N_FLT" = "yes"; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_M17N_FLT 1
13853 ### End of font-backend (under X11) section.
13864 ### Use -lXpm if available, unless `--with-xpm=no'.
13866 if test "${HAVE_X11}" = "yes"; then
13867 if test "${with_xpm}" != "no
"; then
13868 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13869 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13870 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13871 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13872 $as_echo_n "(cached
) " >&6
13874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13875 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13877 # Is the header compilable?
13878 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13879 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <X11/xpm.h>
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13896 $as_echo "$ac_try_echo") >&5
13897 (eval "$ac_compile") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest.$ac_objext; then
13907 ac_header_compiler=yes
13909 $as_echo "$as_me: failed program was
:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 ac_header_compiler=no
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13917 $as_echo "$ac_header_compiler" >&6; }
13919 # Is the header present?
13920 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13921 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
13922 cat >conftest.$ac_ext <<_ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <X11/xpm.h>
13930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13931 case "(($ac_try" in
13932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13936 $as_echo "$ac_try_echo") >&5
13937 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13943 (exit $ac_status); } >/dev/null && {
13944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13947 ac_header_preproc=yes
13949 $as_echo "$as_me: failed program was
:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13955 rm -f conftest.err conftest.$ac_ext
13956 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13957 $as_echo "$ac_header_preproc" >&6; }
13959 # So? What about this header?
13960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13963 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13964 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13965 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13966 ac_header_preproc=yes
13969 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13970 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13971 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13972 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13973 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13974 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13975 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13976 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13977 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13978 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13979 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13980 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13984 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13985 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
13986 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13987 $as_echo_n "(cached
) " >&6
13989 ac_cv_header_X11_xpm_h=$ac_header_preproc
13991 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13992 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13995 if test $ac_cv_header_X11_xpm_h = yes; then
13996 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13997 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
13998 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13999 $as_echo_n "(cached
) " >&6
14001 ac_check_lib_save_LIBS=$LIBS
14002 LIBS="-lXpm -lX11 $LIBS"
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14016 char XpmReadFileToPixmap ();
14020 return XpmReadFileToPixmap ();
14025 rm -f conftest.$ac_objext conftest$ac_exeext
14026 if { (ac_try="$ac_link"
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_link") 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_exeext && {
14043 test "$cross_compiling" = yes ||
14044 $as_test_x conftest$ac_exeext
14046 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14048 $as_echo "$as_me: failed program was
:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14054 rm -rf conftest.dSYM
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14060 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14061 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14068 if test "${HAVE_XPM}" = "yes"; then
14069 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14070 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include "X11
/xpm.h
"
14078 #ifndef XpmReturnAllocPixels
14079 no_return_alloc_pixels
14083 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14084 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14092 if test "${HAVE_XPM}" = "yes"; then
14093 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14094 $as_echo "yes" >&6; }
14096 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14097 $as_echo "no
" >&6; }
14102 if test "${HAVE_XPM}" = "yes"; then
14104 cat >>confdefs.h <<\_ACEOF
14111 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14113 if test "${HAVE_X11}" = "yes"; then
14114 if test "${with_jpeg}" != "no
"; then
14115 if test "${ac_cv_header_jerror_h+set}" = set; then
14116 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14117 $as_echo_n "checking
for jerror.h...
" >&6; }
14118 if test "${ac_cv_header_jerror_h+set}" = set; then
14119 $as_echo_n "(cached
) " >&6
14121 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14122 $as_echo "$ac_cv_header_jerror_h" >&6; }
14124 # Is the header compilable?
14125 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14126 $as_echo_n "checking jerror.h usability...
" >&6; }
14127 cat >conftest.$ac_ext <<_ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14133 $ac_includes_default
14134 #include <jerror.h>
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_compile") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest.$ac_objext; then
14154 ac_header_compiler=yes
14156 $as_echo "$as_me: failed program was
:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14159 ac_header_compiler=no
14162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14163 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14164 $as_echo "$ac_header_compiler" >&6; }
14166 # Is the header present?
14167 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14168 $as_echo_n "checking jerror.h presence...
" >&6; }
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <jerror.h>
14177 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14183 $as_echo "$ac_try_echo") >&5
14184 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14190 (exit $ac_status); } >/dev/null && {
14191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14192 test ! -s conftest.err
14194 ac_header_preproc=yes
14196 $as_echo "$as_me: failed program was
:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_header_preproc=no
14202 rm -f conftest.err conftest.$ac_ext
14203 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14204 $as_echo "$ac_header_preproc" >&6; }
14206 # So? What about this header?
14207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14209 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14210 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14211 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14212 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14213 ac_header_preproc=yes
14216 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14217 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14218 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14219 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14220 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14221 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14222 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14223 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14224 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14225 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14226 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14227 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14231 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14232 $as_echo_n "checking
for jerror.h...
" >&6; }
14233 if test "${ac_cv_header_jerror_h+set}" = set; then
14234 $as_echo_n "(cached
) " >&6
14236 ac_cv_header_jerror_h=$ac_header_preproc
14238 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14239 $as_echo "$ac_cv_header_jerror_h" >&6; }
14242 if test $ac_cv_header_jerror_h = yes; then
14243 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14244 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14245 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14246 $as_echo_n "(cached
) " >&6
14248 ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-ljpeg $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14257 /* Override any GCC internal prototype to avoid an error.
14258 Use char because int might match the return type of a GCC
14259 builtin and then its argument prototype would still apply. */
14263 char jpeg_destroy_compress ();
14267 return jpeg_destroy_compress ();
14272 rm -f conftest.$ac_objext conftest$ac_exeext
14273 if { (ac_try="$ac_link"
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_link") 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_exeext && {
14290 test "$cross_compiling" = yes ||
14291 $as_test_x conftest$ac_exeext
14293 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14295 $as_echo "$as_me: failed program was
:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14301 rm -rf conftest.dSYM
14302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14307 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14308 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14318 if test "${HAVE_JPEG}" = "yes"; then
14319 cat >>confdefs.h <<\_ACEOF
14320 #define HAVE_JPEG 1
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 #include <jpeglib.h>
14330 version=JPEG_LIB_VERSION
14333 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14334 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_JPEG 1
14340 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
14341 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
14349 ### Use -lpng if available, unless `--with-png=no'.
14351 if test "${HAVE_X11}" = "yes"; then
14352 if test "${with_png}" != "no
"; then
14353 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14354 # in /usr/include/libpng.
14357 for ac_header in png.h libpng/png.h
14359 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14360 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14361 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14362 $as_echo_n "checking
for $ac_header...
" >&6; }
14363 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14364 $as_echo_n "(cached
) " >&6
14366 ac_res=`eval 'as_val=${'$as_ac_Header'}
14367 $as_echo "$as_val"'`
14368 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14369 $as_echo "$ac_res" >&6; }
14371 # Is the header compilable?
14372 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14373 $as_echo_n "checking
$ac_header usability...
" >&6; }
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #include <$ac_header>
14383 rm -f conftest.$ac_objext
14384 if { (ac_try="$ac_compile"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14390 $as_echo "$ac_try_echo") >&5
14391 (eval "$ac_compile") 2>conftest.er1
14393 grep -v '^ *+' conftest.er1 >conftest.err
14395 cat conftest.err >&5
14396 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14397 (exit $ac_status); } && {
14398 test -z "$ac_c_werror_flag" ||
14399 test ! -s conftest.err
14400 } && test -s conftest.$ac_objext; then
14401 ac_header_compiler=yes
14403 $as_echo "$as_me: failed program was
:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_header_compiler=no
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14411 $as_echo "$ac_header_compiler" >&6; }
14413 # Is the header present?
14414 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14415 $as_echo_n "checking
$ac_header presence...
" >&6; }
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 #include <$ac_header>
14424 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14430 $as_echo "$ac_try_echo") >&5
14431 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14433 grep -v '^ *+' conftest.er1 >conftest.err
14435 cat conftest.err >&5
14436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14437 (exit $ac_status); } >/dev/null && {
14438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14439 test ! -s conftest.err
14441 ac_header_preproc=yes
14443 $as_echo "$as_me: failed program was
:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14446 ac_header_preproc=no
14449 rm -f conftest.err conftest.$ac_ext
14450 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14451 $as_echo "$ac_header_preproc" >&6; }
14453 # So? What about this header?
14454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14456 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14457 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14458 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14459 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14460 ac_header_preproc=yes
14463 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14464 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14465 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14466 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14467 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14468 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14469 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14470 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14471 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14474 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14478 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
14479 $as_echo_n "checking
for $ac_header...
" >&6; }
14480 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14481 $as_echo_n "(cached
) " >&6
14483 eval "$as_ac_Header=\
$ac_header_preproc"
14485 ac_res=`eval 'as_val=${'$as_ac_Header'}
14486 $as_echo "$as_val"'`
14487 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
14488 $as_echo "$ac_res" >&6; }
14491 if test `eval 'as_val=${'$as_ac_Header'}
14492 $as_echo "$as_val"'` = yes; then
14493 cat >>confdefs.h <<_ACEOF
14494 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14501 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14502 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14503 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
14504 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14505 $as_echo_n "(cached
) " >&6
14507 ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-lpng -lz -lm $LIBS"
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14516 /* Override any GCC internal prototype to avoid an error.
14517 Use char because int might match the return type of a GCC
14518 builtin and then its argument prototype would still apply. */
14522 char png_get_channels ();
14526 return png_get_channels ();
14531 rm -f conftest.$ac_objext conftest$ac_exeext
14532 if { (ac_try="$ac_link"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14538 $as_echo "$ac_try_echo") >&5
14539 (eval "$ac_link") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest$ac_exeext && {
14549 test "$cross_compiling" = yes ||
14550 $as_test_x conftest$ac_exeext
14552 ac_cv_lib_png_png_get_channels=yes
14554 $as_echo "$as_me: failed program was
:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14557 ac_cv_lib_png_png_get_channels=no
14560 rm -rf conftest.dSYM
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14563 LIBS=$ac_check_lib_save_LIBS
14565 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14566 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14567 if test $ac_cv_lib_png_png_get_channels = yes; then
14574 if test "${HAVE_PNG}" = "yes"; then
14576 cat >>confdefs.h <<\_ACEOF
14583 ### Use -ltiff if available, unless `--with-tiff=no'.
14585 if test "${HAVE_X11}" = "yes"; then
14586 if test "${with_tiff}" != "no
"; then
14587 if test "${ac_cv_header_tiffio_h+set}" = set; then
14588 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14589 $as_echo_n "checking
for tiffio.h...
" >&6; }
14590 if test "${ac_cv_header_tiffio_h+set}" = set; then
14591 $as_echo_n "(cached
) " >&6
14593 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14594 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14596 # Is the header compilable?
14597 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14598 $as_echo_n "checking tiffio.h usability...
" >&6; }
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 $ac_includes_default
14606 #include <tiffio.h>
14608 rm -f conftest.$ac_objext
14609 if { (ac_try="$ac_compile"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14615 $as_echo "$ac_try_echo") >&5
14616 (eval "$ac_compile") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14622 (exit $ac_status); } && {
14623 test -z "$ac_c_werror_flag" ||
14624 test ! -s conftest.err
14625 } && test -s conftest.$ac_objext; then
14626 ac_header_compiler=yes
14628 $as_echo "$as_me: failed program was
:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 ac_header_compiler=no
14634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14636 $as_echo "$ac_header_compiler" >&6; }
14638 # Is the header present?
14639 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14640 $as_echo_n "checking tiffio.h presence...
" >&6; }
14641 cat >conftest.$ac_ext <<_ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <tiffio.h>
14649 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14650 case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14662 (exit $ac_status); } >/dev/null && {
14663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14666 ac_header_preproc=yes
14668 $as_echo "$as_me: failed program was
:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_header_preproc=no
14674 rm -f conftest.err conftest.$ac_ext
14675 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14676 $as_echo "$ac_header_preproc" >&6; }
14678 # So? What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14681 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14682 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14683 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14684 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14685 ac_header_preproc=yes
14688 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14689 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14690 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14691 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14692 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14693 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14694 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14695 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14696 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14697 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14698 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14699 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14703 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14704 $as_echo_n "checking
for tiffio.h...
" >&6; }
14705 if test "${ac_cv_header_tiffio_h+set}" = set; then
14706 $as_echo_n "(cached
) " >&6
14708 ac_cv_header_tiffio_h=$ac_header_preproc
14710 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14711 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14714 if test $ac_cv_header_tiffio_h = yes; then
14716 # At least one tiff package requires the jpeg library.
14717 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14718 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14719 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
14720 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14721 $as_echo_n "(cached
) " >&6
14723 ac_check_lib_save_LIBS=$LIBS
14724 LIBS="-ltiff $tifflibs $LIBS"
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14738 char TIFFGetVersion ();
14742 return TIFFGetVersion ();
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14754 $as_echo "$ac_try_echo") >&5
14755 (eval "$ac_link") 2>conftest.er1
14757 grep -v '^ *+' conftest.er1 >conftest.err
14759 cat conftest.err >&5
14760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext && {
14765 test "$cross_compiling" = yes ||
14766 $as_test_x conftest$ac_exeext
14768 ac_cv_lib_tiff_TIFFGetVersion=yes
14770 $as_echo "$as_me: failed program was
:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_cv_lib_tiff_TIFFGetVersion=no
14776 rm -rf conftest.dSYM
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14781 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14782 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14783 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14792 if test "${HAVE_TIFF}" = "yes"; then
14794 cat >>confdefs.h <<\_ACEOF
14795 #define HAVE_TIFF 1
14801 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14803 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14804 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14805 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14806 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14807 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14808 $as_echo_n "(cached
) " >&6
14810 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14811 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14813 # Is the header compilable?
14814 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14815 $as_echo_n "checking gif_lib.h usability...
" >&6; }
14816 cat >conftest.$ac_ext <<_ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 $ac_includes_default
14823 #include <gif_lib.h>
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14832 $as_echo "$ac_try_echo") >&5
14833 (eval "$ac_compile") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest.$ac_objext; then
14843 ac_header_compiler=yes
14845 $as_echo "$as_me: failed program was
:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_compiler=no
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14853 $as_echo "$ac_header_compiler" >&6; }
14855 # Is the header present?
14856 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14857 $as_echo_n "checking gif_lib.h presence...
" >&6; }
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #include <gif_lib.h>
14866 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14879 (exit $ac_status); } >/dev/null && {
14880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14883 ac_header_preproc=yes
14885 $as_echo "$as_me: failed program was
:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_header_preproc=no
14891 rm -f conftest.err conftest.$ac_ext
14892 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14893 $as_echo "$ac_header_preproc" >&6; }
14895 # So? What about this header?
14896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14898 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14899 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14900 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14901 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14902 ac_header_preproc=yes
14905 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14906 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14907 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14908 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14909 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14910 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14911 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14912 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14914 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14916 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14920 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14921 $as_echo_n "checking
for gif_lib.h...
" >&6; }
14922 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14923 $as_echo_n "(cached
) " >&6
14925 ac_cv_header_gif_lib_h=$ac_header_preproc
14927 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14928 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14931 if test $ac_cv_header_gif_lib_h = yes; then
14932 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14933 # Earlier versions can crash Emacs.
14934 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14935 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
14936 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14937 $as_echo_n "(cached
) " >&6
14939 ac_check_lib_save_LIBS=$LIBS
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14948 /* Override any GCC internal prototype to avoid an error.
14949 Use char because int might match the return type of a GCC
14950 builtin and then its argument prototype would still apply. */
14954 char EGifPutExtensionLast ();
14958 return EGifPutExtensionLast ();
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (ac_try="$ac_link"
14965 case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14969 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14970 $as_echo "$ac_try_echo") >&5
14971 (eval "$ac_link") 2>conftest.er1
14973 grep -v '^ *+' conftest.er1 >conftest.err
14975 cat conftest.err >&5
14976 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14977 (exit $ac_status); } && {
14978 test -z "$ac_c_werror_flag" ||
14979 test ! -s conftest.err
14980 } && test -s conftest$ac_exeext && {
14981 test "$cross_compiling" = yes ||
14982 $as_test_x conftest$ac_exeext
14984 ac_cv_lib_gif_EGifPutExtensionLast=yes
14986 $as_echo "$as_me: failed program was
:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_cv_lib_gif_EGifPutExtensionLast=no
14992 rm -rf conftest.dSYM
14993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14997 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14998 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14999 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15009 if test "$HAVE_GIF" = yes; then
15010 ac_gif_lib_name="-lgif"
15013 # If gif_lib.h but no libgif, try libungif.
15014 if test x"$try_libungif" = xyes; then
15015 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15016 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15017 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15018 $as_echo_n "(cached
) " >&6
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lungif $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15035 char EGifPutExtensionLast ();
15039 return EGifPutExtensionLast ();
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15050 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest$ac_exeext && {
15062 test "$cross_compiling" = yes ||
15063 $as_test_x conftest$ac_exeext
15065 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15067 $as_echo "$as_me: failed program was
:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_cv_lib_ungif_EGifPutExtensionLast=no
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075 conftest$ac_exeext conftest.$ac_ext
15076 LIBS=$ac_check_lib_save_LIBS
15078 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15079 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15080 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15085 if test "$HAVE_GIF" = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define LIBGIF -lungif
15091 ac_gif_lib_name="-lungif"
15095 if test "${HAVE_GIF}" = "yes"; then
15097 cat >>confdefs.h <<\_ACEOF
15104 if test "${HAVE_X11}" = "yes"; then
15107 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15108 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15109 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15110 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15111 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15112 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15113 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15114 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15115 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15116 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15118 if test "X
${MISSING}" != X; then
15119 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15121 Maybe some development libraries
/packages are missing?
15122 If you don
't want to link with them give
15124 as options to configure" >&5
15125 $as_echo "$as_me: error: The following required libraries were not found:
15127 Maybe some development libraries/packages are missing?
15128 If you don't want to link with them give
15130 as options to configure
" >&2;}
15131 { (exit 1); exit 1; }; }
15135 ### Use -lgpm if available, unless `--with-gpm=no'.
15137 if test "${with_gpm}" != "no
"; then
15138 if test "${ac_cv_header_gpm_h+set}" = set; then
15139 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15140 $as_echo_n "checking
for gpm.h...
" >&6; }
15141 if test "${ac_cv_header_gpm_h+set}" = set; then
15142 $as_echo_n "(cached
) " >&6
15144 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15145 $as_echo "$ac_cv_header_gpm_h" >&6; }
15147 # Is the header compilable?
15148 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15149 $as_echo_n "checking gpm.h usability...
" >&6; }
15150 cat >conftest.$ac_ext <<_ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h. */
15156 $ac_includes_default
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest.$ac_objext; then
15177 ac_header_compiler=yes
15179 $as_echo "$as_me: failed program was
:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15182 ac_header_compiler=no
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15186 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15187 $as_echo "$ac_header_compiler" >&6; }
15189 # Is the header present?
15190 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15191 $as_echo_n "checking gpm.h presence...
" >&6; }
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15200 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15201 case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15206 $as_echo "$ac_try_echo") >&5
15207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15213 (exit $ac_status); } >/dev/null && {
15214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15217 ac_header_preproc=yes
15219 $as_echo "$as_me: failed program was
:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_header_preproc=no
15225 rm -f conftest.err conftest.$ac_ext
15226 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15227 $as_echo "$ac_header_preproc" >&6; }
15229 # So? What about this header?
15230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15232 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15233 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15234 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15235 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15236 ac_header_preproc=yes
15239 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15240 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15241 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15242 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15243 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15244 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15245 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15246 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15247 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15248 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15249 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15250 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15254 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15255 $as_echo_n "checking
for gpm.h...
" >&6; }
15256 if test "${ac_cv_header_gpm_h+set}" = set; then
15257 $as_echo_n "(cached
) " >&6
15259 ac_cv_header_gpm_h=$ac_header_preproc
15261 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15262 $as_echo "$ac_cv_header_gpm_h" >&6; }
15265 if test $ac_cv_header_gpm_h = yes; then
15266 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15267 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15268 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15269 $as_echo_n "(cached
) " >&6
15271 ac_check_lib_save_LIBS=$LIBS
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15290 return Gpm_Open ();
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15301 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15302 $as_echo "$ac_try_echo") >&5
15303 (eval "$ac_link") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest$ac_exeext && {
15313 test "$cross_compiling" = yes ||
15314 $as_test_x conftest$ac_exeext
15316 ac_cv_lib_gpm_Gpm_Open=yes
15318 $as_echo "$as_me: failed program was
:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15321 ac_cv_lib_gpm_Gpm_Open=no
15324 rm -rf conftest.dSYM
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15327 LIBS=$ac_check_lib_save_LIBS
15329 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
15330 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15331 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15340 if test "${HAVE_GPM}" = "yes"; then
15342 cat >>confdefs.h <<\_ACEOF
15348 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15349 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15350 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15351 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15352 $as_echo_n "(cached
) " >&6
15354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15355 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15357 # Is the header compilable?
15358 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
15359 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <malloc/malloc.h>
15369 rm -f conftest.$ac_objext
15370 if { (ac_try="$ac_compile"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15376 $as_echo "$ac_try_echo") >&5
15377 (eval "$ac_compile") 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest.$ac_objext; then
15387 ac_header_compiler=yes
15389 $as_echo "$as_me: failed program was
:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_header_compiler=no
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15397 $as_echo "$ac_header_compiler" >&6; }
15399 # Is the header present?
15400 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15401 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 #include <malloc/malloc.h>
15410 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15423 (exit $ac_status); } >/dev/null && {
15424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15427 ac_header_preproc=yes
15429 $as_echo "$as_me: failed program was
:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_header_preproc=no
15435 rm -f conftest.err conftest.$ac_ext
15436 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15437 $as_echo "$ac_header_preproc" >&6; }
15439 # So? What about this header?
15440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15442 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15443 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15445 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15446 ac_header_preproc=yes
15449 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15450 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15451 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15452 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15454 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15455 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15456 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15457 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15458 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15460 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15464 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15465 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
15466 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15467 $as_echo_n "(cached
) " >&6
15469 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15471 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15472 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15475 if test $ac_cv_header_malloc_malloc_h = yes; then
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_MALLOC_MALLOC_H 1
15485 ### Use NeXTstep API to implement GUI.
15486 if test "${HAVE_NS}" = "yes"; then
15488 cat >>confdefs.h <<\_ACEOF
15492 if test "${NS_IMPL_COCOA}" = "yes"; then
15494 cat >>confdefs.h <<\_ACEOF
15495 #define NS_IMPL_COCOA 1
15500 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15502 cat >>confdefs.h <<\_ACEOF
15503 #define NS_IMPL_GNUSTEP 1
15506 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15508 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15510 cat >>confdefs.h <<\_ACEOF
15511 #define NS_HAVE_NSINTEGER 1
15515 # We also have mouse menus.
15520 ### Use session management (-lSM -lICE) if available
15522 if test "${HAVE_X11}" = "yes"; then
15523 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15524 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15525 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15526 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15527 $as_echo_n "(cached
) " >&6
15529 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15530 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15532 # Is the header compilable?
15533 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15534 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 $ac_includes_default
15542 #include <X11/SM/SMlib.h>
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15551 $as_echo "$ac_try_echo") >&5
15552 (eval "$ac_compile") 2>conftest.er1
15554 grep -v '^ *+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest.$ac_objext; then
15562 ac_header_compiler=yes
15564 $as_echo "$as_me: failed program was
:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15567 ac_header_compiler=no
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15572 $as_echo "$ac_header_compiler" >&6; }
15574 # Is the header present?
15575 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15576 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <X11/SM/SMlib.h>
15585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15591 $as_echo "$ac_try_echo") >&5
15592 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15594 grep -v '^ *+' conftest.er1 >conftest.err
15596 cat conftest.err >&5
15597 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15598 (exit $ac_status); } >/dev/null && {
15599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15602 ac_header_preproc=yes
15604 $as_echo "$as_me: failed program was
:" >&5
15605 sed 's/^/| /' conftest.$ac_ext >&5
15607 ac_header_preproc=no
15610 rm -f conftest.err conftest.$ac_ext
15611 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15612 $as_echo "$ac_header_preproc" >&6; }
15614 # So? What about this header?
15615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15617 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15618 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15619 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15620 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15621 ac_header_preproc=yes
15624 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15625 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15626 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15627 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15628 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15629 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15630 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15631 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15632 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15633 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15634 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15635 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15639 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15640 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
15641 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15642 $as_echo_n "(cached
) " >&6
15644 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15646 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15647 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15650 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15651 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15652 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
15653 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15654 $as_echo_n "(cached
) " >&6
15656 ac_check_lib_save_LIBS=$LIBS
15657 LIBS="-lSM -lICE $LIBS"
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15671 char SmcOpenConnection ();
15675 return SmcOpenConnection ();
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15687 $as_echo "$ac_try_echo") >&5
15688 (eval "$ac_link") 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15694 (exit $ac_status); } && {
15695 test -z "$ac_c_werror_flag" ||
15696 test ! -s conftest.err
15697 } && test -s conftest$ac_exeext && {
15698 test "$cross_compiling" = yes ||
15699 $as_test_x conftest$ac_exeext
15701 ac_cv_lib_SM_SmcOpenConnection=yes
15703 $as_echo "$as_me: failed program was
:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_cv_lib_SM_SmcOpenConnection=no
15709 rm -rf conftest.dSYM
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15714 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15715 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15716 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15724 if test "${HAVE_X_SM}" = "yes"; then
15726 cat >>confdefs.h <<\_ACEOF
15727 #define HAVE_X_SM 1
15732 *) LIBS="-lSM -lICE $LIBS" ;;
15737 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15738 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15739 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
15740 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15741 $as_echo_n "(cached
) " >&6
15743 cat >conftest.$ac_ext <<_ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762 *) ac_try_echo=$ac_try;;
15764 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15765 $as_echo "$ac_try_echo") >&5
15766 (eval "$ac_link") 2>conftest.er1
15768 grep -v '^ *+' conftest.er1 >conftest.err
15770 cat conftest.err >&5
15771 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15772 (exit $ac_status); } && {
15773 test -z "$ac_c_werror_flag" ||
15774 test ! -s conftest.err
15775 } && test -s conftest$ac_exeext && {
15776 test "$cross_compiling" = yes ||
15777 $as_test_x conftest$ac_exeext
15779 emacs_cv_netdb_declares_h_errno=yes
15781 $as_echo "$as_me: failed program was
:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 emacs_cv_netdb_declares_h_errno=no
15787 rm -rf conftest.dSYM
15788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15789 conftest$ac_exeext conftest.$ac_ext
15791 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15792 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15793 if test $emacs_cv_netdb_declares_h_errno = yes; then
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_H_ERRNO 1
15801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15802 # for constant arguments. Useless!
15803 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15804 $as_echo_n "checking
for working alloca.h...
" >&6; }
15805 if test "${ac_cv_working_alloca_h+set}" = set; then
15806 $as_echo_n "(cached
) " >&6
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15814 #include <alloca.h>
15818 char *p = (char *) alloca (2 * sizeof (int));
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832 (eval "$ac_link") 2>conftest.er1
15834 grep -v '^ *+' conftest.er1 >conftest.err
15836 cat conftest.err >&5
15837 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15838 (exit $ac_status); } && {
15839 test -z "$ac_c_werror_flag" ||
15840 test ! -s conftest.err
15841 } && test -s conftest$ac_exeext && {
15842 test "$cross_compiling" = yes ||
15843 $as_test_x conftest$ac_exeext
15845 ac_cv_working_alloca_h=yes
15847 $as_echo "$as_me: failed program was
:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_cv_working_alloca_h=no
15853 rm -rf conftest.dSYM
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15857 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15858 $as_echo "$ac_cv_working_alloca_h" >&6; }
15859 if test $ac_cv_working_alloca_h = yes; then
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_ALLOCA_H 1
15867 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
15868 $as_echo_n "checking
for alloca...
" >&6; }
15869 if test "${ac_cv_func_alloca_works+set}" = set; then
15870 $as_echo_n "(cached
) " >&6
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 # define alloca __builtin_alloca
15882 # include <malloc.h>
15883 # define alloca _alloca
15885 # ifdef HAVE_ALLOCA_H
15886 # include <alloca.h>
15891 # ifndef alloca /* predefined by HP cc +Olibcalls */
15902 char *p = (char *) alloca (1);
15908 rm -f conftest.$ac_objext conftest$ac_exeext
15909 if { (ac_try="$ac_link"
15910 case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15915 $as_echo "$ac_try_echo") >&5
15916 (eval "$ac_link") 2>conftest.er1
15918 grep -v '^ *+' conftest.er1 >conftest.err
15920 cat conftest.err >&5
15921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
15925 } && test -s conftest$ac_exeext && {
15926 test "$cross_compiling" = yes ||
15927 $as_test_x conftest$ac_exeext
15929 ac_cv_func_alloca_works=yes
15931 $as_echo "$as_me: failed program was
:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_cv_func_alloca_works=no
15937 rm -rf conftest.dSYM
15938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15939 conftest$ac_exeext conftest.$ac_ext
15941 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15942 $as_echo "$ac_cv_func_alloca_works" >&6; }
15944 if test $ac_cv_func_alloca_works = yes; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE_ALLOCA 1
15951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15952 # that cause trouble. Some versions do not even contain alloca or
15953 # contain a buggy version. If you still want to use their alloca,
15954 # use ar to extract alloca.o from them instead of compiling alloca.c.
15956 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15958 cat >>confdefs.h <<\_ACEOF
15963 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15964 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
15965 if test "${ac_cv_os_cray+set}" = set; then
15966 $as_echo_n "(cached) " >&6
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 #if defined CRAY && ! defined CRAY2
15981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15982 $EGREP "webecray" >/dev/null 2>&1; then
15990 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15991 $as_echo "$ac_cv_os_cray" >&6; }
15992 if test $ac_cv_os_cray = yes; then
15993 for ac_func in _getb67 GETB67 getb67; do
15994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15995 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15996 $as_echo_n "checking for $ac_func... " >&6; }
15997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15998 $as_echo_n "(cached) " >&6
16000 cat >conftest.$ac_ext <<_ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16008 #define $ac_func innocuous_$ac_func
16010 /* System header to define __stub macros and hopefully few prototypes,
16011 which can conflict with char $ac_func (); below.
16012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16013 <limits.h> exists even on freestanding compilers. */
16016 # include <limits.h>
16018 # include <assert.h>
16023 /* Override any GCC internal prototype to avoid an error.
16024 Use char because int might match the return type of a GCC
16025 builtin and then its argument prototype would still apply. */
16030 /* The GNU C library defines this for functions which it implements
16031 to always fail with ENOSYS. Some functions are actually named
16032 something starting with __ and the normal name is an alias. */
16033 #if defined __stub_$ac_func || defined __stub___$ac_func
16040 return $ac_func ();
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049 *) ac_try_echo=$ac_try;;
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053 (eval "$ac_link") 2>conftest.er1
16055 grep -v '^
*+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest$ac_exeext && {
16063 test "$cross_compiling" = yes ||
16064 $as_test_x conftest$ac_exeext
16066 eval "$as_ac_var=yes"
16068 $as_echo "$as_me: failed program was:" >&5
16069 sed 's
/^
/|
/' conftest.$ac_ext >&5
16071 eval "$as_ac_var=no"
16074 rm -rf conftest.dSYM
16075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16076 conftest$ac_exeext conftest.$ac_ext
16078 ac_res=`eval 'as_val
=${'$as_ac_var'}
16079 $as_echo "$as_val"'`
16080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16081 $as_echo "$ac_res" >&6; }
16082 if test `eval 'as_val
=${'$as_ac_var'}
16083 $as_echo "$as_val"'` = yes; then
16085 cat >>confdefs.h <<_ACEOF
16086 #define CRAY_STACKSEG_END $ac_func
16095 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16096 $as_echo_n "checking stack direction for C alloca... " >&6; }
16097 if test "${ac_cv_c_stack_direction+set}" = set; then
16098 $as_echo_n "(cached) " >&6
16100 if test "$cross_compiling" = yes; then
16101 ac_cv_c_stack_direction=0
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16111 find_stack_direction ()
16113 static char *addr = 0;
16118 return find_stack_direction ();
16121 return (&dummy > addr) ? 1 : -1;
16127 return find_stack_direction () < 0;
16130 rm -f conftest$ac_exeext
16131 if { (ac_try="$ac_link"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16137 $as_echo "$ac_try_echo") >&5
16138 (eval "$ac_link") 2>&5
16140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16142 { (case "(($ac_try" in
16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16147 $as_echo "$ac_try_echo") >&5
16148 (eval "$ac_try") 2>&5
16150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_cv_c_stack_direction=1
16154 $as_echo "$as_me: program exited with status $ac_status" >&5
16155 $as_echo "$as_me: failed program was:" >&5
16156 sed 's
/^
/|
/' conftest.$ac_ext >&5
16158 ( exit $ac_status )
16159 ac_cv_c_stack_direction=-1
16161 rm -rf conftest.dSYM
16162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16167 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16168 $as_echo "$ac_cv_c_stack_direction" >&6; }
16170 cat >>confdefs.h <<_ACEOF
16171 #define STACK_DIRECTION $ac_cv_c_stack_direction
16178 if test x"$ac_cv_func_alloca_works" != xyes; then
16179 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16180 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16181 { (exit 1); exit 1; }; }
16184 # fmod, logb, and frexp are found in -lm on most systems.
16185 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16187 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16188 $as_echo_n "checking for sqrt in -lm... " >&6; }
16189 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16190 $as_echo_n "(cached) " >&6
16192 ac_check_lib_save_LIBS=$LIBS
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16223 $as_echo "$ac_try_echo") >&5
16224 (eval "$ac_link") 2>conftest.er1
16226 grep -v '^
*+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest$ac_exeext && {
16234 test "$cross_compiling" = yes ||
16235 $as_test_x conftest$ac_exeext
16237 ac_cv_lib_m_sqrt=yes
16239 $as_echo "$as_me: failed program was:" >&5
16240 sed 's
/^
/|
/' conftest.$ac_ext >&5
16242 ac_cv_lib_m_sqrt=no
16245 rm -rf conftest.dSYM
16246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16247 conftest$ac_exeext conftest.$ac_ext
16248 LIBS=$ac_check_lib_save_LIBS
16250 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16251 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16252 if test $ac_cv_lib_m_sqrt = yes; then
16253 cat >>confdefs.h <<_ACEOF
16254 #define HAVE_LIBM 1
16262 # Check for mail-locking functions in a "mail" library. Probably this should
16263 # have the same check as for liblockfile below.
16265 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16266 $as_echo_n "checking for maillock in -lmail... " >&6; }
16267 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16268 $as_echo_n "(cached) " >&6
16270 ac_check_lib_save_LIBS=$LIBS
16271 LIBS="-lmail $LIBS"
16272 cat >conftest.$ac_ext <<_ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h. */
16279 /* Override any GCC internal prototype to avoid an error.
16280 Use char because int might match the return type of a GCC
16281 builtin and then its argument prototype would still apply. */
16289 return maillock ();
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16301 $as_echo "$ac_try_echo") >&5
16302 (eval "$ac_link") 2>conftest.er1
16304 grep -v '^
*+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext && {
16312 test "$cross_compiling" = yes ||
16313 $as_test_x conftest$ac_exeext
16315 ac_cv_lib_mail_maillock=yes
16317 $as_echo "$as_me: failed program was:" >&5
16318 sed 's
/^
/|
/' conftest.$ac_ext >&5
16320 ac_cv_lib_mail_maillock=no
16323 rm -rf conftest.dSYM
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16326 LIBS=$ac_check_lib_save_LIBS
16328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16329 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16330 if test $ac_cv_lib_mail_maillock = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define HAVE_LIBMAIL 1
16335 LIBS="-lmail $LIBS"
16340 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16341 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16342 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16343 $as_echo_n "(cached) " >&6
16345 ac_check_lib_save_LIBS=$LIBS
16346 LIBS="-llockfile $LIBS"
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16364 return maillock ();
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377 (eval "$ac_link") 2>conftest.er1
16379 grep -v '^
*+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext && {
16387 test "$cross_compiling" = yes ||
16388 $as_test_x conftest$ac_exeext
16390 ac_cv_lib_lockfile_maillock=yes
16392 $as_echo "$as_me: failed program was:" >&5
16393 sed 's
/^
/|
/' conftest.$ac_ext >&5
16395 ac_cv_lib_lockfile_maillock=no
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16401 LIBS=$ac_check_lib_save_LIBS
16403 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16404 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16405 if test $ac_cv_lib_lockfile_maillock = yes; then
16406 cat >>confdefs.h <<_ACEOF
16407 #define HAVE_LIBLOCKFILE 1
16410 LIBS="-llockfile $LIBS"
16414 # If we have the shared liblockfile, assume we must use it for mail
16415 # locking (e.g. Debian). If we couldn't link against liblockfile
16416 # (no liblockfile.a installed), ensure that we don't need to.
16417 if test "$ac_cv_lib_lockfile_maillock" = no
; then
16418 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16419 set dummy liblockfile.so
; ac_word
=$2
16420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16421 $as_echo_n "checking for $ac_word... " >&6; }
16422 if test "${ac_cv_prog_liblockfile+set}" = set; then
16423 $as_echo_n "(cached) " >&6
16425 if test -n "$liblockfile"; then
16426 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
16428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16429 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16430 for as_dir
in $as_dummy
16433 test -z "$as_dir" && as_dir
=.
16434 for ac_exec_ext
in '' $ac_executable_extensions; do
16435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16436 ac_cv_prog_liblockfile
="yes"
16437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16444 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16447 liblockfile
=$ac_cv_prog_liblockfile
16448 if test -n "$liblockfile"; then
16449 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16450 $as_echo "$liblockfile" >&6; }
16452 { $as_echo "$as_me:$LINENO: result: no" >&5
16453 $as_echo "no" >&6; }
16457 if test $ac_cv_prog_liblockfile = yes; then
16458 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16459 This probably means that movemail could lose mail.
16460 There may be a \`development' package to install containing liblockfile." >&5
16461 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16462 This probably means that movemail could lose mail.
16463 There may be a \`development' package to install containing liblockfile." >&2;}
16464 { (exit 1); exit 1; }; }
16469 for ac_func
in touchlock
16471 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16473 $as_echo_n "checking for $ac_func... " >&6; }
16474 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16475 $as_echo_n "(cached) " >&6
16477 cat >conftest.
$ac_ext <<_ACEOF
16480 cat confdefs.h
>>conftest.
$ac_ext
16481 cat >>conftest.
$ac_ext <<_ACEOF
16482 /* end confdefs.h. */
16483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16485 #define $ac_func innocuous_$ac_func
16487 /* System header to define __stub macros and hopefully few prototypes,
16488 which can conflict with char $ac_func (); below.
16489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16490 <limits.h> exists even on freestanding compilers. */
16493 # include <limits.h>
16495 # include <assert.h>
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined __stub_$ac_func || defined __stub___$ac_func
16517 return $ac_func ();
16522 rm -f conftest.
$ac_objext conftest
$ac_exeext
16523 if { (ac_try
="$ac_link"
16524 case "(($ac_try" in
16525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16529 $as_echo "$ac_try_echo") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext && {
16540 test "$cross_compiling" = yes ||
16541 $as_test_x conftest$ac_exeext
16543 eval "$as_ac_var=yes"
16545 $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16548 eval "$as_ac_var=no"
16551 rm -rf conftest.dSYM
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16555 ac_res=`eval 'as_val=${'$as_ac_var'}
16556 $as_echo "$as_val"'`
16557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16558 $as_echo "$ac_res" >&6; }
16559 if test `eval 'as_val=${'$as_ac_var'}
16560 $as_echo "$as_val"'` = yes; then
16561 cat >>confdefs.h <<_ACEOF
16562 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16569 for ac_header in maillock.h
16571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16574 $as_echo_n "checking for $ac_header... " >&6; }
16575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16576 $as_echo_n "(cached) " >&6
16578 ac_res=`eval 'as_val=${'$as_ac_Header'}
16579 $as_echo "$as_val"'`
16580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16581 $as_echo "$ac_res" >&6; }
16583 # Is the header compilable?
16584 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16585 $as_echo_n "checking $ac_header usability... " >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 $ac_includes_default
16593 #include <$ac_header>
16595 rm -f conftest.$ac_objext
16596 if { (ac_try="$ac_compile"
16597 case "(($ac_try" in
16598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16599 *) ac_try_echo
=$ac_try;;
16601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16602 $as_echo "$ac_try_echo") >&5
16603 (eval "$ac_compile") 2>conftest.er1
16605 grep -v '^ *+' conftest.er1
>conftest.err
16607 cat conftest.err
>&5
16608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && {
16610 test -z "$ac_c_werror_flag" ||
16611 test ! -s conftest.err
16612 } && test -s conftest.
$ac_objext; then
16613 ac_header_compiler
=yes
16615 $as_echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.
$ac_ext >&5
16618 ac_header_compiler
=no
16621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16623 $as_echo "$ac_header_compiler" >&6; }
16625 # Is the header present?
16626 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16627 $as_echo_n "checking $ac_header presence... " >&6; }
16628 cat >conftest.
$ac_ext <<_ACEOF
16631 cat confdefs.h
>>conftest.
$ac_ext
16632 cat >>conftest.
$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 #include <$ac_header>
16636 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16637 case "(($ac_try" in
16638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null && {
16650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16653 ac_header_preproc=yes
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_header_preproc=no
16661 rm -f conftest.err conftest.$ac_ext
16662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16663 $as_echo "$ac_header_preproc" >&6; }
16665 # So? What about this header?
16666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16669 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16671 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16672 ac_header_preproc=yes
16675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16676 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16678 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16680 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16682 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16686 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 $as_echo_n "checking for $ac_header... " >&6; }
16692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16693 $as_echo_n "(cached) " >&6
16695 eval "$as_ac_Header=\$ac_header_preproc"
16697 ac_res=`eval 'as_val=${'$as_ac_Header'}
16698 $as_echo "$as_val"'`
16699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16700 $as_echo "$ac_res" >&6; }
16703 if test `eval 'as_val=${'$as_ac_Header'}
16704 $as_echo "$as_val"'` = yes; then
16705 cat >>confdefs.h <<_ACEOF
16706 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16785 for ac_func in gethostname getdomainname dup2 \
16786 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16787 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16788 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16789 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16790 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16791 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16792 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16793 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16794 cfmakeraw cfsetspeed
16796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16798 $as_echo_n "checking for $ac_func... " >&6; }
16799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16800 $as_echo_n "(cached) " >&6
16802 cat >conftest.$ac_ext <<_ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16810 #define $ac_func innocuous_$ac_func
16812 /* System header to define __stub macros and hopefully few prototypes,
16813 which can conflict with char $ac_func (); below.
16814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16815 <limits.h> exists even on freestanding compilers. */
16818 # include <limits.h>
16820 # include <assert.h>
16825 /* Override any GCC internal prototype to avoid an error.
16826 Use char because int might match the return type of a GCC
16827 builtin and then its argument prototype would still apply. */
16832 /* The GNU C library defines this for functions which it implements
16833 to always fail with ENOSYS. Some functions are actually named
16834 something starting with __ and the normal name is an alias. */
16835 #if defined __stub_$ac_func || defined __stub___$ac_func
16842 return $ac_func ();
16847 rm -f conftest.$ac_objext conftest$ac_exeext
16848 if { (ac_try="$ac_link"
16849 case "(($ac_try" in
16850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16851 *) ac_try_echo
=$ac_try;;
16853 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16854 $as_echo "$ac_try_echo") >&5
16855 (eval "$ac_link") 2>conftest.er1
16857 grep -v '^ *+' conftest.er1
>conftest.err
16859 cat conftest.err
>&5
16860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } && {
16862 test -z "$ac_c_werror_flag" ||
16863 test ! -s conftest.err
16864 } && test -s conftest
$ac_exeext && {
16865 test "$cross_compiling" = yes ||
16866 $as_test_x conftest
$ac_exeext
16868 eval "$as_ac_var=yes"
16870 $as_echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.
$ac_ext >&5
16873 eval "$as_ac_var=no"
16876 rm -rf conftest.dSYM
16877 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16878 conftest
$ac_exeext conftest.
$ac_ext
16880 ac_res
=`eval 'as_val=${'$as_ac_var'}
16881 $as_echo "$as_val"'`
16882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16883 $as_echo "$ac_res" >&6; }
16884 if test `eval 'as_val=${'$as_ac_var'}
16885 $as_echo "$as_val"'` = yes; then
16886 cat >>confdefs.h
<<_ACEOF
16887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16895 for ac_header
in sys
/un.h
16897 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16898 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16900 $as_echo_n "checking for $ac_header... " >&6; }
16901 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16902 $as_echo_n "(cached) " >&6
16904 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16905 $as_echo "$as_val"'`
16906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16907 $as_echo "$ac_res" >&6; }
16909 # Is the header compilable?
16910 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16911 $as_echo_n "checking $ac_header usability... " >&6; }
16912 cat >conftest.
$ac_ext <<_ACEOF
16915 cat confdefs.h
>>conftest.
$ac_ext
16916 cat >>conftest.
$ac_ext <<_ACEOF
16917 /* end confdefs.h. */
16918 $ac_includes_default
16919 #include <$ac_header>
16921 rm -f conftest.
$ac_objext
16922 if { (ac_try
="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 ac_header_compiler=yes
16941 $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_header_compiler=no
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16949 $as_echo "$ac_header_compiler" >&6; }
16951 # Is the header present?
16952 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16953 $as_echo_n "checking $ac_header presence... " >&6; }
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #include <$ac_header>
16962 if { (ac_try="$ac_cpp conftest.$ac_ext"
16963 case "(($ac_try" in
16964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16965 *) ac_try_echo
=$ac_try;;
16967 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1
>conftest.err
16973 cat conftest.err
>&5
16974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } >/dev
/null
&& {
16976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16979 ac_header_preproc
=yes
16981 $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.
$ac_ext >&5
16984 ac_header_preproc
=no
16987 rm -f conftest.err conftest.
$ac_ext
16988 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16989 $as_echo "$ac_header_preproc" >&6; }
16991 # So? What about this header?
16992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16995 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16998 ac_header_preproc
=yes
17001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17002 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17004 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17006 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17008 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17012 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17017 $as_echo_n "checking for $ac_header... " >&6; }
17018 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17019 $as_echo_n "(cached) " >&6
17021 eval "$as_ac_Header=\$ac_header_preproc"
17023 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17024 $as_echo "$as_val"'`
17025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17026 $as_echo "$ac_res" >&6; }
17029 if test `eval 'as_val=${'$as_ac_Header'}
17030 $as_echo "$as_val"'` = yes; then
17031 cat >>confdefs.h
<<_ACEOF
17032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17044 for ac_header
in $ac_header_list
17046 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17047 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 $as_echo_n "checking for $ac_header... " >&6; }
17050 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051 $as_echo_n "(cached) " >&6
17053 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17054 $as_echo "$as_val"'`
17055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17056 $as_echo "$ac_res" >&6; }
17058 # Is the header compilable?
17059 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17060 $as_echo_n "checking $ac_header usability... " >&6; }
17061 cat >conftest.
$ac_ext <<_ACEOF
17064 cat confdefs.h
>>conftest.
$ac_ext
17065 cat >>conftest.
$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17067 $ac_includes_default
17068 #include <$ac_header>
17070 rm -f conftest.
$ac_objext
17071 if { (ac_try
="$ac_compile"
17072 case "(($ac_try" in
17073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17077 $as_echo "$ac_try_echo") >&5
17078 (eval "$ac_compile") 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } && {
17085 test -z "$ac_c_werror_flag" ||
17086 test ! -s conftest.err
17087 } && test -s conftest.$ac_objext; then
17088 ac_header_compiler=yes
17090 $as_echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 ac_header_compiler=no
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17098 $as_echo "$ac_header_compiler" >&6; }
17100 # Is the header present?
17101 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17102 $as_echo_n "checking $ac_header presence... " >&6; }
17103 cat >conftest.$ac_ext <<_ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109 #include <$ac_header>
17111 if { (ac_try="$ac_cpp conftest.$ac_ext"
17112 case "(($ac_try" in
17113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17114 *) ac_try_echo
=$ac_try;;
17116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17117 $as_echo "$ac_try_echo") >&5
17118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17120 grep -v '^ *+' conftest.er1
>conftest.err
17122 cat conftest.err
>&5
17123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } >/dev
/null
&& {
17125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17128 ac_header_preproc
=yes
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.
$ac_ext >&5
17133 ac_header_preproc
=no
17136 rm -f conftest.err conftest.
$ac_ext
17137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17138 $as_echo "$ac_header_preproc" >&6; }
17140 # So? What about this header?
17141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17144 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17146 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17147 ac_header_preproc
=yes
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17155 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17157 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17161 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17166 $as_echo_n "checking for $ac_header... " >&6; }
17167 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17168 $as_echo_n "(cached) " >&6
17170 eval "$as_ac_Header=\$ac_header_preproc"
17172 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17173 $as_echo "$as_val"'`
17174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17175 $as_echo "$ac_res" >&6; }
17178 if test `eval 'as_val=${'$as_ac_Header'}
17179 $as_echo "$as_val"'` = yes; then
17180 cat >>confdefs.h
<<_ACEOF
17181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17196 for ac_func
in $ac_func_list
17198 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17199 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17200 $as_echo_n "checking for $ac_func... " >&6; }
17201 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17202 $as_echo_n "(cached) " >&6
17204 cat >conftest.
$ac_ext <<_ACEOF
17207 cat confdefs.h
>>conftest.
$ac_ext
17208 cat >>conftest.
$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17212 #define $ac_func innocuous_$ac_func
17214 /* System header to define __stub macros and hopefully few prototypes,
17215 which can conflict with char $ac_func (); below.
17216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17217 <limits.h> exists even on freestanding compilers. */
17220 # include <limits.h>
17222 # include <assert.h>
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17234 /* The GNU C library defines this for functions which it implements
17235 to always fail with ENOSYS. Some functions are actually named
17236 something starting with __ and the normal name is an alias. */
17237 #if defined __stub_$ac_func || defined __stub___$ac_func
17244 return $ac_func ();
17249 rm -f conftest.
$ac_objext conftest
$ac_exeext
17250 if { (ac_try
="$ac_link"
17251 case "(($ac_try" in
17252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256 $as_echo "$ac_try_echo") >&5
17257 (eval "$ac_link") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext && {
17267 test "$cross_compiling" = yes ||
17268 $as_test_x conftest$ac_exeext
17270 eval "$as_ac_var=yes"
17272 $as_echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 eval "$as_ac_var=no"
17278 rm -rf conftest.dSYM
17279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
17282 ac_res=`eval 'as_val=${'$as_ac_var'}
17283 $as_echo "$as_val"'`
17284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17285 $as_echo "$ac_res" >&6; }
17286 if test `eval 'as_val=${'$as_ac_var'}
17287 $as_echo "$as_val"'` = yes; then
17288 cat >>confdefs.h <<_ACEOF
17289 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17311 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17312 $as_echo_n "checking for working mktime... " >&6; }
17313 if test "${ac_cv_func_working_mktime+set}" = set; then
17314 $as_echo_n "(cached) " >&6
17316 if test "$cross_compiling" = yes; then
17317 ac_cv_func_working_mktime=no
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17325 /* Test program from Paul Eggert and Tony Leneis. */
17326 #ifdef TIME_WITH_SYS_TIME
17327 # include <sys/time.h>
17330 # ifdef HAVE_SYS_TIME_H
17331 # include <sys/time.h>
17337 #include <limits.h>
17338 #include <stdlib.h>
17340 #ifdef HAVE_UNISTD_H
17341 # include <unistd.h>
17345 # define alarm(X) /* empty */
17348 /* Work around redefinition to rpl_putenv by other config tests. */
17351 static time_t time_t_max;
17352 static time_t time_t_min;
17354 /* Values we'll use to set the TZ environment variable. */
17355 static char *tz_strings[] = {
17356 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17357 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17359 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17361 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17362 Based on a problem report from Andreas Jaeger. */
17364 spring_forward_gap ()
17366 /* glibc (up to about 1998-10-07) failed this test. */
17369 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17370 instead of "TZ=America/Vancouver" in order to detect the bug even
17371 on systems that don't support the Olson extension, or don't have the
17372 full zoneinfo tables installed. */
17373 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17382 return mktime (&tm) != (time_t) -1;
17390 return ! (lt = localtime (&now)) || mktime (lt) == now;
17397 return (mktime_test1 (now)
17398 && mktime_test1 ((time_t) (time_t_max - now))
17399 && mktime_test1 ((time_t) (time_t_min + now)));
17405 /* Based on code from Ariel Faigon. */
17415 return tm.tm_mon == 2 && tm.tm_mday == 31;
17424 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17425 now = mktime (&tm);
17426 if (now != (time_t) -1)
17428 struct tm *lt = localtime (&now);
17430 && lt->tm_year == tm.tm_year
17431 && lt->tm_mon == tm.tm_mon
17432 && lt->tm_mday == tm.tm_mday
17433 && lt->tm_hour == tm.tm_hour
17434 && lt->tm_min == tm.tm_min
17435 && lt->tm_sec == tm.tm_sec
17436 && lt->tm_yday == tm.tm_yday
17437 && lt->tm_wday == tm.tm_wday
17438 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17439 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17448 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17449 ignoring leap seconds. */
17450 unsigned long int answer = 2527315200UL;
17454 tm.tm_year = 2050 - 1900;
17457 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17460 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17461 instead of "TZ=America/Vancouver" in order to detect the bug even
17462 on systems that don't support the Olson extension, or don't have the
17463 full zoneinfo tables installed. */
17464 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17468 /* Check that the result is either a failure, or close enough
17469 to the correct answer that we can assume the discrepancy is
17470 due to leap seconds. */
17471 return (t == (time_t) -1
17472 || (0 < t && answer - 120 <= t && t <= answer + 120));
17481 /* This test makes some buggy mktime implementations loop.
17482 Give up after 60 seconds; a mktime slower than that
17483 isn't worth using anyway. */
17488 t = (time_t_max << 1) + 1;
17489 if (t <= time_t_max)
17493 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17495 delta = time_t_max / 997; /* a suitable prime number */
17496 for (i = 0; i < N_STRINGS; i++)
17499 putenv (tz_strings[i]);
17501 for (t = 0; t <= time_t_max - delta; t += delta)
17502 if (! mktime_test (t))
17504 if (! (mktime_test ((time_t) 1)
17505 && mktime_test ((time_t) (60 * 60))
17506 && mktime_test ((time_t) (60 * 60 * 24))))
17509 for (j = 1; ; j <<= 1)
17510 if (! bigtime_test (j))
17512 else if (INT_MAX / 2 < j)
17514 if (! bigtime_test (INT_MAX))
17517 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17520 rm -f conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17524 *) ac_try_echo
=$ac_try;;
17526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17527 $as_echo "$ac_try_echo") >&5
17528 (eval "$ac_link") 2>&5
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17532 { (case "(($ac_try" in
17533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17534 *) ac_try_echo=$ac_try;;
17536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17537 $as_echo "$ac_try_echo") >&5
17538 (eval "$ac_try") 2>&5
17540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17542 ac_cv_func_working_mktime=yes
17544 $as_echo "$as_me: program exited with status $ac_status" >&5
17545 $as_echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 ( exit $ac_status )
17549 ac_cv_func_working_mktime=no
17551 rm -rf conftest.dSYM
17552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17557 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17558 $as_echo "$ac_cv_func_working_mktime" >&6; }
17559 if test $ac_cv_func_working_mktime = no; then
17560 case " $LIBOBJS " in
17561 *" mktime.$ac_objext "* ) ;;
17562 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17568 if test "$ac_cv_func_working_mktime" = no; then
17570 cat >>confdefs.h <<\_ACEOF
17571 #define BROKEN_MKTIME 1
17576 ac_have_func=no # yes means we've found a way to get the load average.
17578 # Make sure getloadavg.c is where it belongs, at configure-time.
17579 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17580 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17581 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17582 { (exit 1); exit 1; }; }
17586 # Check for getloadavg, but be sure not to touch the cache variable.
17587 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17588 $as_echo_n "checking for getloadavg... " >&6; }
17589 if test "${ac_cv_func_getloadavg+set}" = set; then
17590 $as_echo_n "(cached) " >&6
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17600 #define getloadavg innocuous_getloadavg
17602 /* System header to define __stub macros and hopefully few prototypes,
17603 which can conflict with char getloadavg (); below.
17604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17605 <limits.h> exists even on freestanding compilers. */
17608 # include <limits.h>
17610 # include <assert.h>
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17621 char getloadavg ();
17622 /* The GNU C library defines this for functions which it implements
17623 to always fail with ENOSYS. Some functions are actually named
17624 something starting with __ and the normal name is an alias. */
17625 #if defined __stub_getloadavg || defined __stub___getloadavg
17632 return getloadavg ();
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (ac_try="$ac_link"
17639 case "(($ac_try" in
17640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17641 *) ac_try_echo
=$ac_try;;
17643 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17644 $as_echo "$ac_try_echo") >&5
17645 (eval "$ac_link") 2>conftest.er1
17647 grep -v '^ *+' conftest.er1
>conftest.err
17649 cat conftest.err
>&5
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } && {
17652 test -z "$ac_c_werror_flag" ||
17653 test ! -s conftest.err
17654 } && test -s conftest
$ac_exeext && {
17655 test "$cross_compiling" = yes ||
17656 $as_test_x conftest
$ac_exeext
17658 ac_cv_func_getloadavg
=yes
17660 $as_echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.
$ac_ext >&5
17663 ac_cv_func_getloadavg
=no
17666 rm -rf conftest.dSYM
17667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17668 conftest
$ac_exeext conftest.
$ac_ext
17670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17671 $as_echo "$ac_cv_func_getloadavg" >&6; }
17672 if test $ac_cv_func_getloadavg = yes; then
17677 ) && ac_have_func
=yes
17679 # On HPUX9, an unprivileged user can get load averages through this function.
17681 for ac_func
in pstat_getdynamic
17683 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17685 $as_echo_n "checking for $ac_func... " >&6; }
17686 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17687 $as_echo_n "(cached) " >&6
17689 cat >conftest.
$ac_ext <<_ACEOF
17692 cat confdefs.h
>>conftest.
$ac_ext
17693 cat >>conftest.
$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17697 #define $ac_func innocuous_$ac_func
17699 /* System header to define __stub macros and hopefully few prototypes,
17700 which can conflict with char $ac_func (); below.
17701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17702 <limits.h> exists even on freestanding compilers. */
17705 # include <limits.h>
17707 # include <assert.h>
17712 /* Override any GCC internal prototype to avoid an error.
17713 Use char because int might match the return type of a GCC
17714 builtin and then its argument prototype would still apply. */
17719 /* The GNU C library defines this for functions which it implements
17720 to always fail with ENOSYS. Some functions are actually named
17721 something starting with __ and the normal name is an alias. */
17722 #if defined __stub_$ac_func || defined __stub___$ac_func
17729 return $ac_func ();
17734 rm -f conftest.
$ac_objext conftest
$ac_exeext
17735 if { (ac_try
="$ac_link"
17736 case "(($ac_try" in
17737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17741 $as_echo "$ac_try_echo") >&5
17742 (eval "$ac_link") 2>conftest.er1
17744 grep -v '^ *+' conftest.er1 >conftest.err
17746 cat conftest.err >&5
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } && {
17749 test -z "$ac_c_werror_flag" ||
17750 test ! -s conftest.err
17751 } && test -s conftest$ac_exeext && {
17752 test "$cross_compiling" = yes ||
17753 $as_test_x conftest$ac_exeext
17755 eval "$as_ac_var=yes"
17757 $as_echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 eval "$as_ac_var=no"
17763 rm -rf conftest.dSYM
17764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765 conftest$ac_exeext conftest.$ac_ext
17767 ac_res=`eval 'as_val=${'$as_ac_var'}
17768 $as_echo "$as_val"'`
17769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17770 $as_echo "$ac_res" >&6; }
17771 if test `eval 'as_val=${'$as_ac_var'}
17772 $as_echo "$as_val"'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17781 # Solaris has libkstat which does not require root.
17783 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17784 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17785 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17786 $as_echo_n "(cached) " >&6
17788 ac_check_lib_save_LIBS=$LIBS
17789 LIBS="-lkstat $LIBS"
17790 cat >conftest.$ac_ext <<_ACEOF
17793 cat confdefs.h >>conftest.$ac_ext
17794 cat >>conftest.$ac_ext <<_ACEOF
17795 /* end confdefs.h. */
17797 /* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17803 char kstat_open ();
17807 return kstat_open ();
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17816 *) ac_try_echo
=$ac_try;;
17818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17819 $as_echo "$ac_try_echo") >&5
17820 (eval "$ac_link") 2>conftest.er1
17822 grep -v '^ *+' conftest.er1
>conftest.err
17824 cat conftest.err
>&5
17825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest
$ac_exeext && {
17830 test "$cross_compiling" = yes ||
17831 $as_test_x conftest
$ac_exeext
17833 ac_cv_lib_kstat_kstat_open
=yes
17835 $as_echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.
$ac_ext >&5
17838 ac_cv_lib_kstat_kstat_open
=no
17841 rm -rf conftest.dSYM
17842 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17843 conftest
$ac_exeext conftest.
$ac_ext
17844 LIBS
=$ac_check_lib_save_LIBS
17846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17847 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17848 if test $ac_cv_lib_kstat_kstat_open = yes; then
17849 cat >>confdefs.h
<<_ACEOF
17850 #define HAVE_LIBKSTAT 1
17853 LIBS
="-lkstat $LIBS"
17857 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17859 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17860 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17861 # to get the right answer into the cache.
17862 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17863 if test $ac_have_func = no
; then
17864 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17865 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17866 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17867 $as_echo_n "(cached) " >&6
17869 ac_check_lib_save_LIBS
=$LIBS
17871 cat >conftest.
$ac_ext <<_ACEOF
17874 cat confdefs.h
>>conftest.
$ac_ext
17875 cat >>conftest.
$ac_ext <<_ACEOF
17876 /* end confdefs.h. */
17878 /* Override any GCC internal prototype to avoid an error.
17879 Use char because int might match the return type of a GCC
17880 builtin and then its argument prototype would still apply. */
17888 return elf_begin ();
17893 rm -f conftest.
$ac_objext conftest
$ac_exeext
17894 if { (ac_try
="$ac_link"
17895 case "(($ac_try" in
17896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17900 $as_echo "$ac_try_echo") >&5
17901 (eval "$ac_link") 2>conftest.er1
17903 grep -v '^ *+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest$ac_exeext && {
17911 test "$cross_compiling" = yes ||
17912 $as_test_x conftest$ac_exeext
17914 ac_cv_lib_elf_elf_begin=yes
17916 $as_echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17919 ac_cv_lib_elf_elf_begin=no
17922 rm -rf conftest.dSYM
17923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17924 conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17928 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17929 if test $ac_cv_lib_elf_elf_begin = yes; then
17934 if test $ac_have_func = no; then
17935 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17936 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17937 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17938 $as_echo_n "(cached) " >&6
17940 ac_check_lib_save_LIBS=$LIBS
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17959 return kvm_open ();
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17968 *) ac_try_echo
=$ac_try;;
17970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17971 $as_echo "$ac_try_echo") >&5
17972 (eval "$ac_link") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1
>conftest.err
17976 cat conftest.err
>&5
17977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest
$ac_exeext && {
17982 test "$cross_compiling" = yes ||
17983 $as_test_x conftest
$ac_exeext
17985 ac_cv_lib_kvm_kvm_open
=yes
17987 $as_echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.
$ac_ext >&5
17990 ac_cv_lib_kvm_kvm_open
=no
17993 rm -rf conftest.dSYM
17994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17995 conftest
$ac_exeext conftest.
$ac_ext
17996 LIBS
=$ac_check_lib_save_LIBS
17998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17999 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18000 if test $ac_cv_lib_kvm_kvm_open = yes; then
18004 # Check for the 4.4BSD definition of getloadavg.
18005 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18006 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18007 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18008 $as_echo_n "(cached) " >&6
18010 ac_check_lib_save_LIBS
=$LIBS
18011 LIBS
="-lutil $LIBS"
18012 cat >conftest.
$ac_ext <<_ACEOF
18015 cat confdefs.h
>>conftest.
$ac_ext
18016 cat >>conftest.
$ac_ext <<_ACEOF
18017 /* end confdefs.h. */
18019 /* Override any GCC internal prototype to avoid an error.
18020 Use char because int might match the return type of a GCC
18021 builtin and then its argument prototype would still apply. */
18025 char getloadavg ();
18029 return getloadavg ();
18034 rm -f conftest.
$ac_objext conftest
$ac_exeext
18035 if { (ac_try
="$ac_link"
18036 case "(($ac_try" in
18037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18041 $as_echo "$ac_try_echo") >&5
18042 (eval "$ac_link") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } && {
18049 test -z "$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18051 } && test -s conftest$ac_exeext && {
18052 test "$cross_compiling" = yes ||
18053 $as_test_x conftest$ac_exeext
18055 ac_cv_lib_util_getloadavg=yes
18057 $as_echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_cv_lib_util_getloadavg=no
18063 rm -rf conftest.dSYM
18064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18065 conftest$ac_exeext conftest.$ac_ext
18066 LIBS=$ac_check_lib_save_LIBS
18068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18069 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18070 if test $ac_cv_lib_util_getloadavg = yes; then
18071 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18076 if test $ac_have_func = no; then
18077 # There is a commonly available library for RS/6000 AIX.
18078 # Since it is not a standard part of AIX, it might be installed locally.
18079 ac_getloadavg_LIBS=$LIBS
18080 LIBS="-L/usr/local/lib $LIBS"
18081 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18082 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18083 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18084 $as_echo_n "(cached) " >&6
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-lgetloadavg $LIBS"
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18095 /* Override any GCC internal prototype to avoid an error.
18096 Use char because int might match the return type of a GCC
18097 builtin and then its argument prototype would still apply. */
18101 char getloadavg ();
18105 return getloadavg ();
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18114 *) ac_try_echo
=$ac_try;;
18116 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18117 $as_echo "$ac_try_echo") >&5
18118 (eval "$ac_link") 2>conftest.er1
18120 grep -v '^ *+' conftest.er1
>conftest.err
18122 cat conftest.err
>&5
18123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } && {
18125 test -z "$ac_c_werror_flag" ||
18126 test ! -s conftest.err
18127 } && test -s conftest
$ac_exeext && {
18128 test "$cross_compiling" = yes ||
18129 $as_test_x conftest
$ac_exeext
18131 ac_cv_lib_getloadavg_getloadavg
=yes
18133 $as_echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.
$ac_ext >&5
18136 ac_cv_lib_getloadavg_getloadavg
=no
18139 rm -rf conftest.dSYM
18140 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18141 conftest
$ac_exeext conftest.
$ac_ext
18142 LIBS
=$ac_check_lib_save_LIBS
18144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18145 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18146 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18147 LIBS
="-lgetloadavg $LIBS"
18149 LIBS
=$ac_getloadavg_LIBS
18154 # Make sure it is really in the library, if we think we found it,
18155 # otherwise set up the replacement function.
18157 for ac_func
in getloadavg
18159 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18160 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18161 $as_echo_n "checking for $ac_func... " >&6; }
18162 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18163 $as_echo_n "(cached) " >&6
18165 cat >conftest.
$ac_ext <<_ACEOF
18168 cat confdefs.h
>>conftest.
$ac_ext
18169 cat >>conftest.
$ac_ext <<_ACEOF
18170 /* end confdefs.h. */
18171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18173 #define $ac_func innocuous_$ac_func
18175 /* System header to define __stub macros and hopefully few prototypes,
18176 which can conflict with char $ac_func (); below.
18177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18178 <limits.h> exists even on freestanding compilers. */
18181 # include <limits.h>
18183 # include <assert.h>
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18195 /* The GNU C library defines this for functions which it implements
18196 to always fail with ENOSYS. Some functions are actually named
18197 something starting with __ and the normal name is an alias. */
18198 #if defined __stub_$ac_func || defined __stub___$ac_func
18205 return $ac_func ();
18210 rm -f conftest.
$ac_objext conftest
$ac_exeext
18211 if { (ac_try
="$ac_link"
18212 case "(($ac_try" in
18213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18217 $as_echo "$ac_try_echo") >&5
18218 (eval "$ac_link") 2>conftest.er1
18220 grep -v '^ *+' conftest.er1 >conftest.err
18222 cat conftest.err >&5
18223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext && {
18228 test "$cross_compiling" = yes ||
18229 $as_test_x conftest$ac_exeext
18231 eval "$as_ac_var=yes"
18233 $as_echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18236 eval "$as_ac_var=no"
18239 rm -rf conftest.dSYM
18240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18241 conftest$ac_exeext conftest.$ac_ext
18243 ac_res=`eval 'as_val=${'$as_ac_var'}
18244 $as_echo "$as_val"'`
18245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18246 $as_echo "$ac_res" >&6; }
18247 if test `eval 'as_val=${'$as_ac_var'}
18248 $as_echo "$as_val"'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18254 case " $LIBOBJS " in
18255 *" getloadavg.$ac_objext "* ) ;;
18256 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18261 cat >>confdefs.h <<\_ACEOF
18262 #define C_GETLOADAVG 1
18265 # Figure out what our getloadavg.c needs.
18267 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18268 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18269 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18270 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18271 $as_echo_n "(cached) " >&6
18273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18274 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18276 # Is the header compilable?
18277 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18278 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 $ac_includes_default
18286 #include <sys/dg_sys_info.h>
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18292 *) ac_try_echo
=$ac_try;;
18294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18295 $as_echo "$ac_try_echo") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18298 grep -v '^ *+' conftest.er1
>conftest.err
18300 cat conftest.err
>&5
18301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.
$ac_objext; then
18306 ac_header_compiler
=yes
18308 $as_echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.
$ac_ext >&5
18311 ac_header_compiler
=no
18314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18316 $as_echo "$ac_header_compiler" >&6; }
18318 # Is the header present?
18319 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18320 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18321 cat >conftest.
$ac_ext <<_ACEOF
18324 cat confdefs.h
>>conftest.
$ac_ext
18325 cat >>conftest.
$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <sys/dg_sys_info.h>
18329 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18330 case "(($ac_try" in
18331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18335 $as_echo "$ac_try_echo") >&5
18336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } >/dev/null && {
18343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18346 ac_header_preproc=yes
18348 $as_echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_preproc=no
18354 rm -f conftest.err conftest.$ac_ext
18355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18356 $as_echo "$ac_header_preproc" >&6; }
18358 # So? What about this header?
18359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18361 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18362 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18363 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18364 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18365 ac_header_preproc=yes
18368 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18369 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18370 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18371 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18372 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18373 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18374 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18375 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18376 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18377 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18378 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18379 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18383 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18384 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18385 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18386 $as_echo_n "(cached) " >&6
18388 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18391 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18394 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18397 cat >>confdefs.h <<\_ACEOF
18402 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18403 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18404 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18405 $as_echo_n "(cached) " >&6
18407 ac_check_lib_save_LIBS=$LIBS
18409 cat >conftest.$ac_ext <<_ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18416 /* Override any GCC internal prototype to avoid an error.
18417 Use char because int might match the return type of a GCC
18418 builtin and then its argument prototype would still apply. */
18422 char dg_sys_info ();
18426 return dg_sys_info ();
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18435 *) ac_try_echo
=$ac_try;;
18437 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18438 $as_echo "$ac_try_echo") >&5
18439 (eval "$ac_link") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1
>conftest.err
18443 cat conftest.err
>&5
18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest
$ac_exeext && {
18449 test "$cross_compiling" = yes ||
18450 $as_test_x conftest
$ac_exeext
18452 ac_cv_lib_dgc_dg_sys_info
=yes
18454 $as_echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.
$ac_ext >&5
18457 ac_cv_lib_dgc_dg_sys_info
=no
18460 rm -rf conftest.dSYM
18461 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18462 conftest
$ac_exeext conftest.
$ac_ext
18463 LIBS
=$ac_check_lib_save_LIBS
18465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18466 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18467 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18468 cat >>confdefs.h
<<_ACEOF
18469 #define HAVE_LIBDGC 1
18480 if test "${ac_cv_header_locale_h+set}" = set; then
18481 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18482 $as_echo_n "checking for locale.h... " >&6; }
18483 if test "${ac_cv_header_locale_h+set}" = set; then
18484 $as_echo_n "(cached) " >&6
18486 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18487 $as_echo "$ac_cv_header_locale_h" >&6; }
18489 # Is the header compilable?
18490 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18491 $as_echo_n "checking locale.h usability... " >&6; }
18492 cat >conftest.
$ac_ext <<_ACEOF
18495 cat confdefs.h
>>conftest.
$ac_ext
18496 cat >>conftest.
$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 $ac_includes_default
18499 #include <locale.h>
18501 rm -f conftest.
$ac_objext
18502 if { (ac_try
="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18508 $as_echo "$ac_try_echo") >&5
18509 (eval "$ac_compile") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest.$ac_objext; then
18519 ac_header_compiler=yes
18521 $as_echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 ac_header_compiler=no
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18528 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18529 $as_echo "$ac_header_compiler" >&6; }
18531 # Is the header present?
18532 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18533 $as_echo_n "checking locale.h presence... " >&6; }
18534 cat >conftest.$ac_ext <<_ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 #include <locale.h>
18542 if { (ac_try="$ac_cpp conftest.$ac_ext"
18543 case "(($ac_try" in
18544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18545 *) ac_try_echo
=$ac_try;;
18547 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18548 $as_echo "$ac_try_echo") >&5
18549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18551 grep -v '^ *+' conftest.er1
>conftest.err
18553 cat conftest.err
>&5
18554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } >/dev
/null
&& {
18556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18559 ac_header_preproc
=yes
18561 $as_echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.
$ac_ext >&5
18564 ac_header_preproc
=no
18567 rm -f conftest.err conftest.
$ac_ext
18568 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18569 $as_echo "$ac_header_preproc" >&6; }
18571 # So? What about this header?
18572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18574 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18575 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18576 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18577 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18578 ac_header_preproc
=yes
18581 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18582 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18583 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18584 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18585 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18586 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18587 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18588 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18589 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18590 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18591 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18592 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18596 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18597 $as_echo_n "checking for locale.h... " >&6; }
18598 if test "${ac_cv_header_locale_h+set}" = set; then
18599 $as_echo_n "(cached) " >&6
18601 ac_cv_header_locale_h
=$ac_header_preproc
18603 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18604 $as_echo "$ac_cv_header_locale_h" >&6; }
18610 for ac_func
in setlocale
18612 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 $as_echo_n "checking for $ac_func... " >&6; }
18615 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 $as_echo_n "(cached) " >&6
18618 cat >conftest.
$ac_ext <<_ACEOF
18621 cat confdefs.h
>>conftest.
$ac_ext
18622 cat >>conftest.
$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18634 # include <limits.h>
18636 # include <assert.h>
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18658 return $ac_func ();
18663 rm -f conftest.
$ac_objext conftest
$ac_exeext
18664 if { (ac_try
="$ac_link"
18665 case "(($ac_try" in
18666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext && {
18681 test "$cross_compiling" = yes ||
18682 $as_test_x conftest$ac_exeext
18684 eval "$as_ac_var=yes"
18686 $as_echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18689 eval "$as_ac_var=no"
18692 rm -rf conftest.dSYM
18693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18694 conftest$ac_exeext conftest.$ac_ext
18696 ac_res=`eval 'as_val=${'$as_ac_var'}
18697 $as_echo "$as_val"'`
18698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18699 $as_echo "$ac_res" >&6; }
18700 if test `eval 'as_val=${'$as_ac_var'}
18701 $as_echo "$as_val"'` = yes; then
18702 cat >>confdefs.h <<_ACEOF
18703 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18710 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18711 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18712 # Irix 4.0.5F has the header but not the library.
18713 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18716 cat >>confdefs.h <<\_ACEOF
18722 if test $ac_have_func = no; then
18723 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18724 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18725 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18726 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18727 $as_echo_n "(cached) " >&6
18729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18730 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18732 # Is the header compilable?
18733 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18734 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 $ac_includes_default
18742 #include <inq_stats/cpustats.h>
18744 rm -f conftest.$ac_objext
18745 if { (ac_try="$ac_compile"
18746 case "(($ac_try" in
18747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18748 *) ac_try_echo
=$ac_try;;
18750 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18751 $as_echo "$ac_try_echo") >&5
18752 (eval "$ac_compile") 2>conftest.er1
18754 grep -v '^ *+' conftest.er1
>conftest.err
18756 cat conftest.err
>&5
18757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } && {
18759 test -z "$ac_c_werror_flag" ||
18760 test ! -s conftest.err
18761 } && test -s conftest.
$ac_objext; then
18762 ac_header_compiler
=yes
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.
$ac_ext >&5
18767 ac_header_compiler
=no
18770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18772 $as_echo "$ac_header_compiler" >&6; }
18774 # Is the header present?
18775 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18776 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18777 cat >conftest.
$ac_ext <<_ACEOF
18780 cat confdefs.h
>>conftest.
$ac_ext
18781 cat >>conftest.
$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <inq_stats/cpustats.h>
18785 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18786 case "(($ac_try" in
18787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } >/dev/null && {
18799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18802 ac_header_preproc=yes
18804 $as_echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_header_preproc=no
18810 rm -f conftest.err conftest.$ac_ext
18811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18812 $as_echo "$ac_header_preproc" >&6; }
18814 # So? What about this header?
18815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18817 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18818 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18819 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18820 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18821 ac_header_preproc=yes
18824 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18825 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18826 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18827 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18828 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18829 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18830 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18831 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18832 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18833 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18834 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18835 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18839 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18840 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18841 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18842 $as_echo_n "(cached) " >&6
18844 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18847 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18850 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18853 cat >>confdefs.h <<\_ACEOF
18858 cat >>confdefs.h <<\_ACEOF
18867 if test $ac_have_func = no; then
18868 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18869 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18870 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18871 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18872 $as_echo_n "(cached) " >&6
18874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18875 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18877 # Is the header compilable?
18878 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18879 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886 $ac_includes_default
18887 #include <sys/cpustats.h>
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18893 *) ac_try_echo
=$ac_try;;
18895 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1
>conftest.err
18901 cat conftest.err
>&5
18902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.
$ac_objext; then
18907 ac_header_compiler
=yes
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.
$ac_ext >&5
18912 ac_header_compiler
=no
18915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18917 $as_echo "$ac_header_compiler" >&6; }
18919 # Is the header present?
18920 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18921 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18922 cat >conftest.
$ac_ext <<_ACEOF
18925 cat confdefs.h
>>conftest.
$ac_ext
18926 cat >>conftest.
$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include <sys/cpustats.h>
18930 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18931 case "(($ac_try" in
18932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18936 $as_echo "$ac_try_echo") >&5
18937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18939 grep -v '^ *+' conftest.er1 >conftest.err
18941 cat conftest.err >&5
18942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } >/dev/null && {
18944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18945 test ! -s conftest.err
18947 ac_header_preproc=yes
18949 $as_echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18952 ac_header_preproc=no
18955 rm -f conftest.err conftest.$ac_ext
18956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18957 $as_echo "$ac_header_preproc" >&6; }
18959 # So? What about this header?
18960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18962 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18963 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18964 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18965 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18966 ac_header_preproc=yes
18969 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18970 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18971 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18972 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18973 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18974 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18975 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18976 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18977 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18978 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18979 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18980 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18984 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18985 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18986 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18987 $as_echo_n "(cached) " >&6
18989 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18991 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18992 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18995 if test $ac_cv_header_sys_cpustats_h = yes; then
18996 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19005 if test $ac_have_func = no; then
19007 for ac_header in mach/mach.h
19009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 $as_echo_n "checking for $ac_header... " >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 $as_echo_n "(cached) " >&6
19016 ac_res=`eval 'as_val=${'$as_ac_Header'}
19017 $as_echo "$as_val"'`
19018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19019 $as_echo "$ac_res" >&6; }
19021 # Is the header compilable?
19022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19023 $as_echo_n "checking $ac_header usability... " >&6; }
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 $ac_includes_default
19031 #include <$ac_header>
19033 rm -f conftest.$ac_objext
19034 if { (ac_try="$ac_compile"
19035 case "(($ac_try" in
19036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19037 *) ac_try_echo
=$ac_try;;
19039 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19040 $as_echo "$ac_try_echo") >&5
19041 (eval "$ac_compile") 2>conftest.er1
19043 grep -v '^ *+' conftest.er1
>conftest.err
19045 cat conftest.err
>&5
19046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); } && {
19048 test -z "$ac_c_werror_flag" ||
19049 test ! -s conftest.err
19050 } && test -s conftest.
$ac_objext; then
19051 ac_header_compiler
=yes
19053 $as_echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.
$ac_ext >&5
19056 ac_header_compiler
=no
19059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19061 $as_echo "$ac_header_compiler" >&6; }
19063 # Is the header present?
19064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19065 $as_echo_n "checking $ac_header presence... " >&6; }
19066 cat >conftest.
$ac_ext <<_ACEOF
19069 cat confdefs.h
>>conftest.
$ac_ext
19070 cat >>conftest.
$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 #include <$ac_header>
19074 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19075 case "(($ac_try" in
19076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19080 $as_echo "$ac_try_echo") >&5
19081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19083 grep -v '^ *+' conftest.er1 >conftest.err
19085 cat conftest.err >&5
19086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } >/dev/null && {
19088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19089 test ! -s conftest.err
19091 ac_header_preproc=yes
19093 $as_echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_header_preproc=no
19099 rm -f conftest.err conftest.$ac_ext
19100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19101 $as_echo "$ac_header_preproc" >&6; }
19103 # So? What about this header?
19104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19110 ac_header_preproc=yes
19113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19129 $as_echo_n "checking for $ac_header... " >&6; }
19130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19131 $as_echo_n "(cached) " >&6
19133 eval "$as_ac_Header=\$ac_header_preproc"
19135 ac_res=`eval 'as_val=${'$as_ac_Header'}
19136 $as_echo "$as_val"'`
19137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19138 $as_echo "$ac_res" >&6; }
19141 if test `eval 'as_val=${'$as_ac_Header'}
19142 $as_echo "$as_val"'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19154 for ac_header in nlist.h
19156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19159 $as_echo_n "checking for $ac_header... " >&6; }
19160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19161 $as_echo_n "(cached) " >&6
19163 ac_res=`eval 'as_val=${'$as_ac_Header'}
19164 $as_echo "$as_val"'`
19165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19166 $as_echo "$ac_res" >&6; }
19168 # Is the header compilable?
19169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19170 $as_echo_n "checking $ac_header usability... " >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 #include <$ac_header>
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19184 *) ac_try_echo
=$ac_try;;
19186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19187 $as_echo "$ac_try_echo") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19190 grep -v '^ *+' conftest.er1
>conftest.err
19192 cat conftest.err
>&5
19193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest.
$ac_objext; then
19198 ac_header_compiler
=yes
19200 $as_echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.
$ac_ext >&5
19203 ac_header_compiler
=no
19206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 $as_echo "$ac_header_compiler" >&6; }
19210 # Is the header present?
19211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 $as_echo_n "checking $ac_header presence... " >&6; }
19213 cat >conftest.
$ac_ext <<_ACEOF
19216 cat confdefs.h
>>conftest.
$ac_ext
19217 cat >>conftest.
$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <$ac_header>
19221 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19227 $as_echo "$ac_try_echo") >&5
19228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } >/dev/null && {
19235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19238 ac_header_preproc=yes
19240 $as_echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.$ac_ext >&5
19243 ac_header_preproc=no
19246 rm -f conftest.err conftest.$ac_ext
19247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19248 $as_echo "$ac_header_preproc" >&6; }
19250 # So? What about this header?
19251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19257 ac_header_preproc=yes
19260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19276 $as_echo_n "checking for $ac_header... " >&6; }
19277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19278 $as_echo_n "(cached) " >&6
19280 eval "$as_ac_Header=\$ac_header_preproc"
19282 ac_res=`eval 'as_val=${'$as_ac_Header'}
19283 $as_echo "$as_val"'`
19284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19285 $as_echo "$ac_res" >&6; }
19288 if test `eval 'as_val=${'$as_ac_Header'}
19289 $as_echo "$as_val"'` = yes; then
19290 cat >>confdefs.h <<_ACEOF
19291 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19293 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19294 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19295 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19296 $as_echo_n "(cached) " >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19309 static struct nlist ac_aggr;
19310 if (ac_aggr.n_un.n_name)
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19320 *) ac_try_echo
=$ac_try;;
19322 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19323 $as_echo "$ac_try_echo") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1
>conftest.err
19328 cat conftest.err
>&5
19329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.
$ac_objext; then
19334 ac_cv_member_struct_nlist_n_un_n_name
=yes
19336 $as_echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.
$ac_ext >&5
19339 cat >conftest.
$ac_ext <<_ACEOF
19342 cat confdefs.h
>>conftest.
$ac_ext
19343 cat >>conftest.
$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19350 static struct nlist ac_aggr;
19351 if (sizeof ac_aggr.n_un.n_name)
19357 rm -f conftest.
$ac_objext
19358 if { (ac_try
="$ac_compile"
19359 case "(($ac_try" in
19360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19364 $as_echo "$ac_try_echo") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest.$ac_objext; then
19375 ac_cv_member_struct_nlist_n_un_n_name=yes
19377 $as_echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_member_struct_nlist_n_un_n_name=no
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19389 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19390 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19392 cat >>confdefs.h <<_ACEOF
19393 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19397 cat >>confdefs.h <<\_ACEOF
19398 #define NLIST_NAME_UNION 1
19412 # Some definitions of getloadavg require that the program be installed setgid.
19413 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19414 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19415 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19416 $as_echo_n "(cached) " >&6
19418 cat >conftest.$ac_ext <<_ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19425 #ifdef LDAV_PRIVILEGED
19426 Yowza Am I SETGID yet
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19431 ac_cv_func_getloadavg_setgid=yes
19433 ac_cv_func_getloadavg_setgid=no
19438 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19439 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19440 if test $ac_cv_func_getloadavg_setgid = yes; then
19443 cat >>confdefs.h <<\_ACEOF
19444 #define GETLOADAVG_PRIVILEGED 1
19451 if test $ac_cv_func_getloadavg_setgid = yes; then
19452 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19453 $as_echo_n "checking group of /dev/kmem... " >&6; }
19454 if test "${ac_cv_group_kmem+set}" = set; then
19455 $as_echo_n "(cached) " >&6
19457 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19458 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
19459 # If we got an error (system does not support symlinks), try without -L.
19460 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
19461 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19462 |
sed -ne 's/[ ][ ]*/ /g;
19463 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19467 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19468 $as_echo "$ac_cv_group_kmem" >&6; }
19469 KMEM_GROUP=$ac_cv_group_kmem
19471 if test "x$ac_save_LIBS" = x; then
19472 GETLOADAVG_LIBS=$LIBS
19474 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
19480 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19481 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19482 if test "${ac_cv_sys_largefile_source+set}" = set; then
19483 $as_echo_n "(cached) " >&6
19486 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 #include <sys/types.h> /* for off_t */
19497 int (*fp) (FILE *, off_t, int) = fseeko;
19498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19507 *) ac_try_echo
=$ac_try;;
19509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19510 $as_echo "$ac_try_echo") >&5
19511 (eval "$ac_link") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1
>conftest.err
19515 cat conftest.err
>&5
19516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && {
19518 test -z "$ac_c_werror_flag" ||
19519 test ! -s conftest.err
19520 } && test -s conftest
$ac_exeext && {
19521 test "$cross_compiling" = yes ||
19522 $as_test_x conftest
$ac_exeext
19524 ac_cv_sys_largefile_source
=no
; break
19526 $as_echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.
$ac_ext >&5
19532 rm -rf conftest.dSYM
19533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19534 conftest
$ac_exeext conftest.
$ac_ext
19535 cat >conftest.
$ac_ext <<_ACEOF
19538 cat confdefs.h
>>conftest.
$ac_ext
19539 cat >>conftest.
$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #define _LARGEFILE_SOURCE 1
19542 #include <sys/types.h> /* for off_t */
19547 int (*fp) (FILE *, off_t, int) = fseeko;
19548 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19553 rm -f conftest.
$ac_objext conftest
$ac_exeext
19554 if { (ac_try
="$ac_link"
19555 case "(($ac_try" in
19556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19560 $as_echo "$ac_try_echo") >&5
19561 (eval "$ac_link") 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } && {
19568 test -z "$ac_c_werror_flag" ||
19569 test ! -s conftest.err
19570 } && test -s conftest$ac_exeext && {
19571 test "$cross_compiling" = yes ||
19572 $as_test_x conftest$ac_exeext
19574 ac_cv_sys_largefile_source=1; break
19576 $as_echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19582 rm -rf conftest.dSYM
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584 conftest$ac_exeext conftest.$ac_ext
19585 ac_cv_sys_largefile_source=unknown
19589 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19590 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19591 case $ac_cv_sys_largefile_source in #(
19594 cat >>confdefs.h <<_ACEOF
19595 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19601 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19602 # in glibc 2.1.3, but that breaks too many other things.
19603 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19604 if test $ac_cv_sys_largefile_source != unknown; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_FSEEKO 1
19613 # Configure getopt.
19614 # getopt.m4 serial 10
19616 # The getopt module assume you want GNU getopt, with getopt_long etc,
19617 # rather than vanilla POSIX getopt. This means your your code should
19618 # always include <getopt.h> for the getopt prototypes.
19630 # Prerequisites of lib/getopt*.
19637 for ac_header in getopt.h
19639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19642 $as_echo_n "checking for $ac_header... " >&6; }
19643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached) " >&6
19646 ac_res=`eval 'as_val=${'$as_ac_Header'}
19647 $as_echo "$as_val"'`
19648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19649 $as_echo "$ac_res" >&6; }
19651 # Is the header compilable?
19652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19653 $as_echo_n "checking $ac_header usability... " >&6; }
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19661 #include <$ac_header>
19663 rm -f conftest.$ac_objext
19664 if { (ac_try="$ac_compile"
19665 case "(($ac_try" in
19666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19667 *) ac_try_echo
=$ac_try;;
19669 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19670 $as_echo "$ac_try_echo") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19673 grep -v '^ *+' conftest.er1
>conftest.err
19675 cat conftest.err
>&5
19676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.
$ac_objext; then
19681 ac_header_compiler
=yes
19683 $as_echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.
$ac_ext >&5
19686 ac_header_compiler
=no
19689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19691 $as_echo "$ac_header_compiler" >&6; }
19693 # Is the header present?
19694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19695 $as_echo_n "checking $ac_header presence... " >&6; }
19696 cat >conftest.
$ac_ext <<_ACEOF
19699 cat confdefs.h
>>conftest.
$ac_ext
19700 cat >>conftest.
$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 #include <$ac_header>
19704 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19705 case "(($ac_try" in
19706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19710 $as_echo "$ac_try_echo") >&5
19711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19713 grep -v '^ *+' conftest.er1 >conftest.err
19715 cat conftest.err >&5
19716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } >/dev/null && {
19718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19719 test ! -s conftest.err
19721 ac_header_preproc=yes
19723 $as_echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19726 ac_header_preproc=no
19729 rm -f conftest.err conftest.$ac_ext
19730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19731 $as_echo "$ac_header_preproc" >&6; }
19733 # So? What about this header?
19734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19740 ac_header_preproc=yes
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19746 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19750 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19759 $as_echo_n "checking for $ac_header... " >&6; }
19760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19761 $as_echo_n "(cached) " >&6
19763 eval "$as_ac_Header=\$ac_header_preproc"
19765 ac_res=`eval 'as_val=${'$as_ac_Header'}
19766 $as_echo "$as_val"'`
19767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19768 $as_echo "$ac_res" >&6; }
19771 if test `eval 'as_val=${'$as_ac_Header'}
19772 $as_echo "$as_val"'` = yes; then
19773 cat >>confdefs.h <<_ACEOF
19774 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19783 if test -z "$GETOPT_H"; then
19785 for ac_func in getopt_long_only
19787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19789 $as_echo_n "checking for $ac_func... " >&6; }
19790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached) " >&6
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19801 #define $ac_func innocuous_$ac_func
19803 /* System header to define __stub macros and hopefully few prototypes,
19804 which can conflict with char $ac_func (); below.
19805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19806 <limits.h> exists even on freestanding compilers. */
19809 # include <limits.h>
19811 # include <assert.h>
19816 /* Override any GCC internal prototype to avoid an error.
19817 Use char because int might match the return type of a GCC
19818 builtin and then its argument prototype would still apply. */
19823 /* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826 #if defined __stub_$ac_func || defined __stub___$ac_func
19833 return $ac_func ();
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19842 *) ac_try_echo
=$ac_try;;
19844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19845 $as_echo "$ac_try_echo") >&5
19846 (eval "$ac_link") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1
>conftest.err
19850 cat conftest.err
>&5
19851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest
$ac_exeext && {
19856 test "$cross_compiling" = yes ||
19857 $as_test_x conftest
$ac_exeext
19859 eval "$as_ac_var=yes"
19861 $as_echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.
$ac_ext >&5
19864 eval "$as_ac_var=no"
19867 rm -rf conftest.dSYM
19868 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19869 conftest
$ac_exeext conftest.
$ac_ext
19871 ac_res
=`eval 'as_val=${'$as_ac_var'}
19872 $as_echo "$as_val"'`
19873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19874 $as_echo "$ac_res" >&6; }
19875 if test `eval 'as_val=${'$as_ac_var'}
19876 $as_echo "$as_val"'` = yes; then
19877 cat >>confdefs.h
<<_ACEOF
19878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19888 if test -z "$GETOPT_H"; then
19889 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19890 $as_echo_n "checking whether optreset is declared... " >&6; }
19891 if test "${ac_cv_have_decl_optreset+set}" = set; then
19892 $as_echo_n "(cached) " >&6
19894 cat >conftest.
$ac_ext <<_ACEOF
19897 cat confdefs.h
>>conftest.
$ac_ext
19898 cat >>conftest.
$ac_ext <<_ACEOF
19899 /* end confdefs.h. */
19900 #include <getopt.h>
19913 rm -f conftest.
$ac_objext
19914 if { (ac_try
="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_have_decl_optreset=yes
19933 $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_have_decl_optreset=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19942 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19943 if test $ac_cv_have_decl_optreset = yes; then
19949 if test -z "$GETOPT_H"; then
19950 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19951 $as_echo_n "checking for working GNU getopt function... " >&6; }
19952 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19953 $as_echo_n "(cached) " >&6
19955 if test "$cross_compiling" = yes; then
19956 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19957 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19958 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19959 $as_echo_n "(cached) " >&6
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <getopt.h>
19972 #ifndef getopt_clip
19973 (void) getopt_clip;
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19984 *) ac_try_echo
=$ac_try;;
19986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_compile") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1
>conftest.err
19992 cat conftest.err
>&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest.
$ac_objext; then
19998 ac_cv_have_decl_getopt_clip
=yes
20000 $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.
$ac_ext >&5
20003 ac_cv_have_decl_getopt_clip
=no
20006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20009 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20010 if test $ac_cv_have_decl_getopt_clip = yes; then
20011 gl_cv_func_gnu_getopt
=no
20013 gl_cv_func_gnu_getopt
=yes
20017 cat >conftest.
$ac_ext <<_ACEOF
20020 cat confdefs.h
>>conftest.
$ac_ext
20021 cat >>conftest.
$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 #include <getopt.h>
20029 myargv[0] = "conftest";
20032 return getopt (2, myargv, "+a") != '?';
20038 rm -f conftest
$ac_exeext
20039 if { (ac_try
="$ac_link"
20040 case "(($ac_try" in
20041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20045 $as_echo "$ac_try_echo") >&5
20046 (eval "$ac_link") 2>&5
20048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20050 { (case "(($ac_try" in
20051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20052 *) ac_try_echo
=$ac_try;;
20054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20055 $as_echo "$ac_try_echo") >&5
20056 (eval "$ac_try") 2>&5
20058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; }; then
20060 gl_cv_func_gnu_getopt
=yes
20062 $as_echo "$as_me: program exited with status $ac_status" >&5
20063 $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.
$ac_ext >&5
20066 ( exit $ac_status )
20067 gl_cv_func_gnu_getopt
=no
20069 rm -rf conftest.dSYM
20070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20075 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20076 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20077 if test "$gl_cv_func_gnu_getopt" = "no"; then
20084 if test -n "$GETOPT_H"; then
20089 cat >>confdefs.h
<<\_ACEOF
20090 #define __GETOPT_PREFIX rpl_
20096 GETOPTOBJS
='getopt.o getopt1.o'
20103 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20104 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20105 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20106 $as_echo_n "(cached) " >&6
20108 # Use it with a single arg.
20109 cat >conftest.
$ac_ext <<_ACEOF
20112 cat confdefs.h
>>conftest.
$ac_ext
20113 cat >>conftest.
$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115 $ac_includes_default
20124 rm -f conftest.
$ac_objext
20125 if { (ac_try
="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_cv_func_getpgrp_void=no
20144 $as_echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_func_getpgrp_void=yes
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20154 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20155 if test $ac_cv_func_getpgrp_void = yes; then
20157 cat >>confdefs.h <<\_ACEOF
20158 #define GETPGRP_VOID 1
20165 for ac_func in strftime
20167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20169 $as_echo_n "checking for $ac_func... " >&6; }
20170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20171 $as_echo_n "(cached) " >&6
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20181 #define $ac_func innocuous_$ac_func
20183 /* System header to define __stub macros and hopefully few prototypes,
20184 which can conflict with char $ac_func (); below.
20185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20186 <limits.h> exists even on freestanding compilers. */
20189 # include <limits.h>
20191 # include <assert.h>
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20203 /* The GNU C library defines this for functions which it implements
20204 to always fail with ENOSYS. Some functions are actually named
20205 something starting with __ and the normal name is an alias. */
20206 #if defined __stub_$ac_func || defined __stub___$ac_func
20213 return $ac_func ();
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20222 *) ac_try_echo
=$ac_try;;
20224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20225 $as_echo "$ac_try_echo") >&5
20226 (eval "$ac_link") 2>conftest.er1
20228 grep -v '^ *+' conftest.er1
>conftest.err
20230 cat conftest.err
>&5
20231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } && {
20233 test -z "$ac_c_werror_flag" ||
20234 test ! -s conftest.err
20235 } && test -s conftest
$ac_exeext && {
20236 test "$cross_compiling" = yes ||
20237 $as_test_x conftest
$ac_exeext
20239 eval "$as_ac_var=yes"
20241 $as_echo "$as_me: failed program was:" >&5
20242 sed 's/^/| /' conftest.
$ac_ext >&5
20244 eval "$as_ac_var=no"
20247 rm -rf conftest.dSYM
20248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20249 conftest
$ac_exeext conftest.
$ac_ext
20251 ac_res
=`eval 'as_val=${'$as_ac_var'}
20252 $as_echo "$as_val"'`
20253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20254 $as_echo "$ac_res" >&6; }
20255 if test `eval 'as_val=${'$as_ac_var'}
20256 $as_echo "$as_val"'` = yes; then
20257 cat >>confdefs.h
<<_ACEOF
20258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20262 # strftime is in -lintl on SCO UNIX.
20263 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20264 $as_echo_n "checking for strftime in -lintl... " >&6; }
20265 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20268 ac_check_lib_save_LIBS
=$LIBS
20269 LIBS
="-lintl $LIBS"
20270 cat >conftest.
$ac_ext <<_ACEOF
20273 cat confdefs.h
>>conftest.
$ac_ext
20274 cat >>conftest.
$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20287 return strftime ();
20292 rm -f conftest.
$ac_objext conftest
$ac_exeext
20293 if { (ac_try
="$ac_link"
20294 case "(($ac_try" in
20295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299 $as_echo "$ac_try_echo") >&5
20300 (eval "$ac_link") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext && {
20310 test "$cross_compiling" = yes ||
20311 $as_test_x conftest$ac_exeext
20313 ac_cv_lib_intl_strftime=yes
20315 $as_echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_cv_lib_intl_strftime=no
20321 rm -rf conftest.dSYM
20322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20327 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20328 if test $ac_cv_lib_intl_strftime = yes; then
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_STRFTIME 1
20333 LIBS="-lintl $LIBS"
20342 for ac_func in grantpt
20344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20346 $as_echo_n "checking for $ac_func... " >&6; }
20347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20348 $as_echo_n "(cached) " >&6
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20358 #define $ac_func innocuous_$ac_func
20360 /* System header to define __stub macros and hopefully few prototypes,
20361 which can conflict with char $ac_func (); below.
20362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20363 <limits.h> exists even on freestanding compilers. */
20366 # include <limits.h>
20368 # include <assert.h>
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20380 /* The GNU C library defines this for functions which it implements
20381 to always fail with ENOSYS. Some functions are actually named
20382 something starting with __ and the normal name is an alias. */
20383 #if defined __stub_$ac_func || defined __stub___$ac_func
20390 return $ac_func ();
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20399 *) ac_try_echo
=$ac_try;;
20401 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20402 $as_echo "$ac_try_echo") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1
>conftest.err
20407 cat conftest.err
>&5
20408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest
$ac_exeext && {
20413 test "$cross_compiling" = yes ||
20414 $as_test_x conftest
$ac_exeext
20416 eval "$as_ac_var=yes"
20418 $as_echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.
$ac_ext >&5
20421 eval "$as_ac_var=no"
20424 rm -rf conftest.dSYM
20425 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20426 conftest
$ac_exeext conftest.
$ac_ext
20428 ac_res
=`eval 'as_val=${'$as_ac_var'}
20429 $as_echo "$as_val"'`
20430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20431 $as_echo "$ac_res" >&6; }
20432 if test `eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'` = yes; then
20434 cat >>confdefs.h
<<_ACEOF
20435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20442 # PTY-related GNU extensions.
20444 for ac_func
in getpt
20446 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20447 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20448 $as_echo_n "checking for $ac_func... " >&6; }
20449 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20450 $as_echo_n "(cached) " >&6
20452 cat >conftest.
$ac_ext <<_ACEOF
20455 cat confdefs.h
>>conftest.
$ac_ext
20456 cat >>conftest.
$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20460 #define $ac_func innocuous_$ac_func
20462 /* System header to define __stub macros and hopefully few prototypes,
20463 which can conflict with char $ac_func (); below.
20464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20465 <limits.h> exists even on freestanding compilers. */
20468 # include <limits.h>
20470 # include <assert.h>
20475 /* Override any GCC internal prototype to avoid an error.
20476 Use char because int might match the return type of a GCC
20477 builtin and then its argument prototype would still apply. */
20482 /* The GNU C library defines this for functions which it implements
20483 to always fail with ENOSYS. Some functions are actually named
20484 something starting with __ and the normal name is an alias. */
20485 #if defined __stub_$ac_func || defined __stub___$ac_func
20492 return $ac_func ();
20497 rm -f conftest.
$ac_objext conftest
$ac_exeext
20498 if { (ac_try
="$ac_link"
20499 case "(($ac_try" in
20500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20504 $as_echo "$ac_try_echo") >&5
20505 (eval "$ac_link") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext && {
20515 test "$cross_compiling" = yes ||
20516 $as_test_x conftest$ac_exeext
20518 eval "$as_ac_var=yes"
20520 $as_echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 eval "$as_ac_var=no"
20526 rm -rf conftest.dSYM
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20530 ac_res=`eval 'as_val=${'$as_ac_var'}
20531 $as_echo "$as_val"'`
20532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20533 $as_echo "$ac_res" >&6; }
20534 if test `eval 'as_val=${'$as_ac_var'}
20535 $as_echo "$as_val"'` = yes; then
20536 cat >>confdefs.h <<_ACEOF
20537 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20544 # Check this now, so that we will NOT find the above functions in ncurses.
20545 # That is because we have not set up to link ncurses in lib-src.
20546 # It's better to believe a function is not available
20547 # than to expect to find it in ncurses.
20549 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20550 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20551 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20552 $as_echo_n "(cached) " >&6
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lncurses $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20582 *) ac_try_echo
=$ac_try;;
20584 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20585 $as_echo "$ac_try_echo") >&5
20586 (eval "$ac_link") 2>conftest.er1
20588 grep -v '^ *+' conftest.er1
>conftest.err
20590 cat conftest.err
>&5
20591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest
$ac_exeext && {
20596 test "$cross_compiling" = yes ||
20597 $as_test_x conftest
$ac_exeext
20599 ac_cv_lib_ncurses_tparm
=yes
20601 $as_echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.
$ac_ext >&5
20604 ac_cv_lib_ncurses_tparm
=no
20607 rm -rf conftest.dSYM
20608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20609 conftest
$ac_exeext conftest.
$ac_ext
20610 LIBS
=$ac_check_lib_save_LIBS
20612 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20613 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20614 if test $ac_cv_lib_ncurses_tparm = yes; then
20615 cat >>confdefs.h
<<_ACEOF
20616 #define HAVE_LIBNCURSES 1
20619 LIBS
="-lncurses $LIBS"
20624 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20627 cat >conftest.
$ac_ext <<_ACEOF
20630 cat confdefs.h
>>conftest.
$ac_ext
20631 cat >>conftest.
$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633 #include <netinet/in.h>
20634 #include <arpa/nameser.h>
20635 #include <resolv.h>
20644 rm -f conftest.
$ac_objext conftest
$ac_exeext
20645 if { (ac_try
="$ac_link"
20646 case "(($ac_try" in
20647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20651 $as_echo "$ac_try_echo") >&5
20652 (eval "$ac_link") 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && {
20659 test -z "$ac_c_werror_flag" ||
20660 test ! -s conftest.err
20661 } && test -s conftest$ac_exeext && {
20662 test "$cross_compiling" = yes ||
20663 $as_test_x conftest$ac_exeext
20667 $as_echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20673 rm -rf conftest.dSYM
20674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20675 conftest$ac_exeext conftest.$ac_ext
20676 if test "$have_res_init" = no; then
20678 LIBS="$LIBS -lresolv"
20679 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20680 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20681 cat >conftest.$ac_ext <<_ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687 #include <netinet/in.h>
20688 #include <arpa/nameser.h>
20689 #include <resolv.h>
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20702 *) ac_try_echo
=$ac_try;;
20704 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20705 $as_echo "$ac_try_echo") >&5
20706 (eval "$ac_link") 2>conftest.er1
20708 grep -v '^ *+' conftest.er1
>conftest.err
20710 cat conftest.err
>&5
20711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest
$ac_exeext && {
20716 test "$cross_compiling" = yes ||
20717 $as_test_x conftest
$ac_exeext
20721 $as_echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.
$ac_ext >&5
20727 rm -rf conftest.dSYM
20728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20729 conftest
$ac_exeext conftest.
$ac_ext
20730 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20731 $as_echo "$have_res_init" >&6; }
20732 if test "$have_res_init" = yes ; then
20738 if test "$have_res_init" = yes; then
20740 cat >>confdefs.h
<<\_ACEOF
20741 #define HAVE_RES_INIT 1
20746 # Do we need the Hesiod library to provide the support routines?
20747 if test "$with_hesiod" != no
; then
20748 # Don't set $LIBS here -- see comments above.
20749 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20750 $as_echo_n "checking for res_send... " >&6; }
20751 if test "${ac_cv_func_res_send+set}" = set; then
20752 $as_echo_n "(cached) " >&6
20754 cat >conftest.
$ac_ext <<_ACEOF
20757 cat confdefs.h
>>conftest.
$ac_ext
20758 cat >>conftest.
$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20762 #define res_send innocuous_res_send
20764 /* System header to define __stub macros and hopefully few prototypes,
20765 which can conflict with char res_send (); below.
20766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20767 <limits.h> exists even on freestanding compilers. */
20770 # include <limits.h>
20772 # include <assert.h>
20777 /* Override any GCC internal prototype to avoid an error.
20778 Use char because int might match the return type of a GCC
20779 builtin and then its argument prototype would still apply. */
20784 /* The GNU C library defines this for functions which it implements
20785 to always fail with ENOSYS. Some functions are actually named
20786 something starting with __ and the normal name is an alias. */
20787 #if defined __stub_res_send || defined __stub___res_send
20794 return res_send ();
20799 rm -f conftest.
$ac_objext conftest
$ac_exeext
20800 if { (ac_try
="$ac_link"
20801 case "(($ac_try" in
20802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20806 $as_echo "$ac_try_echo") >&5
20807 (eval "$ac_link") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext && {
20817 test "$cross_compiling" = yes ||
20818 $as_test_x conftest$ac_exeext
20820 ac_cv_func_res_send=yes
20822 $as_echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_cv_func_res_send=no
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20833 $as_echo "$ac_cv_func_res_send" >&6; }
20834 if test $ac_cv_func_res_send = yes; then
20837 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20838 $as_echo_n "checking for __res_send... " >&6; }
20839 if test "${ac_cv_func___res_send+set}" = set; then
20840 $as_echo_n "(cached) " >&6
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20850 #define __res_send innocuous___res_send
20852 /* System header to define __stub macros and hopefully few prototypes,
20853 which can conflict with char __res_send (); below.
20854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20855 <limits.h> exists even on freestanding compilers. */
20858 # include <limits.h>
20860 # include <assert.h>
20865 /* Override any GCC internal prototype to avoid an error.
20866 Use char because int might match the return type of a GCC
20867 builtin and then its argument prototype would still apply. */
20871 char __res_send ();
20872 /* The GNU C library defines this for functions which it implements
20873 to always fail with ENOSYS. Some functions are actually named
20874 something starting with __ and the normal name is an alias. */
20875 #if defined __stub___res_send || defined __stub_____res_send
20882 return __res_send ();
20887 rm -f conftest.$ac_objext conftest$ac_exeext
20888 if { (ac_try="$ac_link"
20889 case "(($ac_try" in
20890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20891 *) ac_try_echo
=$ac_try;;
20893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20894 $as_echo "$ac_try_echo") >&5
20895 (eval "$ac_link") 2>conftest.er1
20897 grep -v '^ *+' conftest.er1
>conftest.err
20899 cat conftest.err
>&5
20900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest
$ac_exeext && {
20905 test "$cross_compiling" = yes ||
20906 $as_test_x conftest
$ac_exeext
20908 ac_cv_func___res_send
=yes
20910 $as_echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.
$ac_ext >&5
20913 ac_cv_func___res_send
=no
20916 rm -rf conftest.dSYM
20917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20918 conftest
$ac_exeext conftest.
$ac_ext
20920 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20921 $as_echo "$ac_cv_func___res_send" >&6; }
20922 if test $ac_cv_func___res_send = yes; then
20925 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20926 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20927 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20928 $as_echo_n "(cached) " >&6
20930 ac_check_lib_save_LIBS
=$LIBS
20931 LIBS
="-lresolv $LIBS"
20932 cat >conftest.
$ac_ext <<_ACEOF
20935 cat confdefs.h
>>conftest.
$ac_ext
20936 cat >>conftest.
$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20949 return res_send ();
20954 rm -f conftest.
$ac_objext conftest
$ac_exeext
20955 if { (ac_try
="$ac_link"
20956 case "(($ac_try" in
20957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20961 $as_echo "$ac_try_echo") >&5
20962 (eval "$ac_link") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest$ac_exeext && {
20972 test "$cross_compiling" = yes ||
20973 $as_test_x conftest$ac_exeext
20975 ac_cv_lib_resolv_res_send=yes
20977 $as_echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_lib_resolv_res_send=no
20983 rm -rf conftest.dSYM
20984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20985 conftest$ac_exeext conftest.$ac_ext
20986 LIBS=$ac_check_lib_save_LIBS
20988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20989 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20990 if test $ac_cv_lib_resolv_res_send = yes; then
20993 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20994 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20995 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20996 $as_echo_n "(cached) " >&6
20998 ac_check_lib_save_LIBS=$LIBS
20999 LIBS="-lresolv $LIBS"
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21007 /* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
21013 char __res_send ();
21017 return __res_send ();
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21026 *) ac_try_echo
=$ac_try;;
21028 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21029 $as_echo "$ac_try_echo") >&5
21030 (eval "$ac_link") 2>conftest.er1
21032 grep -v '^ *+' conftest.er1
>conftest.err
21034 cat conftest.err
>&5
21035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest
$ac_exeext && {
21040 test "$cross_compiling" = yes ||
21041 $as_test_x conftest
$ac_exeext
21043 ac_cv_lib_resolv___res_send
=yes
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.
$ac_ext >&5
21048 ac_cv_lib_resolv___res_send
=no
21051 rm -rf conftest.dSYM
21052 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21053 conftest
$ac_exeext conftest.
$ac_ext
21054 LIBS
=$ac_check_lib_save_LIBS
21056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21057 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21058 if test $ac_cv_lib_resolv___res_send = yes; then
21068 if test "$resolv" = yes ; then
21073 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21074 $as_echo_n "checking for hes_getmailhost... " >&6; }
21075 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21076 $as_echo_n "(cached) " >&6
21078 cat >conftest.
$ac_ext <<_ACEOF
21081 cat confdefs.h
>>conftest.
$ac_ext
21082 cat >>conftest.
$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21086 #define hes_getmailhost innocuous_hes_getmailhost
21088 /* System header to define __stub macros and hopefully few prototypes,
21089 which can conflict with char hes_getmailhost (); below.
21090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091 <limits.h> exists even on freestanding compilers. */
21094 # include <limits.h>
21096 # include <assert.h>
21099 #undef hes_getmailhost
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21107 char hes_getmailhost ();
21108 /* The GNU C library defines this for functions which it implements
21109 to always fail with ENOSYS. Some functions are actually named
21110 something starting with __ and the normal name is an alias. */
21111 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21118 return hes_getmailhost ();
21123 rm -f conftest.
$ac_objext conftest
$ac_exeext
21124 if { (ac_try
="$ac_link"
21125 case "(($ac_try" in
21126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21130 $as_echo "$ac_try_echo") >&5
21131 (eval "$ac_link") 2>conftest.er1
21133 grep -v '^ *+' conftest.er1 >conftest.err
21135 cat conftest.err >&5
21136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest$ac_exeext && {
21141 test "$cross_compiling" = yes ||
21142 $as_test_x conftest$ac_exeext
21144 ac_cv_func_hes_getmailhost=yes
21146 $as_echo "$as_me: failed program was:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 ac_cv_func_hes_getmailhost=no
21152 rm -rf conftest.dSYM
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21156 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21157 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21158 if test $ac_cv_func_hes_getmailhost = yes; then
21161 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21162 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21163 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21164 $as_echo_n "(cached) " >&6
21166 ac_check_lib_save_LIBS=$LIBS
21167 LIBS="-lhesiod $RESOLVLIB $LIBS"
21168 cat >conftest.$ac_ext <<_ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21175 /* Override any GCC internal prototype to avoid an error.
21176 Use char because int might match the return type of a GCC
21177 builtin and then its argument prototype would still apply. */
21181 char hes_getmailhost ();
21185 return hes_getmailhost ();
21190 rm -f conftest.$ac_objext conftest$ac_exeext
21191 if { (ac_try="$ac_link"
21192 case "(($ac_try" in
21193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21194 *) ac_try_echo
=$ac_try;;
21196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21197 $as_echo "$ac_try_echo") >&5
21198 (eval "$ac_link") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1
>conftest.err
21202 cat conftest.err
>&5
21203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest
$ac_exeext && {
21208 test "$cross_compiling" = yes ||
21209 $as_test_x conftest
$ac_exeext
21211 ac_cv_lib_hesiod_hes_getmailhost
=yes
21213 $as_echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.
$ac_ext >&5
21216 ac_cv_lib_hesiod_hes_getmailhost
=no
21219 rm -rf conftest.dSYM
21220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21221 conftest
$ac_exeext conftest.
$ac_ext
21222 LIBS
=$ac_check_lib_save_LIBS
21224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21225 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21226 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21228 cat >>confdefs.h
<<\_ACEOF
21229 #define HAVE_LIBHESIOD 1
21240 # Do we need libresolv (due to res_init or Hesiod)?
21241 if test "$resolv" = yes ; then
21243 cat >>confdefs.h
<<\_ACEOF
21244 #define HAVE_LIBRESOLV 1
21249 # These tell us which Kerberos-related libraries to use.
21250 if test "${with_kerberos}" != no
; then
21252 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21253 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21254 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21255 $as_echo_n "(cached) " >&6
21257 ac_check_lib_save_LIBS
=$LIBS
21258 LIBS
="-lcom_err $LIBS"
21259 cat >conftest.
$ac_ext <<_ACEOF
21262 cat confdefs.h
>>conftest.
$ac_ext
21263 cat >>conftest.
$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21266 /* Override any GCC internal prototype to avoid an error.
21267 Use char because int might match the return type of a GCC
21268 builtin and then its argument prototype would still apply. */
21281 rm -f conftest.
$ac_objext conftest
$ac_exeext
21282 if { (ac_try
="$ac_link"
21283 case "(($ac_try" in
21284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21288 $as_echo "$ac_try_echo") >&5
21289 (eval "$ac_link") 2>conftest.er1
21291 grep -v '^ *+' conftest.er1 >conftest.err
21293 cat conftest.err >&5
21294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } && {
21296 test -z "$ac_c_werror_flag" ||
21297 test ! -s conftest.err
21298 } && test -s conftest$ac_exeext && {
21299 test "$cross_compiling" = yes ||
21300 $as_test_x conftest$ac_exeext
21302 ac_cv_lib_com_err_com_err=yes
21304 $as_echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_cv_lib_com_err_com_err=no
21310 rm -rf conftest.dSYM
21311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21312 conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21316 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21317 if test $ac_cv_lib_com_err_com_err = yes; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define HAVE_LIBCOM_ERR 1
21322 LIBS="-lcom_err $LIBS"
21327 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21328 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21329 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21330 $as_echo_n "(cached) " >&6
21332 ac_check_lib_save_LIBS=$LIBS
21333 LIBS="-lk5crypto $LIBS"
21334 cat >conftest.$ac_ext <<_ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21347 char mit_des_cbc_encrypt ();
21351 return mit_des_cbc_encrypt ();
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (ac_try="$ac_link"
21358 case "(($ac_try" in
21359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21360 *) ac_try_echo
=$ac_try;;
21362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21363 $as_echo "$ac_try_echo") >&5
21364 (eval "$ac_link") 2>conftest.er1
21366 grep -v '^ *+' conftest.er1
>conftest.err
21368 cat conftest.err
>&5
21369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); } && {
21371 test -z "$ac_c_werror_flag" ||
21372 test ! -s conftest.err
21373 } && test -s conftest
$ac_exeext && {
21374 test "$cross_compiling" = yes ||
21375 $as_test_x conftest
$ac_exeext
21377 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.
$ac_ext >&5
21382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
21385 rm -rf conftest.dSYM
21386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21387 conftest
$ac_exeext conftest.
$ac_ext
21388 LIBS
=$ac_check_lib_save_LIBS
21390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21391 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21392 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21393 cat >>confdefs.h
<<_ACEOF
21394 #define HAVE_LIBK5CRYPTO 1
21397 LIBS
="-lk5crypto $LIBS"
21402 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21403 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21404 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21405 $as_echo_n "(cached) " >&6
21407 ac_check_lib_save_LIBS
=$LIBS
21408 LIBS
="-lcrypto $LIBS"
21409 cat >conftest.
$ac_ext <<_ACEOF
21412 cat confdefs.h
>>conftest.
$ac_ext
21413 cat >>conftest.
$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21416 /* Override any GCC internal prototype to avoid an error.
21417 Use char because int might match the return type of a GCC
21418 builtin and then its argument prototype would still apply. */
21422 char mit_des_cbc_encrypt ();
21426 return mit_des_cbc_encrypt ();
21431 rm -f conftest.
$ac_objext conftest
$ac_exeext
21432 if { (ac_try
="$ac_link"
21433 case "(($ac_try" in
21434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21438 $as_echo "$ac_try_echo") >&5
21439 (eval "$ac_link") 2>conftest.er1
21441 grep -v '^ *+' conftest.er1 >conftest.err
21443 cat conftest.err >&5
21444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && {
21446 test -z "$ac_c_werror_flag" ||
21447 test ! -s conftest.err
21448 } && test -s conftest$ac_exeext && {
21449 test "$cross_compiling" = yes ||
21450 $as_test_x conftest$ac_exeext
21452 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21454 $as_echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21460 rm -rf conftest.dSYM
21461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21462 conftest$ac_exeext conftest.$ac_ext
21463 LIBS=$ac_check_lib_save_LIBS
21465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21466 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21467 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define HAVE_LIBCRYPTO 1
21472 LIBS="-lcrypto $LIBS"
21477 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21478 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21479 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21480 $as_echo_n "(cached) " >&6
21482 ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lkrb5 $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21497 char krb5_init_context ();
21501 return krb5_init_context ();
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21510 *) ac_try_echo
=$ac_try;;
21512 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21513 $as_echo "$ac_try_echo") >&5
21514 (eval "$ac_link") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1
>conftest.err
21518 cat conftest.err
>&5
21519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest
$ac_exeext && {
21524 test "$cross_compiling" = yes ||
21525 $as_test_x conftest
$ac_exeext
21527 ac_cv_lib_krb5_krb5_init_context
=yes
21529 $as_echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.
$ac_ext >&5
21532 ac_cv_lib_krb5_krb5_init_context
=no
21535 rm -rf conftest.dSYM
21536 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21537 conftest
$ac_exeext conftest.
$ac_ext
21538 LIBS
=$ac_check_lib_save_LIBS
21540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21541 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21542 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21543 cat >>confdefs.h
<<_ACEOF
21544 #define HAVE_LIBKRB5 1
21547 LIBS
="-lkrb5 $LIBS"
21551 if test "${with_kerberos5}" = no
; then
21553 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21554 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21555 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21556 $as_echo_n "(cached) " >&6
21558 ac_check_lib_save_LIBS
=$LIBS
21559 LIBS
="-ldes425 $LIBS"
21560 cat >conftest.
$ac_ext <<_ACEOF
21563 cat confdefs.h
>>conftest.
$ac_ext
21564 cat >>conftest.
$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21567 /* Override any GCC internal prototype to avoid an error.
21568 Use char because int might match the return type of a GCC
21569 builtin and then its argument prototype would still apply. */
21573 char des_cbc_encrypt ();
21577 return des_cbc_encrypt ();
21582 rm -f conftest.
$ac_objext conftest
$ac_exeext
21583 if { (ac_try
="$ac_link"
21584 case "(($ac_try" in
21585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21589 $as_echo "$ac_try_echo") >&5
21590 (eval "$ac_link") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest$ac_exeext && {
21600 test "$cross_compiling" = yes ||
21601 $as_test_x conftest$ac_exeext
21603 ac_cv_lib_des425_des_cbc_encrypt=yes
21605 $as_echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_cv_lib_des425_des_cbc_encrypt=no
21611 rm -rf conftest.dSYM
21612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21613 conftest$ac_exeext conftest.$ac_ext
21614 LIBS=$ac_check_lib_save_LIBS
21616 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21617 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21618 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21619 cat >>confdefs.h <<_ACEOF
21620 #define HAVE_LIBDES425 1
21623 LIBS="-ldes425 $LIBS"
21627 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21628 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21629 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21630 $as_echo_n "(cached) " >&6
21632 ac_check_lib_save_LIBS=$LIBS
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21641 /* Override any GCC internal prototype to avoid an error.
21642 Use char because int might match the return type of a GCC
21643 builtin and then its argument prototype would still apply. */
21647 char des_cbc_encrypt ();
21651 return des_cbc_encrypt ();
21656 rm -f conftest.$ac_objext conftest$ac_exeext
21657 if { (ac_try="$ac_link"
21658 case "(($ac_try" in
21659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21660 *) ac_try_echo
=$ac_try;;
21662 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21663 $as_echo "$ac_try_echo") >&5
21664 (eval "$ac_link") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1
>conftest.err
21668 cat conftest.err
>&5
21669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest
$ac_exeext && {
21674 test "$cross_compiling" = yes ||
21675 $as_test_x conftest
$ac_exeext
21677 ac_cv_lib_des_des_cbc_encrypt
=yes
21679 $as_echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.
$ac_ext >&5
21682 ac_cv_lib_des_des_cbc_encrypt
=no
21685 rm -rf conftest.dSYM
21686 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21687 conftest
$ac_exeext conftest.
$ac_ext
21688 LIBS
=$ac_check_lib_save_LIBS
21690 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21691 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21692 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21693 cat >>confdefs.h
<<_ACEOF
21694 #define HAVE_LIBDES 1
21704 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21705 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21706 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21707 $as_echo_n "(cached) " >&6
21709 ac_check_lib_save_LIBS
=$LIBS
21710 LIBS
="-lkrb4 $LIBS"
21711 cat >conftest.
$ac_ext <<_ACEOF
21714 cat confdefs.h
>>conftest.
$ac_ext
21715 cat >>conftest.
$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21718 /* Override any GCC internal prototype to avoid an error.
21719 Use char because int might match the return type of a GCC
21720 builtin and then its argument prototype would still apply. */
21724 char krb_get_cred ();
21728 return krb_get_cred ();
21733 rm -f conftest.
$ac_objext conftest
$ac_exeext
21734 if { (ac_try
="$ac_link"
21735 case "(($ac_try" in
21736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21740 $as_echo "$ac_try_echo") >&5
21741 (eval "$ac_link") 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); } && {
21748 test -z "$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21750 } && test -s conftest$ac_exeext && {
21751 test "$cross_compiling" = yes ||
21752 $as_test_x conftest$ac_exeext
21754 ac_cv_lib_krb4_krb_get_cred=yes
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_cv_lib_krb4_krb_get_cred=no
21762 rm -rf conftest.dSYM
21763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21764 conftest$ac_exeext conftest.$ac_ext
21765 LIBS=$ac_check_lib_save_LIBS
21767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21768 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21769 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21770 cat >>confdefs.h <<_ACEOF
21771 #define HAVE_LIBKRB4 1
21774 LIBS="-lkrb4 $LIBS"
21778 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21779 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21780 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21781 $as_echo_n "(cached) " >&6
21783 ac_check_lib_save_LIBS=$LIBS
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21792 /* Override any GCC internal prototype to avoid an error.
21793 Use char because int might match the return type of a GCC
21794 builtin and then its argument prototype would still apply. */
21798 char krb_get_cred ();
21802 return krb_get_cred ();
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21811 *) ac_try_echo
=$ac_try;;
21813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21817 grep -v '^ *+' conftest.er1
>conftest.err
21819 cat conftest.err
>&5
21820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest
$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest
$ac_exeext
21828 ac_cv_lib_krb_krb_get_cred
=yes
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.
$ac_ext >&5
21833 ac_cv_lib_krb_krb_get_cred
=no
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21838 conftest
$ac_exeext conftest.
$ac_ext
21839 LIBS
=$ac_check_lib_save_LIBS
21841 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21842 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21843 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21844 cat >>confdefs.h
<<_ACEOF
21845 #define HAVE_LIBKRB 1
21856 if test "${with_kerberos5}" != no
; then
21858 for ac_header
in krb5.h
21860 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21861 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21863 $as_echo_n "checking for $ac_header... " >&6; }
21864 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21865 $as_echo_n "(cached) " >&6
21867 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21868 $as_echo "$as_val"'`
21869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21870 $as_echo "$ac_res" >&6; }
21872 # Is the header compilable?
21873 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874 $as_echo_n "checking $ac_header usability... " >&6; }
21875 cat >conftest.
$ac_ext <<_ACEOF
21878 cat confdefs.h
>>conftest.
$ac_ext
21879 cat >>conftest.
$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 $ac_includes_default
21882 #include <$ac_header>
21884 rm -f conftest.
$ac_objext
21885 if { (ac_try
="$ac_compile"
21886 case "(($ac_try" in
21887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21891 $as_echo "$ac_try_echo") >&5
21892 (eval "$ac_compile") 2>conftest.er1
21894 grep -v '^ *+' conftest.er1 >conftest.err
21896 cat conftest.err >&5
21897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } && {
21899 test -z "$ac_c_werror_flag" ||
21900 test ! -s conftest.err
21901 } && test -s conftest.$ac_objext; then
21902 ac_header_compiler=yes
21904 $as_echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ac_header_compiler=no
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912 $as_echo "$ac_header_compiler" >&6; }
21914 # Is the header present?
21915 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916 $as_echo_n "checking $ac_header presence... " >&6; }
21917 cat >conftest.$ac_ext <<_ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h. */
21923 #include <$ac_header>
21925 if { (ac_try="$ac_cpp conftest.$ac_ext"
21926 case "(($ac_try" in
21927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21928 *) ac_try_echo
=$ac_try;;
21930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21934 grep -v '^ *+' conftest.er1
>conftest.err
21936 cat conftest.err
>&5
21937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } >/dev
/null
&& {
21939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21940 test ! -s conftest.err
21942 ac_header_preproc
=yes
21944 $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.
$ac_ext >&5
21947 ac_header_preproc
=no
21950 rm -f conftest.err conftest.
$ac_ext
21951 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21952 $as_echo "$ac_header_preproc" >&6; }
21954 # So? What about this header?
21955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21958 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21960 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21961 ac_header_preproc
=yes
21964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21965 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21967 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21969 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21971 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21973 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21975 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21980 $as_echo_n "checking for $ac_header... " >&6; }
21981 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21982 $as_echo_n "(cached) " >&6
21984 eval "$as_ac_Header=\$ac_header_preproc"
21986 ac_res
=`eval 'as_val=${'$as_ac_Header'}
21987 $as_echo "$as_val"'`
21988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21989 $as_echo "$ac_res" >&6; }
21992 if test `eval 'as_val=${'$as_ac_Header'}
21993 $as_echo "$as_val"'` = yes; then
21994 cat >>confdefs.h
<<_ACEOF
21995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21997 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21998 $as_echo_n "checking for krb5_error.text... " >&6; }
21999 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22000 $as_echo_n "(cached) " >&6
22002 cat >conftest.
$ac_ext <<_ACEOF
22005 cat confdefs.h
>>conftest.
$ac_ext
22006 cat >>conftest.
$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22013 static krb5_error ac_aggr;
22020 rm -f conftest.
$ac_objext
22021 if { (ac_try
="$ac_compile"
22022 case "(($ac_try" in
22023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22027 $as_echo "$ac_try_echo") >&5
22028 (eval "$ac_compile") 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } && {
22035 test -z "$ac_c_werror_flag" ||
22036 test ! -s conftest.err
22037 } && test -s conftest.$ac_objext; then
22038 ac_cv_member_krb5_error_text=yes
22040 $as_echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22054 static krb5_error ac_aggr;
22055 if (sizeof ac_aggr.text)
22061 rm -f conftest.$ac_objext
22062 if { (ac_try="$ac_compile"
22063 case "(($ac_try" in
22064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22065 *) ac_try_echo
=$ac_try;;
22067 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22068 $as_echo "$ac_try_echo") >&5
22069 (eval "$ac_compile") 2>conftest.er1
22071 grep -v '^ *+' conftest.er1
>conftest.err
22073 cat conftest.err
>&5
22074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } && {
22076 test -z "$ac_c_werror_flag" ||
22077 test ! -s conftest.err
22078 } && test -s conftest.
$ac_objext; then
22079 ac_cv_member_krb5_error_text
=yes
22081 $as_echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.
$ac_ext >&5
22084 ac_cv_member_krb5_error_text
=no
22087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22092 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22093 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22094 if test $ac_cv_member_krb5_error_text = yes; then
22096 cat >>confdefs.h
<<_ACEOF
22097 #define HAVE_KRB5_ERROR_TEXT 1
22102 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22103 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22104 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22105 $as_echo_n "(cached) " >&6
22107 cat >conftest.
$ac_ext <<_ACEOF
22110 cat confdefs.h
>>conftest.
$ac_ext
22111 cat >>conftest.
$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22118 static krb5_error ac_aggr;
22119 if (ac_aggr.e_text)
22125 rm -f conftest.
$ac_objext
22126 if { (ac_try
="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22132 $as_echo "$ac_try_echo") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_cv_member_krb5_error_e_text=yes
22145 $as_echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 cat >conftest.$ac_ext <<_ACEOF
22151 cat confdefs.h >>conftest.$ac_ext
22152 cat >>conftest.$ac_ext <<_ACEOF
22153 /* end confdefs.h. */
22159 static krb5_error ac_aggr;
22160 if (sizeof ac_aggr.e_text)
22166 rm -f conftest.$ac_objext
22167 if { (ac_try="$ac_compile"
22168 case "(($ac_try" in
22169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22170 *) ac_try_echo
=$ac_try;;
22172 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22173 $as_echo "$ac_try_echo") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22176 grep -v '^ *+' conftest.er1
>conftest.err
22178 cat conftest.err
>&5
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.
$ac_objext; then
22184 ac_cv_member_krb5_error_e_text
=yes
22186 $as_echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.
$ac_ext >&5
22189 ac_cv_member_krb5_error_e_text
=no
22192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22197 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22198 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22199 if test $ac_cv_member_krb5_error_e_text = yes; then
22201 cat >>confdefs.h
<<_ACEOF
22202 #define HAVE_KRB5_ERROR_E_TEXT 1
22214 for ac_header
in des.h
22216 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22217 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22219 $as_echo_n "checking for $ac_header... " >&6; }
22220 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22221 $as_echo_n "(cached) " >&6
22223 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22224 $as_echo "$as_val"'`
22225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22226 $as_echo "$ac_res" >&6; }
22228 # Is the header compilable?
22229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22230 $as_echo_n "checking $ac_header usability... " >&6; }
22231 cat >conftest.
$ac_ext <<_ACEOF
22234 cat confdefs.h
>>conftest.
$ac_ext
22235 cat >>conftest.
$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 $ac_includes_default
22238 #include <$ac_header>
22240 rm -f conftest.
$ac_objext
22241 if { (ac_try
="$ac_compile"
22242 case "(($ac_try" in
22243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22244 *) ac_try_echo=$ac_try;;
22246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22247 $as_echo "$ac_try_echo") >&5
22248 (eval "$ac_compile") 2>conftest.er1
22250 grep -v '^ *+' conftest.er1 >conftest.err
22252 cat conftest.err >&5
22253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest.$ac_objext; then
22258 ac_header_compiler=yes
22260 $as_echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22263 ac_header_compiler=no
22266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22268 $as_echo "$ac_header_compiler" >&6; }
22270 # Is the header present?
22271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22272 $as_echo_n "checking $ac_header presence... " >&6; }
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22279 #include <$ac_header>
22281 if { (ac_try="$ac_cpp conftest.$ac_ext"
22282 case "(($ac_try" in
22283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22284 *) ac_try_echo
=$ac_try;;
22286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22287 $as_echo "$ac_try_echo") >&5
22288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22290 grep -v '^ *+' conftest.er1
>conftest.err
22292 cat conftest.err
>&5
22293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } >/dev
/null
&& {
22295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22296 test ! -s conftest.err
22298 ac_header_preproc
=yes
22300 $as_echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.
$ac_ext >&5
22303 ac_header_preproc
=no
22306 rm -f conftest.err conftest.
$ac_ext
22307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22308 $as_echo "$ac_header_preproc" >&6; }
22310 # So? What about this header?
22311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22316 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22317 ac_header_preproc
=yes
22320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22323 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22329 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22336 $as_echo_n "checking for $ac_header... " >&6; }
22337 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22338 $as_echo_n "(cached) " >&6
22340 eval "$as_ac_Header=\$ac_header_preproc"
22342 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22343 $as_echo "$as_val"'`
22344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22345 $as_echo "$ac_res" >&6; }
22348 if test `eval 'as_val=${'$as_ac_Header'}
22349 $as_echo "$as_val"'` = yes; then
22350 cat >>confdefs.h
<<_ACEOF
22351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22356 for ac_header
in kerberosIV
/des.h
22358 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22361 $as_echo_n "checking for $ac_header... " >&6; }
22362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22363 $as_echo_n "(cached) " >&6
22365 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22366 $as_echo "$as_val"'`
22367 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22368 $as_echo "$ac_res" >&6; }
22370 # Is the header compilable?
22371 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22372 $as_echo_n "checking $ac_header usability... " >&6; }
22373 cat >conftest.
$ac_ext <<_ACEOF
22376 cat confdefs.h
>>conftest.
$ac_ext
22377 cat >>conftest.
$ac_ext <<_ACEOF
22378 /* end confdefs.h. */
22379 $ac_includes_default
22380 #include <$ac_header>
22382 rm -f conftest.
$ac_objext
22383 if { (ac_try
="$ac_compile"
22384 case "(($ac_try" in
22385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22389 $as_echo "$ac_try_echo") >&5
22390 (eval "$ac_compile") 2>conftest.er1
22392 grep -v '^ *+' conftest.er1 >conftest.err
22394 cat conftest.err >&5
22395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } && {
22397 test -z "$ac_c_werror_flag" ||
22398 test ! -s conftest.err
22399 } && test -s conftest.$ac_objext; then
22400 ac_header_compiler=yes
22402 $as_echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22405 ac_header_compiler=no
22408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22410 $as_echo "$ac_header_compiler" >&6; }
22412 # Is the header present?
22413 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22414 $as_echo_n "checking $ac_header presence... " >&6; }
22415 cat >conftest.$ac_ext <<_ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 #include <$ac_header>
22423 if { (ac_try="$ac_cpp conftest.$ac_ext"
22424 case "(($ac_try" in
22425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22426 *) ac_try_echo
=$ac_try;;
22428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22429 $as_echo "$ac_try_echo") >&5
22430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22432 grep -v '^ *+' conftest.er1
>conftest.err
22434 cat conftest.err
>&5
22435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } >/dev
/null
&& {
22437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22440 ac_header_preproc
=yes
22442 $as_echo "$as_me: failed program was:" >&5
22443 sed 's/^/| /' conftest.
$ac_ext >&5
22445 ac_header_preproc
=no
22448 rm -f conftest.err conftest.
$ac_ext
22449 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22450 $as_echo "$ac_header_preproc" >&6; }
22452 # So? What about this header?
22453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22456 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22458 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22459 ac_header_preproc
=yes
22462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22463 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22465 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22471 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22473 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22478 $as_echo_n "checking for $ac_header... " >&6; }
22479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22480 $as_echo_n "(cached) " >&6
22482 eval "$as_ac_Header=\$ac_header_preproc"
22484 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22485 $as_echo "$as_val"'`
22486 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22487 $as_echo "$ac_res" >&6; }
22490 if test `eval 'as_val=${'$as_ac_Header'}
22491 $as_echo "$as_val"'` = yes; then
22492 cat >>confdefs.h
<<_ACEOF
22493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22498 for ac_header
in kerberos
/des.h
22500 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22502 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22503 $as_echo_n "checking for $ac_header... " >&6; }
22504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22505 $as_echo_n "(cached) " >&6
22507 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22508 $as_echo "$as_val"'`
22509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22510 $as_echo "$ac_res" >&6; }
22512 # Is the header compilable?
22513 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22514 $as_echo_n "checking $ac_header usability... " >&6; }
22515 cat >conftest.
$ac_ext <<_ACEOF
22518 cat confdefs.h
>>conftest.
$ac_ext
22519 cat >>conftest.
$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22522 #include <$ac_header>
22524 rm -f conftest.
$ac_objext
22525 if { (ac_try
="$ac_compile"
22526 case "(($ac_try" in
22527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22531 $as_echo "$ac_try_echo") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_header_compiler=yes
22544 $as_echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_compiler=no
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22552 $as_echo "$ac_header_compiler" >&6; }
22554 # Is the header present?
22555 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22556 $as_echo_n "checking $ac_header presence... " >&6; }
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <$ac_header>
22565 if { (ac_try="$ac_cpp conftest.$ac_ext"
22566 case "(($ac_try" in
22567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22568 *) ac_try_echo
=$ac_try;;
22570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22571 $as_echo "$ac_try_echo") >&5
22572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22574 grep -v '^ *+' conftest.er1
>conftest.err
22576 cat conftest.err
>&5
22577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } >/dev
/null
&& {
22579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22580 test ! -s conftest.err
22582 ac_header_preproc
=yes
22584 $as_echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.
$ac_ext >&5
22587 ac_header_preproc
=no
22590 rm -f conftest.err conftest.
$ac_ext
22591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22592 $as_echo "$ac_header_preproc" >&6; }
22594 # So? What about this header?
22595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22598 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22601 ac_header_preproc
=yes
22604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22605 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22607 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22611 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22615 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22620 $as_echo_n "checking for $ac_header... " >&6; }
22621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22622 $as_echo_n "(cached) " >&6
22624 eval "$as_ac_Header=\$ac_header_preproc"
22626 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22627 $as_echo "$as_val"'`
22628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22629 $as_echo "$ac_res" >&6; }
22632 if test `eval 'as_val=${'$as_ac_Header'}
22633 $as_echo "$as_val"'` = yes; then
22634 cat >>confdefs.h
<<_ACEOF
22635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22651 for ac_header
in krb.h
22653 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22656 $as_echo_n "checking for $ac_header... " >&6; }
22657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22658 $as_echo_n "(cached) " >&6
22660 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22661 $as_echo "$as_val"'`
22662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22663 $as_echo "$ac_res" >&6; }
22665 # Is the header compilable?
22666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22667 $as_echo_n "checking $ac_header usability... " >&6; }
22668 cat >conftest.
$ac_ext <<_ACEOF
22671 cat confdefs.h
>>conftest.
$ac_ext
22672 cat >>conftest.
$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 #include <$ac_header>
22677 rm -f conftest.
$ac_objext
22678 if { (ac_try
="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22684 $as_echo "$ac_try_echo") >&5
22685 (eval "$ac_compile") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } && {
22692 test -z "$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 } && test -s conftest.$ac_objext; then
22695 ac_header_compiler=yes
22697 $as_echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_header_compiler=no
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22705 $as_echo "$ac_header_compiler" >&6; }
22707 # Is the header present?
22708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22709 $as_echo_n "checking $ac_header presence... " >&6; }
22710 cat >conftest.$ac_ext <<_ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include <$ac_header>
22718 if { (ac_try="$ac_cpp conftest.$ac_ext"
22719 case "(($ac_try" in
22720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22721 *) ac_try_echo
=$ac_try;;
22723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22724 $as_echo "$ac_try_echo") >&5
22725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22727 grep -v '^ *+' conftest.er1
>conftest.err
22729 cat conftest.err
>&5
22730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } >/dev
/null
&& {
22732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22735 ac_header_preproc
=yes
22737 $as_echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.
$ac_ext >&5
22740 ac_header_preproc
=no
22743 rm -f conftest.err conftest.
$ac_ext
22744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22745 $as_echo "$ac_header_preproc" >&6; }
22747 # So? What about this header?
22748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22754 ac_header_preproc
=yes
22757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22773 $as_echo_n "checking for $ac_header... " >&6; }
22774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22775 $as_echo_n "(cached) " >&6
22777 eval "$as_ac_Header=\$ac_header_preproc"
22779 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22780 $as_echo "$as_val"'`
22781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22782 $as_echo "$ac_res" >&6; }
22785 if test `eval 'as_val=${'$as_ac_Header'}
22786 $as_echo "$as_val"'` = yes; then
22787 cat >>confdefs.h
<<_ACEOF
22788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22793 for ac_header
in kerberosIV
/krb.h
22795 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 $as_echo_n "checking for $ac_header... " >&6; }
22799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22800 $as_echo_n "(cached) " >&6
22802 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22803 $as_echo "$as_val"'`
22804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22805 $as_echo "$ac_res" >&6; }
22807 # Is the header compilable?
22808 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22809 $as_echo_n "checking $ac_header usability... " >&6; }
22810 cat >conftest.
$ac_ext <<_ACEOF
22813 cat confdefs.h
>>conftest.
$ac_ext
22814 cat >>conftest.
$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 #include <$ac_header>
22819 rm -f conftest.
$ac_objext
22820 if { (ac_try
="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22826 $as_echo "$ac_try_echo") >&5
22827 (eval "$ac_compile") 2>conftest.er1
22829 grep -v '^ *+' conftest.er1 >conftest.err
22831 cat conftest.err >&5
22832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } && {
22834 test -z "$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22836 } && test -s conftest.$ac_objext; then
22837 ac_header_compiler=yes
22839 $as_echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ac_header_compiler=no
22845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22847 $as_echo "$ac_header_compiler" >&6; }
22849 # Is the header present?
22850 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22851 $as_echo_n "checking $ac_header presence... " >&6; }
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22858 #include <$ac_header>
22860 if { (ac_try="$ac_cpp conftest.$ac_ext"
22861 case "(($ac_try" in
22862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22863 *) ac_try_echo
=$ac_try;;
22865 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22866 $as_echo "$ac_try_echo") >&5
22867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22869 grep -v '^ *+' conftest.er1
>conftest.err
22871 cat conftest.err
>&5
22872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } >/dev
/null
&& {
22874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22877 ac_header_preproc
=yes
22879 $as_echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.
$ac_ext >&5
22882 ac_header_preproc
=no
22885 rm -f conftest.err conftest.
$ac_ext
22886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22887 $as_echo "$ac_header_preproc" >&6; }
22889 # So? What about this header?
22890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22893 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22895 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22896 ac_header_preproc
=yes
22899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22900 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22902 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22904 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22906 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22908 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22910 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22915 $as_echo_n "checking for $ac_header... " >&6; }
22916 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22917 $as_echo_n "(cached) " >&6
22919 eval "$as_ac_Header=\$ac_header_preproc"
22921 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22922 $as_echo "$as_val"'`
22923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22924 $as_echo "$ac_res" >&6; }
22927 if test `eval 'as_val=${'$as_ac_Header'}
22928 $as_echo "$as_val"'` = yes; then
22929 cat >>confdefs.h
<<_ACEOF
22930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22935 for ac_header
in kerberos
/krb.h
22937 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22938 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22939 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22940 $as_echo_n "checking for $ac_header... " >&6; }
22941 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22942 $as_echo_n "(cached) " >&6
22944 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22945 $as_echo "$as_val"'`
22946 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22947 $as_echo "$ac_res" >&6; }
22949 # Is the header compilable?
22950 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22951 $as_echo_n "checking $ac_header usability... " >&6; }
22952 cat >conftest.
$ac_ext <<_ACEOF
22955 cat confdefs.h
>>conftest.
$ac_ext
22956 cat >>conftest.
$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22961 rm -f conftest.
$ac_objext
22962 if { (ac_try
="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_header_compiler=yes
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_header_compiler=no
22987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22989 $as_echo "$ac_header_compiler" >&6; }
22991 # Is the header present?
22992 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22993 $as_echo_n "checking $ac_header presence... " >&6; }
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 #include <$ac_header>
23002 if { (ac_try="$ac_cpp conftest.$ac_ext"
23003 case "(($ac_try" in
23004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23005 *) ac_try_echo
=$ac_try;;
23007 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23008 $as_echo "$ac_try_echo") >&5
23009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23011 grep -v '^ *+' conftest.er1
>conftest.err
23013 cat conftest.err
>&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } >/dev
/null
&& {
23016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23019 ac_header_preproc
=yes
23021 $as_echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.
$ac_ext >&5
23024 ac_header_preproc
=no
23027 rm -f conftest.err conftest.
$ac_ext
23028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23029 $as_echo "$ac_header_preproc" >&6; }
23031 # So? What about this header?
23032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23038 ac_header_preproc
=yes
23041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23042 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23046 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23052 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23056 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23057 $as_echo_n "checking for $ac_header... " >&6; }
23058 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23059 $as_echo_n "(cached) " >&6
23061 eval "$as_ac_Header=\$ac_header_preproc"
23063 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23064 $as_echo "$as_val"'`
23065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23066 $as_echo "$ac_res" >&6; }
23069 if test `eval 'as_val=${'$as_ac_Header'}
23070 $as_echo "$as_val"'` = yes; then
23071 cat >>confdefs.h
<<_ACEOF
23072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23089 for ac_header
in com_err.h
23091 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23092 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23094 $as_echo_n "checking for $ac_header... " >&6; }
23095 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23096 $as_echo_n "(cached) " >&6
23098 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23099 $as_echo "$as_val"'`
23100 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23101 $as_echo "$ac_res" >&6; }
23103 # Is the header compilable?
23104 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23105 $as_echo_n "checking $ac_header usability... " >&6; }
23106 cat >conftest.
$ac_ext <<_ACEOF
23109 cat confdefs.h
>>conftest.
$ac_ext
23110 cat >>conftest.
$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 $ac_includes_default
23113 #include <$ac_header>
23115 rm -f conftest.
$ac_objext
23116 if { (ac_try
="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23122 $as_echo "$ac_try_echo") >&5
23123 (eval "$ac_compile") 2>conftest.er1
23125 grep -v '^ *+' conftest.er1 >conftest.err
23127 cat conftest.err >&5
23128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } && {
23130 test -z "$ac_c_werror_flag" ||
23131 test ! -s conftest.err
23132 } && test -s conftest.$ac_objext; then
23133 ac_header_compiler=yes
23135 $as_echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23138 ac_header_compiler=no
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23143 $as_echo "$ac_header_compiler" >&6; }
23145 # Is the header present?
23146 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23147 $as_echo_n "checking $ac_header presence... " >&6; }
23148 cat >conftest.$ac_ext <<_ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 #include <$ac_header>
23156 if { (ac_try="$ac_cpp conftest.$ac_ext"
23157 case "(($ac_try" in
23158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23159 *) ac_try_echo
=$ac_try;;
23161 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23162 $as_echo "$ac_try_echo") >&5
23163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23165 grep -v '^ *+' conftest.er1
>conftest.err
23167 cat conftest.err
>&5
23168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } >/dev
/null
&& {
23170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23171 test ! -s conftest.err
23173 ac_header_preproc
=yes
23175 $as_echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.
$ac_ext >&5
23178 ac_header_preproc
=no
23181 rm -f conftest.err conftest.
$ac_ext
23182 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23183 $as_echo "$ac_header_preproc" >&6; }
23185 # So? What about this header?
23186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23189 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23192 ac_header_preproc
=yes
23195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23196 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23198 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23200 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23202 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23206 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23211 $as_echo_n "checking for $ac_header... " >&6; }
23212 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23213 $as_echo_n "(cached) " >&6
23215 eval "$as_ac_Header=\$ac_header_preproc"
23217 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23218 $as_echo "$as_val"'`
23219 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23220 $as_echo "$ac_res" >&6; }
23223 if test `eval 'as_val=${'$as_ac_Header'}
23224 $as_echo "$as_val"'` = yes; then
23225 cat >>confdefs.h
<<_ACEOF
23226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23235 # Solaris requires -lintl if you want strerror (which calls dgettext)
23236 # to return localized messages.
23238 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23239 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23240 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23241 $as_echo_n "(cached) " >&6
23243 ac_check_lib_save_LIBS
=$LIBS
23244 LIBS
="-lintl $LIBS"
23245 cat >conftest.
$ac_ext <<_ACEOF
23248 cat confdefs.h
>>conftest.
$ac_ext
23249 cat >>conftest.
$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23252 /* Override any GCC internal prototype to avoid an error.
23253 Use char because int might match the return type of a GCC
23254 builtin and then its argument prototype would still apply. */
23262 return dgettext ();
23267 rm -f conftest.
$ac_objext conftest
$ac_exeext
23268 if { (ac_try
="$ac_link"
23269 case "(($ac_try" in
23270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23274 $as_echo "$ac_try_echo") >&5
23275 (eval "$ac_link") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest$ac_exeext && {
23285 test "$cross_compiling" = yes ||
23286 $as_test_x conftest$ac_exeext
23288 ac_cv_lib_intl_dgettext=yes
23290 $as_echo "$as_me: failed program was:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 ac_cv_lib_intl_dgettext=no
23296 rm -rf conftest.dSYM
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298 conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23301 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23302 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23303 if test $ac_cv_lib_intl_dgettext = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_LIBINTL 1
23308 LIBS="-lintl $LIBS"
23313 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23314 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23315 if test "${emacs_cv_localtime_cache+set}" = set; then
23316 $as_echo_n "(cached) " >&6
23318 if test x$ac_cv_func_tzset = xyes; then
23319 if test "$cross_compiling" = yes; then
23320 # If we have tzset, assume the worst when cross-compiling.
23321 emacs_cv_localtime_cache=yes
23323 cat >conftest.$ac_ext <<_ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23330 extern char **environ;
23334 for (to = from = environ; (*to = *from); from++)
23335 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23338 char TZ_GMT0[] = "TZ=GMT0";
23339 char TZ_PST8[] = "TZ=PST8";
23342 time_t now = time ((time_t *) 0);
23343 int hour_GMT0, hour_unset;
23344 if (putenv (TZ_GMT0) != 0)
23346 hour_GMT0 = localtime (&now)->tm_hour;
23348 hour_unset = localtime (&now)->tm_hour;
23349 if (putenv (TZ_PST8) != 0)
23351 if (localtime (&now)->tm_hour == hour_GMT0)
23354 if (localtime (&now)->tm_hour != hour_unset)
23359 rm -f conftest$ac_exeext
23360 if { (ac_try="$ac_link"
23361 case "(($ac_try" in
23362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23363 *) ac_try_echo
=$ac_try;;
23365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23366 $as_echo "$ac_try_echo") >&5
23367 (eval "$ac_link") 2>&5
23369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23371 { (case "(($ac_try" in
23372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23376 $as_echo "$ac_try_echo") >&5
23377 (eval "$ac_try") 2>&5
23379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; }; then
23381 emacs_cv_localtime_cache=no
23383 $as_echo "$as_me: program exited with status $ac_status" >&5
23384 $as_echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ( exit $ac_status )
23388 emacs_cv_localtime_cache=yes
23390 rm -rf conftest.dSYM
23391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23396 # If we lack tzset, report that localtime does not cache TZ,
23397 # since we can't invalidate the cache if we don't have tzset.
23398 emacs_cv_localtime_cache=no
23401 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23402 $as_echo "$emacs_cv_localtime_cache" >&6; }
23403 if test $emacs_cv_localtime_cache = yes; then
23405 cat >>confdefs.h <<\_ACEOF
23406 #define LOCALTIME_CACHE 1
23411 if test "x$HAVE_TIMEVAL" = xyes; then
23413 for ac_func in gettimeofday
23415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23416 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23417 $as_echo_n "checking for $ac_func... " >&6; }
23418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23419 $as_echo_n "(cached) " >&6
23421 cat >conftest.$ac_ext <<_ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23429 #define $ac_func innocuous_$ac_func
23431 /* System header to define __stub macros and hopefully few prototypes,
23432 which can conflict with char $ac_func (); below.
23433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23434 <limits.h> exists even on freestanding compilers. */
23437 # include <limits.h>
23439 # include <assert.h>
23444 /* Override any GCC internal prototype to avoid an error.
23445 Use char because int might match the return type of a GCC
23446 builtin and then its argument prototype would still apply. */
23451 /* The GNU C library defines this for functions which it implements
23452 to always fail with ENOSYS. Some functions are actually named
23453 something starting with __ and the normal name is an alias. */
23454 #if defined __stub_$ac_func || defined __stub___$ac_func
23461 return $ac_func ();
23466 rm -f conftest.$ac_objext conftest$ac_exeext
23467 if { (ac_try="$ac_link"
23468 case "(($ac_try" in
23469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23470 *) ac_try_echo
=$ac_try;;
23472 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23473 $as_echo "$ac_try_echo") >&5
23474 (eval "$ac_link") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1
>conftest.err
23478 cat conftest.err
>&5
23479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest
$ac_exeext && {
23484 test "$cross_compiling" = yes ||
23485 $as_test_x conftest
$ac_exeext
23487 eval "$as_ac_var=yes"
23489 $as_echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.
$ac_ext >&5
23492 eval "$as_ac_var=no"
23495 rm -rf conftest.dSYM
23496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23497 conftest
$ac_exeext conftest.
$ac_ext
23499 ac_res
=`eval 'as_val=${'$as_ac_var'}
23500 $as_echo "$as_val"'`
23501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23502 $as_echo "$ac_res" >&6; }
23503 if test `eval 'as_val=${'$as_ac_var'}
23504 $as_echo "$as_val"'` = yes; then
23505 cat >>confdefs.h
<<_ACEOF
23506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23512 if test $ac_cv_func_gettimeofday = yes; then
23513 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23514 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23515 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23516 $as_echo_n "(cached) " >&6
23518 cat >conftest.
$ac_ext <<_ACEOF
23521 cat confdefs.h
>>conftest.
$ac_ext
23522 cat >>conftest.
$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23525 #ifdef TIME_WITH_SYS_TIME
23526 #include <sys/time.h>
23529 #ifdef HAVE_SYS_TIME_H
23530 #include <sys/time.h>
23538 struct timeval time;
23539 gettimeofday (&time, 0);
23544 rm -f conftest.
$ac_objext
23545 if { (ac_try
="$ac_compile"
23546 case "(($ac_try" in
23547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23548 *) ac_try_echo=$ac_try;;
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552 (eval "$ac_compile") 2>conftest.er1
23554 grep -v '^ *+' conftest.er1 >conftest.err
23556 cat conftest.err >&5
23557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } && {
23559 test -z "$ac_c_werror_flag" ||
23560 test ! -s conftest.err
23561 } && test -s conftest.$ac_objext; then
23562 emacs_cv_gettimeofday_two_arguments=yes
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23567 emacs_cv_gettimeofday_two_arguments=no
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23572 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23573 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23574 if test $emacs_cv_gettimeofday_two_arguments = no; then
23576 cat >>confdefs.h <<\_ACEOF
23577 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23585 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23586 $as_echo_n "checking for socket... " >&6; }
23587 if test "${ac_cv_func_socket+set}" = set; then
23588 $as_echo_n "(cached) " >&6
23590 cat >conftest.$ac_ext <<_ACEOF
23593 cat confdefs.h >>conftest.$ac_ext
23594 cat >>conftest.$ac_ext <<_ACEOF
23595 /* end confdefs.h. */
23596 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23598 #define socket innocuous_socket
23600 /* System header to define __stub macros and hopefully few prototypes,
23601 which can conflict with char socket (); below.
23602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23603 <limits.h> exists even on freestanding compilers. */
23606 # include <limits.h>
23608 # include <assert.h>
23613 /* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23620 /* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623 #if defined __stub_socket || defined __stub___socket
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (ac_try="$ac_link"
23637 case "(($ac_try" in
23638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23639 *) ac_try_echo
=$ac_try;;
23641 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23642 $as_echo "$ac_try_echo") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1
>conftest.err
23647 cat conftest.err
>&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest
$ac_exeext && {
23653 test "$cross_compiling" = yes ||
23654 $as_test_x conftest
$ac_exeext
23656 ac_cv_func_socket
=yes
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.
$ac_ext >&5
23661 ac_cv_func_socket
=no
23664 rm -rf conftest.dSYM
23665 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23666 conftest
$ac_exeext conftest.
$ac_ext
23668 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23669 $as_echo "$ac_cv_func_socket" >&6; }
23670 if test $ac_cv_func_socket = yes; then
23676 if test $ok_so_far = yes; then
23677 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23678 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23679 $as_echo_n "checking for netinet/in.h... " >&6; }
23680 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23681 $as_echo_n "(cached) " >&6
23683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23684 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23686 # Is the header compilable?
23687 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23688 $as_echo_n "checking netinet/in.h usability... " >&6; }
23689 cat >conftest.
$ac_ext <<_ACEOF
23692 cat confdefs.h
>>conftest.
$ac_ext
23693 cat >>conftest.
$ac_ext <<_ACEOF
23694 /* end confdefs.h. */
23695 $ac_includes_default
23696 #include <netinet/in.h>
23698 rm -f conftest.
$ac_objext
23699 if { (ac_try
="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23705 $as_echo "$ac_try_echo") >&5
23706 (eval "$ac_compile") 2>conftest.er1
23708 grep -v '^ *+' conftest.er1 >conftest.err
23710 cat conftest.err >&5
23711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } && {
23713 test -z "$ac_c_werror_flag" ||
23714 test ! -s conftest.err
23715 } && test -s conftest.$ac_objext; then
23716 ac_header_compiler=yes
23718 $as_echo "$as_me: failed program was:" >&5
23719 sed 's/^/| /' conftest.$ac_ext >&5
23721 ac_header_compiler=no
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23726 $as_echo "$ac_header_compiler" >&6; }
23728 # Is the header present?
23729 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23730 $as_echo_n "checking netinet/in.h presence... " >&6; }
23731 cat >conftest.$ac_ext <<_ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 #include <netinet/in.h>
23739 if { (ac_try="$ac_cpp conftest.$ac_ext"
23740 case "(($ac_try" in
23741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23742 *) ac_try_echo
=$ac_try;;
23744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23745 $as_echo "$ac_try_echo") >&5
23746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23748 grep -v '^ *+' conftest.er1
>conftest.err
23750 cat conftest.err
>&5
23751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } >/dev
/null
&& {
23753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23756 ac_header_preproc
=yes
23758 $as_echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.
$ac_ext >&5
23761 ac_header_preproc
=no
23764 rm -f conftest.err conftest.
$ac_ext
23765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23766 $as_echo "$ac_header_preproc" >&6; }
23768 # So? What about this header?
23769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23771 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23772 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23774 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23775 ac_header_preproc
=yes
23778 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23779 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23780 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23781 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23782 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23783 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23784 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23785 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23786 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23787 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23788 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23789 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23793 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23794 $as_echo_n "checking for netinet/in.h... " >&6; }
23795 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23796 $as_echo_n "(cached) " >&6
23798 ac_cv_header_netinet_in_h
=$ac_header_preproc
23800 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23801 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23804 if test $ac_cv_header_netinet_in_h = yes; then
23812 if test $ok_so_far = yes; then
23813 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23814 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23815 $as_echo_n "checking for arpa/inet.h... " >&6; }
23816 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23817 $as_echo_n "(cached) " >&6
23819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23820 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23822 # Is the header compilable?
23823 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23824 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23825 cat >conftest.
$ac_ext <<_ACEOF
23828 cat confdefs.h
>>conftest.
$ac_ext
23829 cat >>conftest.
$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23832 #include <arpa/inet.h>
23834 rm -f conftest.
$ac_objext
23835 if { (ac_try
="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23841 $as_echo "$ac_try_echo") >&5
23842 (eval "$ac_compile") 2>conftest.er1
23844 grep -v '^ *+' conftest.er1 >conftest.err
23846 cat conftest.err >&5
23847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest.$ac_objext; then
23852 ac_header_compiler=yes
23854 $as_echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23857 ac_header_compiler=no
23860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23861 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23862 $as_echo "$ac_header_compiler" >&6; }
23864 # Is the header present?
23865 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23866 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23867 cat >conftest.$ac_ext <<_ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 #include <arpa/inet.h>
23875 if { (ac_try="$ac_cpp conftest.$ac_ext"
23876 case "(($ac_try" in
23877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23878 *) ac_try_echo
=$ac_try;;
23880 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23881 $as_echo "$ac_try_echo") >&5
23882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23884 grep -v '^ *+' conftest.er1
>conftest.err
23886 cat conftest.err
>&5
23887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } >/dev
/null
&& {
23889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23890 test ! -s conftest.err
23892 ac_header_preproc
=yes
23894 $as_echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.
$ac_ext >&5
23897 ac_header_preproc
=no
23900 rm -f conftest.err conftest.
$ac_ext
23901 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23902 $as_echo "$ac_header_preproc" >&6; }
23904 # So? What about this header?
23905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23907 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23908 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23910 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23911 ac_header_preproc
=yes
23914 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23915 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23917 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23919 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23921 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23923 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23925 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23929 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23930 $as_echo_n "checking for arpa/inet.h... " >&6; }
23931 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23932 $as_echo_n "(cached) " >&6
23934 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23937 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23940 if test $ac_cv_header_arpa_inet_h = yes; then
23948 if test $ok_so_far = yes; then
23950 cat >>confdefs.h
<<\_ACEOF
23951 #define HAVE_INET_SOCKETS 1
23957 for ac_header
in sys
/ioctl.h
23959 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23960 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23962 $as_echo_n "checking for $ac_header... " >&6; }
23963 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23964 $as_echo_n "(cached) " >&6
23966 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23967 $as_echo "$as_val"'`
23968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23969 $as_echo "$ac_res" >&6; }
23971 # Is the header compilable?
23972 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23973 $as_echo_n "checking $ac_header usability... " >&6; }
23974 cat >conftest.
$ac_ext <<_ACEOF
23977 cat confdefs.h
>>conftest.
$ac_ext
23978 cat >>conftest.
$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 $ac_includes_default
23981 #include <$ac_header>
23983 rm -f conftest.
$ac_objext
23984 if { (ac_try
="$ac_compile"
23985 case "(($ac_try" in
23986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991 (eval "$ac_compile") 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
23995 cat conftest.err >&5
23996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest.$ac_objext; then
24001 ac_header_compiler=yes
24003 $as_echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24006 ac_header_compiler=no
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24011 $as_echo "$ac_header_compiler" >&6; }
24013 # Is the header present?
24014 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24015 $as_echo_n "checking $ac_header presence... " >&6; }
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 #include <$ac_header>
24024 if { (ac_try="$ac_cpp conftest.$ac_ext"
24025 case "(($ac_try" in
24026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24027 *) ac_try_echo
=$ac_try;;
24029 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24030 $as_echo "$ac_try_echo") >&5
24031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24033 grep -v '^ *+' conftest.er1
>conftest.err
24035 cat conftest.err
>&5
24036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } >/dev
/null
&& {
24038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24041 ac_header_preproc
=yes
24043 $as_echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.
$ac_ext >&5
24046 ac_header_preproc
=no
24049 rm -f conftest.err conftest.
$ac_ext
24050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24051 $as_echo "$ac_header_preproc" >&6; }
24053 # So? What about this header?
24054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24057 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24060 ac_header_preproc
=yes
24063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24064 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24070 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24078 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24079 $as_echo_n "checking for $ac_header... " >&6; }
24080 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24081 $as_echo_n "(cached) " >&6
24083 eval "$as_ac_Header=\$ac_header_preproc"
24085 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24086 $as_echo "$as_val"'`
24087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24088 $as_echo "$ac_res" >&6; }
24091 if test `eval 'as_val=${'$as_ac_Header'}
24092 $as_echo "$as_val"'` = yes; then
24093 cat >>confdefs.h
<<_ACEOF
24094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24102 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24104 cat >>confdefs.h
<<\_ACEOF
24105 #define HAVE_AIX_SMT_EXP 1
24110 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24111 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24112 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24113 { $as_echo "$as_me:$LINENO: result: yes" >&5
24114 $as_echo "yes" >&6; }
24116 cat >>confdefs.h
<<\_ACEOF
24117 #define HAVE_DEV_PTMX 1
24121 { $as_echo "$as_me:$LINENO: result: no" >&5
24122 $as_echo "no" >&6; }
24125 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24126 $as_echo_n "checking for pid_t... " >&6; }
24127 if test "${ac_cv_type_pid_t+set}" = set; then
24128 $as_echo_n "(cached) " >&6
24130 ac_cv_type_pid_t
=no
24131 cat >conftest.
$ac_ext <<_ACEOF
24134 cat confdefs.h
>>conftest.
$ac_ext
24135 cat >>conftest.
$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24137 $ac_includes_default
24141 if (sizeof (pid_t))
24147 rm -f conftest.
$ac_objext
24148 if { (ac_try
="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
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
24175 if (sizeof ((pid_t)))
24181 rm -f conftest.$ac_objext
24182 if { (ac_try="$ac_compile"
24183 case "(($ac_try" in
24184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24185 *) ac_try_echo
=$ac_try;;
24187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24188 $as_echo "$ac_try_echo") >&5
24189 (eval "$ac_compile") 2>conftest.er1
24191 grep -v '^ *+' conftest.er1
>conftest.err
24193 cat conftest.err
>&5
24194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); } && {
24196 test -z "$ac_c_werror_flag" ||
24197 test ! -s conftest.err
24198 } && test -s conftest.
$ac_objext; then
24201 $as_echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.
$ac_ext >&5
24204 ac_cv_type_pid_t
=yes
24207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24209 $as_echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.
$ac_ext >&5
24215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24217 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24218 $as_echo "$ac_cv_type_pid_t" >&6; }
24219 if test $ac_cv_type_pid_t = yes; then
24223 cat >>confdefs.h
<<_ACEOF
24230 for ac_header
in vfork.h
24232 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24233 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24235 $as_echo_n "checking for $ac_header... " >&6; }
24236 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24237 $as_echo_n "(cached) " >&6
24239 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24240 $as_echo "$as_val"'`
24241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24242 $as_echo "$ac_res" >&6; }
24244 # Is the header compilable?
24245 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24246 $as_echo_n "checking $ac_header usability... " >&6; }
24247 cat >conftest.
$ac_ext <<_ACEOF
24250 cat confdefs.h
>>conftest.
$ac_ext
24251 cat >>conftest.
$ac_ext <<_ACEOF
24252 /* end confdefs.h. */
24253 $ac_includes_default
24254 #include <$ac_header>
24256 rm -f conftest.
$ac_objext
24257 if { (ac_try
="$ac_compile"
24258 case "(($ac_try" in
24259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24263 $as_echo "$ac_try_echo") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24266 grep -v '^ *+' conftest.er1 >conftest.err
24268 cat conftest.err >&5
24269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_header_compiler=yes
24276 $as_echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_header_compiler=no
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24284 $as_echo "$ac_header_compiler" >&6; }
24286 # Is the header present?
24287 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24288 $as_echo_n "checking $ac_header presence... " >&6; }
24289 cat >conftest.$ac_ext <<_ACEOF
24292 cat confdefs.h >>conftest.$ac_ext
24293 cat >>conftest.$ac_ext <<_ACEOF
24294 /* end confdefs.h. */
24295 #include <$ac_header>
24297 if { (ac_try="$ac_cpp conftest.$ac_ext"
24298 case "(($ac_try" in
24299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24300 *) ac_try_echo
=$ac_try;;
24302 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24303 $as_echo "$ac_try_echo") >&5
24304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24306 grep -v '^ *+' conftest.er1
>conftest.err
24308 cat conftest.err
>&5
24309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } >/dev
/null
&& {
24311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24312 test ! -s conftest.err
24314 ac_header_preproc
=yes
24316 $as_echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.
$ac_ext >&5
24319 ac_header_preproc
=no
24322 rm -f conftest.err conftest.
$ac_ext
24323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24324 $as_echo "$ac_header_preproc" >&6; }
24326 # So? What about this header?
24327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24330 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24333 ac_header_preproc
=yes
24336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24337 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24339 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24341 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24343 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24347 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24352 $as_echo_n "checking for $ac_header... " >&6; }
24353 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24354 $as_echo_n "(cached) " >&6
24356 eval "$as_ac_Header=\$ac_header_preproc"
24358 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24359 $as_echo "$as_val"'`
24360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24361 $as_echo "$ac_res" >&6; }
24364 if test `eval 'as_val=${'$as_ac_Header'}
24365 $as_echo "$as_val"'` = yes; then
24366 cat >>confdefs.h
<<_ACEOF
24367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24376 for ac_func
in fork vfork
24378 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24379 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24380 $as_echo_n "checking for $ac_func... " >&6; }
24381 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24382 $as_echo_n "(cached) " >&6
24384 cat >conftest.
$ac_ext <<_ACEOF
24387 cat confdefs.h
>>conftest.
$ac_ext
24388 cat >>conftest.
$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24392 #define $ac_func innocuous_$ac_func
24394 /* System header to define __stub macros and hopefully few prototypes,
24395 which can conflict with char $ac_func (); below.
24396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24397 <limits.h> exists even on freestanding compilers. */
24400 # include <limits.h>
24402 # include <assert.h>
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24414 /* The GNU C library defines this for functions which it implements
24415 to always fail with ENOSYS. Some functions are actually named
24416 something starting with __ and the normal name is an alias. */
24417 #if defined __stub_$ac_func || defined __stub___$ac_func
24424 return $ac_func ();
24429 rm -f conftest.
$ac_objext conftest
$ac_exeext
24430 if { (ac_try
="$ac_link"
24431 case "(($ac_try" in
24432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24433 *) ac_try_echo=$ac_try;;
24435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24436 $as_echo "$ac_try_echo") >&5
24437 (eval "$ac_link") 2>conftest.er1
24439 grep -v '^ *+' conftest.er1 >conftest.err
24441 cat conftest.err >&5
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); } && {
24444 test -z "$ac_c_werror_flag" ||
24445 test ! -s conftest.err
24446 } && test -s conftest$ac_exeext && {
24447 test "$cross_compiling" = yes ||
24448 $as_test_x conftest$ac_exeext
24450 eval "$as_ac_var=yes"
24452 $as_echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24455 eval "$as_ac_var=no"
24458 rm -rf conftest.dSYM
24459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24460 conftest$ac_exeext conftest.$ac_ext
24462 ac_res=`eval 'as_val=${'$as_ac_var'}
24463 $as_echo "$as_val"'`
24464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24465 $as_echo "$ac_res" >&6; }
24466 if test `eval 'as_val=${'$as_ac_var'}
24467 $as_echo "$as_val"'` = yes; then
24468 cat >>confdefs.h <<_ACEOF
24469 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24475 if test "x$ac_cv_func_fork" = xyes; then
24476 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24477 $as_echo_n "checking for working fork... " >&6; }
24478 if test "${ac_cv_func_fork_works+set}" = set; then
24479 $as_echo_n "(cached) " >&6
24481 if test "$cross_compiling" = yes; then
24482 ac_cv_func_fork_works=cross
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 $ac_includes_default
24495 /* By Ruediger Kuhlmann. */
24496 return fork () < 0;
24502 rm -f conftest$ac_exeext
24503 if { (ac_try="$ac_link"
24504 case "(($ac_try" in
24505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24506 *) ac_try_echo
=$ac_try;;
24508 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24509 $as_echo "$ac_try_echo") >&5
24510 (eval "$ac_link") 2>&5
24512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24514 { (case "(($ac_try" in
24515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_try") 2>&5
24522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 ac_cv_func_fork_works=yes
24526 $as_echo "$as_me: program exited with status $ac_status" >&5
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 ( exit $ac_status )
24531 ac_cv_func_fork_works=no
24533 rm -rf conftest.dSYM
24534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24539 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24540 $as_echo "$ac_cv_func_fork_works" >&6; }
24543 ac_cv_func_fork_works=$ac_cv_func_fork
24545 if test "x$ac_cv_func_fork_works" = xcross; then
24547 *-*-amigaos* | *-*-msdosdjgpp*)
24548 # Override, as these systems have only a dummy fork() stub
24549 ac_cv_func_fork_works=no
24552 ac_cv_func_fork_works=yes
24555 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24556 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24558 ac_cv_func_vfork_works=$ac_cv_func_vfork
24559 if test "x$ac_cv_func_vfork" = xyes; then
24560 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24561 $as_echo_n "checking for working vfork... " >&6; }
24562 if test "${ac_cv_func_vfork_works+set}" = set; then
24563 $as_echo_n "(cached) " >&6
24565 if test "$cross_compiling" = yes; then
24566 ac_cv_func_vfork_works=cross
24568 cat >conftest.$ac_ext <<_ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 /* Thanks to Paul Eggert for this test. */
24575 $ac_includes_default
24576 #include <sys/wait.h>
24577 #ifdef HAVE_VFORK_H
24578 # include <vfork.h>
24580 /* On some sparc systems, changes by the child to local and incoming
24581 argument registers are propagated back to the parent. The compiler
24582 is told about this with #include <vfork.h>, but some compilers
24583 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24584 static variable whose address is put into a register that is
24585 clobbered by the vfork. */
24588 sparc_address_test (int arg)
24590 sparc_address_test (arg) int arg;
24593 static pid_t child;
24611 pid_t parent = getpid ();
24614 sparc_address_test (0);
24619 /* Here is another test for sparc vfork register problems. This
24620 test uses lots of local variables, at least as many local
24621 variables as main has allocated so far including compiler
24622 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24623 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24624 reuse the register of parent for one of the local variables,
24625 since it will think that parent can't possibly be used any more
24626 in this routine. Assigning to the local variable will thus
24627 munge parent in the parent process. */
24629 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24630 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24631 /* Convince the compiler that p..p7 are live; otherwise, it might
24632 use the same hardware register for all 8 local variables. */
24633 if (p != p1 || p != p2 || p != p3 || p != p4
24634 || p != p5 || p != p6 || p != p7)
24637 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24638 from child file descriptors. If the child closes a descriptor
24639 before it execs or exits, this munges the parent's descriptor
24640 as well. Test for this by closing stdout in the child. */
24641 _exit(close(fileno(stdout)) != 0);
24646 while (wait(&status) != child)
24649 /* Was there some problem with vforking? */
24652 /* Did the child fail? (This shouldn't happen.) */
24655 /* Did the vfork/compiler bug occur? */
24656 || parent != getpid()
24658 /* Did the file descriptor bug occur? */
24659 || fstat(fileno(stdout), &st) != 0
24664 rm -f conftest$ac_exeext
24665 if { (ac_try="$ac_link"
24666 case "(($ac_try" in
24667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24668 *) ac_try_echo
=$ac_try;;
24670 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24671 $as_echo "$ac_try_echo") >&5
24672 (eval "$ac_link") 2>&5
24674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24676 { (case "(($ac_try" in
24677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24678 *) ac_try_echo=$ac_try;;
24680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24681 $as_echo "$ac_try_echo") >&5
24682 (eval "$ac_try") 2>&5
24684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); }; }; then
24686 ac_cv_func_vfork_works=yes
24688 $as_echo "$as_me: program exited with status $ac_status" >&5
24689 $as_echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ( exit $ac_status )
24693 ac_cv_func_vfork_works=no
24695 rm -rf conftest.dSYM
24696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24702 $as_echo "$ac_cv_func_vfork_works" >&6; }
24705 if test "x$ac_cv_func_fork_works" = xcross; then
24706 ac_cv_func_vfork_works=$ac_cv_func_vfork
24707 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24708 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24711 if test "x$ac_cv_func_vfork_works" = xyes; then
24713 cat >>confdefs.h <<\_ACEOF
24714 #define HAVE_WORKING_VFORK 1
24719 cat >>confdefs.h <<\_ACEOF
24724 if test "x$ac_cv_func_fork_works" = xyes; then
24726 cat >>confdefs.h <<\_ACEOF
24727 #define HAVE_WORKING_FORK 1
24733 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24734 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24735 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24736 $as_echo_n "(cached) " >&6
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <langinfo.h>
24748 char* cs = nl_langinfo(CODESET);
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24757 *) ac_try_echo
=$ac_try;;
24759 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24760 $as_echo "$ac_try_echo") >&5
24761 (eval "$ac_link") 2>conftest.er1
24763 grep -v '^ *+' conftest.er1
>conftest.err
24765 cat conftest.err
>&5
24766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest
$ac_exeext && {
24771 test "$cross_compiling" = yes ||
24772 $as_test_x conftest
$ac_exeext
24774 emacs_cv_langinfo_codeset
=yes
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.
$ac_ext >&5
24779 emacs_cv_langinfo_codeset
=no
24782 rm -rf conftest.dSYM
24783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24784 conftest
$ac_exeext conftest.
$ac_ext
24787 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24788 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24789 if test $emacs_cv_langinfo_codeset = yes; then
24791 cat >>confdefs.h
<<\_ACEOF
24792 #define HAVE_LANGINFO_CODESET 1
24797 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24798 $as_echo_n "checking for size_t... " >&6; }
24799 if test "${ac_cv_type_size_t+set}" = set; then
24800 $as_echo_n "(cached) " >&6
24802 ac_cv_type_size_t
=no
24803 cat >conftest.
$ac_ext <<_ACEOF
24806 cat confdefs.h
>>conftest.
$ac_ext
24807 cat >>conftest.
$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 $ac_includes_default
24813 if (sizeof (size_t))
24819 rm -f conftest.
$ac_objext
24820 if { (ac_try
="$ac_compile"
24821 case "(($ac_try" in
24822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24823 *) ac_try_echo=$ac_try;;
24825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24826 $as_echo "$ac_try_echo") >&5
24827 (eval "$ac_compile") 2>conftest.er1
24829 grep -v '^ *+' conftest.er1 >conftest.err
24831 cat conftest.err >&5
24832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833 (exit $ac_status); } && {
24834 test -z "$ac_c_werror_flag" ||
24835 test ! -s conftest.err
24836 } && test -s conftest.$ac_objext; then
24837 cat >conftest.$ac_ext <<_ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 $ac_includes_default
24847 if (sizeof ((size_t)))
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24857 *) ac_try_echo
=$ac_try;;
24859 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24863 grep -v '^ *+' conftest.er1
>conftest.err
24865 cat conftest.err
>&5
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.
$ac_objext; then
24873 $as_echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.
$ac_ext >&5
24876 ac_cv_type_size_t
=yes
24879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24881 $as_echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.
$ac_ext >&5
24887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24890 $as_echo "$ac_cv_type_size_t" >&6; }
24891 if test $ac_cv_type_size_t = yes; then
24893 cat >>confdefs.h
<<_ACEOF
24894 #define HAVE_SIZE_T 1
24901 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24902 $as_echo_n "checking for mbstate_t... " >&6; }
24903 if test "${ac_cv_type_mbstate_t+set}" = set; then
24904 $as_echo_n "(cached) " >&6
24906 cat >conftest.
$ac_ext <<_ACEOF
24909 cat confdefs.h
>>conftest.
$ac_ext
24910 cat >>conftest.
$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912 $ac_includes_default
24913 # include <wchar.h>
24917 mbstate_t x; return sizeof x;
24922 rm -f conftest.
$ac_objext
24923 if { (ac_try
="$ac_compile"
24924 case "(($ac_try" in
24925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930 (eval "$ac_compile") 2>conftest.er1
24932 grep -v '^ *+' conftest.er1 >conftest.err
24934 cat conftest.err >&5
24935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936 (exit $ac_status); } && {
24937 test -z "$ac_c_werror_flag" ||
24938 test ! -s conftest.err
24939 } && test -s conftest.$ac_objext; then
24940 ac_cv_type_mbstate_t=yes
24942 $as_echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24945 ac_cv_type_mbstate_t=no
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24950 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24951 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24952 if test $ac_cv_type_mbstate_t = yes; then
24954 cat >>confdefs.h <<\_ACEOF
24955 #define HAVE_MBSTATE_T 1
24960 cat >>confdefs.h <<\_ACEOF
24961 #define mbstate_t int
24966 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24967 $as_echo_n "checking for C restrict keyword... " >&6; }
24968 if test "${emacs_cv_c_restrict+set}" = set; then
24969 $as_echo_n "(cached) " >&6
24971 cat >conftest.$ac_ext <<_ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24977 void fred (int *restrict x);
24986 rm -f conftest.$ac_objext
24987 if { (ac_try="$ac_compile"
24988 case "(($ac_try" in
24989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24990 *) ac_try_echo
=$ac_try;;
24992 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24993 $as_echo "$ac_try_echo") >&5
24994 (eval "$ac_compile") 2>conftest.er1
24996 grep -v '^ *+' conftest.er1
>conftest.err
24998 cat conftest.err
>&5
24999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } && {
25001 test -z "$ac_c_werror_flag" ||
25002 test ! -s conftest.err
25003 } && test -s conftest.
$ac_objext; then
25004 emacs_cv_c_restrict
=yes
25006 $as_echo "$as_me: failed program was:" >&5
25007 sed 's/^/| /' conftest.
$ac_ext >&5
25009 cat >conftest.
$ac_ext <<_ACEOF
25012 cat confdefs.h
>>conftest.
$ac_ext
25013 cat >>conftest.
$ac_ext <<_ACEOF
25014 /* end confdefs.h. */
25015 void fred (int *__restrict x);
25024 rm -f conftest.
$ac_objext
25025 if { (ac_try
="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25034 grep -v '^ *+' conftest.er1 >conftest.err
25036 cat conftest.err >&5
25037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 emacs_cv_c_restrict=__restrict
25044 $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25047 emacs_cv_c_restrict=no
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25055 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25056 $as_echo "$emacs_cv_c_restrict" >&6; }
25057 case "$emacs_cv_c_restrict" in
25058 yes) emacs_restrict=restrict;;
25059 no) emacs_restrict="";;
25060 *) emacs_restrict="$emacs_cv_c_restrict";;
25062 if test "$emacs_restrict" != __restrict; then
25064 cat >>confdefs.h <<_ACEOF
25065 #define __restrict $emacs_restrict
25070 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25071 $as_echo_n "checking for C restricted array declarations... " >&6; }
25072 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25073 $as_echo_n "(cached) " >&6
25075 cat >conftest.$ac_ext <<_ACEOF
25078 cat confdefs.h >>conftest.$ac_ext
25079 cat >>conftest.$ac_ext <<_ACEOF
25080 /* end confdefs.h. */
25081 void fred (int x[__restrict]);
25090 rm -f conftest.$ac_objext
25091 if { (ac_try="$ac_compile"
25092 case "(($ac_try" in
25093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25094 *) ac_try_echo
=$ac_try;;
25096 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25097 $as_echo "$ac_try_echo") >&5
25098 (eval "$ac_compile") 2>conftest.er1
25100 grep -v '^ *+' conftest.er1
>conftest.err
25102 cat conftest.err
>&5
25103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } && {
25105 test -z "$ac_c_werror_flag" ||
25106 test ! -s conftest.err
25107 } && test -s conftest.
$ac_objext; then
25108 emacs_cv_c_restrict_arr
=yes
25110 $as_echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.
$ac_ext >&5
25113 emacs_cv_c_restrict_arr
=no
25116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25118 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25119 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25120 if test "$emacs_cv_c_restrict_arr" = yes; then
25122 cat >>confdefs.h
<<\_ACEOF
25123 #define __restrict_arr __restrict
25130 # Set up the CFLAGS for real compilation, so we can substitute it.
25131 CFLAGS
="$REAL_CFLAGS"
25132 CPPFLAGS
="$REAL_CPPFLAGS"
25134 #### Find out which version of Emacs this is.
25135 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25136 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25137 if test x
"${version}" = x
; then
25138 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25139 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25140 { (exit 1); exit 1; }; }
25143 ### Specify what sort of things we'll be editing into Makefile and config.h.
25144 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25188 cat >>confdefs.h
<<_ACEOF
25189 #define EMACS_CONFIGURATION "${canonical}"
25193 cat >>confdefs.h
<<_ACEOF
25194 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25198 cat >>confdefs.h
<<_ACEOF
25199 #define config_machfile "${machfile}"
25203 cat >>confdefs.h
<<_ACEOF
25204 #define config_opsysfile "${opsysfile}"
25208 cat >>confdefs.h
<<_ACEOF
25209 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25213 cat >>confdefs.h
<<_ACEOF
25214 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25218 cat >>confdefs.h
<<_ACEOF
25219 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25223 cat >>confdefs.h
<<_ACEOF
25224 #define UNEXEC_SRC ${UNEXEC_SRC}
25228 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25230 cat >>confdefs.h
<<\_ACEOF
25231 #define HAVE_X_WINDOWS 1
25235 if test "${USE_X_TOOLKIT}" != "none" ; then
25237 cat >>confdefs.h
<<\_ACEOF
25238 #define USE_X_TOOLKIT 1
25241 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25243 cat >>confdefs.h
<<\_ACEOF
25244 #define USE_LUCID 1
25247 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25249 cat >>confdefs.h
<<\_ACEOF
25250 #define USE_MOTIF 1
25255 if test "${HAVE_X11}" = "yes" ; then
25257 cat >>confdefs.h
<<\_ACEOF
25262 if test "${HAVE_MENUS}" = "yes" ; then
25264 cat >>confdefs.h
<<\_ACEOF
25265 #define HAVE_MENUS 1
25269 if test "${GNU_MALLOC}" = "yes" ; then
25271 cat >>confdefs.h
<<\_ACEOF
25272 #define GNU_MALLOC 1
25276 if test "${REL_ALLOC}" = "yes" ; then
25278 cat >>confdefs.h
<<\_ACEOF
25279 #define REL_ALLOC 1
25289 #### Report on what we decided to do.
25290 #### Report GTK as a toolkit, even if it doesn't use Xt.
25291 #### It makes printing result more understandable as using GTK sets
25292 #### toolkit_scroll_bars to yes by default.
25293 if test "${HAVE_GTK}" = "yes"; then
25298 Configured for \`${canonical}'.
25300 Where should the build process find the source code? ${srcdir}
25301 What operating system and machine description files should Emacs use?
25302 \`${opsysfile}' and \`${machfile}'
25303 What compiler should emacs be built with? ${CC} ${CFLAGS}
25304 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25305 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25306 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25307 What window system should Emacs use? ${window_system}
25308 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25310 if test -n "${x_includes}"; then
25311 echo " Where do we find X Windows header files? ${x_includes}"
25313 echo " Where do we find X Windows header files? Standard dirs"
25315 if test -n "${x_libraries}"; then
25316 echo " Where do we find X Windows libraries? ${x_libraries}"
25318 echo " Where do we find X Windows libraries? Standard dirs"
25321 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25322 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25323 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25324 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25325 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25326 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25327 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25328 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25329 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25331 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25332 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25333 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25334 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25336 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25339 if test $USE_XASSERTS = yes; then
25340 echo " Compiling with asserts turned on."
25341 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25346 if test "$USE_X_TOOLKIT" = GTK
; then
25347 case "$canonical" in
25349 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25350 will probably get a crash on startup. If this happens, please use another
25351 toolkit for Emacs. See etc/PROBLEMS for more information."
25356 if test "$HAVE_NS" = "yes"; then
25358 echo "You must run \"make install\" in order to test the built application.
25359 The installed application will go to nextstep/Emacs.app and can be
25360 run or moved from there."
25361 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25362 echo "The application will be fully self-contained."
25364 echo "The lisp resources for the application will be installed under ${prefix}.
25365 You may need to run \"make install\" with sudo. The application will fail
25366 to run if these resources are not installed."
25371 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25372 echo "D-Bus integration has been tested for GNU/Linux only."
25377 # Remove any trailing slashes in these variables.
25378 test "${prefix}" != NONE
&&
25379 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25380 test "${exec_prefix}" != NONE
&&
25381 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25383 # Now get this: Some word that is part of the ${srcdir} directory name
25384 # or the ${configuration} value might, just might, happen to be an
25385 # identifier like `sun4' or `i386' or something, and be predefined by
25386 # the C preprocessor to some helpful value like 1, or maybe the empty
25387 # string. Needless to say consequent macro substitutions are less
25388 # than conducive to the makefile finding the correct directory.
25389 cpp_undefs
="`echo $srcdir $configuration $canonical |
25390 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25391 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25393 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25394 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25395 ## from Makefile.c can correctly provide the arg `-traditional' to the
25398 cat >conftest.
$ac_ext <<_ACEOF
25401 cat confdefs.h
>>conftest.
$ac_ext
25402 cat >>conftest.
$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25407 $EGREP "yes..yes" >/dev
/null
2>&1; then
25408 CPP_NEED_TRADITIONAL
=no
25410 CPP_NEED_TRADITIONAL
=yes
25415 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"
25417 ac_config_commands
="$ac_config_commands default"
25419 cat >confcache
<<\_ACEOF
25420 # This file is a shell script that caches the results of configure
25421 # tests run on this system so they can be shared between configure
25422 # scripts and configure runs, see configure's option --config-cache.
25423 # It is not useful on other systems. If it contains results you don't
25424 # want to keep, you may remove or edit it.
25426 # config.status only pays attention to the cache file if you give it
25427 # the --recheck option to rerun configure.
25429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25431 # following values.
25435 # The following way of writing the cache mishandles newlines in values,
25436 # but we know of no workaround that is simple, portable, and efficient.
25437 # So, we kill variables containing newlines.
25438 # Ultrix sh set writes to stderr and can't be redirected directly,
25439 # and sets the high bit in the cache file unless we assign to the vars.
25441 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25442 eval ac_val
=\$
$ac_var
25446 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25447 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25450 _ | IFS | as_nl
) ;; #(
25451 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25452 *) $as_unset $ac_var ;;
25458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25459 *${as_nl}ac_space
=\
*)
25460 # `set' does not quote correctly, so add quotes (double-quote
25461 # substitution turns \\\\ into \\, and sed turns \\ into \).
25464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25467 # `set' quotes correctly as required by POSIX, so do not add quotes.
25468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25477 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25481 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25482 if test -w "$cache_file"; then
25483 test "x$cache_file" != "x/dev/null" &&
25484 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25485 $as_echo "$as_me: updating cache $cache_file" >&6;}
25486 cat confcache
>$cache_file
25488 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25489 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25494 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25495 # Let make expand exec_prefix.
25496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25498 DEFS
=-DHAVE_CONFIG_H
25502 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25503 # 1. Remove the extension, and $U if already installed.
25504 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25505 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25507 # will be set to the directory where LIBOBJS objects are built.
25508 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25509 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25511 LIBOBJS
=$ac_libobjs
25513 LTLIBOBJS
=$ac_ltlibobjs
25517 : ${CONFIG_STATUS=./config.status}
25519 ac_clean_files_save
=$ac_clean_files
25520 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25521 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25523 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25525 # Generated by $as_me.
25526 # Run this file to recreate the current configuration.
25527 # Compiler output produced by configure, useful for debugging
25528 # configure, is in config.log if it exists.
25531 ac_cs_recheck=false
25533 SHELL=\${CONFIG_SHELL-$SHELL}
25536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25537 ## --------------------- ##
25538 ## M4sh Initialization. ##
25539 ## --------------------- ##
25541 # Be more Bourne compatible
25542 DUALCASE
=1; export DUALCASE
# for MKS sh
25543 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25547 # is contrary to our usage. Disable this feature.
25548 alias -g '${1+"$@"}'='"$@"'
25549 setopt NO_GLOB_SUBST
25551 case `(set -o) 2>/dev/null` in
25552 *posix
*) set -o posix
;;
25561 # Avoid depending upon Character Ranges.
25562 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25563 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25564 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25565 as_cr_digits
='0123456789'
25566 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25571 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25572 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25573 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25574 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25575 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25576 as_echo='printf %s
\n'
25577 as_echo_n='printf %s
'
25579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25580 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25581 as_echo_n='/usr
/ucb
/echo -n'
25583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25584 as_echo_n_body='eval
25588 expr "X$arg" : "X\\(.*\\)$as_nl";
25589 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25591 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25593 export as_echo_n_body
25594 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25596 export as_echo_body
25597 as_echo='sh
-c $as_echo_body as_echo
'
25600 # The user is always right.
25601 if test "${PATH_SEPARATOR+set}" != set; then
25603 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25604 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25609 # Support unset when possible.
25610 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25618 # We need space, tab and new line, in precisely that order. Quoting is
25619 # there to prevent editors from complaining about space-tab.
25620 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25621 # splitting by setting IFS to empty value.)
25624 # Find who we are. Look in the path if we contain no directory separator.
25626 *[\\/]* ) as_myself=$0 ;;
25627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25628 for as_dir in $PATH
25631 test -z "$as_dir" && as_dir=.
25632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25638 # We did not find ourselves, most probably we were run as `sh COMMAND'
25639 # in which case we are not to be found in the path.
25640 if test "x$as_myself" = x
; then
25643 if test ! -f "$as_myself"; then
25644 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25645 { (exit 1); exit 1; }
25648 # Work around bugs in pre-3.0 UWIN ksh.
25649 for as_var
in ENV MAIL MAILPATH
25650 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25662 # Required to use basename.
25663 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25664 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25670 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25671 as_basename
=basename
25677 # Name of the executable.
25678 as_me
=`$as_basename -- "$0" ||
25679 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25680 X"$0" : 'X\(//\)$' \| \
25681 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25683 sed '/^.*\/\([^/][^/]*\)\/*$/{
25702 as_lineno_1
=$LINENO
25703 as_lineno_2
=$LINENO
25704 test "x$as_lineno_1" != "x$as_lineno_2" &&
25705 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25707 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25708 # uniformly replaced by the line number. The first 'sed' inserts a
25709 # line-number line after each line using $LINENO; the second 'sed'
25710 # does the real work. The second script uses 'N' to pair each
25711 # line-number line with the line containing $LINENO, and appends
25712 # trailing '-' during substitution so that $LINENO is not a special
25713 # case at line end.
25714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25715 # scripts with optimization help from Paolo Bonzini. Blame Lee
25716 # E. McMahon (1931-1989) for sed's syntax. :-)
25728 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25731 ' >$as_me.lineno
&&
25732 chmod +x
"$as_me.lineno" ||
25733 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25734 { (exit 1); exit 1; }; }
25736 # Don't try to exec as it changes $[0], causing all sort of problems
25737 # (the dirname of $[0] is not the place where we might find the
25738 # original and so on. Autoconf is especially sensitive to this).
25739 .
"./$as_me.lineno"
25740 # Exit status is that of the last command.
25745 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25751 ECHO_C
= ECHO_N
= ECHO_T
=
25752 case `echo -n x` in
25754 case `echo 'x\c'` in
25755 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25761 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25762 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25768 rm -f conf$$ conf$$.exe conf$$.
file
25769 if test -d conf$$.dir
; then
25770 rm -f conf$$.dir
/conf$$.
file
25773 mkdir conf$$.dir
2>/dev
/null
25775 if (echo >conf$$.
file) 2>/dev
/null
; then
25776 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25778 # ... but there are two gotchas:
25779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25781 # In both cases, we have to default to `cp -p'.
25782 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25784 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25792 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25793 rmdir conf$$.dir
2>/dev
/null
25795 if mkdir
-p .
2>/dev
/null
; then
25798 test -d .
/-p && rmdir .
/-p
25802 if test -x / >/dev
/null
2>&1; then
25803 as_test_x
='test -x'
25805 if ls -dL / >/dev
/null
2>&1; then
25812 if test -d "$1"; then
25818 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25819 ???[sx]*):;;*)false;;esac;fi
25823 as_executable_p
=$as_test_x
25825 # Sed expression to map a string onto a valid CPP name.
25826 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25828 # Sed expression to map a string onto a valid variable name.
25829 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25834 # Save the log message, to keep $[0] and so on meaningful, and to
25835 # report actual input values of CONFIG_FILES etc. instead of their
25836 # values after options handling.
25838 This file was extended by emacs $as_me 23.1.50, which was
25839 generated by GNU Autoconf 2.62. Invocation command line was
25841 CONFIG_FILES = $CONFIG_FILES
25842 CONFIG_HEADERS = $CONFIG_HEADERS
25843 CONFIG_LINKS = $CONFIG_LINKS
25844 CONFIG_COMMANDS = $CONFIG_COMMANDS
25847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25853 # Files that config.status was made for.
25854 config_files="$ac_config_files"
25855 config_headers="$ac_config_headers"
25856 config_commands="$ac_config_commands"
25860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25862 \`$as_me' instantiates files from templates according to the
25863 current configuration.
25865 Usage: $0 [OPTIONS] [FILE]...
25867 -h, --help print this help, then exit
25868 -V, --version print version number and configuration settings, then exit
25869 -q, --quiet do not print progress messages
25870 -d, --debug don't remove temporary files
25871 --recheck update $as_me by reconfiguring in the same conditions
25872 --file=FILE[:TEMPLATE]
25873 instantiate the configuration file FILE
25874 --header=FILE[:TEMPLATE]
25875 instantiate the configuration header FILE
25877 Configuration files:
25880 Configuration headers:
25883 Configuration commands:
25886 Report bugs to <bug-autoconf@gnu.org>."
25889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25891 emacs config.status 23.1.50
25892 configured by $0, generated by GNU Autoconf 2.62,
25893 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25895 Copyright (C) 2008 Free Software Foundation, Inc.
25896 This config.status script is free software; the Free Software Foundation
25897 gives unlimited permission to copy, distribute and modify it."
25902 test -n "\$AWK" || AWK=awk
25905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25906 # The default lists apply if the user does not specify any file.
25912 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25913 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25924 # Handling of the options.
25925 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25927 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25928 $as_echo "$ac_cs_version"; exit ;;
25929 --debug |
--debu |
--deb |
--de |
--d |
-d )
25931 --file |
--fil |
--fi |
--f )
25934 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25936 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
25937 ac_need_defaults
=false
;;
25938 --header |
--heade |
--head |
--hea )
25941 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25943 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
25944 ac_need_defaults
=false
;;
25946 # Conflict between --help and --header
25947 { $as_echo "$as_me: error: ambiguous option: $1
25948 Try \`$0 --help' for more information." >&2
25949 { (exit 1); exit 1; }; };;
25950 --help |
--hel |
-h )
25951 $as_echo "$ac_cs_usage"; exit ;;
25952 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25953 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25956 # This is an error.
25957 -*) { $as_echo "$as_me: error: unrecognized option: $1
25958 Try \`$0 --help' for more information." >&2
25959 { (exit 1); exit 1; }; } ;;
25961 *) ac_config_targets
="$ac_config_targets $1"
25962 ac_need_defaults
=false
;;
25968 ac_configure_extra_args
=
25970 if $ac_cs_silent; then
25972 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25977 if \$ac_cs_recheck; then
25978 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25980 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25981 CONFIG_SHELL='$SHELL'
25982 export CONFIG_SHELL
25987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25992 ## Running $as_me. ##
25998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26002 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26008 # Handling of arguments.
26009 for ac_config_target
in $ac_config_targets
26011 case $ac_config_target in
26012 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26013 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26014 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26015 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26016 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26017 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26018 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26019 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26020 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26021 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26022 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26023 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26024 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26026 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26027 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26028 { (exit 1); exit 1; }; };;
26033 # If the user did not use the arguments to specify the items to instantiate,
26034 # then the envvar interface is used. Set only those that are not.
26035 # We use the long form for the default assignment because of an extremely
26036 # bizarre bug on SunOS 4.1.3.
26037 if $ac_need_defaults; then
26038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26043 # Have a temporary directory for convenience. Make it in the build tree
26044 # simply because there is no reason against having it here, and in addition,
26045 # creating and moving files from /tmp can sometimes cause problems.
26046 # Hook for its removal unless debugging.
26047 # Note that there is a small window in which the directory will not be cleaned:
26048 # after its creation but before its name has been assigned to `$tmp'.
26052 trap 'exit_status=$?
26053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26055 trap '{ (exit 1); exit 1; }' 1 2 13 15
26057 # Create a (secure) tmp directory for tmp files.
26060 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26061 test -n "$tmp" && test -d "$tmp"
26064 tmp
=.
/conf$$
-$RANDOM
26065 (umask 077 && mkdir
"$tmp")
26068 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26069 { (exit 1); exit 1; }
26072 # Set up the scripts for CONFIG_FILES section.
26073 # No need to generate them if there are no CONFIG_FILES.
26074 # This happens for instance with `./config.status config.h'.
26075 if test -n "$CONFIG_FILES"; then
26079 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26083 ac_cs_awk_cr
=$ac_cr
26086 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26091 echo "cat >conf$$subs.awk <<_ACEOF" &&
26092 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26094 } >conf$$subs.sh ||
26095 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26096 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26097 { (exit 1); exit 1; }; }
26098 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26100 for ac_last_try in false false false false false :; do
26101 . ./conf$$subs.sh ||
26102 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26103 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26104 { (exit 1); exit 1; }; }
26106 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26108 elif $ac_last_try; then
26109 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26110 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26111 { (exit 1); exit 1; }; }
26113 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26116 rm -f conf$$subs.sh
26118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26119 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26123 s/^/S["/; s
/!.
*/"]=/
26133 s/\(.\{148\}\).*/\1/
26135 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26140 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26147 s/\(.\{148\}\).*/\1/
26149 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26153 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26158 ' <conf$$subs.awk | sed '
26163 ' >>$CONFIG_STATUS || ac_write_fail=1
26164 rm -f conf$$subs.awk
26165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26167 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26168 for (key in S) S_is_set[key] = 1
26174 nfields = split(line, field, "@
")
26176 len = length(field[1])
26177 for (i = 2; i < nfields; i++) {
26179 keylen = length(key)
26180 if (S_is_set[key]) {
26182 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26183 len += length(value) + length(field[++i])
26194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26195 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26196 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26199 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26200 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26201 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26202 { (exit 1); exit 1; }; }
26205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26207 # trailing colons and then remove the whole line if VPATH becomes empty
26208 # (actually we leave an empty line to preserve line numbers).
26209 if test "x
$srcdir" = x.; then
26210 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26211 s/:*\$(srcdir):*/:/
26212 s/:*\${srcdir}:*/:/
26214 s/^\([^=]*=[ ]*\):*/\1/
26220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26221 fi # test -n "$CONFIG_FILES"
26223 # Set up the scripts for CONFIG_HEADERS section.
26224 # No need to generate them if there are no CONFIG_HEADERS.
26225 # This happens for instance with `./config.status Makefile'.
26226 if test -n "$CONFIG_HEADERS"; then
26227 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26231 # Transform confdefs.h into an awk script `defines.awk', embedded as
26232 # here-document in config.status, that substitutes the proper values into
26233 # config.h.in to produce config.h.
26235 # Create a delimiter string that does not exist in confdefs.h, to ease
26236 # handling of long lines.
26238 for ac_last_try in false false :; do
26239 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26240 if test -z "$ac_t"; then
26242 elif $ac_last_try; then
26243 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26244 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26245 { (exit 1); exit 1; }; }
26247 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26251 # For the awk script, D is an array of macro values keyed by name,
26252 # likewise P contains macro parameters if any. Preserve backslash
26253 # newline sequences.
26255 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26257 s/.\{148\}/&'"$ac_delim"'/g
26260 s/^[ ]*#[ ]*define[ ][ ]*/ /
26267 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26269 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26274 D["\
1"]=" \
3\\\\\\n
"\\/p
26276 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26281 s/.\{148\}/&'"$ac_delim"'/g
26286 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26289 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26291 ' <confdefs.h | sed '
26292 s/'"$ac_delim"'/"\\\
26293 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26296 for (key in D) D_is_set[key] = 1
26299 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26301 split(line, arg, " ")
26302 if (arg[1] == "#") {
26306 defundef
= substr
(arg
[1], 2)
26309 split(mac1
, mac2
, "(") #)
26311 if (D_is_set
[macro
]) {
26312 # Preserve the white space surrounding the "#".
26313 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26314 print prefix
"define", macro P
[macro
] D
[macro
]
26317 # Replace #undef with comments. This is necessary, for example,
26318 # in the case of _POSIX_SOURCE, which is predefined and required
26319 # on some systems where configure will not decide to define it.
26320 if (defundef
== "undef") {
26321 print
"/*", line
, "*/"
26329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26330 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26331 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26332 { (exit 1); exit 1; }; }
26333 fi # test -n "$CONFIG_HEADERS"
26336 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26341 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26343 case $ac_mode$ac_tag in
26345 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26346 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26347 { (exit 1); exit 1; }; };;
26348 :[FH
]-) ac_tag
=-:-;;
26349 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26366 -) ac_f
="$tmp/stdin";;
26367 *) # Look for the file first in the build tree, then in the source tree
26368 # (if the path is not absolute). The absolute path cannot be DOS-style,
26369 # because $ac_f cannot contain `:'.
26373 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26375 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26376 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26377 { (exit 1); exit 1; }; };;
26379 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26380 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26383 # Let's still pretend it is `configure' which instantiates (i.e., don't
26384 # use $as_me), people would be surprised to read:
26385 # /* config.h. Generated by config.status. */
26386 configure_input
='Generated from '`
26387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26389 if test x
"$ac_file" != x-
; then
26390 configure_input
="$ac_file. $configure_input"
26391 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26392 $as_echo "$as_me: creating $ac_file" >&6;}
26394 # Neutralize special characters interpreted by sed in replacement strings.
26395 case $configure_input in #(
26396 *\
&* |
*\|
* |
*\\* )
26397 ac_sed_conf_input
=`$as_echo "$configure_input" |
26398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26399 *) ac_sed_conf_input
=$configure_input;;
26403 *:-:* |
*:-) cat >"$tmp/stdin" \
26404 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26405 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26406 { (exit 1); exit 1; }; } ;;
26411 ac_dir
=`$as_dirname -- "$ac_file" ||
26412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26413 X"$ac_file" : 'X\(//\)[^/]' \| \
26414 X"$ac_file" : 'X\(//\)$' \| \
26415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26416 $as_echo X"$ac_file" |
26417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26421 /^X\(\/\/\)[^/].*/{
26436 -*) as_dir
=.
/$as_dir;;
26438 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26442 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26443 *) as_qdir
=$as_dir;;
26445 as_dirs
="'$as_qdir' $as_dirs"
26446 as_dir
=`$as_dirname -- "$as_dir" ||
26447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26448 X"$as_dir" : 'X\(//\)[^/]' \| \
26449 X"$as_dir" : 'X\(//\)$' \| \
26450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26451 $as_echo X"$as_dir" |
26452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26456 /^X\(\/\/\)[^/].*/{
26469 test -d "$as_dir" && break
26471 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26472 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26473 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26474 { (exit 1); exit 1; }; }; }
26478 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26480 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26481 # A ".." for each directory in $ac_dir_suffix.
26482 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26483 case $ac_top_builddir_sub in
26484 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26485 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26488 ac_abs_top_builddir
=$ac_pwd
26489 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26490 # for backward compatibility:
26491 ac_top_builddir
=$ac_top_build_prefix
26494 .
) # We are building in place.
26496 ac_top_srcdir
=$ac_top_builddir_sub
26497 ac_abs_top_srcdir
=$ac_pwd ;;
26498 [\\/]* | ?
:[\\/]* ) # Absolute name.
26499 ac_srcdir
=$srcdir$ac_dir_suffix;
26500 ac_top_srcdir
=$srcdir
26501 ac_abs_top_srcdir
=$srcdir ;;
26502 *) # Relative name.
26503 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26504 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26505 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26507 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26517 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26518 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26523 # If the template does not know about datarootdir, expand it.
26524 # FIXME: This hack should be removed a few years after 2.60.
26525 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26539 *datarootdir
*) ac_datarootdir_seen
=yes;;
26540 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26541 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545 ac_datarootdir_hack='
26546 s&@datadir@&$datadir&g
26547 s&@docdir@&$docdir&g
26548 s&@infodir@&$infodir&g
26549 s&@localedir@&$localedir&g
26550 s&@mandir@&$mandir&g
26551 s&\\\${datarootdir}&$datarootdir&g' ;;
26555 # Neutralize VPATH when `$srcdir' = `.'.
26556 # Shell code in configure.ac might set extrasub.
26557 # FIXME: do we really want to maintain this feature?
26558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26559 ac_sed_extra="$ac_vpsub
26562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26564 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26565 s|@configure_input@|
$ac_sed_conf_input|
;t t
26566 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26567 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26568 s
&@srcdir@
&$ac_srcdir&;t t
26569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26572 s
&@builddir@
&$ac_builddir&;t t
26573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26575 s
&@INSTALL@
&$ac_INSTALL&;t t
26576 $ac_datarootdir_hack
26578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26579 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26580 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26581 { (exit 1); exit 1; }; }
26583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26586 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26587 which seems to be undefined. Please make sure it is defined." >&5
26588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26589 which seems to be undefined. Please make sure it is defined." >&2;}
26593 -) cat "$tmp/out" && rm -f "$tmp/out";;
26594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26598 { (exit 1); exit 1; }; }
26604 if test x"$ac_file" != x-; then
26606 $as_echo "/* $configure_input */" \
26607 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26608 } >"$tmp/config.h" \
26609 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26610 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26611 { (exit 1); exit 1; }; }
26612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26613 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26617 mv "$tmp/config.h" "$ac_file" \
26618 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26619 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26620 { (exit 1); exit 1; }; }
26623 $as_echo "/* $configure_input */" \
26624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26625 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26626 $as_echo "$as_me: error: could not create -" >&2;}
26627 { (exit 1); exit 1; }; }
26631 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26632 $as_echo "$as_me: executing $ac_file commands" >&6;}
26637 case $ac_file$ac_mode in
26640 ### Make the necessary directories, if they don't exist.
26641 for dir
in etc lisp
; do
26642 test -d ${dir} || mkdir
${dir}
26645 # Build src/Makefile from ${srcdir}/src/Makefile.c
26646 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26647 # This must be done after src/config.h is built, since we rely on that file.
26649 echo creating src
/epaths.h
26650 ${MAKE-make} epaths-force
26652 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26653 # `..' to `. .' unless invoked with -traditional
26655 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26656 CPPFLAGS
="$CPPFLAGS -traditional"
26659 echo creating lib-src
/Makefile
26661 rm -f junk.c junk1.c junk2.c
26662 sed -e '/start of cpp stuff/q' \
26663 < Makefile.c
> junk1.c
26664 sed -e '1,/start of cpp stuff/d'\
26665 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26666 < Makefile.c
> junk.c
26667 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26668 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26669 cat junk1.c junk2.c
> Makefile.new
26670 rm -f junk.c junk1.c junk2.c
26671 chmod 444 Makefile.new
26672 mv -f Makefile.new Makefile
26675 echo creating src
/Makefile
26677 rm -f junk.c junk1.c junk2.c
26678 sed -e '/start of cpp stuff/q' \
26679 < Makefile.c
> junk1.c
26680 sed -e '1,/start of cpp stuff/d'\
26681 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26682 < Makefile.c
> junk.c
26683 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26684 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26685 cat junk1.c junk2.c
> Makefile.new
26686 rm -f junk.c junk1.c junk2.c
26687 chmod 444 Makefile.new
26688 mv -f Makefile.new Makefile
26691 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26692 echo creating src
/.gdbinit
26693 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26702 { (exit 0); exit 0; }
26704 chmod +x
$CONFIG_STATUS
26705 ac_clean_files
=$ac_clean_files_save
26707 test $ac_write_fail = 0 ||
26708 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26709 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26710 { (exit 1); exit 1; }; }
26713 # configure is writing to config.log, and then calls config.status.
26714 # config.status does its own redirection, appending to config.log.
26715 # Unfortunately, on DOS this fails, as config.log is still kept open
26716 # by configure, so config.status won't be able to write to it; its
26717 # output is simply discarded. So we exec the FD to /dev/null,
26718 # effectively closing config.log, so it can be properly (re)opened and
26719 # appended to by config.status. When coming back to configure, we
26720 # need to make the FD available again.
26721 if test "$no_create" != yes; then
26723 ac_config_status_args
=
26724 test "$silent" = yes &&
26725 ac_config_status_args
="$ac_config_status_args --quiet"
26727 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26730 # would make configure fail if this is the last instruction.
26731 $ac_cs_success ||
{ (exit 1); exit 1; }
26733 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26734 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26735 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}