2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.91.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='23.1.91'
598 PACKAGE_STRING
='emacs 23.1.91'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
746 x_default_search_path
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
768 LIB_SRC_EXTRA_INSTALLABLES
773 enable_option_checking
790 with_toolkit_scroll_bars
802 enable_ns_self_contained
804 enable_maintainer_mode
812 ac_precious_vars
='build_alias
824 # Initialize some variables set by options.
826 ac_init_version
=false
827 ac_unrecognized_opts
=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name
=s
,x
,x
,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir
='${exec_prefix}/bin'
853 sbindir
='${exec_prefix}/sbin'
854 libexecdir
='${exec_prefix}/libexec'
855 datarootdir
='${prefix}/share'
856 datadir
='${datarootdir}'
857 sysconfdir
='${prefix}/etc'
858 sharedstatedir
='${prefix}/com'
859 localstatedir
='${prefix}/var'
860 includedir
='${prefix}/include'
861 oldincludedir
='/usr/include'
862 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir
='${datarootdir}/info'
868 libdir
='${exec_prefix}/lib'
869 localedir
='${datarootdir}/locale'
870 mandir
='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\
$ac_option
884 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
896 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
899 -build |
--build |
--buil |
--bui |
--bu)
900 ac_prev
=build_alias
;;
901 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
906 ac_prev
=cache_file
;;
907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir |
--datadir |
--datadi |
--datad)
916 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
920 |
--dataroo |
--dataro |
--datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
923 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* |
--disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig
=$ac_useropt
933 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep
=', ';;
941 eval enable_
$ac_useropt=no
;;
943 -docdir |
--docdir |
--docdi |
--doc |
--do)
945 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
948 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
950 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
953 -enable-* |
--enable-*)
954 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig
=$ac_useropt
960 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep
=', ';;
968 eval enable_
$ac_useropt=\
$ac_optarg ;;
970 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
971 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
972 |
--exec |
--exe |
--ex)
973 ac_prev
=exec_prefix
;;
974 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
975 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
976 |
--exec=* |
--exe=* |
--ex=*)
977 exec_prefix
=$ac_optarg ;;
979 -gas |
--gas |
--ga |
--g)
980 # Obsolete; use --with-gas.
983 -help |
--help |
--hel |
--he |
-h)
985 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
986 ac_init_help
=recursive
;;
987 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
988 ac_init_help
=short
;;
990 -host |
--host |
--hos |
--ho)
991 ac_prev
=host_alias
;;
992 -host=* |
--host=* |
--hos=* |
--ho=*)
993 host_alias
=$ac_optarg ;;
995 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
997 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
999 htmldir
=$ac_optarg ;;
1001 -includedir |
--includedir |
--includedi |
--included |
--include \
1002 |
--includ |
--inclu |
--incl |
--inc)
1003 ac_prev
=includedir
;;
1004 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1005 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1006 includedir
=$ac_optarg ;;
1008 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1010 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1011 infodir
=$ac_optarg ;;
1013 -libdir |
--libdir |
--libdi |
--libd)
1015 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1016 libdir
=$ac_optarg ;;
1018 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1019 |
--libexe |
--libex |
--libe)
1020 ac_prev
=libexecdir
;;
1021 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1022 |
--libexe=* |
--libex=* |
--libe=*)
1023 libexecdir
=$ac_optarg ;;
1025 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1026 ac_prev
=localedir
;;
1027 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1028 localedir
=$ac_optarg ;;
1030 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1031 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1032 ac_prev
=localstatedir
;;
1033 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1034 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1035 localstatedir
=$ac_optarg ;;
1037 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1039 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1040 mandir
=$ac_optarg ;;
1042 -nfp |
--nfp |
--nf)
1043 # Obsolete; use --without-fp.
1046 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1047 |
--no-cr |
--no-c |
-n)
1050 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1051 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1054 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1055 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1056 |
--oldin |
--oldi |
--old |
--ol |
--o)
1057 ac_prev
=oldincludedir
;;
1058 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1059 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1060 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1061 oldincludedir
=$ac_optarg ;;
1063 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1065 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1066 prefix
=$ac_optarg ;;
1068 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1069 |
--program-pre |
--program-pr |
--program-p)
1070 ac_prev
=program_prefix
;;
1071 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1072 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1073 program_prefix
=$ac_optarg ;;
1075 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1076 |
--program-suf |
--program-su |
--program-s)
1077 ac_prev
=program_suffix
;;
1078 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1079 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1080 program_suffix
=$ac_optarg ;;
1082 -program-transform-name |
--program-transform-name \
1083 |
--program-transform-nam |
--program-transform-na \
1084 |
--program-transform-n |
--program-transform- \
1085 |
--program-transform |
--program-transfor \
1086 |
--program-transfo |
--program-transf \
1087 |
--program-trans |
--program-tran \
1088 |
--progr-tra |
--program-tr |
--program-t)
1089 ac_prev
=program_transform_name
;;
1090 -program-transform-name=* |
--program-transform-name=* \
1091 |
--program-transform-nam=* |
--program-transform-na=* \
1092 |
--program-transform-n=* |
--program-transform-=* \
1093 |
--program-transform=* |
--program-transfor=* \
1094 |
--program-transfo=* |
--program-transf=* \
1095 |
--program-trans=* |
--program-tran=* \
1096 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1097 program_transform_name
=$ac_optarg ;;
1099 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1101 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1102 pdfdir
=$ac_optarg ;;
1104 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1106 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1109 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1110 |
-silent |
--silent |
--silen |
--sile |
--sil)
1113 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1115 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1117 sbindir
=$ac_optarg ;;
1119 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1120 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1121 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1123 ac_prev
=sharedstatedir
;;
1124 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1125 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1126 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1128 sharedstatedir
=$ac_optarg ;;
1130 -site |
--site |
--sit)
1132 -site=* |
--site=* |
--sit=*)
1135 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1137 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1138 srcdir
=$ac_optarg ;;
1140 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1141 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1142 ac_prev
=sysconfdir
;;
1143 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1144 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1145 sysconfdir
=$ac_optarg ;;
1147 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1148 ac_prev
=target_alias
;;
1149 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1150 target_alias
=$ac_optarg ;;
1152 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1155 -version |
--version |
--versio |
--versi |
--vers |
-V)
1156 ac_init_version
=: ;;
1159 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=\
$ac_optarg ;;
1175 -without-* |
--without-*)
1176 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=no
;;
1193 # Obsolete; use --with-x.
1196 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1197 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1198 ac_prev
=x_includes
;;
1199 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1200 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1201 x_includes
=$ac_optarg ;;
1203 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1204 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1205 ac_prev
=x_libraries
;;
1206 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1207 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1208 x_libraries
=$ac_optarg ;;
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1216 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\
$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 if test -n "$ac_prev"; then
1236 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 # Check all directory arguments for consistency.
1251 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val
=\$
$ac_var
1257 # Remove trailing slashes.
1260 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\
$ac_val;;
1263 # Be sure to have absolute directory names.
1265 [\\/$
]* | ?
:[\\/]* ) continue;;
1266 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target
=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x
; then
1281 if test "x$build_alias" = x
; then
1282 cross_compiling
=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1293 test "$silent" = yes && exec 6>/dev
/null
1296 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di
=`ls -di .` &&
1298 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted
=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir
=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1338 ac_srcdir_defaulted
=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var
in $ac_precious_vars; do
1361 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1363 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures emacs 23.1.91 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1437 --x-includes=DIR X include files are
in DIR
1438 --x-libraries=DIR X library files are
in DIR
1441 --build=BUILD configure
for building on BUILD
[guessed
]
1442 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive
) echo "Configuration of emacs 23.1.91:";;
1453 --disable-option-checking ignore unrecognized
--enable/--with options
1454 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1455 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful
(and
1461 sometimes confusing
) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search
for lisp files
1464 specific to this site
1465 --enable-checking[=LIST
]
1466 enable expensive run-time checks. With LIST
, enable
1467 only specific categories of checks. Categories are
:
1468 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1469 stringfreelist
, xmallocoverrun
, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled
if GNU Make and
1475 --disable-largefile omit support
for large files
1478 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1479 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1480 --without-pop don
't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1488 --without-xpm don
't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don
't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don
't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don
't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf
for OpenType font support
1496 --without-m17n-flt don
't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don
't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1502 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don
't compile with GConf support
1506 --without-makeinfo don't require makeinfo
for building manuals
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config
for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1512 or
/etc
/GNUstep
/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables
:
1516 CC C compiler
command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1519 nonstandard directory
<lib dir
>
1520 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1521 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1524 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1591 emacs configure 23.1.91
1592 generated by GNU Autoconf 2.62
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by emacs $as_me 23.1.91, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1618 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1619 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1620 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1621 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1622 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1624 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1625 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1627 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1629 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1631 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1633 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1896 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1900 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x
$ac_old_val`
1907 ac_new_val_w=`echo x
$ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1911 ac_cache_corrupted=:
1913 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1937 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s
,x
,x
', remove it if useless.
1985 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1989 lispdir='${datadir}/emacs
/${version}/lisp
'
1990 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1991 '${datadir}/emacs
/site-lisp
'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1993 etcdir='${datadir}/emacs
/${version}/etc
'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs
/${version}/etc
'
1996 gamedir='${localstatedir}/games
/emacs
'
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2045 cat >>confdefs.h <<\_ACEOF
2051 cat >>confdefs.h <<\_ACEOF
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2065 if test "$with_hesiod" != no; then
2067 cat >>confdefs.h <<\_ACEOF
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2090 if test "$with_sync_input" = yes; then
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2110 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2111 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2112 $as_echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
2114 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2202 with_toolkit_scroll_bars=yes
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval
=$with_makeinfo;
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval
=$with_pkg_config_prog;
2294 if test "X${with_pkg_config_prog}" != X
; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG
="${with_pkg_config_prog}"
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval
=$with_gnustep_conf;
2306 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2315 EN_NS_SELF_CONTAINED
=yes
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2331 USE_MAINTAINER_MODE
=no
2334 if test $USE_MAINTAINER_MODE = yes; then
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath
=${enableval}
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2356 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2357 for check
in $ac_checking_flags
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking
=1 ;;
2362 no
) ac_enable_checking
= ;
2363 ac_gc_check_stringbytes
= ;
2364 ac_gc_check_string_overrun
= ;
2365 ac_gc_check_string_free_list
= ;
2366 ac_xmalloc_overrun
= ;
2367 ac_gc_check_cons_list
= ;;
2368 all
) ac_enable_checking
=1 ;
2369 ac_gc_check_stringbytes
=1 ;
2370 ac_gc_check_string_overrun
=1 ;
2371 ac_gc_check_string_free_list
=1 ;
2372 ac_xmalloc_overrun
=1 ;
2373 ac_gc_check_cons_list
=1 ;;
2374 # these enable particular checks
2375 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2376 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2377 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2378 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2379 conslist
) ac_gc_check_cons_list
=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2387 if test x
$ac_enable_checking != x
; then
2389 cat >>confdefs.h
<<\_ACEOF
2390 #define ENABLE_CHECKING 1
2394 if test x
$ac_gc_check_stringbytes != x
; then
2396 cat >>confdefs.h
<<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2401 if test x
$ac_gc_check_stringoverrun != x
; then
2403 cat >>confdefs.h
<<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2408 if test x
$ac_gc_check_string_free_list != x
; then
2410 cat >>confdefs.h
<<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2415 if test x
$ac_xmalloc_overrun != x
; then
2417 cat >>confdefs.h
<<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2422 if test x
$ac_gc_check_cons_list != x
; then
2424 cat >>confdefs.h
<<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2435 if test x
$ac_enable_profiling != x
; then
2436 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS
="-pg"
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2447 ac_enable_autodepend
=yes
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2469 srcdir
="`(cd ${srcdir}; pwd)`"
2472 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2495 ### Canonicalize the configuration name.
2498 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2501 ac_install_sh
="$ac_aux_dir/install-sh -c"
2503 elif test -f "$ac_dir/install.sh"; then
2505 ac_install_sh
="$ac_aux_dir/install.sh -c"
2507 elif test -f "$ac_dir/shtool"; then
2509 ac_install_sh
="$ac_aux_dir/shtool install -c"
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2539 ac_build_alias
=$build_alias
2540 test "x$ac_build_alias" = x
&&
2541 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x
&&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2561 ac_save_IFS
=$IFS; IFS
='-'
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2571 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2579 if test "x$host_alias" = x
; then
2580 ac_cv_host
=$ac_cv_build
2582 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2598 ac_save_IFS
=$IFS; IFS
='-'
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2608 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 configuration
=${host_alias-${build_alias-$host}}
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2638 machine
='' opsys
='' unported
=no
2639 case "${canonical}" in
2644 case "${canonical}" in
2645 alpha
*-*-freebsd*) machine
=alpha
;;
2646 arm
*-*-freebsd*) machine
=arm
;;
2647 ia64-
*-freebsd*) machine
=ia64
;;
2648 sparc-
*-freebsd*) machine
=sparc
;;
2649 sparc64-
*-freebsd*) machine
=sparc
;;
2650 powerpc-
*-freebsd*) machine
=macppc
;;
2651 i
[3456]86-*-freebsd*) machine
=intel386
;;
2652 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2656 ## FreeBSD kernel + glibc based userland
2659 case "${canonical}" in
2660 alpha
*-*-kfreebsd*) machine
=alpha
;;
2661 ia64-
*-kfreebsd*) machine
=ia64
;;
2662 sparc-
*-kfreebsd*) machine
=sparc
;;
2663 sparc64-
*-kfreebsd*) machine
=sparc
;;
2664 powerpc-
*-kfreebsd*) machine
=macppc
;;
2665 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2666 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2673 if test -f /usr
/lib
/crti.o
; then
2675 cat >>confdefs.h
<<\_ACEOF
2676 #define HAVE_CRTIN /**/
2681 case "${canonical}" in
2682 alpha
*-*-netbsd*) machine
=alpha
;;
2683 i
[3456]86-*-netbsd*) machine
=intel386
;;
2684 mips-
*-netbsd*) machine
=mips
;;
2685 mipsel-
*-netbsd*) machine
=mips
;;
2686 mipseb-
*-netbsd*) machine
=mips
;;
2687 powerpc-
*-netbsd*) machine
=macppc
;;
2688 sparc
*-*-netbsd*) machine
=sparc
;;
2689 vax-
*-netbsd*) machine
=vax
;;
2690 arm-
*-netbsd*) machine
=arm
;;
2691 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2692 hppa-
*-netbsd*) machine
=hp800
;;
2693 m68k-
*-netbsd*) machine
=m68k
;;
2700 case "${canonical}" in
2701 alpha
*-*-openbsd*) machine
=alpha
;;
2702 arm-
*-openbsd*) machine
=arm
;;
2703 i386-
*-openbsd*) machine
=intel386
;;
2704 powerpc-
*-openbsd*) machine
=macppc
;;
2705 sparc
*-*-openbsd*) machine
=sparc
;;
2706 vax-
*-openbsd*) machine
=vax
;;
2707 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2708 hppa-
*-openbsd*) machine
=hp800
;;
2715 case "${canonical}" in
2716 i
[3456]86-*-lynxos*) machine
=intel386
;;
2717 powerpc-
*-lynxos*) machine
=powerpc
;;
2721 alpha
*-*-linux-gnu* )
2722 machine
=alpha opsys
=gnu-linux
2726 machine
=arm opsys
=gnu-linux
2729 ## Apple Darwin / Mac OS X
2731 case "${canonical}" in
2732 i
[3456]86-* ) machine
=intel386
;;
2733 powerpc-
* ) machine
=macppc
;;
2734 x86_64-
* ) machine
=amdx86-64
;;
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP
="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw
/include
&& test -d /sw
/lib
; then
2742 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2743 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa
*-hp-hpux10.2
* )
2750 machine
=hp800 opsys
=hpux10-20
2752 hppa
*-hp-hpux1[1-9]* )
2753 machine
=hp800 opsys
=hpux11
2754 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2757 hppa
*-*-linux-gnu* )
2758 machine
=hp800 opsys
=gnu-linux
2763 machine
=ibms390 opsys
=gnu-linux
2765 s390x-
*-linux-gnu* )
2766 machine
=ibms390x opsys
=gnu-linux
2768 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2769 machine
=ibmrs6000 opsys
=aix4-2
2771 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2772 machine
=ibmrs6000 opsys
=aix4-2
2774 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2775 machine
=ibmrs6000 opsys
=aix4-2
2777 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2778 machine
=ibmrs6000 opsys
=aix4-2
2781 ## Macintosh PowerPC
2782 powerpc
*-*-linux-gnu* )
2783 machine
=macppc opsys
=gnu-linux
2786 ## Silicon Graphics machines
2789 machine
=iris4d opsys
=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2798 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2799 machine
=sparc opsys
=gnu-linux
2803 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2804 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2805 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2806 case "${canonical}" in
2807 i
[3456]86-*-* ) machine
=intel386
;;
2808 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2809 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2810 sparc
* ) machine
=sparc
;;
2813 case "${canonical}" in
2814 *-sunos5.3
* |
*-solaris2.3
* )
2816 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2818 *-sunos5.4
* |
*-solaris2.4
* )
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2823 *-sunos5.5
* |
*-solaris2.5
* )
2825 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2828 *-sunos5.6
* |
*-solaris2.6
* )
2830 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2833 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2835 emacs_check_sunpro_c
=yes
2836 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2838 *-sunos5* |
*-solaris* )
2840 emacs_check_sunpro_c
=yes
2841 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* |
*-sunos5* )
2847 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2859 machine
=ia64 opsys
=gnu-linux
2862 ## Intel 386 machines where we don't care about the manufacturer
2865 case "${canonical}" in
2866 *-cygwin ) opsys
=cygwin
;;
2867 *-darwin* ) opsys
=darwin
2868 CPP
="${CC-cc} -E -no-cpp-precomp"
2870 *-linux-gnu* ) opsys
=gnu-linux
;;
2871 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2872 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2873 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2878 ## m68k Linux-based GNU system
2880 machine
=m68k opsys
=gnu-linux
2883 ## Mips Linux-based GNU system
2884 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2885 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2886 machine
=mips opsys
=gnu-linux
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-
*-linux-gnu* )
2891 machine
=amdx86-64 opsys
=gnu-linux
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa
*-*-linux-gnu* )
2896 machine
=xtensa opsys
=gnu-linux
2899 ## SuperH Linux-based GNU system
2900 sh
[34]*-*-linux-gnu* )
2901 machine
=sh3 opsys
=gnu-linux
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2915 if test x
"${opsys}" = x
; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys
=gnu
;;
2918 *-sysv4.2uw
* ) opsys
=unixware
;;
2919 *-sysv5uw* ) opsys
=unixware
;;
2920 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2921 *-sysv4.1
* |
*-sysvr4.1
* )
2922 NON_GNU_CPP
=/usr
/lib
/cpp
2924 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2925 if [ x
$NON_GNU_CPP = x
]; then
2926 if [ -f /usr
/ccs
/lib
/cpp
]; then
2927 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2929 NON_GNU_CPP
=/lib
/cpp
2933 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2950 machfile
="m/${machine}.h"
2951 opsysfile
="s/${opsys}.h"
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified
=yes
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS
="$CFLAGS"
2961 ac_cpp
='$CPP $CPPFLAGS'
2962 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC
="$CC" # Let the user override the test.
2976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir
=.
2981 for ac_exec_ext
in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc
; ac_word
=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC
="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_CC" = x
; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned
=yes ;;
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC
="$CC" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc
; ac_word
=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC
="$CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected
=yes
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy
$ac_cv_prog_CC
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3142 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog
in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_exec_ext
in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$CC" && break
3202 if test -z "$CC"; then
3204 for ac_prog
in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy
$ac_prog; ac_word
=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir
=.
3221 for ac_exec_ext
in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC
="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$ac_ct_CC" && break
3246 if test "x$ac_ct_CC" = x
; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned
=yes ;;
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3276 { (ac_try
="$ac_compiler --version >&5"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3290 *) ac_try_echo
=$ac_try;;
3292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try
="$ac_compiler -V >&5"
3300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3338 for ac_file in $ac_files
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3347 if { (ac_try="$ac_link_default"
3349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3350 *) ac_try_echo
=$ac_try;;
3352 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3363 for ac_file
in $ac_files ''
3365 test -f "$ac_file" ||
continue
3367 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3370 # We found the default executable, but exeext='' is most
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3376 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3388 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3407 ac_exeext
=$ac_cv_exeext
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try
='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3429 if test "$cross_compiling" = maybe; then
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details.
" >&5
3435 $as_echo "$as_me: error
: cannot run C compiled programs.
3436 If you meant to cross compile
, use \
`--host'.
3437 See \`config.log
' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3471 for ac_file
in conftest.exe conftest conftest.
*; do
3472 test -f "$ac_file" ||
continue
3474 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3475 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3488 rm -f conftest
$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.
$ac_ext
3493 EXEEXT
=$ac_cv_exeext
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try
="$ac_compile"
3518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log
' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details.
" >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3555 $as_echo_n "(cached
) " >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 $as_echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3615 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached
) " >&6
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 $as_echo "$as_me: failed program was
:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was
:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3702 cat >conftest.$ac_ext <<_ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3737 $as_echo "$as_me: failed program was
:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3763 if test "$GCC" = yes; then
3769 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3770 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached
) " >&6
3774 ac_cv_prog_cc_c89=no
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3857 $as_echo "$as_me: failed program was
:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3866 rm -f conftest.$ac_ext
3871 case "x
$ac_cv_prog_cc_c89" in
3873 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3874 $as_echo "none needed
" >&6; } ;;
3876 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3877 $as_echo "unsupported
" >&6; } ;;
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached
) " >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3946 emacs_cv_sunpro_c=yes
3948 $as_echo "$as_me: failed program was
:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 emacs_cv_sunpro_c=no
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3984 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3986 CC="$CC $GCC_TEST_OPTIONS"
3989 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4000 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached
) " >&6
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error
" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4043 grep -v '^ *+' conftest.er1 >conftest.err
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4053 $as_echo "$as_me: failed program was
:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4089 # Broken: success on invalid input.
4092 $as_echo "$as_me: failed program was
:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4100 rm -f conftest.err conftest.$ac_ext
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4117 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error
" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4135 # include <limits.h>
4137 # include <assert.h>
4141 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4160 $as_echo "$as_me: failed program was
:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Broken: fails on valid input.
4167 rm -f conftest.err conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4196 # Broken: success on invalid input.
4199 $as_echo "$as_me: failed program was
:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4207 rm -f conftest.err conftest.$ac_ext
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4215 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4216 See \
`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log
' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4225 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and
test for each of PROGNAME-LIST
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_prog
in grep ggrep
; do
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4250 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4253 $as_echo_n 0123456789 >"conftest.in"
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4262 ac_count
=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP
="$ac_path_GREP"
4266 ac_path_GREP_max
=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4274 $ac_path_GREP_found && break 3
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4285 ac_cv_path_GREP
=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP
="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4299 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4300 then ac_cv_path_EGREP
="$GREP -E"
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found
=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4309 test -z "$as_dir" && as_dir
=.
4310 for ac_prog
in egrep; do
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4318 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4321 $as_echo_n 0123456789 >"conftest.in"
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4330 ac_count
=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP
="$ac_path_EGREP"
4334 ac_path_EGREP_max
=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4342 $ac_path_EGREP_found && break 3
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4353 ac_cv_path_EGREP
=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP
="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4368 cat >conftest.
$ac_ext <<_ACEOF
4371 cat confdefs.h
>>conftest.
$ac_ext
4372 cat >>conftest.
$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4387 rm -f conftest.
$ac_objext
4388 if { (ac_try
="$ac_compile"
4390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4430 ac_cv_header_stdc=no
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4451 ac_cv_header_stdc=no
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4497 *) ac_try_echo
=$ac_try;;
4499 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4522 ac_cv_header_stdc=no
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 #include <$ac_header>
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4574 *) ac_try_echo
=$ac_try;;
4576 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4580 grep -v '^ *+' conftest.er1
>conftest.err
4582 cat conftest.err
>&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.
$ac_objext; then
4588 eval "$as_ac_Header=yes"
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.
$ac_ext >&5
4593 eval "$as_ac_Header=no"
4596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4598 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h
<<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.
$ac_ext <<_ACEOF
4629 cat confdefs.h
>>conftest.
$ac_ext
4630 cat >>conftest.
$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4635 rm -f conftest.
$ac_objext
4636 if { (ac_try
="$ac_compile"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_compiler=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4679 *) ac_try_echo
=$ac_try;;
4681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1
>conftest.err
4687 cat conftest.err
>&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev
/null
&& {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4693 ac_header_preproc
=yes
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4698 ac_header_preproc
=no
4701 rm -f conftest.err conftest.
$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc
=yes
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4735 ac_cv_header_minix_config_h
=$ac_header_preproc
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4741 if test $ac_cv_header_minix_config_h = yes; then
4748 if test "$MINIX" = yes; then
4750 cat >>confdefs.h
<<\_ACEOF
4751 #define _POSIX_SOURCE 1
4755 cat >>confdefs.h
<<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4760 cat >>confdefs.h
<<\_ACEOF
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4790 rm -f conftest.
$ac_objext
4791 if { (ac_try
="$ac_compile"
4793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_safe_to_define___extensions__=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4867 *) ac_try_echo
=$ac_try;;
4869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1
>conftest.err
4875 cat conftest.err
>&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.
$ac_objext; then
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.
$ac_ext >&5
4889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS
="$SAVE_CFLAGS"
4899 ### Use -Wdeclaration-after-statement if the compiler supports it
4900 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4901 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4902 SAVE_CFLAGS
="$CFLAGS"
4903 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4919 rm -f conftest.
$ac_objext
4920 if { (ac_try
="$ac_compile"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $has_option = yes; then
4947 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4949 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4950 $as_echo "$has_option" >&6; }
4951 CFLAGS="$SAVE_CFLAGS"
4955 #### Some other nice autoconf tests.
4957 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 $as_echo_n "checking whether ln -s works... " >&6; }
4960 if test "$LN_S" = "ln -s"; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4964 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 $as_echo "no, using $LN_S" >&6; }
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5002 # include <limits.h>
5004 # include <assert.h>
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5011 *) ac_try_echo
=$ac_try;;
5013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1
>conftest.err
5019 cat conftest.err
>&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev
/null
&& {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.
$ac_ext >&5
5030 # Broken: fails on valid input.
5034 rm -f conftest.err conftest.
$ac_ext
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.
$ac_ext <<_ACEOF
5041 cat confdefs.h
>>conftest.
$ac_ext
5042 cat >>conftest.
$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <ac_nonexistent.h>
5046 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5063 # Broken: success on invalid input.
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Passes both tests.
5074 rm -f conftest.err conftest.$ac_ext
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.
$ac_ext
5079 if $ac_preproc_ok; then
5091 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5094 for ac_c_preproc_warn_flag
in '' yes
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat >conftest.
$ac_ext <<_ACEOF
5105 cat confdefs.h
>>conftest.
$ac_ext
5106 cat >>conftest.
$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5109 # include <limits.h>
5111 # include <assert.h>
5115 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124 grep -v '^ *+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Broken: fails on valid input.
5141 rm -f conftest.err conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat >conftest.$ac_ext <<_ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5153 if { (ac_try="$ac_cpp conftest.$ac_ext"
5155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5156 *) ac_try_echo
=$ac_try;;
5158 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1
>conftest.err
5164 cat conftest.err
>&5
5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev
/null
&& {
5167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5170 # Broken: success on invalid input.
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.
$ac_ext >&5
5176 # Passes both tests.
5181 rm -f conftest.err conftest.
$ac_ext
5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185 rm -f conftest.err conftest.
$ac_ext
5186 if $ac_preproc_ok; then
5189 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5197 ac_cpp
='$CPP $CPPFLAGS'
5198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5202 # Find a good install program. We prefer a C program (faster),
5203 # so one script is as good as another. But avoid the broken or
5204 # incompatible versions:
5205 # SysV /etc/install, /usr/sbin/install
5206 # SunOS /usr/etc/install
5207 # IRIX /sbin/install
5209 # AmigaOS /C/install, which installs bootblocks on floppy discs
5210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5213 # OS/2's system install, which has a completely different semantic
5214 # ./install, which can be erroneously created by make from ./install.sh.
5215 # Reject install programs that cannot install multiple files.
5216 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5218 if test -z "$INSTALL"; then
5219 if test "${ac_cv_path_install+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir
=.
5227 # Account for people who put trailing slashes in PATH elements.
5229 .
/ | .
// |
/cC
/* | \
5230 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5231 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5234 # OSF1 and SCO ODT 3.0 have their own names for install.
5235 # Don't use installbsd from OSF since it installs stuff as root
5237 for ac_prog
in ginstall scoinst
install; do
5238 for ac_exec_ext
in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5240 if test $ac_prog = install &&
5241 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5242 # AIX install. It has an incompatible calling convention.
5244 elif test $ac_prog = install &&
5245 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5246 # program-specific install script used by HP pwplus--don't use.
5249 rm -rf conftest.one conftest.two conftest.dir
5250 echo one
> conftest.one
5251 echo two
> conftest.two
5253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5254 test -s conftest.one
&& test -s conftest.two
&&
5255 test -s conftest.dir
/conftest.one
&&
5256 test -s conftest.dir
/conftest.two
5258 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5271 rm -rf conftest.one conftest.two conftest.dir
5274 if test "${ac_cv_path_install+set}" = set; then
5275 INSTALL
=$ac_cv_path_install
5277 # As a last resort, use the slow shell script. Don't cache a
5278 # value for INSTALL within a source directory, because that will
5279 # break other packages using the cache if that directory is
5280 # removed, or if the value is a relative name.
5281 INSTALL
=$ac_install_sh
5284 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5285 $as_echo "$INSTALL" >&6; }
5287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5288 # It thinks the first close brace ends the variable substitution.
5289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5293 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5295 if test "x$RANLIB" = x
; then
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_RANLIB+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir
=.
5312 for ac_exec_ext
in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 RANLIB
=$ac_cv_prog_RANLIB
5325 if test -n "$RANLIB"; then
5326 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5327 $as_echo "$RANLIB" >&6; }
5329 { $as_echo "$as_me:$LINENO: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_RANLIB"; then
5336 ac_ct_RANLIB
=$RANLIB
5337 # Extract the first word of "ranlib", so it can be a program name with args.
5338 set dummy ranlib
; ac_word
=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5344 if test -n "$ac_ct_RANLIB"; then
5345 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir
=.
5352 for ac_exec_ext
in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5365 if test -n "$ac_ct_RANLIB"; then
5366 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5367 $as_echo "$ac_ct_RANLIB" >&6; }
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_RANLIB" = x
; then
5376 case $cross_compiling:$ac_tool_warned in
5378 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5379 whose name does not start with the host triplet. If you think this
5380 configuration is useful to you, please write to autoconf@gnu.org." >&5
5381 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5382 whose name does not start with the host triplet. If you think this
5383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5384 ac_tool_warned
=yes ;;
5386 RANLIB
=$ac_ct_RANLIB
5389 RANLIB
="$ac_cv_prog_RANLIB"
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info
; ac_word
=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5400 case $INSTALL_INFO in
5402 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir
=.
5410 for ac_exec_ext
in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info
; ac_word
=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5440 case $INSTALL_INFO in
5442 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5446 for as_dir
in /usr
/sbin
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_exec_ext
in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info
; ac_word
=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5480 case $INSTALL_INFO in
5482 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir
=.
5490 for ac_exec_ext
in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5504 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5505 if test -n "$INSTALL_INFO"; then
5506 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5507 $as_echo "$INSTALL_INFO" >&6; }
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510 $as_echo "no" >&6; }
5514 # Extract the first word of "gzip", so it can be a program name with args.
5515 set dummy
gzip; ac_word
=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5523 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5545 if test -n "$GZIP_PROG"; then
5546 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5547 $as_echo "$GZIP_PROG" >&6; }
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5556 ## Need makeinfo >= 4.6 (?) to build the manuals.
5557 # Extract the first word of "makeinfo", so it can be a program name with args.
5558 set dummy makeinfo
; ac_word
=$2
5559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5566 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir
=.
5574 for ac_exec_ext
in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5588 MAKEINFO
=$ac_cv_path_MAKEINFO
5589 if test -n "$MAKEINFO"; then
5590 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5591 $as_echo "$MAKEINFO" >&6; }
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$MAKEINFO" != "no" && \
5599 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
5603 ## Makeinfo is unusual. For a released Emacs, the manuals are
5604 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5605 ## therefore in the category of "special tools" not normally required, which
5606 ## configure does not have to check for (eg autoconf itself).
5607 ## In a Bazaar checkout on the other hand, the manuals are not included.
5608 ## So makeinfo is a requirement to build from Bazaar, and configure
5609 ## should test for it as it does for any other build requirement.
5610 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5611 ## with pre-built manuals, from a Bazaar checkout.
5612 if test "$MAKEINFO" = "no"; then
5613 if test "x${with_makeinfo}" = "xno"; then
5615 elif ! test -e $srcdir/info
/emacs
; then
5616 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5617 source tree does not seem to have pre-built manuals in the \`info' directory.
5618 Either install a suitable version of makeinfo, or re-run configure
5619 with the \`--without-makeinfo' option to build without the manuals. " >&5
5620 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5621 source tree does not seem to have pre-built manuals in the \`info' directory.
5622 Either install a suitable version of makeinfo, or re-run configure
5623 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5624 { (exit 1); exit 1; }; }
5629 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5631 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5634 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5636 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5640 late_LDFLAGS
=$LDFLAGS
5641 if test "$GCC" = yes; then
5642 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5644 LDFLAGS
="$LDFLAGS -znocombreloc"
5647 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5648 $as_echo_n "checking for -znocombreloc... " >&6; }
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 rm -f conftest.
$ac_objext conftest
$ac_exeext
5653 if { (ac_try
="$ac_link"
5655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659 $as_echo "$ac_try_echo") >&5
5660 (eval "$ac_link") 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest$ac_exeext && {
5670 test "$cross_compiling" = yes ||
5671 $as_test_x conftest$ac_exeext
5673 { $as_echo "$as_me:$LINENO: result: yes" >&5
5674 $as_echo "yes" >&6; }
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 LDFLAGS=$late_LDFLAGS
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5684 rm -rf conftest.dSYM
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5688 #### Extract some information from the operating system and machine files.
5690 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5691 - which libraries the lib-src programs will want, and
5692 - whether the GNU malloc routines are usable..." >&5
5693 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5694 - which libraries the lib-src programs will want, and
5695 - whether the GNU malloc routines are usable..." >&6;}
5697 ### First figure out CFLAGS (which we use for running the compiler here)
5698 ### and REAL_CFLAGS (which we use for real compilation).
5699 ### The two are the same except on a few systems, where they are made
5700 ### different to work around various lossages. For example,
5701 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5702 ### as implying static linking.
5704 ### If the CFLAGS env var is specified, we use that value
5705 ### instead of the default.
5707 ### It's not important that this name contain the PID; you can't run
5708 ### two configures in the same directory and have anything work
5710 tempcname="conftest.c"
5713 #include "'${srcdir}'/src/'${opsysfile}'"
5714 #include "'${srcdir}'/src/'${machfile}'"
5715 #ifndef LIBS_MACHINE
5716 #define LIBS_MACHINE
5721 #ifndef C_SWITCH_SYSTEM
5722 #define C_SWITCH_SYSTEM
5724 #ifndef C_SWITCH_MACHINE
5725 #define C_SWITCH_MACHINE
5727 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5728 configure___ c_switch_system=C_SWITCH_SYSTEM
5729 configure___ c_switch_machine=C_SWITCH_MACHINE
5732 #define LIB_X11_LIB -lX11
5735 #ifndef LIBX11_SYSTEM
5736 #define LIBX11_SYSTEM
5738 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5741 configure___ unexec=UNEXEC
5743 configure___ unexec=unexec.o
5746 #ifdef SYSTEM_MALLOC
5747 configure___ system_malloc=yes
5749 configure___ system_malloc=no
5752 #ifdef USE_MMAP_FOR_BUFFERS
5753 configure___ use_mmap_for_buffers=yes
5755 configure___ use_mmap_for_buffers=no
5758 #ifndef C_DEBUG_SWITCH
5759 #define C_DEBUG_SWITCH -g
5762 #ifndef C_OPTIMIZE_SWITCH
5764 #define C_OPTIMIZE_SWITCH -O2
5766 #define C_OPTIMIZE_SWITCH -O
5770 #ifndef C_WARNINGS_SWITCH
5771 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5774 #ifndef LD_SWITCH_MACHINE
5775 #define LD_SWITCH_MACHINE
5778 #ifndef LD_SWITCH_SYSTEM
5779 #define LD_SWITCH_SYSTEM
5782 #ifndef LD_SWITCH_X_SITE_AUX
5783 #define LD_SWITCH_X_SITE_AUX
5786 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5787 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5789 #ifdef THIS_IS_CONFIGURE
5791 /* Get the CFLAGS for tests in configure. */
5793 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5795 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5798 #else /* not THIS_IS_CONFIGURE */
5800 /* Get the CFLAGS for real compilation. */
5802 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5804 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5807 #endif /* not THIS_IS_CONFIGURE */
5810 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5812 # The value of CPP is a quoted variable reference, so we need to do this
5813 # to get its actual value...
5814 CPP=`eval "echo $CPP"`
5815 eval `${CPP} -Isrc ${tempcname} \
5816 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5817 if test "x$SPECIFIED_CFLAGS" = x; then
5818 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5819 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5821 REAL_CFLAGS="$CFLAGS"
5825 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5827 ### Make sure subsequent tests use flags consistent with the build flags.
5829 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5830 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5832 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5837 # Check whether --enable-largefile was given.
5838 if test "${enable_largefile+set}" = set; then
5839 enableval=$enable_largefile;
5842 if test "$enable_largefile" != no; then
5844 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5846 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5849 ac_cv_sys_largefile_CC=no
5850 if test "$GCC" != yes; then
5853 # IRIX 6.2 and later do not support large files by default,
5854 # so use the C compiler's -n32 option if that helps.
5855 cat >conftest.$ac_ext <<_ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 /* Check that off_t can represent 2**63 - 1 correctly.
5863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5864 since some C++ compilers masquerading as C compilers
5865 incorrectly reject 9223372036854775807. */
5866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5868 && LARGE_OFF_T % 2147483647 == 1)
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5882 *) ac_try_echo
=$ac_try;;
5884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1
>conftest.err
5890 cat conftest.err
>&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.
$ac_objext; then
5898 $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5904 rm -f core conftest.err conftest.
$ac_objext
5906 rm -f conftest.
$ac_objext
5907 if { (ac_try
="$ac_compile"
5909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1 >conftest.err
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_largefile_CC=' -n32'; break
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext
5936 rm -f conftest.$ac_ext
5939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5940 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5941 if test "$ac_cv_sys_largefile_CC" != no; then
5942 CC=$CC$ac_cv_sys_largefile_CC
5945 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5946 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5951 cat >conftest.$ac_ext <<_ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 /* Check that off_t can represent 2**63 - 1 correctly.
5959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5960 since some C++ compilers masquerading as C compilers
5961 incorrectly reject 9223372036854775807. */
5962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5964 && LARGE_OFF_T % 2147483647 == 1)
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5978 *) ac_try_echo
=$ac_try;;
5980 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1
>conftest.err
5986 cat conftest.err
>&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.
$ac_objext; then
5992 ac_cv_sys_file_offset_bits
=no
; break
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
6000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6001 cat >conftest.
$ac_ext <<_ACEOF
6004 cat confdefs.h
>>conftest.
$ac_ext
6005 cat >>conftest.
$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #define _FILE_OFFSET_BITS 64
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6025 rm -f conftest.
$ac_objext
6026 if { (ac_try
="$ac_compile"
6028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_file_offset_bits=64; break
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 ac_cv_sys_file_offset_bits=unknown
6056 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6057 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6058 case $ac_cv_sys_file_offset_bits in #(
6061 cat >>confdefs.h <<_ACEOF
6062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6067 if test $ac_cv_sys_file_offset_bits = unknown; then
6068 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6069 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6070 if test "${ac_cv_sys_large_files+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6101 *) ac_try_echo
=$ac_try;;
6103 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1
>conftest.err
6109 cat conftest.err
>&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.
$ac_objext; then
6115 ac_cv_sys_large_files
=no
; break
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.
$ac_ext >&5
6123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6124 cat >conftest.
$ac_ext <<_ACEOF
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #define _LARGE_FILES 1
6131 #include <sys/types.h>
6132 /* Check that off_t can represent 2**63 - 1 correctly.
6133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6134 since some C++ compilers masquerading as C compilers
6135 incorrectly reject 9223372036854775807. */
6136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6138 && LARGE_OFF_T % 2147483647 == 1)
6148 rm -f conftest.
$ac_objext
6149 if { (ac_try
="$ac_compile"
6151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155 $as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_sys_large_files=1; break
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cv_sys_large_files=unknown
6179 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6180 $as_echo "$ac_cv_sys_large_files" >&6; }
6181 case $ac_cv_sys_large_files in #(
6184 cat >>confdefs.h <<_ACEOF
6185 #define _LARGE_FILES $ac_cv_sys_large_files
6195 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6196 ### be located in either /usr/lib64 or /usr/lib.
6197 ### In some rare cases, /usr/lib64 exists but does not contain the
6198 ### relevant files (bug#1287). Hence test for crtn.o.
6199 case "${canonical}" in
6200 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6201 if test -e /usr/lib64/crtn.o; then
6203 cat >>confdefs.h <<\_ACEOF
6204 #define HAVE_LIB64_DIR 1
6213 if test "${with_sound}" != "no"; then
6214 # Sound support for GNU/Linux and the free BSDs.
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 $as_echo_n "checking for $ac_header... " >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 $as_echo_n "(cached) " >&6
6227 ac_res=`eval 'as_val=${'$as_ac_Header'}
6228 $as_echo "$as_val"'`
6229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6232 # Is the header compilable?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234 $as_echo_n "checking $ac_header usability... " >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 #include <$ac_header>
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6248 *) ac_try_echo
=$ac_try;;
6250 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6251 $as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6254 grep -v '^ *+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.
$ac_objext; then
6262 ac_header_compiler
=yes
6264 $as_echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_header_compiler
=no
6270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6272 $as_echo "$ac_header_compiler" >&6; }
6274 # Is the header present?
6275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6276 $as_echo_n "checking $ac_header presence... " >&6; }
6277 cat >conftest.
$ac_ext <<_ACEOF
6280 cat confdefs.h
>>conftest.
$ac_ext
6281 cat >>conftest.
$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #include <$ac_header>
6285 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null && {
6299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6302 ac_header_preproc=yes
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_preproc=no
6310 rm -f conftest.err conftest.$ac_ext
6311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6312 $as_echo "$ac_header_preproc" >&6; }
6314 # So? What about this header?
6315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6321 ac_header_preproc=yes
6324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 $as_echo_n "checking for $ac_header... " >&6; }
6341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6342 $as_echo_n "(cached) " >&6
6344 eval "$as_ac_Header=\$ac_header_preproc"
6346 ac_res=`eval 'as_val=${'$as_ac_Header'}
6347 $as_echo "$as_val"'`
6348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_ac_Header'}
6353 $as_echo "$as_val"'` = yes; then
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6362 # Emulation library used on NetBSD.
6363 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6364 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6365 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6368 ac_check_lib_save_LIBS=$LIBS
6369 LIBS="-lossaudio $LIBS"
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 /* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6387 return _oss_ioctl ();
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (ac_try="$ac_link"
6395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6396 *) ac_try_echo
=$ac_try;;
6398 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6399 $as_echo "$ac_try_echo") >&5
6400 (eval "$ac_link") 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest
$ac_exeext && {
6410 test "$cross_compiling" = yes ||
6411 $as_test_x conftest
$ac_exeext
6413 ac_cv_lib_ossaudio__oss_ioctl
=yes
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.
$ac_ext >&5
6418 ac_cv_lib_ossaudio__oss_ioctl
=no
6421 rm -rf conftest.dSYM
6422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6423 conftest
$ac_exeext conftest.
$ac_ext
6424 LIBS
=$ac_check_lib_save_LIBS
6426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6437 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6441 # Extract the first word of "pkg-config", so it can be a program name with args.
6442 set dummy pkg-config
; ac_word
=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6450 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir
=.
6458 for ac_exec_ext
in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6472 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6473 if test -n "$PKG_CONFIG"; then
6474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6475 $as_echo "$PKG_CONFIG" >&6; }
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test "$PKG_CONFIG" = "no" ; then
6486 PKG_CONFIG_MIN_VERSION
=0.9.0
6487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6488 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6489 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6491 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6492 { $as_echo "$as_me:$LINENO: result: yes" >&5
6493 $as_echo "yes" >&6; }
6496 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6497 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6498 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6499 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6500 $as_echo "$ALSA_CFLAGS" >&6; }
6502 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6503 $as_echo_n "checking ALSA_LIBS... " >&6; }
6504 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6505 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6506 $as_echo "$ALSA_LIBS" >&6; }
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6512 ## If we have a custom action on failure, don't print errors, but
6513 ## do set a variable so people can do so.
6514 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6526 if test $succeeded = yes; then
6532 if test $HAVE_ALSA = yes; then
6533 SAVE_CFLAGS
="$CFLAGS"
6534 SAVE_LDFLAGS
="$LDFLAGS"
6535 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6536 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6537 cat >conftest.
$ac_ext <<_ACEOF
6540 cat confdefs.h
>>conftest.
$ac_ext
6541 cat >>conftest.
$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <asoundlib.h>
6547 snd_lib_error_set_handler (0);
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6562 grep -v '^ *+' conftest.er1 >conftest.err
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 emacs_alsa_normal=yes
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 emacs_alsa_normal=no
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test "$emacs_alsa_normal" != yes; then
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <alsa/asoundlib.h>
6590 snd_lib_error_set_handler (0);
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6599 *) ac_try_echo
=$ac_try;;
6601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6602 $as_echo "$ac_try_echo") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.
$ac_objext; then
6613 emacs_alsa_subdir
=yes
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.
$ac_ext >&5
6618 emacs_alsa_subdir
=no
6621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6622 if test "$emacs_alsa_subdir" != yes; then
6623 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6624 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6625 { (exit 1); exit 1; }; }
6627 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6630 CFLAGS
="$SAVE_CFLAGS"
6631 LDFLAGS
="$SAVE_LDFLAGS"
6632 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6633 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6635 cat >>confdefs.h
<<\_ACEOF
6668 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6669 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6670 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6671 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6674 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 $as_echo_n "checking for $ac_header... " >&6; }
6678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 $as_echo_n "(cached) " >&6
6681 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6682 $as_echo "$as_val"'`
6683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6684 $as_echo "$ac_res" >&6; }
6686 # Is the header compilable?
6687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 $as_echo_n "checking $ac_header usability... " >&6; }
6689 cat >conftest.
$ac_ext <<_ACEOF
6692 cat confdefs.h
>>conftest.
$ac_ext
6693 cat >>conftest.
$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_header_compiler=yes
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_compiler=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6726 $as_echo "$ac_header_compiler" >&6; }
6728 # Is the header present?
6729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6730 $as_echo_n "checking $ac_header presence... " >&6; }
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <$ac_header>
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6742 *) ac_try_echo
=$ac_try;;
6744 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev
/null
&& {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 ac_header_preproc
=yes
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.
$ac_ext >&5
6761 ac_header_preproc
=no
6764 rm -f conftest.err conftest.
$ac_ext
6765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 $as_echo "$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc
=yes
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 $as_echo_n "checking for $ac_header... " >&6; }
6795 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 $as_echo_n "(cached) " >&6
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6806 if test `eval 'as_val=${'$as_ac_Header'}
6807 $as_echo "$as_val"'` = yes; then
6808 cat >>confdefs.h
<<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6817 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6818 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6819 cat >conftest.
$ac_ext <<_ACEOF
6822 cat confdefs.h
>>conftest.
$ac_ext
6823 cat >>conftest.
$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/personality.h>
6829 personality (PER_LINUX32)
6834 rm -f conftest.
$ac_objext
6835 if { (ac_try
="$ac_compile"
6837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841 $as_echo "$ac_try_echo") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 emacs_cv_personality_linux32=yes
6854 $as_echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 emacs_cv_personality_linux32=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6862 $as_echo "$emacs_cv_personality_linux32" >&6; }
6864 if test $emacs_cv_personality_linux32 = yes; then
6866 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_PERSONALITY_LINUX32 1
6873 for ac_header in term.h
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <$ac_header>
6889 if { (ac_try="$ac_cpp conftest.$ac_ext"
6891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6892 *) ac_try_echo
=$ac_try;;
6894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } >/dev
/null
&& {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6906 eval "$as_ac_Header=yes"
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.
$ac_ext >&5
6911 eval "$as_ac_Header=no"
6914 rm -f conftest.err conftest.
$ac_ext
6916 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 if test `eval 'as_val=${'$as_ac_Header'}
6921 $as_echo "$as_val"'` = yes; then
6922 cat >>confdefs.h
<<_ACEOF
6923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6931 $as_echo_n "checking for ANSI C header files... " >&6; }
6932 if test "${ac_cv_header_stdc+set}" = set; then
6933 $as_echo_n "(cached) " >&6
6935 cat >conftest.
$ac_ext <<_ACEOF
6938 cat confdefs.h
>>conftest.
$ac_ext
6939 cat >>conftest.
$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6954 rm -f conftest.
$ac_objext
6955 if { (ac_try
="$ac_compile"
6957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_header_stdc=yes
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_header_stdc=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 if test $ac_cv_header_stdc = yes; then
6983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "memchr" >/dev/null 2>&1; then
6997 ac_cv_header_stdc=no
7003 if test $ac_cv_header_stdc = yes; then
7004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7005 cat >conftest.$ac_ext <<_ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015 $EGREP "free" >/dev/null 2>&1; then
7018 ac_cv_header_stdc=no
7024 if test $ac_cv_header_stdc = yes; then
7025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7026 if test "$cross_compiling" = yes; then
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7041 # define ISLOWER(c) \
7042 (('a' <= (c) && (c) <= 'i') \
7043 || ('j' <= (c) && (c) <= 'r') \
7044 || ('s' <= (c) && (c) <= 'z'))
7045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7053 for (i = 0; i < 256; i++)
7054 if (XOR (islower (i), ISLOWER (i))
7055 || toupper (i) != TOUPPER (i))
7060 rm -f conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>&5
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7072 { (case "(($ac_try" in
7073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_try") 2>&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7084 $as_echo "$as_me: program exited with status $ac_status" >&5
7085 $as_echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_header_stdc=no
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7099 $as_echo "$ac_cv_header_stdc" >&6; }
7100 if test $ac_cv_header_stdc = yes; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define STDC_HEADERS 1
7108 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7110 if test "${ac_cv_header_time+set}" = set; then
7111 $as_echo_n "(cached) " >&6
7113 cat >conftest.$ac_ext <<_ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/time.h>
7126 if ((struct tm *) 0)
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7136 *) ac_try_echo
=$ac_try;;
7138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7142 grep -v '^ *+' conftest.er1
>conftest.err
7144 cat conftest.err
>&5
7145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.
$ac_objext; then
7150 ac_cv_header_time
=yes
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 ac_cv_header_time
=no
7158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7161 $as_echo "$ac_cv_header_time" >&6; }
7162 if test $ac_cv_header_time = yes; then
7164 cat >>confdefs.h
<<\_ACEOF
7165 #define TIME_WITH_SYS_TIME 1
7170 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7171 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7172 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7175 cat >conftest.
$ac_ext <<_ACEOF
7178 cat confdefs.h
>>conftest.
$ac_ext
7179 cat >>conftest.
$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7193 rm -f conftest.
$ac_objext
7194 if { (ac_try
="$ac_compile"
7196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_have_decl_sys_siglist=yes
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_have_decl_sys_siglist=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7222 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7223 if test $ac_cv_have_decl_sys_siglist = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_DECL_SYS_SIGLIST 1
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_DECL_SYS_SIGLIST 0
7239 if test $ac_cv_have_decl_sys_siglist != yes; then
7240 # For Tru64, at least:
7241 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7242 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7256 #ifndef __sys_siglist
7257 (void) __sys_siglist;
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7268 *) ac_try_echo
=$ac_try;;
7270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1
>conftest.err
7276 cat conftest.err
>&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.
$ac_objext; then
7282 ac_cv_have_decl___sys_siglist
=yes
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.
$ac_ext >&5
7287 ac_cv_have_decl___sys_siglist
=no
7290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7296 cat >>confdefs.h
<<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7302 cat >>confdefs.h
<<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7312 cat >>confdefs.h
<<\_ACEOF
7313 #define sys_siglist __sys_siglist
7318 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7323 cat >conftest.
$ac_ext <<_ACEOF
7326 cat confdefs.h
>>conftest.
$ac_ext
7327 cat >>conftest.
$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7348 rm -f conftest.
$ac_objext
7349 if { (ac_try
="$ac_compile"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_header_sys_wait_h=yes
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_cv_header_sys_wait_h=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7377 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7378 if test $ac_cv_header_sys_wait_h = yes; then
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_SYS_WAIT_H 1
7387 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7388 $as_echo_n "checking for struct utimbuf... " >&6; }
7389 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #ifdef TIME_WITH_SYS_TIME
7399 #include <sys/time.h>
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7414 static struct utimbuf x; x.actime = x.modtime;
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7423 *) ac_try_echo
=$ac_try;;
7425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.
$ac_objext; then
7437 emacs_cv_struct_utimbuf
=yes
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 emacs_cv_struct_utimbuf
=no
7445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7448 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7449 if test $emacs_cv_struct_utimbuf = yes; then
7451 cat >>confdefs.h
<<\_ACEOF
7452 #define HAVE_STRUCT_UTIMBUF 1
7457 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7458 $as_echo_n "checking return type of signal handlers... " >&6; }
7459 if test "${ac_cv_type_signal+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7474 return *(signal (0, 0)) (0) == 1;
7479 rm -f conftest.
$ac_objext
7480 if { (ac_try
="$ac_compile"
7482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486 $as_echo "$ac_try_echo") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7489 grep -v '^ *+' conftest.er1 >conftest.err
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_type_signal=int
7499 $as_echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_cv_type_signal=void
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7508 $as_echo "$ac_cv_type_signal" >&6; }
7510 cat >>confdefs.h <<_ACEOF
7511 #define RETSIGTYPE $ac_cv_type_signal
7516 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7517 $as_echo_n "checking for speed_t... " >&6; }
7518 if test "${emacs_cv_speed_t+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <termios.h>
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7540 *) ac_try_echo
=$ac_try;;
7542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1
>conftest.err
7548 cat conftest.err
>&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.
$ac_objext; then
7554 emacs_cv_speed_t
=yes
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.
$ac_ext >&5
7562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7565 $as_echo "$emacs_cv_speed_t" >&6; }
7566 if test $emacs_cv_speed_t = yes; then
7568 cat >>confdefs.h
<<\_ACEOF
7569 #define HAVE_SPEED_T 1
7574 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7575 $as_echo_n "checking for struct timeval... " >&6; }
7576 if test "${emacs_cv_struct_timeval+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7579 cat >conftest.
$ac_ext <<_ACEOF
7582 cat confdefs.h
>>conftest.
$ac_ext
7583 cat >>conftest.
$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #ifdef TIME_WITH_SYS_TIME
7586 #include <sys/time.h>
7589 #ifdef HAVE_SYS_TIME_H
7590 #include <sys/time.h>
7598 static struct timeval x; x.tv_sec = x.tv_usec;
7603 rm -f conftest.
$ac_objext
7604 if { (ac_try
="$ac_compile"
7606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 emacs_cv_struct_timeval=yes
7623 $as_echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 emacs_cv_struct_timeval=no
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7632 $as_echo "$emacs_cv_struct_timeval" >&6; }
7633 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7634 if test $emacs_cv_struct_timeval = yes; then
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_TIMEVAL 1
7642 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7643 $as_echo_n "checking for struct exception... " >&6; }
7644 if test "${emacs_cv_struct_exception+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7657 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7666 *) ac_try_echo
=$ac_try;;
7668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7672 grep -v '^ *+' conftest.er1
>conftest.err
7674 cat conftest.err
>&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.
$ac_objext; then
7680 emacs_cv_struct_exception
=yes
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.
$ac_ext >&5
7685 emacs_cv_struct_exception
=no
7688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7691 $as_echo "$emacs_cv_struct_exception" >&6; }
7692 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7693 if test $emacs_cv_struct_exception != yes; then
7695 cat >>confdefs.h
<<\_ACEOF
7696 #define NO_MATHERR 1
7702 for ac_header
in sys
/socket.h
7704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 $as_echo_n "checking for $ac_header... " >&6; }
7708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 $as_echo_n "(cached) " >&6
7711 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7712 $as_echo "$as_val"'`
7713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7714 $as_echo "$ac_res" >&6; }
7716 # Is the header compilable?
7717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7718 $as_echo_n "checking $ac_header usability... " >&6; }
7719 cat >conftest.
$ac_ext <<_ACEOF
7722 cat confdefs.h
>>conftest.
$ac_ext
7723 cat >>conftest.
$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 #include <$ac_header>
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_header_compiler=yes
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_header_compiler=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7756 $as_echo "$ac_header_compiler" >&6; }
7758 # Is the header present?
7759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7760 $as_echo_n "checking $ac_header presence... " >&6; }
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 #include <$ac_header>
7769 if { (ac_try="$ac_cpp conftest.$ac_ext"
7771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7772 *) ac_try_echo
=$ac_try;;
7774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7778 grep -v '^ *+' conftest.er1
>conftest.err
7780 cat conftest.err
>&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev
/null
&& {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7786 ac_header_preproc
=yes
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.
$ac_ext >&5
7791 ac_header_preproc
=no
7794 rm -f conftest.err conftest.
$ac_ext
7795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 $as_echo "$ac_header_preproc" >&6; }
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc
=yes
7808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 $as_echo_n "checking for $ac_header... " >&6; }
7825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 $as_echo_n "(cached) " >&6
7828 eval "$as_ac_Header=\$ac_header_preproc"
7830 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833 $as_echo "$ac_res" >&6; }
7836 if test `eval 'as_val=${'$as_ac_Header'}
7837 $as_echo "$as_val"'` = yes; then
7838 cat >>confdefs.h
<<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7847 for ac_header
in net
/if.h
7849 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 $as_echo_n "checking for $ac_header... " >&6; }
7852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7853 $as_echo_n "(cached) " >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 #if HAVE_SYS_SOCKET_H
7863 #include <sys/socket.h>
7866 #include <$ac_header>
7868 rm -f conftest.
$ac_objext
7869 if { (ac_try
="$ac_compile"
7871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7875 $as_echo "$ac_try_echo") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 eval "$as_ac_Header=yes"
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 eval "$as_ac_Header=no"
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 ac_res=`eval 'as_val=${'$as_ac_Header'}
7897 $as_echo "$as_val"'`
7898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7899 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7911 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7912 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7913 if test "${ac_cv_struct_tm+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7929 int *p = &tm.tm_sec;
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7939 *) ac_try_echo
=$ac_try;;
7941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1
>conftest.err
7947 cat conftest.err
>&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.
$ac_objext; then
7953 ac_cv_struct_tm
=time.h
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.
$ac_ext >&5
7958 ac_cv_struct_tm
=sys
/time.h
7961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7964 $as_echo "$ac_cv_struct_tm" >&6; }
7965 if test $ac_cv_struct_tm = sys
/time.h
; then
7967 cat >>confdefs.h
<<\_ACEOF
7968 #define TM_IN_SYS_TIME 1
7973 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7974 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7976 $as_echo_n "(cached) " >&6
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <sys/types.h>
7985 #include <$ac_cv_struct_tm>
7991 static struct tm ac_aggr;
7992 if (ac_aggr.tm_zone)
7998 rm -f conftest.
$ac_objext
7999 if { (ac_try
="$ac_compile"
8001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_cv_member_struct_tm_tm_zone=yes
8018 $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <sys/types.h>
8028 #include <$ac_cv_struct_tm>
8034 static struct tm ac_aggr;
8035 if (sizeof ac_aggr.tm_zone)
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_member_struct_tm_tm_zone
=yes
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.
$ac_ext >&5
8064 ac_cv_member_struct_tm_tm_zone
=no
8067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8076 cat >>confdefs.h
<<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8085 cat >>confdefs.h
<<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8090 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 $as_echo_n "checking whether tzname is declared... " >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8114 rm -f conftest.
$ac_objext
8115 if { (ac_try
="$ac_compile"
8117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_have_decl_tzname=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8160 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8161 $as_echo_n "checking for tzname... " >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8179 return tzname[0][0];
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8188 *) ac_try_echo
=$ac_try;;
8190 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_link") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1
>conftest.err
8196 cat conftest.err
>&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest
$ac_exeext && {
8202 test "$cross_compiling" = yes ||
8203 $as_test_x conftest
$ac_exeext
8205 ac_cv_var_tzname
=yes
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.
$ac_ext >&5
8213 rm -rf conftest.dSYM
8214 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8215 conftest
$ac_exeext conftest.
$ac_ext
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8218 $as_echo "$ac_cv_var_tzname" >&6; }
8219 if test $ac_cv_var_tzname = yes; then
8221 cat >>confdefs.h
<<\_ACEOF
8222 #define HAVE_TZNAME 1
8228 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8229 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8230 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8233 cat >conftest.
$ac_ext <<_ACEOF
8236 cat confdefs.h
>>conftest.
$ac_ext
8237 cat >>conftest.
$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8244 static struct tm ac_aggr;
8245 if (ac_aggr.tm_gmtoff)
8251 rm -f conftest.
$ac_objext
8252 if { (ac_try
="$ac_compile"
8254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_tm_tm_gmtoff=yes
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8285 static struct tm ac_aggr;
8286 if (sizeof ac_aggr.tm_gmtoff)
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8296 *) ac_try_echo
=$ac_try;;
8298 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1
>conftest.err
8304 cat conftest.err
>&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.
$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff
=yes
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8315 ac_cv_member_struct_tm_tm_gmtoff
=no
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8324 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8325 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8327 cat >>confdefs.h
<<\_ACEOF
8328 #define HAVE_TM_GMTOFF 1
8333 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8334 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8336 $as_echo_n "(cached) " >&6
8338 cat >conftest.
$ac_ext <<_ACEOF
8341 cat confdefs.h
>>conftest.
$ac_ext
8342 cat >>conftest.
$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8355 static struct ifreq ac_aggr;
8356 if (ac_aggr.ifr_flags)
8362 rm -f conftest.
$ac_objext
8363 if { (ac_try
="$ac_compile"
8365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_flags=yes
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_flags)
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8413 *) ac_try_echo
=$ac_try;;
8415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417 (eval "$ac_compile") 2>conftest.er1
8419 grep -v '^ *+' conftest.er1
>conftest.err
8421 cat conftest.err
>&5
8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_c_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest.
$ac_objext; then
8427 ac_cv_member_struct_ifreq_ifr_flags
=yes
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.
$ac_ext >&5
8432 ac_cv_member_struct_ifreq_ifr_flags
=no
8435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8441 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8442 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8444 cat >>confdefs.h
<<_ACEOF
8445 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8450 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8451 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8452 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8455 cat >conftest.
$ac_ext <<_ACEOF
8458 cat confdefs.h
>>conftest.
$ac_ext
8459 cat >>conftest.
$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 $ac_includes_default
8462 #if HAVE_SYS_SOCKET_H
8463 #include <sys/socket.h>
8472 static struct ifreq ac_aggr;
8473 if (ac_aggr.ifr_hwaddr)
8479 rm -f conftest.
$ac_objext
8480 if { (ac_try
="$ac_compile"
8482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486 $as_echo "$ac_try_echo") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8519 static struct ifreq ac_aggr;
8520 if (sizeof ac_aggr.ifr_hwaddr)
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8530 *) ac_try_echo
=$ac_try;;
8532 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8536 grep -v '^ *+' conftest.er1
>conftest.err
8538 cat conftest.err
>&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.
$ac_objext; then
8544 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8546 $as_echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.
$ac_ext >&5
8549 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8558 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8559 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8561 cat >>confdefs.h
<<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8567 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8568 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8569 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8570 $as_echo_n "(cached) " >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 $ac_includes_default
8579 #if HAVE_SYS_SOCKET_H
8580 #include <sys/socket.h>
8589 static struct ifreq ac_aggr;
8590 if (ac_aggr.ifr_netmask)
8596 rm -f conftest.
$ac_objext
8597 if { (ac_try
="$ac_compile"
8599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest.$ac_objext; then
8614 ac_cv_member_struct_ifreq_ifr_netmask=yes
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 cat >conftest.$ac_ext <<_ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8636 static struct ifreq ac_aggr;
8637 if (sizeof ac_aggr.ifr_netmask)
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8647 *) ac_try_echo
=$ac_try;;
8649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1
>conftest.err
8655 cat conftest.err
>&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.
$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8666 ac_cv_member_struct_ifreq_ifr_netmask
=no
8669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8675 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8678 cat >>confdefs.h
<<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8684 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8685 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8687 $as_echo_n "(cached) " >&6
8689 cat >conftest.
$ac_ext <<_ACEOF
8692 cat confdefs.h
>>conftest.
$ac_ext
8693 cat >>conftest.
$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_broadaddr)
8713 rm -f conftest.
$ac_objext
8714 if { (ac_try
="$ac_compile"
8716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8723 grep -v '^ *+' conftest.er1 >conftest.err
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8753 static struct ifreq ac_aggr;
8754 if (sizeof ac_aggr.ifr_broadaddr)
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8764 *) ac_try_echo
=$ac_try;;
8766 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^ *+' conftest.er1
>conftest.err
8772 cat conftest.err
>&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.
$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.
$ac_ext >&5
8783 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8792 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8793 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8795 cat >>confdefs.h
<<_ACEOF
8796 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8801 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8802 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8803 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8804 $as_echo_n "(cached) " >&6
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 #if HAVE_SYS_SOCKET_H
8814 #include <sys/socket.h>
8823 static struct ifreq ac_aggr;
8824 if (ac_aggr.ifr_addr)
8830 rm -f conftest.
$ac_objext
8831 if { (ac_try
="$ac_compile"
8833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8837 $as_echo "$ac_try_echo") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1 >conftest.err
8842 cat conftest.err >&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8850 $as_echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8870 static struct ifreq ac_aggr;
8871 if (sizeof ac_aggr.ifr_addr)
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8881 *) ac_try_echo
=$ac_try;;
8883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1
>conftest.err
8889 cat conftest.err
>&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.
$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_addr
=yes
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 ac_cv_member_struct_ifreq_ifr_addr
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8908 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8909 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8910 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8912 cat >>confdefs.h
<<_ACEOF
8913 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8921 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8922 $as_echo_n "checking for function prototypes... " >&6; }
8923 if test "$ac_cv_prog_cc_c89" != no
; then
8924 { $as_echo "$as_me:$LINENO: result: yes" >&5
8925 $as_echo "yes" >&6; }
8927 cat >>confdefs.h
<<\_ACEOF
8928 #define PROTOTYPES 1
8932 cat >>confdefs.h
<<\_ACEOF
8933 #define __PROTOTYPES 1
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8941 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8942 $as_echo_n "checking for working volatile... " >&6; }
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8946 cat >conftest.
$ac_ext <<_ACEOF
8949 cat confdefs.h
>>conftest.
$ac_ext
8950 cat >>conftest.
$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8958 int * volatile y = (int *) 0;
8964 rm -f conftest.
$ac_objext
8965 if { (ac_try
="$ac_compile"
8967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8974 grep -v '^ *+' conftest.er1 >conftest.err
8976 cat conftest.err >&5
8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest.$ac_objext; then
8982 ac_cv_c_volatile=yes
8984 $as_echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8993 $as_echo "$ac_cv_c_volatile" >&6; }
8994 if test $ac_cv_c_volatile = no; then
8996 cat >>confdefs.h <<\_ACEOF
8997 #define volatile /**/
9002 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9003 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9004 if test "${ac_cv_c_const+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9017 /* FIXME: Include the comments suggested by Paul. */
9019 /* Ultrix mips cc rejects this. */
9020 typedef int charset[2];
9022 /* SunOS 4.1.1 cc rejects this. */
9023 char const *const *pcpcc;
9025 /* NEC SVR4.0.2 mips cc rejects this. */
9026 struct point {int x, y;};
9027 static struct point const zero = {0,0};
9028 /* AIX XL C 1.02.0.0 rejects this.
9029 It does not let you subtract one const X* pointer from another in
9030 an arm of an if-expression whose if-part is not a constant
9032 const char *g = "string";
9033 pcpcc = &g + (g ? g-g : 0);
9034 /* HPUX 7.0 cc rejects these. */
9036 ppc = (char**) pcpcc;
9037 pcpcc = (char const *const *) ppc;
9038 { /* SCO 3.2v4 cc rejects this. */
9040 char const *s = 0 ? (char *) 0 : (char const *) 0;
9045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9047 const int *foo = &x[0];
9050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9051 typedef const int *iptr;
9055 { /* AIX XL C 1.02.0.0 rejects this saying
9056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9057 struct s { int j; const int *ap[3]; };
9058 struct s *b; b->j = 5;
9060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9064 return !cs[0] && !zero.x;
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9075 *) ac_try_echo
=$ac_try;;
9077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1
>conftest.err
9083 cat conftest.err
>&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.
$ac_objext; then
9091 $as_echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.
$ac_ext >&5
9097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9099 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9100 $as_echo "$ac_cv_c_const" >&6; }
9101 if test $ac_cv_c_const = no
; then
9103 cat >>confdefs.h
<<\_ACEOF
9109 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9110 $as_echo_n "checking for void * support... " >&6; }
9111 if test "${emacs_cv_void_star+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9114 cat >conftest.
$ac_ext <<_ACEOF
9117 cat confdefs.h
>>conftest.
$ac_ext
9118 cat >>conftest.
$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9129 rm -f conftest.
$ac_objext
9130 if { (ac_try
="$ac_compile"
9132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9139 grep -v '^ *+' conftest.er1 >conftest.err
9141 cat conftest.err >&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 emacs_cv_void_star=yes
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 emacs_cv_void_star=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9158 $as_echo "$emacs_cv_void_star" >&6; }
9159 if test $emacs_cv_void_star = yes; then
9160 cat >>confdefs.h <<\_ACEOF
9161 #define POINTER_TYPE void
9165 cat >>confdefs.h <<\_ACEOF
9166 #define POINTER_TYPE char
9175 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9178 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9180 $as_echo_n "(cached) " >&6
9182 cat >conftest.make <<\_ACEOF
9185 @echo '@@@%%%=$(MAKE)=@@@%%%'
9187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9188 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9190 eval ac_cv_prog_make_${ac_make}_set=yes;;
9192 eval ac_cv_prog_make_${ac_make}_set=no;;
9196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9197 { $as_echo "$as_me:$LINENO: result: yes" >&5
9198 $as_echo "yes" >&6; }
9201 { $as_echo "$as_me:$LINENO: result: no" >&5
9202 $as_echo "no" >&6; }
9203 SET_MAKE="MAKE=${MAKE-make}"
9207 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9208 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9209 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9211 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9212 if test "x$testval" != x; then
9215 ac_enable_autodepend=no
9217 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9218 $as_echo "$HAVE_GNU_MAKE" >&6; }
9219 if test $HAVE_GNU_MAKE = yes; then
9220 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9221 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9222 SAVE_CFLAGS="$CFLAGS"
9223 CFLAGS="$CFLAGS -MMD -MF deps.d"
9224 cat >conftest.$ac_ext <<_ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9243 *) ac_try_echo
=$ac_try;;
9245 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9246 $as_echo "$ac_try_echo") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1
>conftest.err
9251 cat conftest.err
>&5
9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.
$ac_objext; then
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.
$ac_ext >&5
9262 ac_enable_autodepend
=no
9265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9266 CFLAGS
="$SAVE_CFLAGS"
9267 test -f deps.d || ac_enable_autodepend
=no
9269 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9270 $as_echo "$ac_enable_autodepend" >&6; }
9272 if test $ac_enable_autodepend = yes; then
9274 cat >>confdefs.h
<<\_ACEOF
9275 #define AUTO_DEPEND 1
9281 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9282 $as_echo_n "checking for long file names... " >&6; }
9283 if test "${ac_cv_sys_long_file_names+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9286 ac_cv_sys_long_file_names
=yes
9287 # Test for long file names in all the places we know might matter:
9288 # . the current directory, where building will happen
9289 # $prefix/lib where we will be installing things
9290 # $exec_prefix/lib likewise
9291 # $TMPDIR if set, where it might want to write temporary files
9292 # /tmp where it might want to write temporary files
9295 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9296 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9297 # in the usual case where exec_prefix is '${prefix}'.
9299 . |
/* | ?
:[\\/]*) ;; #(
9302 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9303 ac_xdir
=$ac_dir/cf$$
9304 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9305 ac_tf1
=$ac_xdir/conftest9012345
9306 ac_tf2
=$ac_xdir/conftest9012346
9307 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9308 ac_cv_sys_long_file_names
=no
9309 rm -f -r "$ac_xdir" 2>/dev
/null
9310 test $ac_cv_sys_long_file_names = no
&& break
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9314 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9315 if test $ac_cv_sys_long_file_names = yes; then
9317 cat >>confdefs.h
<<\_ACEOF
9318 #define HAVE_LONG_FILE_NAMES 1
9324 #### Choose a window system.
9326 { $as_echo "$as_me:$LINENO: checking for X" >&5
9327 $as_echo_n "checking for X... " >&6; }
9330 # Check whether --with-x was given.
9331 if test "${with_x+set}" = set; then
9335 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9336 if test "x$with_x" = xno
; then
9337 # The user explicitly disabled X.
9340 case $x_includes,$x_libraries in #(
9341 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9342 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9343 { (exit 1); exit 1; }; };; #(
9344 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9347 # One or both of the vars are not set, and there is no cached value.
9348 ac_x_includes
=no ac_x_libraries
=no
9349 rm -f -r conftest.dir
9350 if mkdir conftest.dir
; then
9352 cat >Imakefile
<<'_ACEOF'
9354 @echo incroot='${INCROOT}'
9356 @echo usrlibdir='${USRLIBDIR}'
9358 @echo libdir='${LIBDIR}'
9360 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9362 for ac_var
in incroot usrlibdir libdir
; do
9363 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9366 for ac_extension
in a so sl dylib la dll
; do
9367 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9368 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9369 ac_im_usrlibdir
=$ac_im_libdir; break
9372 # Screen out bogus values from the imake configuration. They are
9373 # bogus both because they are the default anyway, and because
9374 # using them would break gcc on systems where it needs fixed includes.
9375 case $ac_im_incroot in
9376 /usr
/include
) ac_x_includes
= ;;
9377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9379 case $ac_im_usrlibdir in
9381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9385 rm -f -r conftest.dir
9388 # Standard set of common directories for X headers.
9389 # Check X11 before X11Rn because it is often a symlink to the current release.
9401 /usr/local/X11/include
9402 /usr/local/X11R6/include
9403 /usr/local/X11R5/include
9404 /usr/local/X11R4/include
9406 /usr/local/include/X11
9407 /usr/local/include/X11R6
9408 /usr/local/include/X11R5
9409 /usr/local/include/X11R4
9413 /usr/XFree86/include/X11
9417 /usr/unsupported/include
9419 /usr/local/x11r5/include
9420 /usr/lpp/Xamples/include
9422 /usr/openwin/include
9423 /usr/openwin/share/include'
9425 if test "$ac_x_includes" = no
; then
9426 # Guess where to find include files, by looking for Xlib.h.
9427 # First, try using that file with no special directory specified.
9428 cat >conftest.
$ac_ext <<_ACEOF
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9436 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null && {
9450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9453 # We can compile using X headers with no special include directory.
9456 $as_echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 for ac_dir in $ac_x_header_dirs; do
9460 if test -r "$ac_dir/X11/Xlib.h"; then
9461 ac_x_includes=$ac_dir
9467 rm -f conftest.err conftest.$ac_ext
9468 fi # $ac_x_includes = no
9470 if test "$ac_x_libraries" = no; then
9471 # Check for the libraries.
9472 # See if we find them without any special options.
9473 # Don't add to $LIBS permanently.
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9495 *) ac_try_echo
=$ac_try;;
9497 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest
$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest
$ac_exeext
9513 # We can link X programs with no special library path.
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9520 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9522 # Don't even attempt the hair of trying to link an X program!
9523 for ac_extension
in a so sl dylib la dll
; do
9524 if test -r "$ac_dir/libX11.$ac_extension"; then
9525 ac_x_libraries
=$ac_dir
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9534 conftest
$ac_exeext conftest.
$ac_ext
9535 fi # $ac_x_libraries = no
9537 case $ac_x_includes,$ac_x_libraries in #(
9539 # Didn't find X, or a directory has "'" in its name.
9540 ac_cv_have_x
="have_x=no";; #(
9542 # Record where we found X for the cache.
9543 ac_cv_have_x
="have_x=yes\
9544 ac_x_includes='$ac_x_includes'\
9545 ac_x_libraries='$ac_x_libraries'"
9551 eval "$ac_cv_have_x"
9554 if test "$have_x" != yes; then
9555 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9556 $as_echo "$have_x" >&6; }
9559 # If each of the values was on the command line, it overrides each guess.
9560 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9561 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9562 # Update the cache value to reflect the command line values.
9563 ac_cv_have_x
="have_x=yes\
9564 ac_x_includes='$x_includes'\
9565 ac_x_libraries='$x_libraries'"
9566 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9567 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9570 if test "$no_x" = yes; then
9576 ## Workaround for bug in autoconf <= 2.62.
9577 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9578 ## No need to do anything special for these standard directories.
9579 ## This is an experiment, take it out if it causes problems.
9580 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9582 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9586 if test "${x_libraries}" != NONE
; then
9587 if test -n "${x_libraries}"; then
9588 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9589 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9591 x_default_search_path
=""
9592 x_search_path
=${x_libraries}
9593 if test -z "${x_search_path}"; then
9594 x_search_path
=/usr
/lib
9596 for x_library
in `echo ${x_search_path}: | \
9597 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9599 ${x_library}/X11/%L/%T/%N%C%S:\
9600 ${x_library}/X11/%l/%T/%N%C%S:\
9601 ${x_library}/X11/%T/%N%C%S:\
9602 ${x_library}/X11/%L/%T/%N%S:\
9603 ${x_library}/X11/%l/%T/%N%S:\
9604 ${x_library}/X11/%T/%N%S"
9605 if test x
"${x_default_search_path}" = x
; then
9606 x_default_search_path
=${x_search_path}
9608 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9612 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9613 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9616 if test x
"${x_includes}" = x
; then
9617 bitmapdir
=/usr
/include
/X11
/bitmaps
9619 # accumulate include directories that have X11 bitmap subdirectories
9621 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9622 if test -d "${bmd}/X11/bitmaps"; then
9623 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9625 if test -d "${bmd}/bitmaps"; then
9626 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9629 if test ${bmd_acc} != "dummyval"; then
9630 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9637 tmp_CPPFLAGS
="$CPPFLAGS"
9638 tmp_CFLAGS
="$CFLAGS"
9639 CPPFLAGS
="$CPPFLAGS -x objective-c"
9640 CFLAGS
="$CFLAGS -x objective-c"
9641 if test "${with_ns}" != no
; then
9642 if test "${opsys}" = darwin
; then
9644 ns_appdir
=`pwd`/nextstep
/Emacs.app
9645 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9646 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9647 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9648 elif test -f $GNUSTEP_CONFIG_FILE; then
9650 ns_appdir
=`pwd`/nextstep
/Emacs.app
9651 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9652 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9653 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9654 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9655 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9656 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9657 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9658 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9659 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9660 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9662 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9663 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9664 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9665 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9669 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9671 # Is the header compilable?
9672 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9673 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9674 cat >conftest.
$ac_ext <<_ACEOF
9677 cat confdefs.h
>>conftest.
$ac_ext
9678 cat >>conftest.
$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <AppKit/AppKit.h>
9683 rm -f conftest.
$ac_objext
9684 if { (ac_try
="$ac_compile"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690 $as_echo "$ac_try_echo") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9703 $as_echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_header_compiler=no
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 $as_echo "$ac_header_compiler" >&6; }
9713 # Is the header present?
9714 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9715 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <AppKit/AppKit.h>
9724 if { (ac_try="$ac_cpp conftest.$ac_ext"
9726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9727 *) ac_try_echo
=$ac_try;;
9729 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9733 grep -v '^ *+' conftest.er1
>conftest.err
9735 cat conftest.err
>&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev
/null
&& {
9738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9741 ac_header_preproc
=yes
9743 $as_echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.
$ac_ext >&5
9746 ac_header_preproc
=no
9749 rm -f conftest.err conftest.
$ac_ext
9750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 $as_echo "$ac_header_preproc" >&6; }
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9756 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9759 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc
=yes
9763 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9764 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9765 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9766 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9767 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9768 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9769 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9770 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9772 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9773 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9774 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9778 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9779 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9780 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9781 $as_echo_n "(cached) " >&6
9783 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9786 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9789 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9792 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9793 files are missing or cannot be compiled." >&5
9794 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9795 files are missing or cannot be compiled." >&2;}
9796 { (exit 1); exit 1; }; }
9800 NS_HAVE_NSINTEGER
=yes
9801 cat >conftest.
$ac_ext <<_ACEOF
9804 cat confdefs.h
>>conftest.
$ac_ext
9805 cat >>conftest.
$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 #include <Foundation/NSObjCRuntime.h>
9816 rm -f conftest.
$ac_objext
9817 if { (ac_try
="$ac_compile"
9819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_compile") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest.$ac_objext; then
9834 ns_have_nsinteger=yes
9836 $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ns_have_nsinteger=no
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 if test $ns_have_nsinteger = no; then
9844 NS_HAVE_NSINTEGER=no
9847 if test "${HAVE_NS}" = yes; then
9848 window_system=nextstep
9850 # set up packaging dirs
9851 exec_prefix=${ns_appbindir}
9852 libexecdir=${ns_appbindir}/libexec
9853 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9854 prefix=${ns_appresdir}
9857 CFLAGS="$tmp_CFLAGS"
9858 CPPFLAGS="$tmp_CPPFLAGS"
9860 case "${window_system}" in
9864 case "${with_x_toolkit}" in
9865 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9866 motif ) USE_X_TOOLKIT=MOTIF ;;
9868 USE_X_TOOLKIT=none ;;
9869 no ) USE_X_TOOLKIT=none ;;
9870 * ) USE_X_TOOLKIT=maybe ;;
9880 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9881 # Extract the first word of "X", so it can be a program name with args.
9882 set dummy X; ac_word=$2
9883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9886 $as_echo_n "(cached) " >&6
9888 if test -n "$HAVE_XSERVER"; then
9889 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_HAVE_XSERVER="true"
9899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9909 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9910 if test -n "$HAVE_XSERVER"; then
9911 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9912 $as_echo "$HAVE_XSERVER" >&6; }
9914 { $as_echo "$as_me:$LINENO: result: no" >&5
9915 $as_echo "no" >&6; }
9919 if test "$HAVE_XSERVER" = true ||
9920 test -n "$DISPLAY" ||
9921 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9922 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9923 were found. You should install the relevant development files for X
9924 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9925 sure you have development files for image handling, i.e.
9926 tiff, gif, jpeg, png and xpm.
9927 If you are sure you want Emacs compiled without X window support, pass
9930 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9931 were found. You should install the relevant development files for X
9932 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9933 sure you have development files for image handling, i.e.
9934 tiff, gif, jpeg, png and xpm.
9935 If you are sure you want Emacs compiled without X window support, pass
9937 to configure." >&2;}
9938 { (exit 1); exit 1; }; }
9942 ### If we're using X11, we should use the X menu package.
9945 yes ) HAVE_MENUS=yes ;;
9948 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9949 # Assume not, until told otherwise.
9952 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9953 $as_echo_n "checking for malloc_get_state... " >&6; }
9954 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9955 $as_echo_n "(cached) " >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define malloc_get_state innocuous_malloc_get_state
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char malloc_get_state (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9973 # include <limits.h>
9975 # include <assert.h>
9978 #undef malloc_get_state
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9986 char malloc_get_state ();
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9997 return malloc_get_state ();
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10006 *) ac_try_echo
=$ac_try;;
10008 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1
>conftest.err
10014 cat conftest.err
>&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest
$ac_exeext && {
10020 test "$cross_compiling" = yes ||
10021 $as_test_x conftest
$ac_exeext
10023 ac_cv_func_malloc_get_state
=yes
10025 $as_echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.
$ac_ext >&5
10028 ac_cv_func_malloc_get_state
=no
10031 rm -rf conftest.dSYM
10032 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10033 conftest
$ac_exeext conftest.
$ac_ext
10035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10036 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10037 if test $ac_cv_func_malloc_get_state = yes; then
10043 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10044 $as_echo_n "checking for malloc_set_state... " >&6; }
10045 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10046 $as_echo_n "(cached) " >&6
10048 cat >conftest.
$ac_ext <<_ACEOF
10051 cat confdefs.h
>>conftest.
$ac_ext
10052 cat >>conftest.
$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056 #define malloc_set_state innocuous_malloc_set_state
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char malloc_set_state (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10064 # include <limits.h>
10066 # include <assert.h>
10069 #undef malloc_set_state
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10077 char malloc_set_state ();
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10088 return malloc_set_state ();
10093 rm -f conftest.
$ac_objext conftest
$ac_exeext
10094 if { (ac_try
="$ac_link"
10095 case "(($ac_try" in
10096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext && {
10111 test "$cross_compiling" = yes ||
10112 $as_test_x conftest$ac_exeext
10114 ac_cv_func_malloc_set_state=yes
10116 $as_echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func_malloc_set_state=no
10122 rm -rf conftest.dSYM
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10127 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10128 if test $ac_cv_func_malloc_set_state = yes; then
10134 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10135 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10136 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 extern void (* __after_morecore_hook)();
10149 __after_morecore_hook = 0
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10158 *) ac_try_echo
=$ac_try;;
10160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1
>conftest.err
10166 cat conftest.err
>&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest
$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest
$ac_exeext
10175 emacs_cv_var___after_morecore_hook
=yes
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.
$ac_ext >&5
10180 emacs_cv_var___after_morecore_hook
=no
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10185 conftest
$ac_exeext conftest.
$ac_ext
10187 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no
; then
10192 if test "${system_malloc}" = "yes"; then
10194 GNU_MALLOC_reason
="
10195 (The GNU allocators don't work with this system configuration.)"
10197 if test "$doug_lea_malloc" = "yes" ; then
10198 if test "$GNU_MALLOC" = yes ; then
10199 GNU_MALLOC_reason
="
10200 (Using Doug Lea's new malloc from the GNU C Library.)"
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define DOUG_LEA_MALLOC 1
10209 if test x
"${REL_ALLOC}" = x
; then
10210 REL_ALLOC
=${GNU_MALLOC}
10216 for ac_header
in stdlib.h unistd.h
10218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 $as_echo_n "checking for $ac_header... " >&6; }
10222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223 $as_echo_n "(cached) " >&6
10225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10226 $as_echo "$as_val"'`
10227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10230 # Is the header compilable?
10231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232 $as_echo_n "checking $ac_header usability... " >&6; }
10233 cat >conftest.
$ac_ext <<_ACEOF
10236 cat confdefs.h
>>conftest.
$ac_ext
10237 cat >>conftest.
$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 #include <$ac_header>
10242 rm -f conftest.
$ac_objext
10243 if { (ac_try
="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_header_compiler=no
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 $as_echo "$ac_header_compiler" >&6; }
10272 # Is the header present?
10273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 $as_echo_n "checking $ac_header presence... " >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10286 *) ac_try_echo
=$ac_try;;
10288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev
/null
&& {
10297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10300 ac_header_preproc
=yes
10302 $as_echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.
$ac_ext >&5
10305 ac_header_preproc
=no
10308 rm -f conftest.err conftest.
$ac_ext
10309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 $as_echo "$ac_header_preproc" >&6; }
10312 # So? What about this header?
10313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10319 ac_header_preproc
=yes
10322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10338 $as_echo_n "checking for $ac_header... " >&6; }
10339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10340 $as_echo_n "(cached) " >&6
10342 eval "$as_ac_Header=\$ac_header_preproc"
10344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10345 $as_echo "$as_val"'`
10346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10347 $as_echo "$ac_res" >&6; }
10350 if test `eval 'as_val=${'$as_ac_Header'}
10351 $as_echo "$as_val"'` = yes; then
10352 cat >>confdefs.h
<<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 for ac_func
in getpagesize
10363 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 $as_echo_n "checking for $ac_func... " >&6; }
10366 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10377 #define $ac_func innocuous_$ac_func
10379 /* System header to define __stub macros and hopefully few prototypes,
10380 which can conflict with char $ac_func (); below.
10381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10382 <limits.h> exists even on freestanding compilers. */
10385 # include <limits.h>
10387 # include <assert.h>
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined __stub_$ac_func || defined __stub___$ac_func
10409 return $ac_func ();
10414 rm -f conftest.
$ac_objext conftest
$ac_exeext
10415 if { (ac_try
="$ac_link"
10416 case "(($ac_try" in
10417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_link") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1 >conftest.err
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext && {
10432 test "$cross_compiling" = yes ||
10433 $as_test_x conftest$ac_exeext
10435 eval "$as_ac_var=yes"
10437 $as_echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 eval "$as_ac_var=no"
10443 rm -rf conftest.dSYM
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10447 ac_res=`eval 'as_val=${'$as_ac_var'}
10448 $as_echo "$as_val"'`
10449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10450 $as_echo "$ac_res" >&6; }
10451 if test `eval 'as_val=${'$as_ac_var'}
10452 $as_echo "$as_val"'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10460 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10461 $as_echo_n "checking for working mmap... " >&6; }
10462 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_func_mmap_fixed_mapped=no
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 $ac_includes_default
10475 /* malloc might have been renamed as rpl_malloc. */
10478 /* Thanks to Mike Haertel and Jim Avera for this test.
10479 Here is a matrix of mmap possibilities:
10480 mmap private not fixed
10481 mmap private fixed at somewhere currently unmapped
10482 mmap private fixed at somewhere already mapped
10483 mmap shared not fixed
10484 mmap shared fixed at somewhere currently unmapped
10485 mmap shared fixed at somewhere already mapped
10486 For private mappings, we should verify that changes cannot be read()
10487 back from the file, nor mmap's back from the file at a different
10488 address. (There have been systems where private was not correctly
10489 implemented like the infamous i386 svr4.0, and systems where the
10490 VM page cache was not coherent with the file system buffer cache
10491 like early versions of FreeBSD and possibly contemporary NetBSD.)
10492 For shared mappings, we should conversely verify that changes get
10493 propagated back to all the places they're supposed to be.
10495 Grep wants private fixed already mapped.
10496 The main things grep needs to know about mmap are:
10497 * does it exist and is it safe to write into the mmap'd area
10498 * how to use it (BSD variants) */
10501 #include <sys/mman.h>
10503 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10507 /* This mess was copied from the GNU getpagesize.h. */
10508 #ifndef HAVE_GETPAGESIZE
10509 /* Assume that all systems that can run configure have sys/param.h. */
10510 # ifndef HAVE_SYS_PARAM_H
10511 # define HAVE_SYS_PARAM_H 1
10514 # ifdef _SC_PAGESIZE
10515 # define getpagesize() sysconf(_SC_PAGESIZE)
10516 # else /* no _SC_PAGESIZE */
10517 # ifdef HAVE_SYS_PARAM_H
10518 # include <sys/param.h>
10519 # ifdef EXEC_PAGESIZE
10520 # define getpagesize() EXEC_PAGESIZE
10521 # else /* no EXEC_PAGESIZE */
10523 # define getpagesize() NBPG * CLSIZE
10526 # endif /* no CLSIZE */
10527 # else /* no NBPG */
10529 # define getpagesize() NBPC
10530 # else /* no NBPC */
10532 # define getpagesize() PAGESIZE
10533 # endif /* PAGESIZE */
10534 # endif /* no NBPC */
10535 # endif /* no NBPG */
10536 # endif /* no EXEC_PAGESIZE */
10537 # else /* no HAVE_SYS_PARAM_H */
10538 # define getpagesize() 8192 /* punt totally */
10539 # endif /* no HAVE_SYS_PARAM_H */
10540 # endif /* no _SC_PAGESIZE */
10542 #endif /* no HAVE_GETPAGESIZE */
10547 char *data, *data2, *data3;
10551 pagesize = getpagesize ();
10553 /* First, make a file with some known garbage in it. */
10554 data = (char *) malloc (pagesize);
10557 for (i = 0; i < pagesize; ++i)
10558 *(data + i) = rand ();
10560 fd = creat ("conftest.mmap", 0600);
10563 if (write (fd, data, pagesize) != pagesize)
10567 /* Next, try to mmap the file at a fixed address which already has
10568 something else allocated at it. If we can, also make sure that
10569 we see the same garbage. */
10570 fd = open ("conftest.mmap", O_RDWR);
10573 data2 = (char *) malloc (2 * pagesize);
10576 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10577 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10578 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10580 for (i = 0; i < pagesize; ++i)
10581 if (*(data + i) != *(data2 + i))
10584 /* Finally, make sure that changes to the mapped area do not
10585 percolate back to the file as seen by read(). (This is a bug on
10586 some variants of i386 svr4.0.) */
10587 for (i = 0; i < pagesize; ++i)
10588 *(data2 + i) = *(data2 + i) + 1;
10589 data3 = (char *) malloc (pagesize);
10592 if (read (fd, data3, pagesize) != pagesize)
10594 for (i = 0; i < pagesize; ++i)
10595 if (*(data + i) != *(data3 + i))
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10605 *) ac_try_echo
=$ac_try;;
10607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609 (eval "$ac_link") 2>&5
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10613 { (case "(($ac_try" in
10614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_try") 2>&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_mmap_fixed_mapped=yes
10625 $as_echo "$as_me: program exited with status $ac_status" >&5
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ( exit $ac_status )
10630 ac_cv_func_mmap_fixed_mapped=no
10632 rm -rf conftest.dSYM
10633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10639 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10640 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_MMAP 1
10647 rm -f conftest.mmap
10649 if test $use_mmap_for_buffers = yes; then
10653 LIBS="$libsrc_libs $LIBS"
10656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10659 $as_echo_n "(cached) " >&6
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldnet $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10680 return dnet_ntoa ();
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10689 *) ac_try_echo
=$ac_try;;
10691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10695 grep -v '^ *+' conftest.er1
>conftest.err
10697 cat conftest.err
>&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest
$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest
$ac_exeext
10706 ac_cv_lib_dnet_dnet_ntoa
=yes
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.
$ac_ext >&5
10711 ac_cv_lib_dnet_dnet_ntoa
=no
10714 rm -rf conftest.dSYM
10715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 LIBS
=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10721 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10722 cat >>confdefs.h
<<_ACEOF
10723 #define HAVE_LIBDNET 1
10726 LIBS
="-ldnet $LIBS"
10731 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10732 $as_echo_n "checking for main in -lXbsd... " >&6; }
10733 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10736 ac_check_lib_save_LIBS
=$LIBS
10737 LIBS
="-lXbsd $LIBS"
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* 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
10775 ac_cv_lib_Xbsd_main=yes
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_lib_Xbsd_main=no
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
10786 LIBS=$ac_check_lib_save_LIBS
10788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10789 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10790 if test $ac_cv_lib_Xbsd_main = yes; then
10791 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10796 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10797 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10798 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lpthreads $LIBS"
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10820 return cma_open ();
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10829 *) ac_try_echo
=$ac_try;;
10831 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest
$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest
$ac_exeext
10846 ac_cv_lib_pthreads_cma_open
=yes
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.
$ac_ext >&5
10851 ac_cv_lib_pthreads_cma_open
=no
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10856 conftest
$ac_exeext conftest.
$ac_ext
10857 LIBS
=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10860 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10861 if test $ac_cv_lib_pthreads_cma_open = yes; then
10862 cat >>confdefs.h
<<_ACEOF
10863 #define HAVE_LIBPTHREADS 1
10866 LIBS
="-lpthreads $LIBS"
10874 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10875 $as_echo_n "checking for -bbigtoc option... " >&6; }
10876 if test "${gdb_cv_bigtoc+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10881 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10882 *) gdb_cv_bigtoc
=-bbigtoc ;;
10885 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10886 cat >conftest.
$ac_ext <<_ACEOF
10889 cat confdefs.h
>>conftest.
$ac_ext
10890 cat >>conftest.
$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10901 rm -f conftest.
$ac_objext conftest
$ac_exeext
10902 if { (ac_try
="$ac_link"
10903 case "(($ac_try" in
10904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10924 $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10936 $as_echo "$gdb_cv_bigtoc" >&6; }
10940 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10941 # used for the tests that follow. We set them back to REAL_CFLAGS and
10942 # REAL_CPPFLAGS later on.
10944 REAL_CPPFLAGS="$CPPFLAGS"
10946 if test "${HAVE_X11}" = "yes"; then
10947 DEFS="$C_SWITCH_X_SITE $DEFS"
10948 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10950 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10951 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10953 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10954 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10955 # but it's more convenient here to set LD_RUN_PATH
10956 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10957 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10958 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10962 if test "${opsys}" = "gnu-linux"; then
10963 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10964 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10975 XOpenDisplay ("foo");
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10984 *) ac_try_echo
=$ac_try;;
10986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1
>conftest.err
10992 cat conftest.err
>&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest
$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest
$ac_exeext
11001 xlinux_first_failure
=no
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.
$ac_ext >&5
11006 xlinux_first_failure
=yes
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11011 conftest
$ac_exeext conftest.
$ac_ext
11012 if test "${xlinux_first_failure}" = "yes"; then
11013 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11014 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11015 OLD_CPPFLAGS
="$CPPFLAGS"
11017 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11018 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11019 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11020 LIBS
="$LIBS -b i486-linuxaout"
11021 cat >conftest.
$ac_ext <<_ACEOF
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11031 XOpenDisplay ("foo");
11036 rm -f conftest.
$ac_objext conftest
$ac_exeext
11037 if { (ac_try
="$ac_link"
11038 case "(($ac_try" in
11039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11057 xlinux_second_failure=no
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 xlinux_second_failure=yes
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test "${xlinux_second_failure}" = "yes"; then
11069 # If we get the same failure with -b, there is no use adding -b.
11070 # So take it out. This plays safe.
11071 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11072 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11073 CPPFLAGS="$OLD_CPPFLAGS"
11075 { $as_echo "$as_me:$LINENO: result: no" >&5
11076 $as_echo "no" >&6; }
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079 $as_echo "yes" >&6; }
11082 { $as_echo "$as_me:$LINENO: result: no" >&5
11083 $as_echo "no" >&6; }
11087 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11088 # header files included from there.
11089 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11090 $as_echo_n "checking for Xkb... " >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Xlib.h>
11098 #include <X11/XKBlib.h>
11102 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11111 *) ac_try_echo
=$ac_try;;
11113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11114 $as_echo "$ac_try_echo") >&5
11115 (eval "$ac_link") 2>conftest.er1
11117 grep -v '^ *+' conftest.er1
>conftest.err
11119 cat conftest.err
>&5
11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest
$ac_exeext && {
11125 test "$cross_compiling" = yes ||
11126 $as_test_x conftest
$ac_exeext
11130 $as_echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.
$ac_ext >&5
11136 rm -rf conftest.dSYM
11137 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11138 conftest
$ac_exeext conftest.
$ac_ext
11139 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11140 $as_echo "$emacs_xkb" >&6; }
11141 if test $emacs_xkb = yes; then
11143 cat >>confdefs.h
<<\_ACEOF
11144 #define HAVE_XKBGETKEYBOARD 1
11153 for ac_func
in XrmSetDatabase XScreenResourceString \
11154 XScreenNumberOfScreen XSetWMProtocols
11156 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11158 $as_echo_n "checking for $ac_func... " >&6; }
11159 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11160 $as_echo_n "(cached) " >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define $ac_func innocuous_$ac_func
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11178 # include <limits.h>
11180 # include <assert.h>
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined __stub_$ac_func || defined __stub___$ac_func
11202 return $ac_func ();
11207 rm -f conftest.
$ac_objext conftest
$ac_exeext
11208 if { (ac_try
="$ac_link"
11209 case "(($ac_try" in
11210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11214 $as_echo "$ac_try_echo") >&5
11215 (eval "$ac_link") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext && {
11225 test "$cross_compiling" = yes ||
11226 $as_test_x conftest$ac_exeext
11228 eval "$as_ac_var=yes"
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "$as_ac_var=no"
11236 rm -rf conftest.dSYM
11237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11238 conftest$ac_exeext conftest.$ac_ext
11240 ac_res=`eval 'as_val=${'$as_ac_var'}
11241 $as_echo "$as_val"'`
11242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243 $as_echo "$ac_res" >&6; }
11244 if test `eval 'as_val=${'$as_ac_var'}
11245 $as_echo "$as_val"'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11255 if test "${window_system}" = "x11"; then
11256 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11257 $as_echo_n "checking X11 version 6... " >&6; }
11258 if test "${emacs_cv_x11_version_6+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <X11/Xlib.h>
11271 #if XlibSpecificationRelease < 6
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11283 *) ac_try_echo
=$ac_try;;
11285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_link") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1
>conftest.err
11291 cat conftest.err
>&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest
$ac_exeext && {
11297 test "$cross_compiling" = yes ||
11298 $as_test_x conftest
$ac_exeext
11300 emacs_cv_x11_version_6
=yes
11302 $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 emacs_cv_x11_version_6
=no
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11310 conftest
$ac_exeext conftest.
$ac_ext
11313 if test $emacs_cv_x11_version_6 = yes; then
11314 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11315 $as_echo "6 or newer" >&6; }
11317 cat >>confdefs.h
<<\_ACEOF
11318 #define HAVE_X11R6 1
11322 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11323 $as_echo "before 6" >&6; }
11328 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11330 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11331 if test "${with_rsvg}" != "no"; then
11332 RSVG_REQUIRED
=2.11.0
11333 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config
; ac_word
=$2
11340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11343 $as_echo_n "(cached) " >&6
11345 case $PKG_CONFIG in
11347 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11351 for as_dir
in $PATH
11354 test -z "$as_dir" && as_dir
=.
11355 for ac_exec_ext
in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11369 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11374 { $as_echo "$as_me:$LINENO: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test "$PKG_CONFIG" = "no" ; then
11383 PKG_CONFIG_MIN_VERSION
=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11386 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11388 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11389 { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11393 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11394 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11395 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11397 $as_echo "$RSVG_CFLAGS" >&6; }
11399 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11400 $as_echo_n "checking RSVG_LIBS... " >&6; }
11401 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11403 $as_echo "$RSVG_LIBS" >&6; }
11405 { $as_echo "$as_me:$LINENO: result: no" >&5
11406 $as_echo "no" >&6; }
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11423 if test $succeeded = yes; then
11432 if test ".${RSVG_CFLAGS}" != "."; then
11435 cat >>confdefs.h
<<\_ACEOF
11436 #define HAVE_RSVG 1
11439 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11440 LIBS
="$RSVG_LIBS $LIBS"
11447 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11450 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11455 # Extract the first word of "pkg-config", so it can be a program name with args.
11456 set dummy pkg-config
; ac_word
=$2
11457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11460 $as_echo_n "(cached) " >&6
11462 case $PKG_CONFIG in
11464 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11468 for as_dir
in $PATH
11471 test -z "$as_dir" && as_dir
=.
11472 for ac_exec_ext
in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11486 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11487 if test -n "$PKG_CONFIG"; then
11488 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11489 $as_echo "$PKG_CONFIG" >&6; }
11491 { $as_echo "$as_me:$LINENO: result: no" >&5
11492 $as_echo "no" >&6; }
11497 if test "$PKG_CONFIG" = "no" ; then
11500 PKG_CONFIG_MIN_VERSION
=0.9.0
11501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11502 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11503 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11505 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11506 { $as_echo "$as_me:$LINENO: result: yes" >&5
11507 $as_echo "yes" >&6; }
11510 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11511 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11512 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11514 $as_echo "$GTK_CFLAGS" >&6; }
11516 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11517 $as_echo_n "checking GTK_LIBS... " >&6; }
11518 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11519 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11520 $as_echo "$GTK_LIBS" >&6; }
11522 { $as_echo "$as_me:$LINENO: result: no" >&5
11523 $as_echo "no" >&6; }
11526 ## If we have a custom action on failure, don't print errors, but
11527 ## do set a variable so people can do so.
11528 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11540 if test $succeeded = yes; then
11546 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11547 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11548 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11549 { (exit 1); exit 1; }; }
11554 if test x
"$pkg_check_gtk" = xyes
; then
11558 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11559 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11560 LIBS
="$GTK_LIBS $LIBS"
11563 for ac_func
in gtk_main
11565 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 $as_echo_n "checking for $ac_func... " >&6; }
11568 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11571 cat >conftest.
$ac_ext <<_ACEOF
11574 cat confdefs.h
>>conftest.
$ac_ext
11575 cat >>conftest.
$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579 #define $ac_func innocuous_$ac_func
11581 /* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11587 # include <limits.h>
11589 # include <assert.h>
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11611 return $ac_func ();
11616 rm -f conftest.
$ac_objext conftest
$ac_exeext
11617 if { (ac_try
="$ac_link"
11618 case "(($ac_try" in
11619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624 (eval "$ac_link") 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext && {
11634 test "$cross_compiling" = yes ||
11635 $as_test_x conftest$ac_exeext
11637 eval "$as_ac_var=yes"
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 eval "$as_ac_var=no"
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11649 ac_res=`eval 'as_val=${'$as_ac_var'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653 if test `eval 'as_val=${'$as_ac_var'}
11654 $as_echo "$as_val"'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11662 if test "${GTK_COMPILES}" != "yes"; then
11663 if test "$USE_X_TOOLKIT" != "maybe"; then
11664 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11665 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11666 { (exit 1); exit 1; }; };
11671 cat >>confdefs.h <<\_ACEOF
11676 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11679 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11680 closing open displays. This is no problem if you just use
11681 one display, but if you use more than one and close one of them
11682 Emacs may crash." >&5
11683 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11684 closing open displays. This is no problem if you just use
11685 one display, but if you use more than one and close one of them
11686 Emacs may crash." >&2;}
11694 if test "${HAVE_GTK}" = "yes"; then
11696 if test "$with_toolkit_scroll_bars" != no; then
11697 with_toolkit_scroll_bars=yes
11700 HAVE_GTK_MULTIDISPLAY=no
11702 for ac_func in gdk_display_open
11704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 $as_echo_n "checking for $ac_func... " >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11726 # include <limits.h>
11728 # include <assert.h>
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11750 return $ac_func ();
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11759 *) ac_try_echo
=$ac_try;;
11761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest
$ac_exeext && {
11773 test "$cross_compiling" = yes ||
11774 $as_test_x conftest
$ac_exeext
11776 eval "$as_ac_var=yes"
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.
$ac_ext >&5
11781 eval "$as_ac_var=no"
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11786 conftest
$ac_exeext conftest.
$ac_ext
11788 ac_res
=`eval 'as_val=${'$as_ac_var'}
11789 $as_echo "$as_val"'`
11790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11791 $as_echo "$ac_res" >&6; }
11792 if test `eval 'as_val=${'$as_ac_var'}
11793 $as_echo "$as_val"'` = yes; then
11794 cat >>confdefs.h
<<_ACEOF
11795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11797 HAVE_GTK_MULTIDISPLAY
=yes
11801 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11803 cat >>confdefs.h
<<\_ACEOF
11804 #define HAVE_GTK_MULTIDISPLAY 1
11809 HAVE_GTK_FILE_SELECTION
=no
11810 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11811 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11812 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11813 $as_echo_n "(cached) " >&6
11815 cat >conftest.
$ac_ext <<_ACEOF
11818 cat confdefs.h
>>conftest.
$ac_ext
11819 cat >>conftest.
$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 #include <gtk/gtk.h>
11827 #ifndef GTK_TYPE_FILE_SELECTION
11828 (void) GTK_TYPE_FILE_SELECTION;
11835 rm -f conftest.
$ac_objext
11836 if { (ac_try
="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11842 $as_echo "$ac_try_echo") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11855 $as_echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11864 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11865 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11866 HAVE_GTK_FILE_SELECTION=yes
11868 HAVE_GTK_FILE_SELECTION=no
11871 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11873 for ac_func in gtk_file_selection_new
11875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 $as_echo_n "checking for $ac_func... " >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 $as_echo_n "(cached) " >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11897 # include <limits.h>
11899 # include <assert.h>
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11921 return $ac_func ();
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11930 *) ac_try_echo
=$ac_try;;
11932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_link") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1
>conftest.err
11938 cat conftest.err
>&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest
$ac_exeext && {
11944 test "$cross_compiling" = yes ||
11945 $as_test_x conftest
$ac_exeext
11947 eval "$as_ac_var=yes"
11949 $as_echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.
$ac_ext >&5
11952 eval "$as_ac_var=no"
11955 rm -rf conftest.dSYM
11956 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11957 conftest
$ac_exeext conftest.
$ac_ext
11959 ac_res
=`eval 'as_val=${'$as_ac_var'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11963 if test `eval 'as_val=${'$as_ac_var'}
11964 $as_echo "$as_val"'` = yes; then
11965 cat >>confdefs.h
<<_ACEOF
11966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11968 HAVE_GTK_FILE_SELECTION
=yes
11970 HAVE_GTK_FILE_SELECTION
=no
11976 HAVE_GTK_FILE_CHOOSER
=no
11977 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11978 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11979 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11982 cat >conftest.
$ac_ext <<_ACEOF
11985 cat confdefs.h
>>conftest.
$ac_ext
11986 cat >>conftest.
$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <gtk/gtk.h>
11994 #ifndef GTK_TYPE_FILE_CHOOSER
11995 (void) GTK_TYPE_FILE_CHOOSER;
12002 rm -f conftest.
$ac_objext
12003 if { (ac_try
="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12031 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12032 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12033 HAVE_GTK_FILE_CHOOSER=yes
12035 HAVE_GTK_FILE_CHOOSER=no
12038 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12040 for ac_func in gtk_file_chooser_dialog_new
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12064 # include <limits.h>
12066 # include <assert.h>
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12088 return $ac_func ();
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12097 *) ac_try_echo
=$ac_try;;
12099 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1
>conftest.err
12105 cat conftest.err
>&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest
$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest
$ac_exeext
12114 eval "$as_ac_var=yes"
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.
$ac_ext >&5
12119 eval "$as_ac_var=no"
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12124 conftest
$ac_exeext conftest.
$ac_ext
12126 ac_res
=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h
<<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12135 HAVE_GTK_FILE_CHOOSER
=yes
12137 HAVE_GTK_FILE_CHOOSER
=no
12143 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12144 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12146 cat >>confdefs.h
<<\_ACEOF
12147 #define HAVE_GTK_FILE_BOTH 1
12152 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12153 HAVE_GTK_AND_PTHREAD
=no
12155 for ac_header
in pthread.h
12157 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 $as_echo_n "checking for $ac_header... " >&6; }
12161 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 $as_echo_n "(cached) " >&6
12164 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12165 $as_echo "$as_val"'`
12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12167 $as_echo "$ac_res" >&6; }
12169 # Is the header compilable?
12170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 $as_echo_n "checking $ac_header usability... " >&6; }
12172 cat >conftest.
$ac_ext <<_ACEOF
12175 cat confdefs.h
>>conftest.
$ac_ext
12176 cat >>conftest.
$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12181 rm -f conftest.
$ac_objext
12182 if { (ac_try
="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12191 grep -v '^ *+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_header_compiler=yes
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_header_compiler=no
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 $as_echo "$ac_header_compiler" >&6; }
12211 # Is the header present?
12212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 $as_echo_n "checking $ac_header presence... " >&6; }
12214 cat >conftest.$ac_ext <<_ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12222 if { (ac_try="$ac_cpp conftest.$ac_ext"
12223 case "(($ac_try" in
12224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12225 *) ac_try_echo
=$ac_try;;
12227 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12228 $as_echo "$ac_try_echo") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12231 grep -v '^ *+' conftest.er1
>conftest.err
12233 cat conftest.err
>&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev
/null
&& {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12239 ac_header_preproc
=yes
12241 $as_echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.
$ac_ext >&5
12244 ac_header_preproc
=no
12247 rm -f conftest.err conftest.
$ac_ext
12248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 $as_echo "$ac_header_preproc" >&6; }
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc
=yes
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 $as_echo_n "checking for $ac_header... " >&6; }
12278 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 $as_echo_n "(cached) " >&6
12281 eval "$as_ac_Header=\$ac_header_preproc"
12283 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12284 $as_echo "$as_val"'`
12285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12286 $as_echo "$ac_res" >&6; }
12289 if test `eval 'as_val=${'$as_ac_Header'}
12290 $as_echo "$as_val"'` = yes; then
12291 cat >>confdefs.h
<<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12299 if test "$ac_cv_header_pthread_h"; then
12300 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12301 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12302 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS
=$LIBS
12306 LIBS
="-lpthread $LIBS"
12307 cat >conftest.
$ac_ext <<_ACEOF
12310 cat confdefs.h
>>conftest.
$ac_ext
12311 cat >>conftest.
$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12320 char pthread_self ();
12324 return pthread_self ();
12329 rm -f conftest.
$ac_objext conftest
$ac_exeext
12330 if { (ac_try
="$ac_link"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12350 ac_cv_lib_pthread_pthread_self=yes
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_pthread_pthread_self=no
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12364 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12365 if test $ac_cv_lib_pthread_pthread_self = yes; then
12366 HAVE_GTK_AND_PTHREAD=yes
12370 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12371 case "${canonical}" in
12373 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_GTK_AND_PTHREAD 1
12385 if test "${with_dbus}" = "yes"; then
12389 # Extract the first word of "pkg-config", so it can be a program name with args.
12390 set dummy pkg-config; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12396 case $PKG_CONFIG in
12398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12421 if test -n "$PKG_CONFIG"; then
12422 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12423 $as_echo "$PKG_CONFIG" >&6; }
12425 { $as_echo "$as_me:$LINENO: result: no" >&5
12426 $as_echo "no" >&6; }
12431 if test "$PKG_CONFIG" = "no" ; then
12434 PKG_CONFIG_MIN_VERSION=0.9.0
12435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12436 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12437 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12439 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12440 { $as_echo "$as_me:$LINENO: result: yes" >&5
12441 $as_echo "yes" >&6; }
12444 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12445 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12446 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12447 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12448 $as_echo "$DBUS_CFLAGS" >&6; }
12450 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12451 $as_echo_n "checking DBUS_LIBS... " >&6; }
12452 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12453 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12454 $as_echo "$DBUS_LIBS" >&6; }
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457 $as_echo "no" >&6; }
12460 ## If we have a custom action on failure, don't print errors, but
12461 ## do set a variable so people can do so.
12462 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12469 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12470 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12474 if test $succeeded = yes; then
12480 if test "$HAVE_DBUS" = yes; then
12481 LIBS="$LIBS $DBUS_LIBS"
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DBUS 1
12488 for ac_func in dbus_watch_get_unix_fd
12490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12492 $as_echo_n "checking for $ac_func... " >&6; }
12493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12494 $as_echo_n "(cached) " >&6
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define $ac_func innocuous_$ac_func
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12512 # include <limits.h>
12514 # include <assert.h>
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub_$ac_func || defined __stub___$ac_func
12536 return $ac_func ();
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12545 *) ac_try_echo
=$ac_try;;
12547 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1
>conftest.err
12553 cat conftest.err
>&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest
$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest
$ac_exeext
12562 eval "$as_ac_var=yes"
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 eval "$as_ac_var=no"
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12572 conftest
$ac_exeext conftest.
$ac_ext
12574 ac_res
=`eval 'as_val=${'$as_ac_var'}
12575 $as_echo "$as_val"'`
12576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12577 $as_echo "$ac_res" >&6; }
12578 if test `eval 'as_val=${'$as_ac_var'}
12579 $as_echo "$as_val"'` = yes; then
12580 cat >>confdefs.h
<<_ACEOF
12581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12595 # Extract the first word of "pkg-config", so it can be a program name with args.
12596 set dummy pkg-config
; ac_word
=$2
12597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12602 case $PKG_CONFIG in
12604 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12608 for as_dir
in $PATH
12611 test -z "$as_dir" && as_dir
=.
12612 for ac_exec_ext
in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12626 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12627 if test -n "$PKG_CONFIG"; then
12628 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12629 $as_echo "$PKG_CONFIG" >&6; }
12631 { $as_echo "$as_me:$LINENO: result: no" >&5
12632 $as_echo "no" >&6; }
12637 if test "$PKG_CONFIG" = "no" ; then
12640 PKG_CONFIG_MIN_VERSION
=0.9.0
12641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12642 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12643 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12645 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12646 { $as_echo "$as_me:$LINENO: result: yes" >&5
12647 $as_echo "yes" >&6; }
12650 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12651 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12652 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12653 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12654 $as_echo "$GCONF_CFLAGS" >&6; }
12656 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12657 $as_echo_n "checking GCONF_LIBS... " >&6; }
12658 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12659 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12660 $as_echo "$GCONF_LIBS" >&6; }
12662 { $as_echo "$as_me:$LINENO: result: no" >&5
12663 $as_echo "no" >&6; }
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so.
12668 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12680 if test $succeeded = yes; then
12686 if test "$HAVE_GCONF" = yes; then
12688 cat >>confdefs.h
<<\_ACEOF
12689 #define HAVE_GCONF 1
12696 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12697 if test "$with_xaw3d" != no
; then
12698 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12699 $as_echo_n "checking for xaw3d... " >&6; }
12700 if test "${emacs_cv_xaw3d+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 #include <X11/Intrinsic.h>
12711 #include <X11/Xaw3d/Simple.h>
12720 rm -f conftest.
$ac_objext conftest
$ac_exeext
12721 if { (ac_try
="$ac_link"
12722 case "(($ac_try" in
12723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest$ac_exeext && {
12738 test "$cross_compiling" = yes ||
12739 $as_test_x conftest$ac_exeext
12743 $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12749 rm -rf conftest.dSYM
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12757 if test $emacs_cv_xaw3d = yes; then
12758 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12759 $as_echo "yes; using Lucid toolkit" >&6; }
12760 USE_X_TOOLKIT=LUCID
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_XAW3D 1
12768 { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12770 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12771 $as_echo_n "checking for libXaw... " >&6; }
12772 if test "${emacs_cv_xaw+set}" = set; then
12773 $as_echo_n "(cached) " >&6
12775 cat >conftest.$ac_ext <<_ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12782 #include <X11/Intrinsic.h>
12783 #include <X11/Xaw/Simple.h>
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (ac_try="$ac_link"
12794 case "(($ac_try" in
12795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12796 *) ac_try_echo
=$ac_try;;
12798 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800 (eval "$ac_link") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1
>conftest.err
12804 cat conftest.err
>&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest
$ac_exeext && {
12810 test "$cross_compiling" = yes ||
12811 $as_test_x conftest
$ac_exeext
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.
$ac_ext >&5
12821 rm -rf conftest.dSYM
12822 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12823 conftest
$ac_exeext conftest.
$ac_ext
12826 if test $emacs_cv_xaw = yes; then
12827 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12828 $as_echo "yes; using Lucid toolkit" >&6; }
12829 USE_X_TOOLKIT
=LUCID
12830 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12831 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12832 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12833 { (exit 1); exit 1; }; }
12835 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12836 $as_echo "no; do not use toolkit by default" >&6; }
12842 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12844 if test "${USE_X_TOOLKIT}" != "none"; then
12845 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12846 $as_echo_n "checking X11 toolkit version... " >&6; }
12847 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12850 cat >conftest.
$ac_ext <<_ACEOF
12853 cat confdefs.h
>>conftest.
$ac_ext
12854 cat >>conftest.
$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 #include <X11/Intrinsic.h>
12860 #if XtSpecificationRelease < 6
12868 rm -f conftest.
$ac_objext conftest
$ac_exeext
12869 if { (ac_try
="$ac_link"
12870 case "(($ac_try" in
12871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12889 emacs_cv_x11_toolkit_version_6=yes
12891 $as_echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 emacs_cv_x11_toolkit_version_6=no
12897 rm -rf conftest.dSYM
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12902 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12903 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12904 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12905 $as_echo "6 or newer" >&6; }
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_X11XTR6 1
12912 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12913 $as_echo "before 6" >&6; }
12917 if test x$HAVE_X11XTR6 = xyes; then
12918 LIBS="-lXt -lSM -lICE $LIBS"
12923 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12924 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12925 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12926 $as_echo_n "(cached) " >&6
12928 ac_check_lib_save_LIBS=$LIBS
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12943 char XmuConvertStandardSelection ();
12947 return XmuConvertStandardSelection ();
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (ac_try="$ac_link"
12954 case "(($ac_try" in
12955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12956 *) ac_try_echo
=$ac_try;;
12958 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12959 $as_echo "$ac_try_echo") >&5
12960 (eval "$ac_link") 2>conftest.er1
12962 grep -v '^ *+' conftest.er1
>conftest.err
12964 cat conftest.err
>&5
12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest
$ac_exeext && {
12970 test "$cross_compiling" = yes ||
12971 $as_test_x conftest
$ac_exeext
12973 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.
$ac_ext >&5
12978 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12981 rm -rf conftest.dSYM
12982 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12983 conftest
$ac_exeext conftest.
$ac_ext
12984 LIBS
=$ac_check_lib_save_LIBS
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12987 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12988 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12989 cat >>confdefs.h
<<_ACEOF
12990 #define HAVE_LIBXMU 1
12997 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13000 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13001 if test "${HAVE_X11}" = "yes"; then
13002 if test "${USE_X_TOOLKIT}" != "none"; then
13004 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13005 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13006 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13007 $as_echo_n "(cached) " >&6
13009 ac_check_lib_save_LIBS
=$LIBS
13010 LIBS
="-lXext $LIBS"
13011 cat >conftest.
$ac_ext <<_ACEOF
13014 cat confdefs.h
>>conftest.
$ac_ext
13015 cat >>conftest.
$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13024 char XShapeQueryExtension ();
13028 return XShapeQueryExtension ();
13033 rm -f conftest.
$ac_objext conftest
$ac_exeext
13034 if { (ac_try
="$ac_link"
13035 case "(($ac_try" in
13036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13043 grep -v '^ *+' conftest.er1 >conftest.err
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13054 ac_cv_lib_Xext_XShapeQueryExtension=yes
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_Xext_XShapeQueryExtension=no
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13068 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13069 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBXEXT 1
13074 LIBS="-lXext $LIBS"
13081 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13082 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13083 $as_echo_n "checking for Motif version 2.1... " >&6; }
13084 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13085 $as_echo_n "(cached) " >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13097 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13100 Motif version prior to 2.1.
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13110 *) ac_try_echo
=$ac_try;;
13112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13113 $as_echo "$ac_try_echo") >&5
13114 (eval "$ac_compile") 2>conftest.er1
13116 grep -v '^ *+' conftest.er1
>conftest.err
13118 cat conftest.err
>&5
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && {
13121 test -z "$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 } && test -s conftest.
$ac_objext; then
13124 emacs_cv_motif_version_2_1
=yes
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.
$ac_ext >&5
13129 emacs_cv_motif_version_2_1
=no
13132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13134 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13135 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13136 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13137 if test $emacs_cv_motif_version_2_1 = yes; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define HAVE_MOTIF_2_1 1
13144 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13145 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13147 $as_echo_n "(cached) " >&6
13149 ac_check_lib_save_LIBS
=$LIBS
13151 cat >conftest.
$ac_ext <<_ACEOF
13154 cat confdefs.h
>>conftest.
$ac_ext
13155 cat >>conftest.
$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13164 char XpCreateContext ();
13168 return XpCreateContext ();
13173 rm -f conftest.
$ac_objext conftest
$ac_exeext
13174 if { (ac_try
="$ac_link"
13175 case "(($ac_try" in
13176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13180 $as_echo "$ac_try_echo") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13185 cat conftest.err >&5
13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext && {
13191 test "$cross_compiling" = yes ||
13192 $as_test_x conftest$ac_exeext
13194 ac_cv_lib_Xp_XpCreateContext=yes
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_lib_Xp_XpCreateContext=no
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13208 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13213 if test ${HAVE_LIBXP} = yes; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LIBXP 1
13221 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13222 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13223 if test "${emacs_cv_lesstif+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13226 # We put this in CFLAGS temporarily to precede other -I options
13227 # that might be in CFLAGS temporarily.
13228 # We put this in CPPFLAGS where it precedes the other -I options.
13229 OLD_CPPFLAGS=$CPPFLAGS
13231 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13232 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13233 cat >conftest.$ac_ext <<_ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13252 *) ac_try_echo
=$ac_try;;
13254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1
>conftest.err
13260 cat conftest.err
>&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.
$ac_objext; then
13266 emacs_cv_lesstif
=yes
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 emacs_cv_lesstif
=no
13274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13276 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13277 $as_echo "$emacs_cv_lesstif" >&6; }
13278 if test $emacs_cv_lesstif = yes; then
13279 # Make sure this -I option remains in CPPFLAGS after it is set
13280 # back to REAL_CPPFLAGS.
13281 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13282 # have those other -I options anyway. Ultimately, having this
13283 # directory ultimately in CPPFLAGS will be enough.
13284 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13285 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13288 CPPFLAGS
=$OLD_CPPFLAGS
13295 USE_TOOLKIT_SCROLL_BARS
=no
13296 if test "${with_toolkit_scroll_bars}" != "no"; then
13297 if test "${USE_X_TOOLKIT}" != "none"; then
13298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13299 cat >>confdefs.h
<<\_ACEOF
13300 #define USE_TOOLKIT_SCROLL_BARS 1
13304 USE_TOOLKIT_SCROLL_BARS
=yes
13305 elif test "${HAVE_XAW3D}" = "yes"; then
13306 cat >>confdefs.h
<<\_ACEOF
13307 #define USE_TOOLKIT_SCROLL_BARS 1
13310 USE_TOOLKIT_SCROLL_BARS
=yes
13312 elif test "${HAVE_GTK}" = "yes"; then
13313 cat >>confdefs.h
<<\_ACEOF
13314 #define USE_TOOLKIT_SCROLL_BARS 1
13317 USE_TOOLKIT_SCROLL_BARS
=yes
13318 elif test "${HAVE_NS}" = "yes"; then
13319 cat >>confdefs.h
<<\_ACEOF
13320 #define USE_TOOLKIT_SCROLL_BARS 1
13323 USE_TOOLKIT_SCROLL_BARS
=yes
13327 cat >conftest.
$ac_ext <<_ACEOF
13330 cat confdefs.h
>>conftest.
$ac_ext
13331 cat >>conftest.
$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 #include <X11/Xlib.h>
13335 #include <X11/Xresource.h>
13344 rm -f conftest.
$ac_objext
13345 if { (ac_try
="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351 $as_echo "$ac_try_echo") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13354 grep -v '^ *+' conftest.er1 >conftest.err
13356 cat conftest.err >&5
13357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest.$ac_objext; then
13364 cat >>confdefs.h <<\_ACEOF
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 if test "${with_xim}" != "no"; then
13380 cat >>confdefs.h <<\_ACEOF
13387 if test "${HAVE_XIM}" != "no"; then
13388 late_CFLAGS=$CFLAGS
13389 if test "$GCC" = yes; then
13390 CFLAGS="$CFLAGS --pedantic-errors"
13392 cat >conftest.$ac_ext <<_ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 #include <X11/Xlib.h>
13400 #include <X11/Xresource.h>
13409 XPointer *client_data;
13411 /* If we're not using GCC, it's probably not XFree86, and this is
13412 probably right, but we can't use something like --pedantic-errors. */
13413 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13414 char*, XIMProc, XPointer*);
13416 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13426 *) ac_try_echo
=$ac_try;;
13428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13429 $as_echo "$ac_try_echo") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13432 grep -v '^ *+' conftest.er1
>conftest.err
13434 cat conftest.err
>&5
13435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.
$ac_objext; then
13440 emacs_cv_arg6_star
=yes
13442 $as_echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.
$ac_ext >&5
13448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13450 if test "$emacs_cv_arg6_star" = yes; then
13451 cat >>confdefs.h
<<\_ACEOF
13452 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13456 cat >>confdefs.h
<<\_ACEOF
13457 #define XRegisterIMInstantiateCallback_arg6 XPointer
13461 CFLAGS
=$late_CFLAGS
13464 ### Start of font-backend (under any platform) section.
13465 # (nothing here yet -- this is a placeholder)
13466 ### End of font-backend (under any platform) section.
13468 ### Start of font-backend (under X11) section.
13469 if test "${HAVE_X11}" = "yes"; then
13473 # Extract the first word of "pkg-config", so it can be a program name with args.
13474 set dummy pkg-config
; ac_word
=$2
13475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13478 $as_echo_n "(cached) " >&6
13480 case $PKG_CONFIG in
13482 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13486 for as_dir
in $PATH
13489 test -z "$as_dir" && as_dir
=.
13490 for ac_exec_ext
in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13504 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13505 if test -n "$PKG_CONFIG"; then
13506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13507 $as_echo "$PKG_CONFIG" >&6; }
13509 { $as_echo "$as_me:$LINENO: result: no" >&5
13510 $as_echo "no" >&6; }
13515 if test "$PKG_CONFIG" = "no" ; then
13518 PKG_CONFIG_MIN_VERSION
=0.9.0
13519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13520 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13521 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13523 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13524 { $as_echo "$as_me:$LINENO: result: yes" >&5
13525 $as_echo "yes" >&6; }
13528 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13529 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13530 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13531 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13532 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13534 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13535 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13536 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13537 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13538 $as_echo "$FONTCONFIG_LIBS" >&6; }
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13542 FONTCONFIG_CFLAGS
=""
13544 ## If we have a custom action on failure, don't print errors, but
13545 ## do set a variable so people can do so.
13546 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13558 if test $succeeded = yes; then
13565 ## Use -lXft if available, unless `--with-xft=no'.
13567 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13570 if test "x${with_xft}" != "xno"; then
13575 # Extract the first word of "pkg-config", so it can be a program name with args.
13576 set dummy pkg-config
; ac_word
=$2
13577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13580 $as_echo_n "(cached) " >&6
13582 case $PKG_CONFIG in
13584 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13588 for as_dir
in $PATH
13591 test -z "$as_dir" && as_dir
=.
13592 for ac_exec_ext
in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13606 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13607 if test -n "$PKG_CONFIG"; then
13608 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13609 $as_echo "$PKG_CONFIG" >&6; }
13611 { $as_echo "$as_me:$LINENO: result: no" >&5
13612 $as_echo "no" >&6; }
13617 if test "$PKG_CONFIG" = "no" ; then
13620 PKG_CONFIG_MIN_VERSION
=0.9.0
13621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13622 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13623 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13625 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13630 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13631 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13632 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13633 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13634 $as_echo "$XFT_CFLAGS" >&6; }
13636 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13637 $as_echo_n "checking XFT_LIBS... " >&6; }
13638 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13640 $as_echo "$XFT_LIBS" >&6; }
13642 { $as_echo "$as_me:$LINENO: result: no" >&5
13643 $as_echo "no" >&6; }
13646 ## If we have a custom action on failure, don't print errors, but
13647 ## do set a variable so people can do so.
13648 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13655 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13656 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13660 if test $succeeded = yes; then
13666 ## Because xftfont.c uses XRenderQueryExtension, we also
13667 ## need to link to -lXrender.
13669 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13670 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13671 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13672 $as_echo_n "(cached) " >&6
13674 ac_check_lib_save_LIBS
=$LIBS
13675 LIBS
="-lXrender $LIBS"
13676 cat >conftest.
$ac_ext <<_ACEOF
13679 cat confdefs.h
>>conftest.
$ac_ext
13680 cat >>conftest.
$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13683 /* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply. */
13689 char XRenderQueryExtension ();
13693 return XRenderQueryExtension ();
13698 rm -f conftest.
$ac_objext conftest
$ac_exeext
13699 if { (ac_try
="$ac_link"
13700 case "(($ac_try" in
13701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706 (eval "$ac_link") 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest$ac_exeext && {
13716 test "$cross_compiling" = yes ||
13717 $as_test_x conftest$ac_exeext
13719 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13721 $as_echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_lib_Xrender_XRenderQueryExtension=no
13727 rm -rf conftest.dSYM
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13733 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13734 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13738 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13739 OLD_CPPFLAGS="$CPPFLAGS"
13740 OLD_CFLAGS="$CFLAGS"
13742 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13743 CFLAGS="$CFLAGS $XFT_CFLAGS"
13744 XFT_LIBS="-lXrender $XFT_LIBS"
13745 LIBS="$XFT_LIBS $LIBS"
13746 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13747 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13748 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13749 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13750 $as_echo_n "(cached) " >&6
13752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13753 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13755 # Is the header compilable?
13756 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13757 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13765 #include <X11/Xft/Xft.h>
13767 rm -f conftest.$ac_objext
13768 if { (ac_try="$ac_compile"
13769 case "(($ac_try" in
13770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13771 *) ac_try_echo
=$ac_try;;
13773 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13774 $as_echo "$ac_try_echo") >&5
13775 (eval "$ac_compile") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1
>conftest.err
13779 cat conftest.err
>&5
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest.
$ac_objext; then
13785 ac_header_compiler
=yes
13787 $as_echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.
$ac_ext >&5
13790 ac_header_compiler
=no
13793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 $as_echo "$ac_header_compiler" >&6; }
13797 # Is the header present?
13798 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13799 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13800 cat >conftest.
$ac_ext <<_ACEOF
13803 cat confdefs.h
>>conftest.
$ac_ext
13804 cat >>conftest.
$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <X11/Xft/Xft.h>
13808 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13809 case "(($ac_try" in
13810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13814 $as_echo "$ac_try_echo") >&5
13815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13817 grep -v '^ *+' conftest.er1 >conftest.err
13819 cat conftest.err >&5
13820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } >/dev/null && {
13822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13825 ac_header_preproc=yes
13827 $as_echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_header_preproc=no
13833 rm -f conftest.err conftest.$ac_ext
13834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835 $as_echo "$ac_header_preproc" >&6; }
13837 # So? What about this header?
13838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13840 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13841 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13842 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13843 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc=yes
13847 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13848 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13849 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13850 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13851 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13852 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13853 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13854 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13855 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13856 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13857 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13858 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13862 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13863 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13864 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13865 $as_echo_n "(cached) " >&6
13867 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13870 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13873 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13874 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13875 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13876 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13877 $as_echo_n "(cached) " >&6
13879 ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lXft $XFT_LIBS $LIBS"
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13894 char XftFontOpen ();
13898 return XftFontOpen ();
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13907 *) ac_try_echo
=$ac_try;;
13909 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13910 $as_echo "$ac_try_echo") >&5
13911 (eval "$ac_link") 2>conftest.er1
13913 grep -v '^ *+' conftest.er1
>conftest.err
13915 cat conftest.err
>&5
13916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest
$ac_exeext && {
13921 test "$cross_compiling" = yes ||
13922 $as_test_x conftest
$ac_exeext
13924 ac_cv_lib_Xft_XftFontOpen
=yes
13926 $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.
$ac_ext >&5
13929 ac_cv_lib_Xft_XftFontOpen
=no
13932 rm -rf conftest.dSYM
13933 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13934 conftest
$ac_exeext conftest.
$ac_ext
13935 LIBS
=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13938 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13939 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13947 if test "${HAVE_XFT}" = "yes"; then
13949 cat >>confdefs.h
<<\_ACEOF
13954 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
13956 CPPFLAGS
="$OLD_CPPFLAGS"
13957 CFLAGS
="$OLD_CFLAGS"
13959 fi # "${HAVE_XFT}" = "yes"
13960 fi # "$HAVE_XFT" != no
13961 fi # "x${with_xft}" != "xno"
13963 if test "$HAVE_XFT" != "yes"; then
13969 ## We used to allow building with FreeType and without Xft.
13970 ## However, the ftx font backend driver is not in good shape.
13971 if test "${HAVE_XFT}" = "yes"; then
13978 if test "${HAVE_FREETYPE}" = "yes"; then
13980 cat >>confdefs.h
<<\_ACEOF
13981 #define HAVE_FREETYPE 1
13984 if test "${with_libotf}" != "no"; then
13988 # Extract the first word of "pkg-config", so it can be a program name with args.
13989 set dummy pkg-config
; ac_word
=$2
13990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13993 $as_echo_n "(cached) " >&6
13995 case $PKG_CONFIG in
13997 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14001 for as_dir
in $PATH
14004 test -z "$as_dir" && as_dir
=.
14005 for ac_exec_ext
in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14019 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14020 if test -n "$PKG_CONFIG"; then
14021 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14022 $as_echo "$PKG_CONFIG" >&6; }
14024 { $as_echo "$as_me:$LINENO: result: no" >&5
14025 $as_echo "no" >&6; }
14030 if test "$PKG_CONFIG" = "no" ; then
14033 PKG_CONFIG_MIN_VERSION
=0.9.0
14034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14035 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14036 $as_echo_n "checking for libotf... " >&6; }
14038 if $PKG_CONFIG --exists "libotf" 2>&5; then
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040 $as_echo "yes" >&6; }
14043 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14044 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14045 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14046 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14047 $as_echo "$LIBOTF_CFLAGS" >&6; }
14049 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14050 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14051 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14052 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14053 $as_echo "$LIBOTF_LIBS" >&6; }
14055 { $as_echo "$as_me:$LINENO: result: no" >&5
14056 $as_echo "no" >&6; }
14059 ## If we have a custom action on failure, don't print errors, but
14060 ## do set a variable so people can do so.
14061 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14073 if test $succeeded = yes; then
14079 if test "$HAVE_LIBOTF" = "yes"; then
14081 cat >>confdefs.h
<<\_ACEOF
14082 #define HAVE_LIBOTF 1
14085 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14086 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14087 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14088 $as_echo_n "(cached) " >&6
14090 ac_check_lib_save_LIBS
=$LIBS
14092 cat >conftest.
$ac_ext <<_ACEOF
14095 cat confdefs.h
>>conftest.
$ac_ext
14096 cat >>conftest.
$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14105 char OTF_get_variation_glyphs ();
14109 return OTF_get_variation_glyphs ();
14114 rm -f conftest.
$ac_objext conftest
$ac_exeext
14115 if { (ac_try
="$ac_link"
14116 case "(($ac_try" in
14117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14121 $as_echo "$ac_try_echo") >&5
14122 (eval "$ac_link") 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest$ac_exeext && {
14132 test "$cross_compiling" = yes ||
14133 $as_test_x conftest$ac_exeext
14135 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14137 $as_echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14143 rm -rf conftest.dSYM
14144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14145 conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14149 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14150 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14151 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14153 HAVE_OTF_GET_VARIATION_GLYPHS=no
14156 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14168 if test "${HAVE_LIBOTF}" = yes; then
14169 if test "${with_m17n_flt}" != "no"; then
14173 # Extract the first word of "pkg-config", so it can be a program name with args.
14174 set dummy pkg-config; ac_word=$2
14175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14178 $as_echo_n "(cached) " >&6
14180 case $PKG_CONFIG in
14182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14205 if test -n "$PKG_CONFIG"; then
14206 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14207 $as_echo "$PKG_CONFIG" >&6; }
14209 { $as_echo "$as_me:$LINENO: result: no" >&5
14210 $as_echo "no" >&6; }
14215 if test "$PKG_CONFIG" = "no" ; then
14218 PKG_CONFIG_MIN_VERSION=0.9.0
14219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14220 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14221 $as_echo_n "checking for m17n-flt... " >&6; }
14223 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14224 { $as_echo "$as_me:$LINENO: result: yes" >&5
14225 $as_echo "yes" >&6; }
14228 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14229 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14230 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14231 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14232 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14234 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14235 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14236 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14237 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14238 $as_echo "$M17N_FLT_LIBS" >&6; }
14240 { $as_echo "$as_me:$LINENO: result: no" >&5
14241 $as_echo "no" >&6; }
14244 ## If we have a custom action on failure, don't print errors, but
14245 ## do set a variable so people can do so.
14246 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14258 if test $succeeded = yes; then
14264 if test "$HAVE_M17N_FLT" = "yes"; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_M17N_FLT 1
14279 ### End of font-backend (under X11) section.
14290 ### Use -lXpm if available, unless `--with-xpm=no
'.
14292 if test "${HAVE_X11}" = "yes"; then
14293 if test "${with_xpm}" != "no"; then
14294 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14295 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14296 $as_echo_n "checking for X11/xpm.h... " >&6; }
14297 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14298 $as_echo_n "(cached) " >&6
14300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14301 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14303 # Is the header compilable?
14304 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14305 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14313 #include <X11/xpm.h>
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14322 $as_echo "$ac_try_echo") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14325 grep -v '^
*+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_header_compiler=yes
14335 $as_echo "$as_me: failed program was:" >&5
14336 sed 's
/^
/|
/' conftest.$ac_ext >&5
14338 ac_header_compiler=no
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 $as_echo "$ac_header_compiler" >&6; }
14345 # Is the header present?
14346 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14347 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <X11/xpm.h>
14356 if { (ac_try="$ac_cpp conftest.$ac_ext"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14362 $as_echo "$ac_try_echo") >&5
14363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14365 grep -v '^
*+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } >/dev/null && {
14370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14371 test ! -s conftest.err
14373 ac_header_preproc=yes
14375 $as_echo "$as_me: failed program was:" >&5
14376 sed 's
/^
/|
/' conftest.$ac_ext >&5
14378 ac_header_preproc=no
14381 rm -f conftest.err conftest.$ac_ext
14382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 $as_echo "$ac_header_preproc" >&6; }
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14388 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14389 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14391 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14392 ac_header_preproc=yes
14395 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14396 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14397 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14398 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14399 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14400 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14401 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14402 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14403 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14404 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14405 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14406 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14410 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14411 $as_echo_n "checking for X11/xpm.h... " >&6; }
14412 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14413 $as_echo_n "(cached) " >&6
14415 ac_cv_header_X11_xpm_h=$ac_header_preproc
14417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14418 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14421 if test $ac_cv_header_X11_xpm_h = yes; then
14422 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14423 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14424 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14425 $as_echo_n "(cached) " >&6
14427 ac_check_lib_save_LIBS=$LIBS
14428 LIBS="-lXpm -lX11 $LIBS"
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 /* Override any GCC internal prototype to avoid an error.
14437 Use char because int might match the return type of a GCC
14438 builtin and then its argument prototype would still apply. */
14442 char XpmReadFileToPixmap ();
14446 return XpmReadFileToPixmap ();
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458 $as_echo "$ac_try_echo") >&5
14459 (eval "$ac_link") 2>conftest.er1
14461 grep -v '^
*+' conftest.er1 >conftest.err
14463 cat conftest.err >&5
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest$ac_exeext && {
14469 test "$cross_compiling" = yes ||
14470 $as_test_x conftest$ac_exeext
14472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14474 $as_echo "$as_me: failed program was:" >&5
14475 sed 's
/^
/|
/' conftest.$ac_ext >&5
14477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14480 rm -rf conftest.dSYM
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14486 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14487 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14494 if test "${HAVE_XPM}" = "yes"; then
14495 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14496 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14497 cat >conftest.$ac_ext <<_ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 #include "X11/xpm.h"
14504 #ifndef XpmReturnAllocPixels
14505 no_return_alloc_pixels
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14518 if test "${HAVE_XPM}" = "yes"; then
14519 { $as_echo "$as_me:$LINENO: result: yes" >&5
14520 $as_echo "yes" >&6; }
14522 { $as_echo "$as_me:$LINENO: result: no" >&5
14523 $as_echo "no" >&6; }
14528 if test "${HAVE_XPM}" = "yes"; then
14530 cat >>confdefs.h <<\_ACEOF
14537 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14539 if test "${HAVE_X11}" = "yes"; then
14540 if test "${with_jpeg}" != "no"; then
14541 if test "${ac_cv_header_jerror_h+set}" = set; then
14542 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14543 $as_echo_n "checking for jerror.h... " >&6; }
14544 if test "${ac_cv_header_jerror_h+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14548 $as_echo "$ac_cv_header_jerror_h" >&6; }
14550 # Is the header compilable?
14551 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14552 $as_echo_n "checking jerror.h usability... " >&6; }
14553 cat >conftest.
$ac_ext <<_ACEOF
14556 cat confdefs.h
>>conftest.
$ac_ext
14557 cat >>conftest.
$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14560 #include <jerror.h>
14562 rm -f conftest.
$ac_objext
14563 if { (ac_try
="$ac_compile"
14564 case "(($ac_try" in
14565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
14580 ac_header_compiler=yes
14582 $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_header_compiler=no
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590 $as_echo "$ac_header_compiler" >&6; }
14592 # Is the header present?
14593 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14594 $as_echo_n "checking jerror.h presence... " >&6; }
14595 cat >conftest.$ac_ext <<_ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 #include <jerror.h>
14603 if { (ac_try="$ac_cpp conftest.$ac_ext"
14604 case "(($ac_try" in
14605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14606 *) ac_try_echo
=$ac_try;;
14608 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14609 $as_echo "$ac_try_echo") >&5
14610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1
>conftest.err
14614 cat conftest.err
>&5
14615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } >/dev
/null
&& {
14617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14620 ac_header_preproc
=yes
14622 $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 ac_header_preproc
=no
14628 rm -f conftest.err conftest.
$ac_ext
14629 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14630 $as_echo "$ac_header_preproc" >&6; }
14632 # So? What about this header?
14633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14635 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14636 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14637 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14638 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14639 ac_header_preproc
=yes
14642 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14643 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14644 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14645 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14646 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14647 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14648 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14649 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14650 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14651 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14652 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14653 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14657 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14658 $as_echo_n "checking for jerror.h... " >&6; }
14659 if test "${ac_cv_header_jerror_h+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14662 ac_cv_header_jerror_h
=$ac_header_preproc
14664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14665 $as_echo "$ac_cv_header_jerror_h" >&6; }
14668 if test $ac_cv_header_jerror_h = yes; then
14669 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14670 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14671 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14674 ac_check_lib_save_LIBS
=$LIBS
14675 LIBS
="-ljpeg $LIBS"
14676 cat >conftest.
$ac_ext <<_ACEOF
14679 cat confdefs.h
>>conftest.
$ac_ext
14680 cat >>conftest.
$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14689 char jpeg_destroy_compress ();
14693 return jpeg_destroy_compress ();
14698 rm -f conftest.
$ac_objext conftest
$ac_exeext
14699 if { (ac_try
="$ac_link"
14700 case "(($ac_try" in
14701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14705 $as_echo "$ac_try_echo") >&5
14706 (eval "$ac_link") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest$ac_exeext && {
14716 test "$cross_compiling" = yes ||
14717 $as_test_x conftest$ac_exeext
14719 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14727 rm -rf conftest.dSYM
14728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
14730 LIBS=$ac_check_lib_save_LIBS
14732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14733 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14734 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14744 if test "${HAVE_JPEG}" = "yes"; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_JPEG 1
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <jpeglib.h>
14756 version=JPEG_LIB_VERSION
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_JPEG 1
14766 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14767 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14775 ### Use -lpng if available, unless `--with-png=no
'.
14777 if test "${HAVE_X11}" = "yes"; then
14778 if test "${with_png}" != "no"; then
14779 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14780 # in /usr/include/libpng.
14783 for ac_header in png.h libpng/png.h
14785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 $as_echo_n "checking for $ac_header... " >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 $as_echo_n "(cached) " >&6
14792 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14793 $as_echo "$as_val"'`
14794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14795 $as_echo "$ac_res" >&6; }
14797 # Is the header compilable?
14798 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 $as_echo_n "checking $ac_header usability... " >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 #include <$ac_header>
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14819 grep -v '^
*+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 ac_header_compiler=yes
14829 $as_echo "$as_me: failed program was:" >&5
14830 sed 's
/^
/|
/' conftest.$ac_ext >&5
14832 ac_header_compiler=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 $as_echo "$ac_header_compiler" >&6; }
14839 # Is the header present?
14840 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14841 $as_echo_n "checking $ac_header presence... " >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <$ac_header>
14850 if { (ac_try="$ac_cpp conftest.$ac_ext"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14856 $as_echo "$ac_try_echo") >&5
14857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14859 grep -v '^
*+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } >/dev/null && {
14864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14867 ac_header_preproc=yes
14869 $as_echo "$as_me: failed program was:" >&5
14870 sed 's
/^
/|
/' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 $as_echo "$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14885 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14886 ac_header_preproc=yes
14889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14898 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14905 $as_echo_n "checking for $ac_header... " >&6; }
14906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14907 $as_echo_n "(cached) " >&6
14909 eval "$as_ac_Header=\$ac_header_preproc"
14911 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14912 $as_echo "$as_val"'`
14913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14914 $as_echo "$ac_res" >&6; }
14917 if test `eval 'as_val
=${'$as_ac_Header'}
14918 $as_echo "$as_val"'` = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14927 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14928 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14929 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14930 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14931 $as_echo_n "(cached) " >&6
14933 ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lpng -lz -lm $LIBS"
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14942 /* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14948 char png_get_channels ();
14952 return png_get_channels ();
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (ac_try="$ac_link"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964 $as_echo "$ac_try_echo") >&5
14965 (eval "$ac_link") 2>conftest.er1
14967 grep -v '^
*+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest$ac_exeext && {
14975 test "$cross_compiling" = yes ||
14976 $as_test_x conftest$ac_exeext
14978 ac_cv_lib_png_png_get_channels=yes
14980 $as_echo "$as_me: failed program was:" >&5
14981 sed 's
/^
/|
/' conftest.$ac_ext >&5
14983 ac_cv_lib_png_png_get_channels=no
14986 rm -rf conftest.dSYM
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988 conftest$ac_exeext conftest.$ac_ext
14989 LIBS=$ac_check_lib_save_LIBS
14991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14992 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14993 if test $ac_cv_lib_png_png_get_channels = yes; then
15000 if test "${HAVE_PNG}" = "yes"; then
15002 cat >>confdefs.h <<\_ACEOF
15009 ### Use -ltiff if available, unless `--with-tiff=no'.
15011 if test "${HAVE_X11}" = "yes"; then
15012 if test "${with_tiff}" != "no"; then
15013 if test "${ac_cv_header_tiffio_h+set}" = set; then
15014 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15015 $as_echo_n "checking for tiffio.h... " >&6; }
15016 if test "${ac_cv_header_tiffio_h+set}" = set; then
15017 $as_echo_n "(cached) " >&6
15019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15020 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15022 # Is the header compilable?
15023 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15024 $as_echo_n "checking tiffio.h usability... " >&6; }
15025 cat >conftest.
$ac_ext <<_ACEOF
15028 cat confdefs.h
>>conftest.
$ac_ext
15029 cat >>conftest.
$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15032 #include <tiffio.h>
15034 rm -f conftest.
$ac_objext
15035 if { (ac_try
="$ac_compile"
15036 case "(($ac_try" in
15037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15041 $as_echo "$ac_try_echo") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest.$ac_objext; then
15052 ac_header_compiler=yes
15054 $as_echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_header_compiler=no
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 $as_echo "$ac_header_compiler" >&6; }
15064 # Is the header present?
15065 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15066 $as_echo_n "checking tiffio.h presence... " >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <tiffio.h>
15075 if { (ac_try="$ac_cpp conftest.$ac_ext"
15076 case "(($ac_try" in
15077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15078 *) ac_try_echo
=$ac_try;;
15080 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15081 $as_echo "$ac_try_echo") >&5
15082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15084 grep -v '^ *+' conftest.er1
>conftest.err
15086 cat conftest.err
>&5
15087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } >/dev
/null
&& {
15089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15092 ac_header_preproc
=yes
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15097 ac_header_preproc
=no
15100 rm -f conftest.err conftest.
$ac_ext
15101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102 $as_echo "$ac_header_preproc" >&6; }
15104 # So? What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15108 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15110 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15111 ac_header_preproc
=yes
15114 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15115 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15116 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15117 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15118 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15119 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15120 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15121 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15122 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15123 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15125 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15129 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15130 $as_echo_n "checking for tiffio.h... " >&6; }
15131 if test "${ac_cv_header_tiffio_h+set}" = set; then
15132 $as_echo_n "(cached) " >&6
15134 ac_cv_header_tiffio_h
=$ac_header_preproc
15136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15137 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15140 if test $ac_cv_header_tiffio_h = yes; then
15142 # At least one tiff package requires the jpeg library.
15143 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15144 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15145 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15146 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15147 $as_echo_n "(cached) " >&6
15149 ac_check_lib_save_LIBS
=$LIBS
15150 LIBS
="-ltiff $tifflibs $LIBS"
15151 cat >conftest.
$ac_ext <<_ACEOF
15154 cat confdefs.h
>>conftest.
$ac_ext
15155 cat >>conftest.
$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15164 char TIFFGetVersion ();
15168 return TIFFGetVersion ();
15173 rm -f conftest.
$ac_objext conftest
$ac_exeext
15174 if { (ac_try
="$ac_link"
15175 case "(($ac_try" in
15176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181 (eval "$ac_link") 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } && {
15188 test -z "$ac_c_werror_flag" ||
15189 test ! -s conftest.err
15190 } && test -s conftest$ac_exeext && {
15191 test "$cross_compiling" = yes ||
15192 $as_test_x conftest$ac_exeext
15194 ac_cv_lib_tiff_TIFFGetVersion=yes
15196 $as_echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_lib_tiff_TIFFGetVersion=no
15202 rm -rf conftest.dSYM
15203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15208 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15209 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15218 if test "${HAVE_TIFF}" = "yes"; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_TIFF 1
15227 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15229 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15230 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15231 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15232 $as_echo_n "checking for gif_lib.h... " >&6; }
15233 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15237 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15241 $as_echo_n "checking gif_lib.h usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <gif_lib.h>
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15261 grep -v '^
*+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's
/^
/|
/' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15283 $as_echo_n "checking gif_lib.h presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <gif_lib.h>
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 grep -v '^
*+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15309 ac_header_preproc=yes
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's
/^
/|
/' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15327 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15328 ac_header_preproc=yes
15331 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15340 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15346 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15347 $as_echo_n "checking for gif_lib.h... " >&6; }
15348 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15349 $as_echo_n "(cached) " >&6
15351 ac_cv_header_gif_lib_h=$ac_header_preproc
15353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15354 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15357 if test $ac_cv_header_gif_lib_h = yes; then
15358 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15359 # Earlier versions can crash Emacs.
15360 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15361 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15362 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15363 $as_echo_n "(cached) " >&6
15365 ac_check_lib_save_LIBS=$LIBS
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15380 char EGifPutExtensionLast ();
15384 return EGifPutExtensionLast ();
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_link") 2>conftest.er1
15399 grep -v '^
*+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest$ac_exeext && {
15407 test "$cross_compiling" = yes ||
15408 $as_test_x conftest$ac_exeext
15410 ac_cv_lib_gif_EGifPutExtensionLast=yes
15412 $as_echo "$as_me: failed program was:" >&5
15413 sed 's
/^
/|
/' conftest.$ac_ext >&5
15415 ac_cv_lib_gif_EGifPutExtensionLast=no
15418 rm -rf conftest.dSYM
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15424 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15425 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15435 if test "$HAVE_GIF" = yes; then
15436 ac_gif_lib_name="-lgif"
15439 # If gif_lib.h but no libgif, try libungif.
15440 if test x"$try_libungif" = xyes; then
15441 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15442 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15443 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15444 $as_echo_n "(cached) " >&6
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lungif $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15461 char EGifPutExtensionLast ();
15465 return EGifPutExtensionLast ();
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15477 $as_echo "$ac_try_echo") >&5
15478 (eval "$ac_link") 2>conftest.er1
15480 grep -v '^
*+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } && {
15485 test -z "$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 } && test -s conftest$ac_exeext && {
15488 test "$cross_compiling" = yes ||
15489 $as_test_x conftest$ac_exeext
15491 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's
/^
/|
/' conftest.$ac_ext >&5
15496 ac_cv_lib_ungif_EGifPutExtensionLast=no
15499 rm -rf conftest.dSYM
15500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15501 conftest$ac_exeext conftest.$ac_ext
15502 LIBS=$ac_check_lib_save_LIBS
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15505 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15506 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15511 if test "$HAVE_GIF" = yes; then
15513 cat >>confdefs.h <<\_ACEOF
15514 #define LIBGIF -lungif
15517 ac_gif_lib_name="-lungif"
15521 if test "${HAVE_GIF}" = "yes"; then
15523 cat >>confdefs.h <<\_ACEOF
15530 if test "${HAVE_X11}" = "yes"; then
15533 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15534 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15535 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15536 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15537 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15538 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15539 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15540 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15541 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15542 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15544 if test "X${MISSING}" != X; then
15545 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15547 Maybe some development libraries/packages are missing?
15548 If you don't want to link with them give
15550 as options to configure
" >&5
15551 $as_echo "$as_me: error
: The following required libraries were not found
:
15553 Maybe some development libraries
/packages are missing?
15554 If you don
't want to link with them give
15556 as options to configure" >&2;}
15557 { (exit 1); exit 1; }; }
15561 ### Use -lgpm if available, unless `--with-gpm=no'.
15563 if test "${with_gpm}" != "no"; then
15564 if test "${ac_cv_header_gpm_h+set}" = set; then
15565 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15566 $as_echo_n "checking for gpm.h... " >&6; }
15567 if test "${ac_cv_header_gpm_h+set}" = set; then
15568 $as_echo_n "(cached) " >&6
15570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15571 $as_echo "$ac_cv_header_gpm_h" >&6; }
15573 # Is the header compilable?
15574 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15575 $as_echo_n "checking gpm.h usability... " >&6; }
15576 cat >conftest.
$ac_ext <<_ACEOF
15579 cat confdefs.h
>>conftest.
$ac_ext
15580 cat >>conftest.
$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 $ac_includes_default
15585 rm -f conftest.
$ac_objext
15586 if { (ac_try
="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15592 $as_echo "$ac_try_echo") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15595 grep -v '^ *+' conftest.er1 >conftest.err
15597 cat conftest.err >&5
15598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } && {
15600 test -z "$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 } && test -s conftest.$ac_objext; then
15603 ac_header_compiler=yes
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_compiler=no
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613 $as_echo "$ac_header_compiler" >&6; }
15615 # Is the header present?
15616 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15617 $as_echo_n "checking gpm.h presence... " >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15626 if { (ac_try="$ac_cpp conftest.$ac_ext"
15627 case "(($ac_try" in
15628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15629 *) ac_try_echo
=$ac_try;;
15631 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15632 $as_echo "$ac_try_echo") >&5
15633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15635 grep -v '^ *+' conftest.er1
>conftest.err
15637 cat conftest.err
>&5
15638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev
/null
&& {
15640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15643 ac_header_preproc
=yes
15645 $as_echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.
$ac_ext >&5
15648 ac_header_preproc
=no
15651 rm -f conftest.err conftest.
$ac_ext
15652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15653 $as_echo "$ac_header_preproc" >&6; }
15655 # So? What about this header?
15656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15658 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15659 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15660 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15661 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15662 ac_header_preproc
=yes
15665 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15666 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15667 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15668 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15669 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15670 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15671 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15672 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15673 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15674 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15675 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15676 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15680 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15681 $as_echo_n "checking for gpm.h... " >&6; }
15682 if test "${ac_cv_header_gpm_h+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15685 ac_cv_header_gpm_h
=$ac_header_preproc
15687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15688 $as_echo "$ac_cv_header_gpm_h" >&6; }
15691 if test $ac_cv_header_gpm_h = yes; then
15692 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15693 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15694 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15695 $as_echo_n "(cached) " >&6
15697 ac_check_lib_save_LIBS
=$LIBS
15699 cat >conftest.
$ac_ext <<_ACEOF
15702 cat confdefs.h
>>conftest.
$ac_ext
15703 cat >>conftest.
$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15716 return Gpm_Open ();
15721 rm -f conftest.
$ac_objext conftest
$ac_exeext
15722 if { (ac_try
="$ac_link"
15723 case "(($ac_try" in
15724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15728 $as_echo "$ac_try_echo") >&5
15729 (eval "$ac_link") 2>conftest.er1
15731 grep -v '^ *+' conftest.er1 >conftest.err
15733 cat conftest.err >&5
15734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } && {
15736 test -z "$ac_c_werror_flag" ||
15737 test ! -s conftest.err
15738 } && test -s conftest$ac_exeext && {
15739 test "$cross_compiling" = yes ||
15740 $as_test_x conftest$ac_exeext
15742 ac_cv_lib_gpm_Gpm_Open=yes
15744 $as_echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_cv_lib_gpm_Gpm_Open=no
15750 rm -rf conftest.dSYM
15751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15756 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15757 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15766 if test "${HAVE_GPM}" = "yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15774 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15775 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15776 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15777 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15778 $as_echo_n "(cached) " >&6
15780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15781 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15783 # Is the header compilable?
15784 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15785 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15786 cat >conftest.$ac_ext <<_ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 $ac_includes_default
15793 #include <malloc/malloc.h>
15795 rm -f conftest.$ac_objext
15796 if { (ac_try="$ac_compile"
15797 case "(($ac_try" in
15798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15799 *) ac_try_echo
=$ac_try;;
15801 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15802 $as_echo "$ac_try_echo") >&5
15803 (eval "$ac_compile") 2>conftest.er1
15805 grep -v '^ *+' conftest.er1
>conftest.err
15807 cat conftest.err
>&5
15808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest.
$ac_objext; then
15813 ac_header_compiler
=yes
15815 $as_echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.
$ac_ext >&5
15818 ac_header_compiler
=no
15821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15823 $as_echo "$ac_header_compiler" >&6; }
15825 # Is the header present?
15826 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15827 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15828 cat >conftest.
$ac_ext <<_ACEOF
15831 cat confdefs.h
>>conftest.
$ac_ext
15832 cat >>conftest.
$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <malloc/malloc.h>
15836 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15837 case "(($ac_try" in
15838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15842 $as_echo "$ac_try_echo") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null && {
15850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15853 ac_header_preproc=yes
15855 $as_echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_header_preproc=no
15861 rm -f conftest.err conftest.$ac_ext
15862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15863 $as_echo "$ac_header_preproc" >&6; }
15865 # So? What about this header?
15866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15868 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15869 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15870 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15871 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15872 ac_header_preproc=yes
15875 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15876 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15877 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15878 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15879 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15880 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15881 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15882 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15883 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15884 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15885 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15886 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15890 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15891 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15892 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15893 $as_echo_n "(cached) " >&6
15895 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15898 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15901 if test $ac_cv_header_malloc_malloc_h = yes; then
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_MALLOC_MALLOC_H 1
15911 ### Use NeXTstep API to implement GUI.
15912 if test "${HAVE_NS}" = "yes"; then
15914 cat >>confdefs.h <<\_ACEOF
15918 if test "${NS_IMPL_COCOA}" = "yes"; then
15920 cat >>confdefs.h <<\_ACEOF
15921 #define NS_IMPL_COCOA 1
15926 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15928 cat >>confdefs.h <<\_ACEOF
15929 #define NS_IMPL_GNUSTEP 1
15932 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15934 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15936 cat >>confdefs.h <<\_ACEOF
15937 #define NS_HAVE_NSINTEGER 1
15941 # We also have mouse menus.
15947 ### Use session management (-lSM -lICE) if available
15949 if test "${HAVE_X11}" = "yes"; then
15950 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15951 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15952 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15953 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15954 $as_echo_n "(cached) " >&6
15956 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15957 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15959 # Is the header compilable?
15960 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15961 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 $ac_includes_default
15969 #include <X11/SM/SMlib.h>
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15975 *) ac_try_echo
=$ac_try;;
15977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979 (eval "$ac_compile") 2>conftest.er1
15981 grep -v '^ *+' conftest.er1
>conftest.err
15983 cat conftest.err
>&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest.
$ac_objext; then
15989 ac_header_compiler
=yes
15991 $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.
$ac_ext >&5
15994 ac_header_compiler
=no
15997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15998 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15999 $as_echo "$ac_header_compiler" >&6; }
16001 # Is the header present?
16002 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16003 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16004 cat >conftest.
$ac_ext <<_ACEOF
16007 cat confdefs.h
>>conftest.
$ac_ext
16008 cat >>conftest.
$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <X11/SM/SMlib.h>
16012 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16013 case "(($ac_try" in
16014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16021 grep -v '^ *+' conftest.er1 >conftest.err
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } >/dev/null && {
16026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16029 ac_header_preproc=yes
16031 $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_header_preproc=no
16037 rm -f conftest.err conftest.$ac_ext
16038 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16039 $as_echo "$ac_header_preproc" >&6; }
16041 # So? What about this header?
16042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16044 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16045 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16046 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16047 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16048 ac_header_preproc=yes
16051 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16052 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16053 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16054 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16055 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16056 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16058 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16059 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16060 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16061 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16062 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16066 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16067 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16068 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16071 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16074 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16077 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16078 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16079 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16080 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16081 $as_echo_n "(cached) " >&6
16083 ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-lSM -lICE $LIBS"
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16098 char SmcOpenConnection ();
16102 return SmcOpenConnection ();
16107 rm -f conftest.$ac_objext conftest$ac_exeext
16108 if { (ac_try="$ac_link"
16109 case "(($ac_try" in
16110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16111 *) ac_try_echo
=$ac_try;;
16113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16114 $as_echo "$ac_try_echo") >&5
16115 (eval "$ac_link") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1
>conftest.err
16119 cat conftest.err
>&5
16120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest
$ac_exeext && {
16125 test "$cross_compiling" = yes ||
16126 $as_test_x conftest
$ac_exeext
16128 ac_cv_lib_SM_SmcOpenConnection
=yes
16130 $as_echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.
$ac_ext >&5
16133 ac_cv_lib_SM_SmcOpenConnection
=no
16136 rm -rf conftest.dSYM
16137 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16138 conftest
$ac_exeext conftest.
$ac_ext
16139 LIBS
=$ac_check_lib_save_LIBS
16141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16142 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16143 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16151 if test "${HAVE_X_SM}" = "yes"; then
16153 cat >>confdefs.h
<<\_ACEOF
16154 #define HAVE_X_SM 1
16159 *) LIBS
="-lSM -lICE $LIBS" ;;
16164 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16165 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16166 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16167 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16168 $as_echo_n "(cached) " >&6
16170 cat >conftest.
$ac_ext <<_ACEOF
16173 cat confdefs.h
>>conftest.
$ac_ext
16174 cat >>conftest.
$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16185 rm -f conftest.
$ac_objext conftest
$ac_exeext
16186 if { (ac_try
="$ac_link"
16187 case "(($ac_try" in
16188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16206 emacs_cv_netdb_declares_h_errno=yes
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 emacs_cv_netdb_declares_h_errno=no
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16219 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16220 if test $emacs_cv_netdb_declares_h_errno = yes; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_H_ERRNO 1
16228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16229 # for constant arguments. Useless!
16230 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16231 $as_echo_n "checking for working alloca.h... " >&6; }
16232 if test "${ac_cv_working_alloca_h+set}" = set; then
16233 $as_echo_n "(cached) " >&6
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 #include <alloca.h>
16245 char *p = (char *) alloca (2 * sizeof (int));
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16255 *) ac_try_echo
=$ac_try;;
16257 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16258 $as_echo "$ac_try_echo") >&5
16259 (eval "$ac_link") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1
>conftest.err
16263 cat conftest.err
>&5
16264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest
$ac_exeext && {
16269 test "$cross_compiling" = yes ||
16270 $as_test_x conftest
$ac_exeext
16272 ac_cv_working_alloca_h
=yes
16274 $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.
$ac_ext >&5
16277 ac_cv_working_alloca_h
=no
16280 rm -rf conftest.dSYM
16281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16282 conftest
$ac_exeext conftest.
$ac_ext
16284 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16285 $as_echo "$ac_cv_working_alloca_h" >&6; }
16286 if test $ac_cv_working_alloca_h = yes; then
16288 cat >>confdefs.h
<<\_ACEOF
16289 #define HAVE_ALLOCA_H 1
16294 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16295 $as_echo_n "checking for alloca... " >&6; }
16296 if test "${ac_cv_func_alloca_works+set}" = set; then
16297 $as_echo_n "(cached) " >&6
16299 cat >conftest.
$ac_ext <<_ACEOF
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 # define alloca __builtin_alloca
16309 # include <malloc.h>
16310 # define alloca _alloca
16312 # ifdef HAVE_ALLOCA_H
16313 # include <alloca.h>
16318 # ifndef alloca /* predefined by HP cc +Olibcalls */
16329 char *p = (char *) alloca (1);
16335 rm -f conftest.
$ac_objext conftest
$ac_exeext
16336 if { (ac_try
="$ac_link"
16337 case "(($ac_try" in
16338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16342 $as_echo "$ac_try_echo") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext && {
16353 test "$cross_compiling" = yes ||
16354 $as_test_x conftest$ac_exeext
16356 ac_cv_func_alloca_works=yes
16358 $as_echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_func_alloca_works=no
16364 rm -rf conftest.dSYM
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16368 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16369 $as_echo "$ac_cv_func_alloca_works" >&6; }
16371 if test $ac_cv_func_alloca_works = yes; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_ALLOCA 1
16378 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16379 # that cause trouble. Some versions do not even contain alloca or
16380 # contain a buggy version. If you still want to use their alloca,
16381 # use ar to extract alloca.o from them instead of compiling alloca.c.
16383 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16385 cat >>confdefs.h <<\_ACEOF
16390 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16391 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16392 if test "${ac_cv_os_cray+set}" = set; then
16393 $as_echo_n "(cached
) " >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #if defined CRAY && ! defined CRAY2
16408 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16409 $EGREP "webecray
" >/dev/null 2>&1; then
16417 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16418 $as_echo "$ac_cv_os_cray" >&6; }
16419 if test $ac_cv_os_cray = yes; then
16420 for ac_func in _getb67 GETB67 getb67; do
16421 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16422 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16423 $as_echo_n "checking
for $ac_func...
" >&6; }
16424 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16425 $as_echo_n "(cached
) " >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16435 #define $ac_func innocuous_$ac_func
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func (); below.
16439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440 <limits.h> exists even on freestanding compilers. */
16443 # include <limits.h>
16445 # include <assert.h>
16450 /* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined __stub_$ac_func || defined __stub___$ac_func
16467 return $ac_func ();
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16493 eval "$as_ac_var=yes"
16495 $as_echo "$as_me: failed program was
:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 eval "$as_ac_var=no
"
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16505 ac_res=`eval 'as_val=${'$as_ac_var'}
16506 $as_echo "$as_val"'`
16507 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16508 $as_echo "$ac_res" >&6; }
16509 if test `eval 'as_val=${'$as_ac_var'}
16510 $as_echo "$as_val"'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define CRAY_STACKSEG_END $ac_func
16522 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16523 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16524 if test "${ac_cv_c_stack_direction+set}" = set; then
16525 $as_echo_n "(cached
) " >&6
16527 if test "$cross_compiling" = yes; then
16528 ac_cv_c_stack_direction=0
16530 cat >conftest.$ac_ext <<_ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 $ac_includes_default
16538 find_stack_direction ()
16540 static char *addr = 0;
16545 return find_stack_direction ();
16548 return (&dummy > addr) ? 1 : -1;
16554 return find_stack_direction () < 0;
16557 rm -f conftest$ac_exeext
16558 if { (ac_try="$ac_link"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_link") 2>&5
16567 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16574 $as_echo "$ac_try_echo") >&5
16575 (eval "$ac_try") 2>&5
16577 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_c_stack_direction=1
16581 $as_echo "$as_me: program exited with status
$ac_status" >&5
16582 $as_echo "$as_me: failed program was
:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ( exit $ac_status )
16586 ac_cv_c_stack_direction=-1
16588 rm -rf conftest.dSYM
16589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16594 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16595 $as_echo "$ac_cv_c_stack_direction" >&6; }
16597 cat >>confdefs.h <<_ACEOF
16598 #define STACK_DIRECTION $ac_cv_c_stack_direction
16605 if test x"$ac_cv_func_alloca_works" != xyes; then
16606 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16607 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16608 { (exit 1); exit 1; }; }
16611 # fmod, logb, and frexp are found in -lm on most systems.
16612 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16614 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16615 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16616 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16617 $as_echo_n "(cached
) " >&6
16619 ac_check_lib_save_LIBS=$LIBS
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16628 /* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
16643 rm -f conftest.$ac_objext conftest$ac_exeext
16644 if { (ac_try="$ac_link"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651 (eval "$ac_link") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext && {
16661 test "$cross_compiling" = yes ||
16662 $as_test_x conftest$ac_exeext
16664 ac_cv_lib_m_sqrt=yes
16666 $as_echo "$as_me: failed program was
:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_lib_m_sqrt=no
16672 rm -rf conftest.dSYM
16673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16677 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16678 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16679 if test $ac_cv_lib_m_sqrt = yes; then
16680 cat >>confdefs.h <<_ACEOF
16681 #define HAVE_LIBM 1
16689 # Check for mail-locking functions in a "mail" library. Probably this should
16690 # have the same check as for liblockfile below.
16692 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16693 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16694 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16695 $as_echo_n "(cached
) " >&6
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lmail $LIBS"
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16716 return maillock ();
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext && {
16739 test "$cross_compiling" = yes ||
16740 $as_test_x conftest$ac_exeext
16742 ac_cv_lib_mail_maillock=yes
16744 $as_echo "$as_me: failed program was
:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_lib_mail_maillock=no
16750 rm -rf conftest.dSYM
16751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16752 conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16755 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16756 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16757 if test $ac_cv_lib_mail_maillock = yes; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_LIBMAIL 1
16762 LIBS="-lmail $LIBS"
16767 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16768 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16769 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16770 $as_echo_n "(cached
) " >&6
16772 ac_check_lib_save_LIBS=$LIBS
16773 LIBS="-llockfile $LIBS"
16774 cat >conftest.$ac_ext <<_ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16791 return maillock ();
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16803 $as_echo "$ac_try_echo") >&5
16804 (eval "$ac_link") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext && {
16814 test "$cross_compiling" = yes ||
16815 $as_test_x conftest$ac_exeext
16817 ac_cv_lib_lockfile_maillock=yes
16819 $as_echo "$as_me: failed program was
:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_cv_lib_lockfile_maillock=no
16825 rm -rf conftest.dSYM
16826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16827 conftest$ac_exeext conftest.$ac_ext
16828 LIBS=$ac_check_lib_save_LIBS
16830 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16831 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16832 if test $ac_cv_lib_lockfile_maillock = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define HAVE_LIBLOCKFILE 1
16837 LIBS="-llockfile $LIBS"
16841 # If we have the shared liblockfile, assume we must use it for mail
16842 # locking (e.g. Debian). If we couldn't link against liblockfile
16843 # (no liblockfile.a installed), ensure that we don't need to.
16844 if test "$ac_cv_lib_lockfile_maillock" = no; then
16845 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16846 set dummy liblockfile.so; ac_word=$2
16847 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16848 $as_echo_n "checking
for $ac_word...
" >&6; }
16849 if test "${ac_cv_prog_liblockfile+set}" = set; then
16850 $as_echo_n "(cached
) " >&6
16852 if test -n "$liblockfile"; then
16853 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16857 for as_dir in $as_dummy
16860 test -z "$as_dir" && as_dir=.
16861 for ac_exec_ext in '' $ac_executable_extensions; do
16862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16863 ac_cv_prog_liblockfile="yes"
16864 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16871 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16874 liblockfile=$ac_cv_prog_liblockfile
16875 if test -n "$liblockfile"; then
16876 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16877 $as_echo "$liblockfile" >&6; }
16879 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16880 $as_echo "no
" >&6; }
16884 if test $ac_cv_prog_liblockfile = yes; then
16885 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16886 This probably means that movemail could lose mail.
16887 There may be a \`development' package to
install containing liblockfile.
" >&5
16888 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16889 This probably means that movemail could lose mail.
16890 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16891 { (exit 1); exit 1; }; }
16896 for ac_func in touchlock
16898 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16899 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16900 $as_echo_n "checking
for $ac_func...
" >&6; }
16901 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16902 $as_echo_n "(cached
) " >&6
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define $ac_func innocuous_$ac_func
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16920 # include <limits.h>
16922 # include <assert.h>
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined __stub_$ac_func || defined __stub___$ac_func
16944 return $ac_func ();
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_link") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest$ac_exeext && {
16967 test "$cross_compiling" = yes ||
16968 $as_test_x conftest$ac_exeext
16970 eval "$as_ac_var=yes"
16972 $as_echo "$as_me: failed program was
:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 eval "$as_ac_var=no
"
16978 rm -rf conftest.dSYM
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980 conftest$ac_exeext conftest.$ac_ext
16982 ac_res=`eval 'as_val=${'$as_ac_var'}
16983 $as_echo "$as_val"'`
16984 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16985 $as_echo "$ac_res" >&6; }
16986 if test `eval 'as_val=${'$as_ac_var'}
16987 $as_echo "$as_val"'` = yes; then
16988 cat >>confdefs.h <<_ACEOF
16989 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16996 for ac_header in maillock.h
16998 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16999 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17000 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17001 $as_echo_n "checking
for $ac_header...
" >&6; }
17002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached
) " >&6
17005 ac_res=`eval 'as_val=${'$as_ac_Header'}
17006 $as_echo "$as_val"'`
17007 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17008 $as_echo "$ac_res" >&6; }
17010 # Is the header compilable?
17011 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17012 $as_echo_n "checking
$ac_header usability...
" >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_compile") 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17036 (exit $ac_status); } && {
17037 test -z "$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17039 } && test -s conftest.$ac_objext; then
17040 ac_header_compiler=yes
17042 $as_echo "$as_me: failed program was
:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_compiler=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17050 $as_echo "$ac_header_compiler" >&6; }
17052 # Is the header present?
17053 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17054 $as_echo_n "checking
$ac_header presence...
" >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17063 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17069 $as_echo "$ac_try_echo") >&5
17070 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17076 (exit $ac_status); } >/dev/null && {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17080 ac_header_preproc=yes
17082 $as_echo "$as_me: failed program was
:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_header_preproc=no
17088 rm -f conftest.err conftest.$ac_ext
17089 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17090 $as_echo "$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17095 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17096 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17099 ac_header_preproc=yes
17102 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17103 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17105 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17107 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17109 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17113 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17117 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17118 $as_echo_n "checking
for $ac_header...
" >&6; }
17119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17120 $as_echo_n "(cached
) " >&6
17122 eval "$as_ac_Header=\
$ac_header_preproc"
17124 ac_res=`eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'`
17126 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17130 if test `eval 'as_val=${'$as_ac_Header'}
17131 $as_echo "$as_val"'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17212 for ac_func in gethostname getdomainname dup2 \
17213 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17214 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17215 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17216 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17217 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17218 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17219 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17220 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17221 cfmakeraw cfsetspeed
17223 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17224 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17225 $as_echo_n "checking
for $ac_func...
" >&6; }
17226 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17227 $as_echo_n "(cached
) " >&6
17229 cat >conftest.$ac_ext <<_ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17237 #define $ac_func innocuous_$ac_func
17239 /* System header to define __stub macros and hopefully few prototypes,
17240 which can conflict with char $ac_func (); below.
17241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17242 <limits.h> exists even on freestanding compilers. */
17245 # include <limits.h>
17247 # include <assert.h>
17252 /* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined __stub_$ac_func || defined __stub___$ac_func
17269 return $ac_func ();
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (ac_try="$ac_link"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282 (eval "$ac_link") 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest$ac_exeext && {
17292 test "$cross_compiling" = yes ||
17293 $as_test_x conftest$ac_exeext
17295 eval "$as_ac_var=yes"
17297 $as_echo "$as_me: failed program was
:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 eval "$as_ac_var=no
"
17303 rm -rf conftest.dSYM
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305 conftest$ac_exeext conftest.$ac_ext
17307 ac_res=`eval 'as_val=${'$as_ac_var'}
17308 $as_echo "$as_val"'`
17309 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17310 $as_echo "$ac_res" >&6; }
17311 if test `eval 'as_val=${'$as_ac_var'}
17312 $as_echo "$as_val"'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17322 for ac_header in sys/un.h
17324 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17325 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17326 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17327 $as_echo_n "checking
for $ac_header...
" >&6; }
17328 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17329 $as_echo_n "(cached
) " >&6
17331 ac_res=`eval 'as_val=${'$as_ac_Header'}
17332 $as_echo "$as_val"'`
17333 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17334 $as_echo "$ac_res" >&6; }
17336 # Is the header compilable?
17337 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17338 $as_echo_n "checking
$ac_header usability...
" >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17346 #include <$ac_header>
17348 rm -f conftest.$ac_objext
17349 if { (ac_try="$ac_compile"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17366 ac_header_compiler=yes
17368 $as_echo "$as_me: failed program was
:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_compiler=no
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17376 $as_echo "$ac_header_compiler" >&6; }
17378 # Is the header present?
17379 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17380 $as_echo_n "checking
$ac_header presence...
" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <$ac_header>
17389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17395 $as_echo "$ac_try_echo") >&5
17396 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17402 (exit $ac_status); } >/dev/null && {
17403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17406 ac_header_preproc=yes
17408 $as_echo "$as_me: failed program was
:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_header_preproc=no
17414 rm -f conftest.err conftest.$ac_ext
17415 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17416 $as_echo "$ac_header_preproc" >&6; }
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17422 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17423 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17425 ac_header_preproc=yes
17428 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17429 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17430 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17431 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17432 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17433 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17434 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17435 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17436 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17438 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17439 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17443 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17444 $as_echo_n "checking
for $ac_header...
" >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17446 $as_echo_n "(cached
) " >&6
17448 eval "$as_ac_Header=\
$ac_header_preproc"
17450 ac_res=`eval 'as_val=${'$as_ac_Header'}
17451 $as_echo "$as_val"'`
17452 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17453 $as_echo "$ac_res" >&6; }
17456 if test `eval 'as_val=${'$as_ac_Header'}
17457 $as_echo "$as_val"'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17471 for ac_header in $ac_header_list
17473 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17474 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17475 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17476 $as_echo_n "checking
for $ac_header...
" >&6; }
17477 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17478 $as_echo_n "(cached
) " >&6
17480 ac_res=`eval 'as_val=${'$as_ac_Header'}
17481 $as_echo "$as_val"'`
17482 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17483 $as_echo "$ac_res" >&6; }
17485 # Is the header compilable?
17486 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17487 $as_echo_n "checking
$ac_header usability...
" >&6; }
17488 cat >conftest.$ac_ext <<_ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494 $ac_includes_default
17495 #include <$ac_header>
17497 rm -f conftest.$ac_objext
17498 if { (ac_try="$ac_compile"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest.$ac_objext; then
17515 ac_header_compiler=yes
17517 $as_echo "$as_me: failed program was
:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_header_compiler=no
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17525 $as_echo "$ac_header_compiler" >&6; }
17527 # Is the header present?
17528 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17529 $as_echo_n "checking
$ac_header presence...
" >&6; }
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 #include <$ac_header>
17538 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17544 $as_echo "$ac_try_echo") >&5
17545 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17551 (exit $ac_status); } >/dev/null && {
17552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17553 test ! -s conftest.err
17555 ac_header_preproc=yes
17557 $as_echo "$as_me: failed program was
:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_header_preproc=no
17563 rm -f conftest.err conftest.$ac_ext
17564 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17565 $as_echo "$ac_header_preproc" >&6; }
17567 # So? What about this header?
17568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17571 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17574 ac_header_preproc=yes
17577 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17578 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17579 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17580 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17581 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17582 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17583 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17584 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17585 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17587 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17588 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17592 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17593 $as_echo_n "checking
for $ac_header...
" >&6; }
17594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17595 $as_echo_n "(cached
) " >&6
17597 eval "$as_ac_Header=\
$ac_header_preproc"
17599 ac_res=`eval 'as_val=${'$as_ac_Header'}
17600 $as_echo "$as_val"'`
17601 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17602 $as_echo "$ac_res" >&6; }
17605 if test `eval 'as_val=${'$as_ac_Header'}
17606 $as_echo "$as_val"'` = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17623 for ac_func in $ac_func_list
17625 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17626 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17627 $as_echo_n "checking
for $ac_func...
" >&6; }
17628 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17629 $as_echo_n "(cached
) " >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17639 #define $ac_func innocuous_$ac_func
17641 /* System header to define __stub macros and hopefully few prototypes,
17642 which can conflict with char $ac_func (); below.
17643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17644 <limits.h> exists even on freestanding compilers. */
17647 # include <limits.h>
17649 # include <assert.h>
17654 /* Override any GCC internal prototype to avoid an error.
17655 Use char because int might match the return type of a GCC
17656 builtin and then its argument prototype would still apply. */
17661 /* The GNU C library defines this for functions which it implements
17662 to always fail with ENOSYS. Some functions are actually named
17663 something starting with __ and the normal name is an alias. */
17664 #if defined __stub_$ac_func || defined __stub___$ac_func
17671 return $ac_func ();
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (ac_try="$ac_link"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17683 $as_echo "$ac_try_echo") >&5
17684 (eval "$ac_link") 2>conftest.er1
17686 grep -v '^ *+' conftest.er1 >conftest.err
17688 cat conftest.err >&5
17689 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest$ac_exeext && {
17694 test "$cross_compiling" = yes ||
17695 $as_test_x conftest$ac_exeext
17697 eval "$as_ac_var=yes"
17699 $as_echo "$as_me: failed program was
:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 eval "$as_ac_var=no
"
17705 rm -rf conftest.dSYM
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17709 ac_res=`eval 'as_val=${'$as_ac_var'}
17710 $as_echo "$as_val"'`
17711 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17712 $as_echo "$ac_res" >&6; }
17713 if test `eval 'as_val=${'$as_ac_var'}
17714 $as_echo "$as_val"'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17738 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17739 $as_echo_n "checking
for working mktime...
" >&6; }
17740 if test "${ac_cv_func_working_mktime+set}" = set; then
17741 $as_echo_n "(cached
) " >&6
17743 if test "$cross_compiling" = yes; then
17744 ac_cv_func_working_mktime=no
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Test program from Paul Eggert and Tony Leneis. */
17753 #ifdef TIME_WITH_SYS_TIME
17754 # include <sys/time.h>
17757 # ifdef HAVE_SYS_TIME_H
17758 # include <sys/time.h>
17764 #include <limits.h>
17765 #include <stdlib.h>
17767 #ifdef HAVE_UNISTD_H
17768 # include <unistd.h>
17772 # define alarm(X) /* empty */
17775 /* Work around redefinition to rpl_putenv by other config tests. */
17778 static time_t time_t_max;
17779 static time_t time_t_min;
17781 /* Values we'll use to set the TZ environment variable. */
17782 static char *tz_strings[] = {
17783 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17784 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17786 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17788 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17789 Based on a problem report from Andreas Jaeger. */
17791 spring_forward_gap ()
17793 /* glibc (up to about 1998-10-07) failed this test. */
17796 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17797 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17798 on systems that don't support the Olson extension, or don't have the
17799 full zoneinfo tables installed. */
17800 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17809 return mktime (&tm) != (time_t) -1;
17817 return ! (lt = localtime (&now)) || mktime (lt) == now;
17824 return (mktime_test1 (now)
17825 && mktime_test1 ((time_t) (time_t_max - now))
17826 && mktime_test1 ((time_t) (time_t_min + now)));
17832 /* Based on code from Ariel Faigon. */
17842 return tm.tm_mon == 2 && tm.tm_mday == 31;
17851 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17852 now = mktime (&tm);
17853 if (now != (time_t) -1)
17855 struct tm *lt = localtime (&now);
17857 && lt->tm_year == tm.tm_year
17858 && lt->tm_mon == tm.tm_mon
17859 && lt->tm_mday == tm.tm_mday
17860 && lt->tm_hour == tm.tm_hour
17861 && lt->tm_min == tm.tm_min
17862 && lt->tm_sec == tm.tm_sec
17863 && lt->tm_yday == tm.tm_yday
17864 && lt->tm_wday == tm.tm_wday
17865 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17866 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17875 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17876 ignoring leap seconds. */
17877 unsigned long int answer = 2527315200UL;
17881 tm.tm_year = 2050 - 1900;
17884 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17887 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17888 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17889 on systems that don't support the Olson extension, or don't have the
17890 full zoneinfo tables installed. */
17891 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17895 /* Check that the result is either a failure, or close enough
17896 to the correct answer that we can assume the discrepancy is
17897 due to leap seconds. */
17898 return (t == (time_t) -1
17899 || (0 < t && answer - 120 <= t && t <= answer + 120));
17908 /* This test makes some buggy mktime implementations loop.
17909 Give up after 60 seconds; a mktime slower than that
17910 isn't worth using anyway. */
17915 t = (time_t_max << 1) + 1;
17916 if (t <= time_t_max)
17920 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17922 delta = time_t_max / 997; /* a suitable prime number */
17923 for (i = 0; i < N_STRINGS; i++)
17926 putenv (tz_strings[i]);
17928 for (t = 0; t <= time_t_max - delta; t += delta)
17929 if (! mktime_test (t))
17931 if (! (mktime_test ((time_t) 1)
17932 && mktime_test ((time_t) (60 * 60))
17933 && mktime_test ((time_t) (60 * 60 * 24))))
17936 for (j = 1; ; j <<= 1)
17937 if (! bigtime_test (j))
17939 else if (INT_MAX / 2 < j)
17941 if (! bigtime_test (INT_MAX))
17944 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17947 rm -f conftest$ac_exeext
17948 if { (ac_try="$ac_link"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955 (eval "$ac_link") 2>&5
17957 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17963 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965 (eval "$ac_try") 2>&5
17967 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_func_working_mktime=yes
17971 $as_echo "$as_me: program exited with status
$ac_status" >&5
17972 $as_echo "$as_me: failed program was
:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ( exit $ac_status )
17976 ac_cv_func_working_mktime=no
17978 rm -rf conftest.dSYM
17979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17984 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17985 $as_echo "$ac_cv_func_working_mktime" >&6; }
17986 if test $ac_cv_func_working_mktime = no; then
17987 case " $LIBOBJS " in
17988 *" mktime.
$ac_objext "* ) ;;
17989 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17995 if test "$ac_cv_func_working_mktime" = no; then
17997 cat >>confdefs.h <<\_ACEOF
17998 #define BROKEN_MKTIME 1
18003 ac_have_func=no # yes means we've found a way to get the load average.
18005 # Make sure getloadavg.c is where it belongs, at configure-time.
18006 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18007 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18008 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18009 { (exit 1); exit 1; }; }
18013 # Check for getloadavg, but be sure not to touch the cache variable.
18014 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18015 $as_echo_n "checking
for getloadavg...
" >&6; }
18016 if test "${ac_cv_func_getloadavg+set}" = set; then
18017 $as_echo_n "(cached
) " >&6
18019 cat >conftest.$ac_ext <<_ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define getloadavg innocuous_getloadavg
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char getloadavg (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18035 # include <limits.h>
18037 # include <assert.h>
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18048 char getloadavg ();
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_getloadavg || defined __stub___getloadavg
18059 return getloadavg ();
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18071 $as_echo "$ac_try_echo") >&5
18072 (eval "$ac_link") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest$ac_exeext && {
18082 test "$cross_compiling" = yes ||
18083 $as_test_x conftest$ac_exeext
18085 ac_cv_func_getloadavg=yes
18087 $as_echo "$as_me: failed program was
:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_func_getloadavg=no
18093 rm -rf conftest.dSYM
18094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18095 conftest$ac_exeext conftest.$ac_ext
18097 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18098 $as_echo "$ac_cv_func_getloadavg" >&6; }
18099 if test $ac_cv_func_getloadavg = yes; then
18104 ) && ac_have_func=yes
18106 # On HPUX9, an unprivileged user can get load averages through this function.
18108 for ac_func in pstat_getdynamic
18110 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18111 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18112 $as_echo_n "checking
for $ac_func...
" >&6; }
18113 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18114 $as_echo_n "(cached
) " >&6
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18124 #define $ac_func innocuous_$ac_func
18126 /* System header to define __stub macros and hopefully few prototypes,
18127 which can conflict with char $ac_func (); below.
18128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18129 <limits.h> exists even on freestanding compilers. */
18132 # include <limits.h>
18134 # include <assert.h>
18139 /* Override any GCC internal prototype to avoid an error.
18140 Use char because int might match the return type of a GCC
18141 builtin and then its argument prototype would still apply. */
18146 /* The GNU C library defines this for functions which it implements
18147 to always fail with ENOSYS. Some functions are actually named
18148 something starting with __ and the normal name is an alias. */
18149 #if defined __stub_$ac_func || defined __stub___$ac_func
18156 return $ac_func ();
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18168 $as_echo "$ac_try_echo") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext && {
18179 test "$cross_compiling" = yes ||
18180 $as_test_x conftest$ac_exeext
18182 eval "$as_ac_var=yes"
18184 $as_echo "$as_me: failed program was
:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 eval "$as_ac_var=no
"
18190 rm -rf conftest.dSYM
18191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18192 conftest$ac_exeext conftest.$ac_ext
18194 ac_res=`eval 'as_val=${'$as_ac_var'}
18195 $as_echo "$as_val"'`
18196 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18197 $as_echo "$ac_res" >&6; }
18198 if test `eval 'as_val=${'$as_ac_var'}
18199 $as_echo "$as_val"'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18208 # Solaris has libkstat which does not require root.
18210 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18211 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18212 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18213 $as_echo_n "(cached
) " >&6
18215 ac_check_lib_save_LIBS=$LIBS
18216 LIBS="-lkstat $LIBS"
18217 cat >conftest.$ac_ext <<_ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18230 char kstat_open ();
18234 return kstat_open ();
18239 rm -f conftest.$ac_objext conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18246 $as_echo "$ac_try_echo") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext && {
18257 test "$cross_compiling" = yes ||
18258 $as_test_x conftest$ac_exeext
18260 ac_cv_lib_kstat_kstat_open=yes
18262 $as_echo "$as_me: failed program was
:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_cv_lib_kstat_kstat_open=no
18268 rm -rf conftest.dSYM
18269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18273 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18274 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18275 if test $ac_cv_lib_kstat_kstat_open = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_LIBKSTAT 1
18280 LIBS="-lkstat $LIBS"
18284 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18286 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18287 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18288 # to get the right answer into the cache.
18289 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18290 if test $ac_have_func = no; then
18291 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18292 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18293 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18294 $as_echo_n "(cached
) " >&6
18296 ac_check_lib_save_LIBS=$LIBS
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18315 return elf_begin ();
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (ac_try="$ac_link"
18322 case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18327 $as_echo "$ac_try_echo") >&5
18328 (eval "$ac_link") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18334 (exit $ac_status); } && {
18335 test -z "$ac_c_werror_flag" ||
18336 test ! -s conftest.err
18337 } && test -s conftest$ac_exeext && {
18338 test "$cross_compiling" = yes ||
18339 $as_test_x conftest$ac_exeext
18341 ac_cv_lib_elf_elf_begin=yes
18343 $as_echo "$as_me: failed program was
:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_elf_elf_begin=no
18349 rm -rf conftest.dSYM
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18355 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18356 if test $ac_cv_lib_elf_elf_begin = yes; then
18361 if test $ac_have_func = no; then
18362 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18363 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18364 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18365 $as_echo_n "(cached
) " >&6
18367 ac_check_lib_save_LIBS=$LIBS
18369 cat >conftest.$ac_ext <<_ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18376 /* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18386 return kvm_open ();
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_link") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest$ac_exeext && {
18409 test "$cross_compiling" = yes ||
18410 $as_test_x conftest$ac_exeext
18412 ac_cv_lib_kvm_kvm_open=yes
18414 $as_echo "$as_me: failed program was
:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 ac_cv_lib_kvm_kvm_open=no
18420 rm -rf conftest.dSYM
18421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18425 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18426 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18427 if test $ac_cv_lib_kvm_kvm_open = yes; then
18431 # Check for the 4.4BSD definition of getloadavg.
18432 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18433 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18434 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18435 $as_echo_n "(cached
) " >&6
18437 ac_check_lib_save_LIBS=$LIBS
18438 LIBS="-lutil $LIBS"
18439 cat >conftest.$ac_ext <<_ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18446 /* Override any GCC internal prototype to avoid an error.
18447 Use char because int might match the return type of a GCC
18448 builtin and then its argument prototype would still apply. */
18452 char getloadavg ();
18456 return getloadavg ();
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18468 $as_echo "$ac_try_echo") >&5
18469 (eval "$ac_link") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest$ac_exeext && {
18479 test "$cross_compiling" = yes ||
18480 $as_test_x conftest$ac_exeext
18482 ac_cv_lib_util_getloadavg=yes
18484 $as_echo "$as_me: failed program was
:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_cv_lib_util_getloadavg=no
18490 rm -rf conftest.dSYM
18491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18496 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18497 if test $ac_cv_lib_util_getloadavg = yes; then
18498 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18503 if test $ac_have_func = no; then
18504 # There is a commonly available library for RS/6000 AIX.
18505 # Since it is not a standard part of AIX, it might be installed locally.
18506 ac_getloadavg_LIBS=$LIBS
18507 LIBS="-L/usr
/local
/lib
$LIBS"
18508 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18509 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18510 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18511 $as_echo_n "(cached
) " >&6
18513 ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lgetloadavg $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18528 char getloadavg ();
18532 return getloadavg ();
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18544 $as_echo "$ac_try_echo") >&5
18545 (eval "$ac_link") 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest$ac_exeext && {
18555 test "$cross_compiling" = yes ||
18556 $as_test_x conftest$ac_exeext
18558 ac_cv_lib_getloadavg_getloadavg=yes
18560 $as_echo "$as_me: failed program was
:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_lib_getloadavg_getloadavg=no
18566 rm -rf conftest.dSYM
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18572 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18573 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18574 LIBS="-lgetloadavg $LIBS"
18576 LIBS=$ac_getloadavg_LIBS
18581 # Make sure it is really in the library, if we think we found it,
18582 # otherwise set up the replacement function.
18584 for ac_func in getloadavg
18586 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18587 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18588 $as_echo_n "checking
for $ac_func...
" >&6; }
18589 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18590 $as_echo_n "(cached
) " >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18600 #define $ac_func innocuous_$ac_func
18602 /* System header to define __stub macros and hopefully few prototypes,
18603 which can conflict with char $ac_func (); below.
18604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 <limits.h> exists even on freestanding compilers. */
18608 # include <limits.h>
18610 # include <assert.h>
18615 /* Override any GCC internal prototype to avoid an error.
18616 Use char because int might match the return type of a GCC
18617 builtin and then its argument prototype would still apply. */
18622 /* The GNU C library defines this for functions which it implements
18623 to always fail with ENOSYS. Some functions are actually named
18624 something starting with __ and the normal name is an alias. */
18625 #if defined __stub_$ac_func || defined __stub___$ac_func
18632 return $ac_func ();
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645 (eval "$ac_link") 2>conftest.er1
18647 grep -v '^ *+' conftest.er1 >conftest.err
18649 cat conftest.err >&5
18650 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest$ac_exeext && {
18655 test "$cross_compiling" = yes ||
18656 $as_test_x conftest$ac_exeext
18658 eval "$as_ac_var=yes"
18660 $as_echo "$as_me: failed program was
:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no
"
18666 rm -rf conftest.dSYM
18667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18668 conftest$ac_exeext conftest.$ac_ext
18670 ac_res=`eval 'as_val=${'$as_ac_var'}
18671 $as_echo "$as_val"'`
18672 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18673 $as_echo "$ac_res" >&6; }
18674 if test `eval 'as_val=${'$as_ac_var'}
18675 $as_echo "$as_val"'` = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18681 case " $LIBOBJS " in
18682 *" getloadavg.
$ac_objext "* ) ;;
18683 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18688 cat >>confdefs.h <<\_ACEOF
18689 #define C_GETLOADAVG 1
18692 # Figure out what our getloadavg.c needs.
18694 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18695 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18696 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18697 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18698 $as_echo_n "(cached
) " >&6
18700 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18701 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18703 # Is the header compilable?
18704 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18705 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 $ac_includes_default
18713 #include <sys/dg_sys_info.h>
18715 rm -f conftest.$ac_objext
18716 if { (ac_try="$ac_compile"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723 (eval "$ac_compile") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest.$ac_objext; then
18733 ac_header_compiler=yes
18735 $as_echo "$as_me: failed program was
:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_header_compiler=no
18741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18742 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18743 $as_echo "$ac_header_compiler" >&6; }
18745 # Is the header present?
18746 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18747 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 #include <sys/dg_sys_info.h>
18756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18769 (exit $ac_status); } >/dev/null && {
18770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18773 ac_header_preproc=yes
18775 $as_echo "$as_me: failed program was
:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_header_preproc=no
18781 rm -f conftest.err conftest.$ac_ext
18782 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18783 $as_echo "$ac_header_preproc" >&6; }
18785 # So? What about this header?
18786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18788 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18789 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18790 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18791 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18792 ac_header_preproc=yes
18795 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18796 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18797 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18798 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18799 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18800 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18801 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18802 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18803 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18804 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18805 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18806 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18810 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18811 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18812 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18813 $as_echo_n "(cached
) " >&6
18815 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18818 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18821 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18824 cat >>confdefs.h <<\_ACEOF
18829 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18830 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18831 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18832 $as_echo_n "(cached
) " >&6
18834 ac_check_lib_save_LIBS=$LIBS
18836 cat >conftest.$ac_ext <<_ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18849 char dg_sys_info ();
18853 return dg_sys_info ();
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18864 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_link") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest$ac_exeext && {
18876 test "$cross_compiling" = yes ||
18877 $as_test_x conftest$ac_exeext
18879 ac_cv_lib_dgc_dg_sys_info=yes
18881 $as_echo "$as_me: failed program was
:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_dgc_dg_sys_info=no
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18893 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18894 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define HAVE_LIBDGC 1
18907 if test "${ac_cv_header_locale_h+set}" = set; then
18908 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18909 $as_echo_n "checking
for locale.h...
" >&6; }
18910 if test "${ac_cv_header_locale_h+set}" = set; then
18911 $as_echo_n "(cached
) " >&6
18913 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18914 $as_echo "$ac_cv_header_locale_h" >&6; }
18916 # Is the header compilable?
18917 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
18918 $as_echo_n "checking locale.h usability...
" >&6; }
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 $ac_includes_default
18926 #include <locale.h>
18928 rm -f conftest.$ac_objext
18929 if { (ac_try="$ac_compile"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18935 $as_echo "$ac_try_echo") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18938 grep -v '^ *+' conftest.er1 >conftest.err
18940 cat conftest.err >&5
18941 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18942 (exit $ac_status); } && {
18943 test -z "$ac_c_werror_flag" ||
18944 test ! -s conftest.err
18945 } && test -s conftest.$ac_objext; then
18946 ac_header_compiler=yes
18948 $as_echo "$as_me: failed program was
:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_header_compiler=no
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18956 $as_echo "$ac_header_compiler" >&6; }
18958 # Is the header present?
18959 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
18960 $as_echo_n "checking locale.h presence...
" >&6; }
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <locale.h>
18969 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18975 $as_echo "$ac_try_echo") >&5
18976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18982 (exit $ac_status); } >/dev/null && {
18983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18986 ac_header_preproc=yes
18988 $as_echo "$as_me: failed program was
:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_header_preproc=no
18994 rm -f conftest.err conftest.$ac_ext
18995 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18996 $as_echo "$ac_header_preproc" >&6; }
18998 # So? What about this header?
18999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19001 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19002 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19003 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19004 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19005 ac_header_preproc=yes
19008 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19009 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19010 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19011 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19012 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19013 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19014 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19015 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19016 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19017 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19018 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19019 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19023 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19024 $as_echo_n "checking
for locale.h...
" >&6; }
19025 if test "${ac_cv_header_locale_h+set}" = set; then
19026 $as_echo_n "(cached
) " >&6
19028 ac_cv_header_locale_h=$ac_header_preproc
19030 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19031 $as_echo "$ac_cv_header_locale_h" >&6; }
19037 for ac_func in setlocale
19039 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19040 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19041 $as_echo_n "checking
for $ac_func...
" >&6; }
19042 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19043 $as_echo_n "(cached
) " >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19053 #define $ac_func innocuous_$ac_func
19055 /* System header to define __stub macros and hopefully few prototypes,
19056 which can conflict with char $ac_func (); below.
19057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19058 <limits.h> exists even on freestanding compilers. */
19061 # include <limits.h>
19063 # include <assert.h>
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19075 /* The GNU C library defines this for functions which it implements
19076 to always fail with ENOSYS. Some functions are actually named
19077 something starting with __ and the normal name is an alias. */
19078 #if defined __stub_$ac_func || defined __stub___$ac_func
19085 return $ac_func ();
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (ac_try="$ac_link"
19092 case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19097 $as_echo "$ac_try_echo") >&5
19098 (eval "$ac_link") 2>conftest.er1
19100 grep -v '^ *+' conftest.er1 >conftest.err
19102 cat conftest.err >&5
19103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19104 (exit $ac_status); } && {
19105 test -z "$ac_c_werror_flag" ||
19106 test ! -s conftest.err
19107 } && test -s conftest$ac_exeext && {
19108 test "$cross_compiling" = yes ||
19109 $as_test_x conftest$ac_exeext
19111 eval "$as_ac_var=yes"
19113 $as_echo "$as_me: failed program was
:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 eval "$as_ac_var=no
"
19119 rm -rf conftest.dSYM
19120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19121 conftest$ac_exeext conftest.$ac_ext
19123 ac_res=`eval 'as_val=${'$as_ac_var'}
19124 $as_echo "$as_val"'`
19125 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19126 $as_echo "$ac_res" >&6; }
19127 if test `eval 'as_val=${'$as_ac_var'}
19128 $as_echo "$as_val"'` = yes; then
19129 cat >>confdefs.h <<_ACEOF
19130 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19137 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19138 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19139 # Irix 4.0.5F has the header but not the library.
19140 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19143 cat >>confdefs.h <<\_ACEOF
19149 if test $ac_have_func = no; then
19150 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19151 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19152 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19153 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19154 $as_echo_n "(cached
) " >&6
19156 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19157 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19159 # Is the header compilable?
19160 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19161 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 $ac_includes_default
19169 #include <inq_stats/cpustats.h>
19171 rm -f conftest.$ac_objext
19172 if { (ac_try="$ac_compile"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19178 $as_echo "$ac_try_echo") >&5
19179 (eval "$ac_compile") 2>conftest.er1
19181 grep -v '^ *+' conftest.er1 >conftest.err
19183 cat conftest.err >&5
19184 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest.$ac_objext; then
19189 ac_header_compiler=yes
19191 $as_echo "$as_me: failed program was
:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_header_compiler=no
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19199 $as_echo "$ac_header_compiler" >&6; }
19201 # Is the header present?
19202 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19203 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <inq_stats/cpustats.h>
19212 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19225 (exit $ac_status); } >/dev/null && {
19226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19229 ac_header_preproc=yes
19231 $as_echo "$as_me: failed program was
:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_header_preproc=no
19237 rm -f conftest.err conftest.$ac_ext
19238 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19239 $as_echo "$ac_header_preproc" >&6; }
19241 # So? What about this header?
19242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19244 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19245 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19246 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19247 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19248 ac_header_preproc=yes
19251 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19252 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19253 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19254 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19255 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19256 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19257 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19258 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19259 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19260 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19261 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19262 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19266 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19267 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19268 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19269 $as_echo_n "(cached
) " >&6
19271 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19273 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19274 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19277 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19280 cat >>confdefs.h <<\_ACEOF
19285 cat >>confdefs.h <<\_ACEOF
19294 if test $ac_have_func = no; then
19295 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19296 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19297 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19298 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19299 $as_echo_n "(cached
) " >&6
19301 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19302 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19304 # Is the header compilable?
19305 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19306 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 $ac_includes_default
19314 #include <sys/cpustats.h>
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_header_compiler=yes
19336 $as_echo "$as_me: failed program was
:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_header_compiler=no
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19344 $as_echo "$ac_header_compiler" >&6; }
19346 # Is the header present?
19347 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19348 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19349 cat >conftest.$ac_ext <<_ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 #include <sys/cpustats.h>
19357 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19363 $as_echo "$ac_try_echo") >&5
19364 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19370 (exit $ac_status); } >/dev/null && {
19371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19374 ac_header_preproc=yes
19376 $as_echo "$as_me: failed program was
:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_header_preproc=no
19382 rm -f conftest.err conftest.$ac_ext
19383 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19384 $as_echo "$ac_header_preproc" >&6; }
19386 # So? What about this header?
19387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19389 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19390 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19391 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19392 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19393 ac_header_preproc=yes
19396 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19397 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19398 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19399 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19400 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19401 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19402 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19403 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19404 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19405 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19406 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19407 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19411 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19412 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19413 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19414 $as_echo_n "(cached
) " >&6
19416 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19418 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19419 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19422 if test $ac_cv_header_sys_cpustats_h = yes; then
19423 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19432 if test $ac_have_func = no; then
19434 for ac_header in mach/mach.h
19436 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19438 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19439 $as_echo_n "checking
for $ac_header...
" >&6; }
19440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19441 $as_echo_n "(cached
) " >&6
19443 ac_res=`eval 'as_val=${'$as_ac_Header'}
19444 $as_echo "$as_val"'`
19445 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19446 $as_echo "$ac_res" >&6; }
19448 # Is the header compilable?
19449 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19450 $as_echo_n "checking
$ac_header usability...
" >&6; }
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 #include <$ac_header>
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_header_compiler=yes
19480 $as_echo "$as_me: failed program was
:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_header_compiler=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19488 $as_echo "$ac_header_compiler" >&6; }
19490 # Is the header present?
19491 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19492 $as_echo_n "checking
$ac_header presence...
" >&6; }
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 #include <$ac_header>
19501 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19506 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19507 $as_echo "$ac_try_echo") >&5
19508 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19510 grep -v '^ *+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19514 (exit $ac_status); } >/dev/null && {
19515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19518 ac_header_preproc=yes
19520 $as_echo "$as_me: failed program was
:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_header_preproc=no
19526 rm -f conftest.err conftest.$ac_ext
19527 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19528 $as_echo "$ac_header_preproc" >&6; }
19530 # So? What about this header?
19531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19533 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19534 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19537 ac_header_preproc=yes
19540 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19541 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19542 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19543 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19544 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19545 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19547 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19551 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19555 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19556 $as_echo_n "checking
for $ac_header...
" >&6; }
19557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19558 $as_echo_n "(cached
) " >&6
19560 eval "$as_ac_Header=\
$ac_header_preproc"
19562 ac_res=`eval 'as_val=${'$as_ac_Header'}
19563 $as_echo "$as_val"'`
19564 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19565 $as_echo "$ac_res" >&6; }
19568 if test `eval 'as_val=${'$as_ac_Header'}
19569 $as_echo "$as_val"'` = yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19581 for ac_header in nlist.h
19583 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19584 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19585 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19586 $as_echo_n "checking
for $ac_header...
" >&6; }
19587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19588 $as_echo_n "(cached
) " >&6
19590 ac_res=`eval 'as_val=${'$as_ac_Header'}
19591 $as_echo "$as_val"'`
19592 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19593 $as_echo "$ac_res" >&6; }
19595 # Is the header compilable?
19596 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19597 $as_echo_n "checking
$ac_header usability...
" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 $ac_includes_default
19605 #include <$ac_header>
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19614 $as_echo "$ac_try_echo") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19625 ac_header_compiler=yes
19627 $as_echo "$as_me: failed program was
:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_header_compiler=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19635 $as_echo "$ac_header_compiler" >&6; }
19637 # Is the header present?
19638 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19639 $as_echo_n "checking
$ac_header presence...
" >&6; }
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 #include <$ac_header>
19648 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19653 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19657 grep -v '^ *+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19661 (exit $ac_status); } >/dev/null && {
19662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19665 ac_header_preproc=yes
19667 $as_echo "$as_me: failed program was
:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_header_preproc=no
19673 rm -f conftest.err conftest.$ac_ext
19674 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19675 $as_echo "$ac_header_preproc" >&6; }
19677 # So? What about this header?
19678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19681 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19684 ac_header_preproc=yes
19687 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19688 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19689 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19690 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19692 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19693 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19694 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19695 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19698 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19702 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19703 $as_echo_n "checking
for $ac_header...
" >&6; }
19704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19705 $as_echo_n "(cached
) " >&6
19707 eval "$as_ac_Header=\
$ac_header_preproc"
19709 ac_res=`eval 'as_val=${'$as_ac_Header'}
19710 $as_echo "$as_val"'`
19711 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19712 $as_echo "$ac_res" >&6; }
19715 if test `eval 'as_val=${'$as_ac_Header'}
19716 $as_echo "$as_val"'` = yes; then
19717 cat >>confdefs.h <<_ACEOF
19718 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19720 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19721 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19722 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19723 $as_echo_n "(cached
) " >&6
19725 cat >conftest.$ac_ext <<_ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19736 static struct nlist ac_aggr;
19737 if (ac_aggr.n_un.n_name)
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19761 ac_cv_member_struct_nlist_n_un_n_name=yes
19763 $as_echo "$as_me: failed program was
:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19777 static struct nlist ac_aggr;
19778 if (sizeof ac_aggr.n_un.n_name)
19784 rm -f conftest.$ac_objext
19785 if { (ac_try="$ac_compile"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19791 $as_echo "$ac_try_echo") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19794 grep -v '^ *+' conftest.er1 >conftest.err
19796 cat conftest.err >&5
19797 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19798 (exit $ac_status); } && {
19799 test -z "$ac_c_werror_flag" ||
19800 test ! -s conftest.err
19801 } && test -s conftest.$ac_objext; then
19802 ac_cv_member_struct_nlist_n_un_n_name=yes
19804 $as_echo "$as_me: failed program was
:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_member_struct_nlist_n_un_n_name=no
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19816 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19817 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19824 cat >>confdefs.h <<\_ACEOF
19825 #define NLIST_NAME_UNION 1
19839 # Some definitions of getloadavg require that the program be installed setgid.
19840 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19841 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19842 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19843 $as_echo_n "(cached
) " >&6
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19852 #ifdef LDAV_PRIVILEGED
19853 Yowza Am I SETGID yet
19856 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19857 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19858 ac_cv_func_getloadavg_setgid=yes
19860 ac_cv_func_getloadavg_setgid=no
19865 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19866 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19867 if test $ac_cv_func_getloadavg_setgid = yes; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define GETLOADAVG_PRIVILEGED 1
19878 if test $ac_cv_func_getloadavg_setgid = yes; then
19879 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19880 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19881 if test "${ac_cv_group_kmem+set}" = set; then
19882 $as_echo_n "(cached
) " >&6
19884 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19885 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19886 # If we got an error (system does not support symlinks), try without -L.
19887 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19888 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19889 | sed -ne 's/[ ][ ]*/ /g;
19890 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19894 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19895 $as_echo "$ac_cv_group_kmem" >&6; }
19896 KMEM_GROUP=$ac_cv_group_kmem
19898 if test "x
$ac_save_LIBS" = x; then
19899 GETLOADAVG_LIBS=$LIBS
19901 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19907 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19908 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19909 if test "${ac_cv_sys_largefile_source+set}" = set; then
19910 $as_echo_n "(cached
) " >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <sys/types.h> /* for off_t */
19924 int (*fp) (FILE *, off_t, int) = fseeko;
19925 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938 (eval "$ac_link") 2>conftest.er1
19940 grep -v '^ *+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest$ac_exeext && {
19948 test "$cross_compiling" = yes ||
19949 $as_test_x conftest$ac_exeext
19951 ac_cv_sys_largefile_source=no; break
19953 $as_echo "$as_me: failed program was
:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19959 rm -rf conftest.dSYM
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #define _LARGEFILE_SOURCE 1
19969 #include <sys/types.h> /* for off_t */
19974 int (*fp) (FILE *, off_t, int) = fseeko;
19975 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
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_link") 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_exeext && {
19998 test "$cross_compiling" = yes ||
19999 $as_test_x conftest$ac_exeext
20001 ac_cv_sys_largefile_source=1; break
20003 $as_echo "$as_me: failed program was
:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20012 ac_cv_sys_largefile_source=unknown
20016 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20017 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20018 case $ac_cv_sys_largefile_source in #(
20021 cat >>confdefs.h <<_ACEOF
20022 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20028 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20029 # in glibc 2.1.3, but that breaks too many other things.
20030 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20031 if test $ac_cv_sys_largefile_source != unknown; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_FSEEKO 1
20040 # Configure getopt.
20041 # getopt.m4 serial 10
20043 # The getopt module assume you want GNU getopt, with getopt_long etc,
20044 # rather than vanilla POSIX getopt. This means your your code should
20045 # always include <getopt.h> for the getopt prototypes.
20057 # Prerequisites of lib/getopt*.
20064 for ac_header in getopt.h
20066 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20067 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20068 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20069 $as_echo_n "checking
for $ac_header...
" >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20071 $as_echo_n "(cached
) " >&6
20073 ac_res=`eval 'as_val=${'$as_ac_Header'}
20074 $as_echo "$as_val"'`
20075 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20076 $as_echo "$ac_res" >&6; }
20078 # Is the header compilable?
20079 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20080 $as_echo_n "checking
$ac_header usability...
" >&6; }
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 $ac_includes_default
20088 #include <$ac_header>
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20097 $as_echo "$ac_try_echo") >&5
20098 (eval "$ac_compile") 2>conftest.er1
20100 grep -v '^ *+' conftest.er1 >conftest.err
20102 cat conftest.err >&5
20103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20104 (exit $ac_status); } && {
20105 test -z "$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 } && test -s conftest.$ac_objext; then
20108 ac_header_compiler=yes
20110 $as_echo "$as_me: failed program was
:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_header_compiler=no
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20118 $as_echo "$ac_header_compiler" >&6; }
20120 # Is the header present?
20121 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20122 $as_echo_n "checking
$ac_header presence...
" >&6; }
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 #include <$ac_header>
20131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20144 (exit $ac_status); } >/dev/null && {
20145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20148 ac_header_preproc=yes
20150 $as_echo "$as_me: failed program was
:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_preproc=no
20156 rm -f conftest.err conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20158 $as_echo "$ac_header_preproc" >&6; }
20160 # So? What about this header?
20161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20163 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20164 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20165 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20167 ac_header_preproc=yes
20170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20171 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20172 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20173 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20174 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20175 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20177 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20178 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20180 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20181 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20185 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20186 $as_echo_n "checking
for $ac_header...
" >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20188 $as_echo_n "(cached
) " >&6
20190 eval "$as_ac_Header=\
$ac_header_preproc"
20192 ac_res=`eval 'as_val=${'$as_ac_Header'}
20193 $as_echo "$as_val"'`
20194 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20195 $as_echo "$ac_res" >&6; }
20198 if test `eval 'as_val=${'$as_ac_Header'}
20199 $as_echo "$as_val"'` = yes; then
20200 cat >>confdefs.h <<_ACEOF
20201 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20210 if test -z "$GETOPT_H"; then
20212 for ac_func in getopt_long_only
20214 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20215 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20216 $as_echo_n "checking
for $ac_func...
" >&6; }
20217 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20218 $as_echo_n "(cached
) " >&6
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20228 #define $ac_func innocuous_$ac_func
20230 /* System header to define __stub macros and hopefully few prototypes,
20231 which can conflict with char $ac_func (); below.
20232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233 <limits.h> exists even on freestanding compilers. */
20236 # include <limits.h>
20238 # include <assert.h>
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20250 /* The GNU C library defines this for functions which it implements
20251 to always fail with ENOSYS. Some functions are actually named
20252 something starting with __ and the normal name is an alias. */
20253 #if defined __stub_$ac_func || defined __stub___$ac_func
20260 return $ac_func ();
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20271 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20272 $as_echo "$ac_try_echo") >&5
20273 (eval "$ac_link") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext && {
20283 test "$cross_compiling" = yes ||
20284 $as_test_x conftest$ac_exeext
20286 eval "$as_ac_var=yes"
20288 $as_echo "$as_me: failed program was
:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 eval "$as_ac_var=no
"
20294 rm -rf conftest.dSYM
20295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20296 conftest$ac_exeext conftest.$ac_ext
20298 ac_res=`eval 'as_val=${'$as_ac_var'}
20299 $as_echo "$as_val"'`
20300 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20301 $as_echo "$ac_res" >&6; }
20302 if test `eval 'as_val=${'$as_ac_var'}
20303 $as_echo "$as_val"'` = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20315 if test -z "$GETOPT_H"; then
20316 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20317 $as_echo_n "checking whether optreset is declared...
" >&6; }
20318 if test "${ac_cv_have_decl_optreset+set}" = set; then
20319 $as_echo_n "(cached
) " >&6
20321 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 #include <getopt.h>
20340 rm -f conftest.$ac_objext
20341 if { (ac_try="$ac_compile"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20347 $as_echo "$ac_try_echo") >&5
20348 (eval "$ac_compile") 2>conftest.er1
20350 grep -v '^ *+' conftest.er1 >conftest.err
20352 cat conftest.err >&5
20353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest.$ac_objext; then
20358 ac_cv_have_decl_optreset=yes
20360 $as_echo "$as_me: failed program was
:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_cv_have_decl_optreset=no
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20369 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20370 if test $ac_cv_have_decl_optreset = yes; then
20376 if test -z "$GETOPT_H"; then
20377 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20378 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20379 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20380 $as_echo_n "(cached
) " >&6
20382 if test "$cross_compiling" = yes; then
20383 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20384 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20385 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20386 $as_echo_n "(cached
) " >&6
20388 cat >conftest.$ac_ext <<_ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <getopt.h>
20399 #ifndef getopt_clip
20400 (void) getopt_clip;
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20414 $as_echo "$ac_try_echo") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_cv_have_decl_getopt_clip=yes
20427 $as_echo "$as_me: failed program was
:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_have_decl_getopt_clip=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20436 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20437 if test $ac_cv_have_decl_getopt_clip = yes; then
20438 gl_cv_func_gnu_getopt=no
20440 gl_cv_func_gnu_getopt=yes
20444 cat >conftest.$ac_ext <<_ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 #include <getopt.h>
20456 myargv[0] = "conftest
";
20459 return getopt (2, myargv, "+a
") != '?';
20465 rm -f conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20472 $as_echo "$ac_try_echo") >&5
20473 (eval "$ac_link") 2>&5
20475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20477 { (case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20482 $as_echo "$ac_try_echo") >&5
20483 (eval "$ac_try") 2>&5
20485 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 gl_cv_func_gnu_getopt=yes
20489 $as_echo "$as_me: program exited with status
$ac_status" >&5
20490 $as_echo "$as_me: failed program was
:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ( exit $ac_status )
20494 gl_cv_func_gnu_getopt=no
20496 rm -rf conftest.dSYM
20497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20502 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20503 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20504 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20511 if test -n "$GETOPT_H"; then
20516 cat >>confdefs.h <<\_ACEOF
20517 #define __GETOPT_PREFIX rpl_
20523 GETOPTOBJS='getopt.o getopt1.o'
20530 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20531 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20532 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20533 $as_echo_n "(cached
) " >&6
20535 # Use it with a single arg.
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20551 rm -f conftest.$ac_objext
20552 if { (ac_try="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_compile") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.$ac_objext; then
20569 ac_cv_func_getpgrp_void=no
20571 $as_echo "$as_me: failed program was
:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ac_cv_func_getpgrp_void=yes
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20581 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20582 if test $ac_cv_func_getpgrp_void = yes; then
20584 cat >>confdefs.h <<\_ACEOF
20585 #define GETPGRP_VOID 1
20592 for ac_func in strftime
20594 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20595 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20596 $as_echo_n "checking
for $ac_func...
" >&6; }
20597 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20598 $as_echo_n "(cached
) " >&6
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20608 #define $ac_func innocuous_$ac_func
20610 /* System header to define __stub macros and hopefully few prototypes,
20611 which can conflict with char $ac_func (); below.
20612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20613 <limits.h> exists even on freestanding compilers. */
20616 # include <limits.h>
20618 # include <assert.h>
20623 /* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
20630 /* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633 #if defined __stub_$ac_func || defined __stub___$ac_func
20640 return $ac_func ();
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (ac_try="$ac_link"
20647 case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20652 $as_echo "$ac_try_echo") >&5
20653 (eval "$ac_link") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest$ac_exeext && {
20663 test "$cross_compiling" = yes ||
20664 $as_test_x conftest$ac_exeext
20666 eval "$as_ac_var=yes"
20668 $as_echo "$as_me: failed program was
:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 eval "$as_ac_var=no
"
20674 rm -rf conftest.dSYM
20675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20676 conftest$ac_exeext conftest.$ac_ext
20678 ac_res=`eval 'as_val=${'$as_ac_var'}
20679 $as_echo "$as_val"'`
20680 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20681 $as_echo "$ac_res" >&6; }
20682 if test `eval 'as_val=${'$as_ac_var'}
20683 $as_echo "$as_val"'` = yes; then
20684 cat >>confdefs.h <<_ACEOF
20685 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20689 # strftime is in -lintl on SCO UNIX.
20690 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20691 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20692 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20693 $as_echo_n "(cached
) " >&6
20695 ac_check_lib_save_LIBS=$LIBS
20696 LIBS="-lintl $LIBS"
20697 cat >conftest.$ac_ext <<_ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 /* Override any GCC internal prototype to avoid an error.
20705 Use char because int might match the return type of a GCC
20706 builtin and then its argument prototype would still apply. */
20714 return strftime ();
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20726 $as_echo "$ac_try_echo") >&5
20727 (eval "$ac_link") 2>conftest.er1
20729 grep -v '^ *+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext && {
20737 test "$cross_compiling" = yes ||
20738 $as_test_x conftest$ac_exeext
20740 ac_cv_lib_intl_strftime=yes
20742 $as_echo "$as_me: failed program was
:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_cv_lib_intl_strftime=no
20748 rm -rf conftest.dSYM
20749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20750 conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20753 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20754 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20755 if test $ac_cv_lib_intl_strftime = yes; then
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_STRFTIME 1
20760 LIBS="-lintl $LIBS"
20769 for ac_func in grantpt
20771 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20772 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20773 $as_echo_n "checking
for $ac_func...
" >&6; }
20774 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20775 $as_echo_n "(cached
) " >&6
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20785 #define $ac_func innocuous_$ac_func
20787 /* System header to define __stub macros and hopefully few prototypes,
20788 which can conflict with char $ac_func (); below.
20789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20790 <limits.h> exists even on freestanding compilers. */
20793 # include <limits.h>
20795 # include <assert.h>
20800 /* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20807 /* The GNU C library defines this for functions which it implements
20808 to always fail with ENOSYS. Some functions are actually named
20809 something starting with __ and the normal name is an alias. */
20810 #if defined __stub_$ac_func || defined __stub___$ac_func
20817 return $ac_func ();
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (ac_try="$ac_link"
20824 case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20829 $as_echo "$ac_try_echo") >&5
20830 (eval "$ac_link") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest$ac_exeext && {
20840 test "$cross_compiling" = yes ||
20841 $as_test_x conftest$ac_exeext
20843 eval "$as_ac_var=yes"
20845 $as_echo "$as_me: failed program was
:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 eval "$as_ac_var=no
"
20851 rm -rf conftest.dSYM
20852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20853 conftest$ac_exeext conftest.$ac_ext
20855 ac_res=`eval 'as_val=${'$as_ac_var'}
20856 $as_echo "$as_val"'`
20857 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20858 $as_echo "$ac_res" >&6; }
20859 if test `eval 'as_val=${'$as_ac_var'}
20860 $as_echo "$as_val"'` = yes; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20869 # PTY-related GNU extensions.
20871 for ac_func in getpt
20873 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20874 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20875 $as_echo_n "checking
for $ac_func...
" >&6; }
20876 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20877 $as_echo_n "(cached
) " >&6
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20887 #define $ac_func innocuous_$ac_func
20889 /* System header to define __stub macros and hopefully few prototypes,
20890 which can conflict with char $ac_func (); below.
20891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20892 <limits.h> exists even on freestanding compilers. */
20895 # include <limits.h>
20897 # include <assert.h>
20902 /* Override any GCC internal prototype to avoid an error.
20903 Use char because int might match the return type of a GCC
20904 builtin and then its argument prototype would still apply. */
20909 /* The GNU C library defines this for functions which it implements
20910 to always fail with ENOSYS. Some functions are actually named
20911 something starting with __ and the normal name is an alias. */
20912 #if defined __stub_$ac_func || defined __stub___$ac_func
20919 return $ac_func ();
20924 rm -f conftest.$ac_objext conftest$ac_exeext
20925 if { (ac_try="$ac_link"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_link") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest$ac_exeext && {
20942 test "$cross_compiling" = yes ||
20943 $as_test_x conftest$ac_exeext
20945 eval "$as_ac_var=yes"
20947 $as_echo "$as_me: failed program was
:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 eval "$as_ac_var=no
"
20953 rm -rf conftest.dSYM
20954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20955 conftest$ac_exeext conftest.$ac_ext
20957 ac_res=`eval 'as_val=${'$as_ac_var'}
20958 $as_echo "$as_val"'`
20959 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20960 $as_echo "$ac_res" >&6; }
20961 if test `eval 'as_val=${'$as_ac_var'}
20962 $as_echo "$as_val"'` = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20971 # Check this now, so that we will NOT find the above functions in ncurses.
20972 # That is because we have not set up to link ncurses in lib-src.
20973 # It's better to believe a function is not available
20974 # than to expect to find it in ncurses.
20976 { $as_echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20977 $as_echo_n "checking
for tparm
in -lncurses...
" >&6; }
20978 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20979 $as_echo_n "(cached
) " >&6
20981 ac_check_lib_save_LIBS=$LIBS
20982 LIBS="-lncurses $LIBS"
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20990 /* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21012 $as_echo "$ac_try_echo") >&5
21013 (eval "$ac_link") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest$ac_exeext && {
21023 test "$cross_compiling" = yes ||
21024 $as_test_x conftest$ac_exeext
21026 ac_cv_lib_ncurses_tparm=yes
21028 $as_echo "$as_me: failed program was
:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_cv_lib_ncurses_tparm=no
21034 rm -rf conftest.dSYM
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
21040 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
21041 if test $ac_cv_lib_ncurses_tparm = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define HAVE_LIBNCURSES 1
21046 LIBS="-lncurses $LIBS"
21051 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <netinet/in.h>
21061 #include <arpa/nameser.h>
21062 #include <resolv.h>
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21078 $as_echo "$ac_try_echo") >&5
21079 (eval "$ac_link") 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest$ac_exeext && {
21089 test "$cross_compiling" = yes ||
21090 $as_test_x conftest$ac_exeext
21094 $as_echo "$as_me: failed program was
:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21100 rm -rf conftest.dSYM
21101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21102 conftest$ac_exeext conftest.$ac_ext
21103 if test "$have_res_init" = no; then
21105 LIBS="$LIBS -lresolv"
21106 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21107 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <netinet/in.h>
21115 #include <arpa/nameser.h>
21116 #include <resolv.h>
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21148 $as_echo "$as_me: failed program was
:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21157 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21158 $as_echo "$have_res_init" >&6; }
21159 if test "$have_res_init" = yes ; then
21165 if test "$have_res_init" = yes; then
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_RES_INIT 1
21173 # Do we need the Hesiod library to provide the support routines?
21174 if test "$with_hesiod" != no ; then
21175 # Don't set $LIBS here -- see comments above.
21176 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21177 $as_echo_n "checking
for res_send...
" >&6; }
21178 if test "${ac_cv_func_res_send+set}" = set; then
21179 $as_echo_n "(cached
) " >&6
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define res_send innocuous_res_send
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char res_send (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21197 # include <limits.h>
21199 # include <assert.h>
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_res_send || defined __stub___res_send
21221 return res_send ();
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21233 $as_echo "$ac_try_echo") >&5
21234 (eval "$ac_link") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest$ac_exeext && {
21244 test "$cross_compiling" = yes ||
21245 $as_test_x conftest$ac_exeext
21247 ac_cv_func_res_send=yes
21249 $as_echo "$as_me: failed program was
:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_func_res_send=no
21255 rm -rf conftest.dSYM
21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21257 conftest$ac_exeext conftest.$ac_ext
21259 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21260 $as_echo "$ac_cv_func_res_send" >&6; }
21261 if test $ac_cv_func_res_send = yes; then
21264 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21265 $as_echo_n "checking
for __res_send...
" >&6; }
21266 if test "${ac_cv_func___res_send+set}" = set; then
21267 $as_echo_n "(cached
) " >&6
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21277 #define __res_send innocuous___res_send
21279 /* System header to define __stub macros and hopefully few prototypes,
21280 which can conflict with char __res_send (); below.
21281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21282 <limits.h> exists even on freestanding compilers. */
21285 # include <limits.h>
21287 # include <assert.h>
21292 /* Override any GCC internal prototype to avoid an error.
21293 Use char because int might match the return type of a GCC
21294 builtin and then its argument prototype would still apply. */
21298 char __res_send ();
21299 /* The GNU C library defines this for functions which it implements
21300 to always fail with ENOSYS. Some functions are actually named
21301 something starting with __ and the normal name is an alias. */
21302 #if defined __stub___res_send || defined __stub_____res_send
21309 return __res_send ();
21314 rm -f conftest.$ac_objext conftest$ac_exeext
21315 if { (ac_try="$ac_link"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21321 $as_echo "$ac_try_echo") >&5
21322 (eval "$ac_link") 2>conftest.er1
21324 grep -v '^ *+' conftest.er1 >conftest.err
21326 cat conftest.err >&5
21327 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21328 (exit $ac_status); } && {
21329 test -z "$ac_c_werror_flag" ||
21330 test ! -s conftest.err
21331 } && test -s conftest$ac_exeext && {
21332 test "$cross_compiling" = yes ||
21333 $as_test_x conftest$ac_exeext
21335 ac_cv_func___res_send=yes
21337 $as_echo "$as_me: failed program was
:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_func___res_send=no
21343 rm -rf conftest.dSYM
21344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21345 conftest$ac_exeext conftest.$ac_ext
21347 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21348 $as_echo "$ac_cv_func___res_send" >&6; }
21349 if test $ac_cv_func___res_send = yes; then
21352 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21353 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21354 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21355 $as_echo_n "(cached
) " >&6
21357 ac_check_lib_save_LIBS=$LIBS
21358 LIBS="-lresolv $LIBS"
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21366 /* Override any GCC internal prototype to avoid an error.
21367 Use char because int might match the return type of a GCC
21368 builtin and then its argument prototype would still apply. */
21376 return res_send ();
21381 rm -f conftest.$ac_objext conftest$ac_exeext
21382 if { (ac_try="$ac_link"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21388 $as_echo "$ac_try_echo") >&5
21389 (eval "$ac_link") 2>conftest.er1
21391 grep -v '^ *+' conftest.er1 >conftest.err
21393 cat conftest.err >&5
21394 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest$ac_exeext && {
21399 test "$cross_compiling" = yes ||
21400 $as_test_x conftest$ac_exeext
21402 ac_cv_lib_resolv_res_send=yes
21404 $as_echo "$as_me: failed program was
:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21407 ac_cv_lib_resolv_res_send=no
21410 rm -rf conftest.dSYM
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LIBS=$ac_check_lib_save_LIBS
21415 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21416 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21417 if test $ac_cv_lib_resolv_res_send = yes; then
21420 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21421 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21422 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21423 $as_echo_n "(cached
) " >&6
21425 ac_check_lib_save_LIBS=$LIBS
21426 LIBS="-lresolv $LIBS"
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21434 /* Override any GCC internal prototype to avoid an error.
21435 Use char because int might match the return type of a GCC
21436 builtin and then its argument prototype would still apply. */
21440 char __res_send ();
21444 return __res_send ();
21449 rm -f conftest.$ac_objext conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21456 $as_echo "$ac_try_echo") >&5
21457 (eval "$ac_link") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext && {
21467 test "$cross_compiling" = yes ||
21468 $as_test_x conftest$ac_exeext
21470 ac_cv_lib_resolv___res_send=yes
21472 $as_echo "$as_me: failed program was
:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_cv_lib_resolv___res_send=no
21478 rm -rf conftest.dSYM
21479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21480 conftest$ac_exeext conftest.$ac_ext
21481 LIBS=$ac_check_lib_save_LIBS
21483 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21484 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21485 if test $ac_cv_lib_resolv___res_send = yes; then
21495 if test "$resolv" = yes ; then
21500 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21501 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21502 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21503 $as_echo_n "(cached
) " >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21513 #define hes_getmailhost innocuous_hes_getmailhost
21515 /* System header to define __stub macros and hopefully few prototypes,
21516 which can conflict with char hes_getmailhost (); below.
21517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518 <limits.h> exists even on freestanding compilers. */
21521 # include <limits.h>
21523 # include <assert.h>
21526 #undef hes_getmailhost
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21534 char hes_getmailhost ();
21535 /* The GNU C library defines this for functions which it implements
21536 to always fail with ENOSYS. Some functions are actually named
21537 something starting with __ and the normal name is an alias. */
21538 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21545 return hes_getmailhost ();
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (ac_try="$ac_link"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558 (eval "$ac_link") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext && {
21568 test "$cross_compiling" = yes ||
21569 $as_test_x conftest$ac_exeext
21571 ac_cv_func_hes_getmailhost=yes
21573 $as_echo "$as_me: failed program was
:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_func_hes_getmailhost=no
21579 rm -rf conftest.dSYM
21580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21581 conftest$ac_exeext conftest.$ac_ext
21583 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21584 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21585 if test $ac_cv_func_hes_getmailhost = yes; then
21588 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21589 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21590 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21591 $as_echo_n "(cached
) " >&6
21593 ac_check_lib_save_LIBS=$LIBS
21594 LIBS="-lhesiod $RESOLVLIB $LIBS"
21595 cat >conftest.$ac_ext <<_ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21608 char hes_getmailhost ();
21612 return hes_getmailhost ();
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21624 $as_echo "$ac_try_echo") >&5
21625 (eval "$ac_link") 2>conftest.er1
21627 grep -v '^ *+' conftest.er1 >conftest.err
21629 cat conftest.err >&5
21630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest$ac_exeext && {
21635 test "$cross_compiling" = yes ||
21636 $as_test_x conftest$ac_exeext
21638 ac_cv_lib_hesiod_hes_getmailhost=yes
21640 $as_echo "$as_me: failed program was
:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_cv_lib_hesiod_hes_getmailhost=no
21646 rm -rf conftest.dSYM
21647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21648 conftest$ac_exeext conftest.$ac_ext
21649 LIBS=$ac_check_lib_save_LIBS
21651 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21652 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21653 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21655 cat >>confdefs.h <<\_ACEOF
21656 #define HAVE_LIBHESIOD 1
21667 # Do we need libresolv (due to res_init or Hesiod)?
21668 if test "$resolv" = yes ; then
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_LIBRESOLV 1
21676 # These tell us which Kerberos-related libraries to use.
21677 if test "${with_kerberos}" != no; then
21679 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21680 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21681 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21682 $as_echo_n "(cached
) " >&6
21684 ac_check_lib_save_LIBS=$LIBS
21685 LIBS="-lcom_err $LIBS"
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21693 /* Override any GCC internal prototype to avoid an error.
21694 Use char because int might match the return type of a GCC
21695 builtin and then its argument prototype would still apply. */
21708 rm -f conftest.$ac_objext conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21715 $as_echo "$ac_try_echo") >&5
21716 (eval "$ac_link") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest$ac_exeext && {
21726 test "$cross_compiling" = yes ||
21727 $as_test_x conftest$ac_exeext
21729 ac_cv_lib_com_err_com_err=yes
21731 $as_echo "$as_me: failed program was
:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_cv_lib_com_err_com_err=no
21737 rm -rf conftest.dSYM
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21740 LIBS=$ac_check_lib_save_LIBS
21742 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21743 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21744 if test $ac_cv_lib_com_err_com_err = yes; then
21745 cat >>confdefs.h <<_ACEOF
21746 #define HAVE_LIBCOM_ERR 1
21749 LIBS="-lcom_err $LIBS"
21754 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21755 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21756 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21757 $as_echo_n "(cached
) " >&6
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lk5crypto $LIBS"
21761 cat >conftest.$ac_ext <<_ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21768 /* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21774 char mit_des_cbc_encrypt ();
21778 return mit_des_cbc_encrypt ();
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21790 $as_echo "$ac_try_echo") >&5
21791 (eval "$ac_link") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest$ac_exeext && {
21801 test "$cross_compiling" = yes ||
21802 $as_test_x conftest$ac_exeext
21804 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21806 $as_echo "$as_me: failed program was
:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21812 rm -rf conftest.dSYM
21813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21814 conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21817 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21818 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21819 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21820 cat >>confdefs.h <<_ACEOF
21821 #define HAVE_LIBK5CRYPTO 1
21824 LIBS="-lk5crypto $LIBS"
21829 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21830 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21831 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21832 $as_echo_n "(cached
) " >&6
21834 ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lcrypto $LIBS"
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21843 /* Override any GCC internal prototype to avoid an error.
21844 Use char because int might match the return type of a GCC
21845 builtin and then its argument prototype would still apply. */
21849 char mit_des_cbc_encrypt ();
21853 return mit_des_cbc_encrypt ();
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21864 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866 (eval "$ac_link") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest$ac_exeext && {
21876 test "$cross_compiling" = yes ||
21877 $as_test_x conftest$ac_exeext
21879 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21881 $as_echo "$as_me: failed program was
:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21892 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21893 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21894 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21895 cat >>confdefs.h <<_ACEOF
21896 #define HAVE_LIBCRYPTO 1
21899 LIBS="-lcrypto $LIBS"
21904 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
21905 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
21906 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21907 $as_echo_n "(cached
) " >&6
21909 ac_check_lib_save_LIBS=$LIBS
21910 LIBS="-lkrb5 $LIBS"
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21918 /* Override any GCC internal prototype to avoid an error.
21919 Use char because int might match the return type of a GCC
21920 builtin and then its argument prototype would still apply. */
21924 char krb5_init_context ();
21928 return krb5_init_context ();
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21939 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941 (eval "$ac_link") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext && {
21951 test "$cross_compiling" = yes ||
21952 $as_test_x conftest$ac_exeext
21954 ac_cv_lib_krb5_krb5_init_context=yes
21956 $as_echo "$as_me: failed program was
:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_cv_lib_krb5_krb5_init_context=no
21962 rm -rf conftest.dSYM
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964 conftest$ac_exeext conftest.$ac_ext
21965 LIBS=$ac_check_lib_save_LIBS
21967 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21968 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21969 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21970 cat >>confdefs.h <<_ACEOF
21971 #define HAVE_LIBKRB5 1
21974 LIBS="-lkrb5 $LIBS"
21978 if test "${with_kerberos5}" = no; then
21980 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21981 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
21982 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21983 $as_echo_n "(cached
) " >&6
21985 ac_check_lib_save_LIBS=$LIBS
21986 LIBS="-ldes425 $LIBS"
21987 cat >conftest.$ac_ext <<_ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
22000 char des_cbc_encrypt ();
22004 return des_cbc_encrypt ();
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22015 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_link") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest$ac_exeext && {
22027 test "$cross_compiling" = yes ||
22028 $as_test_x conftest$ac_exeext
22030 ac_cv_lib_des425_des_cbc_encrypt=yes
22032 $as_echo "$as_me: failed program was
:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_cv_lib_des425_des_cbc_encrypt=no
22038 rm -rf conftest.dSYM
22039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22040 conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22043 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22044 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22045 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define HAVE_LIBDES425 1
22050 LIBS="-ldes425 $LIBS"
22054 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22055 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22056 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22057 $as_echo_n "(cached
) " >&6
22059 ac_check_lib_save_LIBS=$LIBS
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22068 /* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22074 char des_cbc_encrypt ();
22078 return des_cbc_encrypt ();
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (ac_try="$ac_link"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22090 $as_echo "$ac_try_echo") >&5
22091 (eval "$ac_link") 2>conftest.er1
22093 grep -v '^ *+' conftest.er1 >conftest.err
22095 cat conftest.err >&5
22096 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest$ac_exeext && {
22101 test "$cross_compiling" = yes ||
22102 $as_test_x conftest$ac_exeext
22104 ac_cv_lib_des_des_cbc_encrypt=yes
22106 $as_echo "$as_me: failed program was
:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_cv_lib_des_des_cbc_encrypt=no
22112 rm -rf conftest.dSYM
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114 conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22117 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22118 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22119 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22120 cat >>confdefs.h <<_ACEOF
22121 #define HAVE_LIBDES 1
22131 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22132 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22133 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22134 $as_echo_n "(cached
) " >&6
22136 ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-lkrb4 $LIBS"
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22145 /* Override any GCC internal prototype to avoid an error.
22146 Use char because int might match the return type of a GCC
22147 builtin and then its argument prototype would still apply. */
22151 char krb_get_cred ();
22155 return krb_get_cred ();
22160 rm -f conftest.$ac_objext conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22167 $as_echo "$ac_try_echo") >&5
22168 (eval "$ac_link") 2>conftest.er1
22170 grep -v '^ *+' conftest.er1 >conftest.err
22172 cat conftest.err >&5
22173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22174 (exit $ac_status); } && {
22175 test -z "$ac_c_werror_flag" ||
22176 test ! -s conftest.err
22177 } && test -s conftest$ac_exeext && {
22178 test "$cross_compiling" = yes ||
22179 $as_test_x conftest$ac_exeext
22181 ac_cv_lib_krb4_krb_get_cred=yes
22183 $as_echo "$as_me: failed program was
:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_cv_lib_krb4_krb_get_cred=no
22189 rm -rf conftest.dSYM
22190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22191 conftest$ac_exeext conftest.$ac_ext
22192 LIBS=$ac_check_lib_save_LIBS
22194 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22195 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22196 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22197 cat >>confdefs.h <<_ACEOF
22198 #define HAVE_LIBKRB4 1
22201 LIBS="-lkrb4 $LIBS"
22205 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22206 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22207 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22208 $as_echo_n "(cached
) " >&6
22210 ac_check_lib_save_LIBS=$LIBS
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22219 /* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22225 char krb_get_cred ();
22229 return krb_get_cred ();
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_link") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest$ac_exeext && {
22252 test "$cross_compiling" = yes ||
22253 $as_test_x conftest$ac_exeext
22255 ac_cv_lib_krb_krb_get_cred=yes
22257 $as_echo "$as_me: failed program was
:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_lib_krb_krb_get_cred=no
22263 rm -rf conftest.dSYM
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22266 LIBS=$ac_check_lib_save_LIBS
22268 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22269 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22270 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_LIBKRB 1
22283 if test "${with_kerberos5}" != no; then
22285 for ac_header in krb5.h
22287 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22288 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22289 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22290 $as_echo_n "checking
for $ac_header...
" >&6; }
22291 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22292 $as_echo_n "(cached
) " >&6
22294 ac_res=`eval 'as_val=${'$as_ac_Header'}
22295 $as_echo "$as_val"'`
22296 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22297 $as_echo "$ac_res" >&6; }
22299 # Is the header compilable?
22300 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22301 $as_echo_n "checking
$ac_header usability...
" >&6; }
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308 $ac_includes_default
22309 #include <$ac_header>
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22318 $as_echo "$ac_try_echo") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22321 grep -v '^ *+' conftest.er1 >conftest.err
22323 cat conftest.err >&5
22324 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest.$ac_objext; then
22329 ac_header_compiler=yes
22331 $as_echo "$as_me: failed program was
:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 ac_header_compiler=no
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22339 $as_echo "$ac_header_compiler" >&6; }
22341 # Is the header present?
22342 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22343 $as_echo_n "checking
$ac_header presence...
" >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <$ac_header>
22352 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22358 $as_echo "$ac_try_echo") >&5
22359 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); } >/dev/null && {
22366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22369 ac_header_preproc=yes
22371 $as_echo "$as_me: failed program was
:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_header_preproc=no
22377 rm -f conftest.err conftest.$ac_ext
22378 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22379 $as_echo "$ac_header_preproc" >&6; }
22381 # So? What about this header?
22382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22384 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22385 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22386 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22388 ac_header_preproc=yes
22391 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22392 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22393 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22394 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22395 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22396 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22397 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22398 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22399 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22401 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22402 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22406 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22407 $as_echo_n "checking
for $ac_header...
" >&6; }
22408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22409 $as_echo_n "(cached
) " >&6
22411 eval "$as_ac_Header=\
$ac_header_preproc"
22413 ac_res=`eval 'as_val=${'$as_ac_Header'}
22414 $as_echo "$as_val"'`
22415 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22416 $as_echo "$ac_res" >&6; }
22419 if test `eval 'as_val=${'$as_ac_Header'}
22420 $as_echo "$as_val"'` = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22424 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22425 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22426 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22427 $as_echo_n "(cached
) " >&6
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22440 static krb5_error ac_aggr;
22447 rm -f conftest.$ac_objext
22448 if { (ac_try="$ac_compile"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22453 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22454 $as_echo "$ac_try_echo") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_cv_member_krb5_error_text=yes
22467 $as_echo "$as_me: failed program was
:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 cat >conftest.$ac_ext <<_ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22481 static krb5_error ac_aggr;
22482 if (sizeof ac_aggr.text)
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22495 $as_echo "$ac_try_echo") >&5
22496 (eval "$ac_compile") 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22502 (exit $ac_status); } && {
22503 test -z "$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22505 } && test -s conftest.$ac_objext; then
22506 ac_cv_member_krb5_error_text=yes
22508 $as_echo "$as_me: failed program was
:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_cv_member_krb5_error_text=no
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22520 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22521 if test $ac_cv_member_krb5_error_text = yes; then
22523 cat >>confdefs.h <<_ACEOF
22524 #define HAVE_KRB5_ERROR_TEXT 1
22529 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22530 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22531 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22532 $as_echo_n "(cached
) " >&6
22534 cat >conftest.$ac_ext <<_ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22545 static krb5_error ac_aggr;
22546 if (ac_aggr.e_text)
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1 >conftest.err
22564 cat conftest.err >&5
22565 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 ac_cv_member_krb5_error_e_text=yes
22572 $as_echo "$as_me: failed program was
:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22586 static krb5_error ac_aggr;
22587 if (sizeof ac_aggr.e_text)
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_compile") 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest.$ac_objext; then
22611 ac_cv_member_krb5_error_e_text=yes
22613 $as_echo "$as_me: failed program was
:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_cv_member_krb5_error_e_text=no
22619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22625 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22626 if test $ac_cv_member_krb5_error_e_text = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_KRB5_ERROR_E_TEXT 1
22641 for ac_header in des.h
22643 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22645 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22646 $as_echo_n "checking
for $ac_header...
" >&6; }
22647 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22648 $as_echo_n "(cached
) " >&6
22650 ac_res=`eval 'as_val=${'$as_ac_Header'}
22651 $as_echo "$as_val"'`
22652 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22653 $as_echo "$ac_res" >&6; }
22655 # Is the header compilable?
22656 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22657 $as_echo_n "checking
$ac_header usability...
" >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 $ac_includes_default
22665 #include <$ac_header>
22667 rm -f conftest.$ac_objext
22668 if { (ac_try="$ac_compile"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22674 $as_echo "$ac_try_echo") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_header_compiler=yes
22687 $as_echo "$as_me: failed program was
:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_header_compiler=no
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22695 $as_echo "$ac_header_compiler" >&6; }
22697 # Is the header present?
22698 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22699 $as_echo_n "checking
$ac_header presence...
" >&6; }
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <$ac_header>
22708 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22713 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22714 $as_echo "$ac_try_echo") >&5
22715 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22721 (exit $ac_status); } >/dev/null && {
22722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22725 ac_header_preproc=yes
22727 $as_echo "$as_me: failed program was
:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_header_preproc=no
22733 rm -f conftest.err conftest.$ac_ext
22734 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22735 $as_echo "$ac_header_preproc" >&6; }
22737 # So? What about this header?
22738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22740 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22741 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22742 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22744 ac_header_preproc=yes
22747 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22748 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22749 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22750 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22751 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22752 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22754 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22755 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22758 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22762 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22763 $as_echo_n "checking
for $ac_header...
" >&6; }
22764 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22765 $as_echo_n "(cached
) " >&6
22767 eval "$as_ac_Header=\
$ac_header_preproc"
22769 ac_res=`eval 'as_val=${'$as_ac_Header'}
22770 $as_echo "$as_val"'`
22771 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22772 $as_echo "$ac_res" >&6; }
22775 if test `eval 'as_val=${'$as_ac_Header'}
22776 $as_echo "$as_val"'` = yes; then
22777 cat >>confdefs.h <<_ACEOF
22778 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22783 for ac_header in kerberosIV/des.h
22785 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22787 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22788 $as_echo_n "checking
for $ac_header...
" >&6; }
22789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22790 $as_echo_n "(cached
) " >&6
22792 ac_res=`eval 'as_val=${'$as_ac_Header'}
22793 $as_echo "$as_val"'`
22794 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22795 $as_echo "$ac_res" >&6; }
22797 # Is the header compilable?
22798 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22799 $as_echo_n "checking
$ac_header usability...
" >&6; }
22800 cat >conftest.$ac_ext <<_ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 $ac_includes_default
22807 #include <$ac_header>
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22816 $as_echo "$ac_try_echo") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22819 grep -v '^ *+' conftest.er1 >conftest.err
22821 cat conftest.err >&5
22822 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22827 ac_header_compiler=yes
22829 $as_echo "$as_me: failed program was
:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_header_compiler=no
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22837 $as_echo "$ac_header_compiler" >&6; }
22839 # Is the header present?
22840 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22841 $as_echo_n "checking
$ac_header presence...
" >&6; }
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #include <$ac_header>
22850 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22855 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22856 $as_echo "$ac_try_echo") >&5
22857 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22863 (exit $ac_status); } >/dev/null && {
22864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22867 ac_header_preproc=yes
22869 $as_echo "$as_me: failed program was
:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_header_preproc=no
22875 rm -f conftest.err conftest.$ac_ext
22876 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22877 $as_echo "$ac_header_preproc" >&6; }
22879 # So? What about this header?
22880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22883 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22884 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22886 ac_header_preproc=yes
22889 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22890 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22891 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22892 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22893 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22894 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22895 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22896 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22897 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22899 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22900 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22904 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22905 $as_echo_n "checking
for $ac_header...
" >&6; }
22906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22907 $as_echo_n "(cached
) " >&6
22909 eval "$as_ac_Header=\
$ac_header_preproc"
22911 ac_res=`eval 'as_val=${'$as_ac_Header'}
22912 $as_echo "$as_val"'`
22913 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22914 $as_echo "$ac_res" >&6; }
22917 if test `eval 'as_val=${'$as_ac_Header'}
22918 $as_echo "$as_val"'` = yes; then
22919 cat >>confdefs.h <<_ACEOF
22920 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22925 for ac_header in kerberos/des.h
22927 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22928 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22929 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22930 $as_echo_n "checking
for $ac_header...
" >&6; }
22931 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22932 $as_echo_n "(cached
) " >&6
22934 ac_res=`eval 'as_val=${'$as_ac_Header'}
22935 $as_echo "$as_val"'`
22936 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22937 $as_echo "$ac_res" >&6; }
22939 # Is the header compilable?
22940 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22941 $as_echo_n "checking
$ac_header usability...
" >&6; }
22942 cat >conftest.$ac_ext <<_ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 $ac_includes_default
22949 #include <$ac_header>
22951 rm -f conftest.$ac_objext
22952 if { (ac_try="$ac_compile"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22957 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22958 $as_echo "$ac_try_echo") >&5
22959 (eval "$ac_compile") 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22965 (exit $ac_status); } && {
22966 test -z "$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 } && test -s conftest.$ac_objext; then
22969 ac_header_compiler=yes
22971 $as_echo "$as_me: failed program was
:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ac_header_compiler=no
22977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22979 $as_echo "$ac_header_compiler" >&6; }
22981 # Is the header present?
22982 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22983 $as_echo_n "checking
$ac_header presence...
" >&6; }
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 #include <$ac_header>
22992 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22998 $as_echo "$ac_try_echo") >&5
22999 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23001 grep -v '^ *+' conftest.er1 >conftest.err
23003 cat conftest.err >&5
23004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23005 (exit $ac_status); } >/dev/null && {
23006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23009 ac_header_preproc=yes
23011 $as_echo "$as_me: failed program was
:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ac_header_preproc=no
23017 rm -f conftest.err conftest.$ac_ext
23018 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23019 $as_echo "$ac_header_preproc" >&6; }
23021 # So? What about this header?
23022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23025 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23026 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23028 ac_header_preproc=yes
23031 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23032 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23033 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23034 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23035 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23036 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23037 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23038 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23039 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23042 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23046 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23047 $as_echo_n "checking
for $ac_header...
" >&6; }
23048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23049 $as_echo_n "(cached
) " >&6
23051 eval "$as_ac_Header=\
$ac_header_preproc"
23053 ac_res=`eval 'as_val=${'$as_ac_Header'}
23054 $as_echo "$as_val"'`
23055 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23056 $as_echo "$ac_res" >&6; }
23059 if test `eval 'as_val=${'$as_ac_Header'}
23060 $as_echo "$as_val"'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23078 for ac_header in krb.h
23080 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23082 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23083 $as_echo_n "checking
for $ac_header...
" >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23085 $as_echo_n "(cached
) " >&6
23087 ac_res=`eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'`
23089 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23090 $as_echo "$ac_res" >&6; }
23092 # Is the header compilable?
23093 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23094 $as_echo_n "checking
$ac_header usability...
" >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23110 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23114 grep -v '^ *+' conftest.er1 >conftest.err
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 ac_header_compiler=yes
23124 $as_echo "$as_me: failed program was
:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_header_compiler=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23132 $as_echo "$ac_header_compiler" >&6; }
23134 # Is the header present?
23135 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23136 $as_echo_n "checking
$ac_header presence...
" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23158 (exit $ac_status); } >/dev/null && {
23159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23162 ac_header_preproc=yes
23164 $as_echo "$as_me: failed program was
:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ac_header_preproc=no
23170 rm -f conftest.err conftest.$ac_ext
23171 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23172 $as_echo "$ac_header_preproc" >&6; }
23174 # So? What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23178 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23181 ac_header_preproc=yes
23184 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23185 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23187 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23189 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23191 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23195 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23199 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23200 $as_echo_n "checking
for $ac_header...
" >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23202 $as_echo_n "(cached
) " >&6
23204 eval "$as_ac_Header=\
$ac_header_preproc"
23206 ac_res=`eval 'as_val=${'$as_ac_Header'}
23207 $as_echo "$as_val"'`
23208 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23209 $as_echo "$ac_res" >&6; }
23212 if test `eval 'as_val=${'$as_ac_Header'}
23213 $as_echo "$as_val"'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23220 for ac_header in kerberosIV/krb.h
23222 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23224 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23225 $as_echo_n "checking
for $ac_header...
" >&6; }
23226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23227 $as_echo_n "(cached
) " >&6
23229 ac_res=`eval 'as_val=${'$as_ac_Header'}
23230 $as_echo "$as_val"'`
23231 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23232 $as_echo "$ac_res" >&6; }
23234 # Is the header compilable?
23235 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23236 $as_echo_n "checking
$ac_header usability...
" >&6; }
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 $ac_includes_default
23244 #include <$ac_header>
23246 rm -f conftest.$ac_objext
23247 if { (ac_try="$ac_compile"
23248 case "(($ac_try" in
23249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250 *) ac_try_echo=$ac_try;;
23252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23253 $as_echo "$ac_try_echo") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23256 grep -v '^ *+' conftest.er1 >conftest.err
23258 cat conftest.err >&5
23259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23264 ac_header_compiler=yes
23266 $as_echo "$as_me: failed program was
:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 ac_header_compiler=no
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23274 $as_echo "$ac_header_compiler" >&6; }
23276 # Is the header present?
23277 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23278 $as_echo_n "checking
$ac_header presence...
" >&6; }
23279 cat >conftest.$ac_ext <<_ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 #include <$ac_header>
23287 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23292 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23293 $as_echo "$ac_try_echo") >&5
23294 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23296 grep -v '^ *+' conftest.er1 >conftest.err
23298 cat conftest.err >&5
23299 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23300 (exit $ac_status); } >/dev/null && {
23301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23304 ac_header_preproc=yes
23306 $as_echo "$as_me: failed program was
:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_preproc=no
23312 rm -f conftest.err conftest.$ac_ext
23313 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23314 $as_echo "$ac_header_preproc" >&6; }
23316 # So? What about this header?
23317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23320 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23321 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23323 ac_header_preproc=yes
23326 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23327 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23328 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23329 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23330 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23331 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23332 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23333 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23336 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23337 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23341 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23342 $as_echo_n "checking
for $ac_header...
" >&6; }
23343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23344 $as_echo_n "(cached
) " >&6
23346 eval "$as_ac_Header=\
$ac_header_preproc"
23348 ac_res=`eval 'as_val=${'$as_ac_Header'}
23349 $as_echo "$as_val"'`
23350 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23351 $as_echo "$ac_res" >&6; }
23354 if test `eval 'as_val=${'$as_ac_Header'}
23355 $as_echo "$as_val"'` = yes; then
23356 cat >>confdefs.h <<_ACEOF
23357 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23362 for ac_header in kerberos/krb.h
23364 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23365 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23366 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23367 $as_echo_n "checking
for $ac_header...
" >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23369 $as_echo_n "(cached
) " >&6
23371 ac_res=`eval 'as_val=${'$as_ac_Header'}
23372 $as_echo "$as_val"'`
23373 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23374 $as_echo "$ac_res" >&6; }
23376 # Is the header compilable?
23377 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23378 $as_echo_n "checking
$ac_header usability...
" >&6; }
23379 cat >conftest.$ac_ext <<_ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 $ac_includes_default
23386 #include <$ac_header>
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23394 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23395 $as_echo "$ac_try_echo") >&5
23396 (eval "$ac_compile") 2>conftest.er1
23398 grep -v '^ *+' conftest.er1 >conftest.err
23400 cat conftest.err >&5
23401 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23402 (exit $ac_status); } && {
23403 test -z "$ac_c_werror_flag" ||
23404 test ! -s conftest.err
23405 } && test -s conftest.$ac_objext; then
23406 ac_header_compiler=yes
23408 $as_echo "$as_me: failed program was
:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_header_compiler=no
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23415 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23416 $as_echo "$ac_header_compiler" >&6; }
23418 # Is the header present?
23419 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23420 $as_echo_n "checking
$ac_header presence...
" >&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 #include <$ac_header>
23429 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23435 $as_echo "$ac_try_echo") >&5
23436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23438 grep -v '^ *+' conftest.er1 >conftest.err
23440 cat conftest.err >&5
23441 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23442 (exit $ac_status); } >/dev/null && {
23443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23444 test ! -s conftest.err
23446 ac_header_preproc=yes
23448 $as_echo "$as_me: failed program was
:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 ac_header_preproc=no
23454 rm -f conftest.err conftest.$ac_ext
23455 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23456 $as_echo "$ac_header_preproc" >&6; }
23458 # So? What about this header?
23459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23462 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23463 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23465 ac_header_preproc=yes
23468 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23469 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23470 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23471 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23472 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23473 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23474 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23475 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23476 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23478 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23479 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23483 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23484 $as_echo_n "checking
for $ac_header...
" >&6; }
23485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23486 $as_echo_n "(cached
) " >&6
23488 eval "$as_ac_Header=\
$ac_header_preproc"
23490 ac_res=`eval 'as_val=${'$as_ac_Header'}
23491 $as_echo "$as_val"'`
23492 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23493 $as_echo "$ac_res" >&6; }
23496 if test `eval 'as_val=${'$as_ac_Header'}
23497 $as_echo "$as_val"'` = yes; then
23498 cat >>confdefs.h <<_ACEOF
23499 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23516 for ac_header in com_err.h
23518 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23521 $as_echo_n "checking
for $ac_header...
" >&6; }
23522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached
) " >&6
23525 ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23528 $as_echo "$ac_res" >&6; }
23530 # Is the header compilable?
23531 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23532 $as_echo_n "checking
$ac_header usability...
" >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 #include <$ac_header>
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23552 grep -v '^ *+' conftest.er1 >conftest.err
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23562 $as_echo "$as_me: failed program was
:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23565 ac_header_compiler=no
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23570 $as_echo "$ac_header_compiler" >&6; }
23572 # Is the header present?
23573 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23574 $as_echo_n "checking
$ac_header presence...
" >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <$ac_header>
23583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23600 ac_header_preproc=yes
23602 $as_echo "$as_me: failed program was
:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_header_preproc=no
23608 rm -f conftest.err conftest.$ac_ext
23609 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23610 $as_echo "$ac_header_preproc" >&6; }
23612 # So? What about this header?
23613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23616 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23619 ac_header_preproc=yes
23622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23623 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23625 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23627 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23629 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23633 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23637 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23638 $as_echo_n "checking
for $ac_header...
" >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached
) " >&6
23642 eval "$as_ac_Header=\
$ac_header_preproc"
23644 ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23647 $as_echo "$ac_res" >&6; }
23650 if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23662 # Solaris requires -lintl if you want strerror (which calls dgettext)
23663 # to return localized messages.
23665 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23666 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23667 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23668 $as_echo_n "(cached
) " >&6
23670 ac_check_lib_save_LIBS=$LIBS
23671 LIBS="-lintl $LIBS"
23672 cat >conftest.$ac_ext <<_ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 /* Override any GCC internal prototype to avoid an error.
23680 Use char because int might match the return type of a GCC
23681 builtin and then its argument prototype would still apply. */
23689 return dgettext ();
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (ac_try="$ac_link"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23700 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23701 $as_echo "$ac_try_echo") >&5
23702 (eval "$ac_link") 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest$ac_exeext && {
23712 test "$cross_compiling" = yes ||
23713 $as_test_x conftest$ac_exeext
23715 ac_cv_lib_intl_dgettext=yes
23717 $as_echo "$as_me: failed program was
:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_lib_intl_dgettext=no
23723 rm -rf conftest.dSYM
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725 conftest$ac_exeext conftest.$ac_ext
23726 LIBS=$ac_check_lib_save_LIBS
23728 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23729 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23730 if test $ac_cv_lib_intl_dgettext = yes; then
23731 cat >>confdefs.h <<_ACEOF
23732 #define HAVE_LIBINTL 1
23735 LIBS="-lintl $LIBS"
23740 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23741 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23742 if test "${emacs_cv_localtime_cache+set}" = set; then
23743 $as_echo_n "(cached
) " >&6
23745 if test x$ac_cv_func_tzset = xyes; then
23746 if test "$cross_compiling" = yes; then
23747 # If we have tzset, assume the worst when cross-compiling.
23748 emacs_cv_localtime_cache=yes
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23757 extern char **environ;
23761 for (to = from = environ; (*to = *from); from++)
23762 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23765 char TZ_GMT0[] = "TZ
=GMT0
";
23766 char TZ_PST8[] = "TZ
=PST8
";
23769 time_t now = time ((time_t *) 0);
23770 int hour_GMT0, hour_unset;
23771 if (putenv (TZ_GMT0) != 0)
23773 hour_GMT0 = localtime (&now)->tm_hour;
23775 hour_unset = localtime (&now)->tm_hour;
23776 if (putenv (TZ_PST8) != 0)
23778 if (localtime (&now)->tm_hour == hour_GMT0)
23781 if (localtime (&now)->tm_hour != hour_unset)
23786 rm -f conftest$ac_exeext
23787 if { (ac_try="$ac_link"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23793 $as_echo "$ac_try_echo") >&5
23794 (eval "$ac_link") 2>&5
23796 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23798 { (case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23803 $as_echo "$ac_try_echo") >&5
23804 (eval "$ac_try") 2>&5
23806 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808 emacs_cv_localtime_cache=no
23810 $as_echo "$as_me: program exited with status
$ac_status" >&5
23811 $as_echo "$as_me: failed program was
:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ( exit $ac_status )
23815 emacs_cv_localtime_cache=yes
23817 rm -rf conftest.dSYM
23818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23823 # If we lack tzset, report that localtime does not cache TZ,
23824 # since we can't invalidate the cache if we don't have tzset.
23825 emacs_cv_localtime_cache=no
23828 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23829 $as_echo "$emacs_cv_localtime_cache" >&6; }
23830 if test $emacs_cv_localtime_cache = yes; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define LOCALTIME_CACHE 1
23838 if test "x
$HAVE_TIMEVAL" = xyes; then
23840 for ac_func in gettimeofday
23842 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23843 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
23844 $as_echo_n "checking
for $ac_func...
" >&6; }
23845 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23846 $as_echo_n "(cached
) " >&6
23848 cat >conftest.$ac_ext <<_ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23856 #define $ac_func innocuous_$ac_func
23858 /* System header to define __stub macros and hopefully few prototypes,
23859 which can conflict with char $ac_func (); below.
23860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23861 <limits.h> exists even on freestanding compilers. */
23864 # include <limits.h>
23866 # include <assert.h>
23871 /* Override any GCC internal prototype to avoid an error.
23872 Use char because int might match the return type of a GCC
23873 builtin and then its argument prototype would still apply. */
23878 /* The GNU C library defines this for functions which it implements
23879 to always fail with ENOSYS. Some functions are actually named
23880 something starting with __ and the normal name is an alias. */
23881 #if defined __stub_$ac_func || defined __stub___$ac_func
23888 return $ac_func ();
23893 rm -f conftest.$ac_objext conftest$ac_exeext
23894 if { (ac_try="$ac_link"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901 (eval "$ac_link") 2>conftest.er1
23903 grep -v '^ *+' conftest.er1 >conftest.err
23905 cat conftest.err >&5
23906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest$ac_exeext && {
23911 test "$cross_compiling" = yes ||
23912 $as_test_x conftest$ac_exeext
23914 eval "$as_ac_var=yes"
23916 $as_echo "$as_me: failed program was
:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 eval "$as_ac_var=no
"
23922 rm -rf conftest.dSYM
23923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23924 conftest$ac_exeext conftest.$ac_ext
23926 ac_res=`eval 'as_val=${'$as_ac_var'}
23927 $as_echo "$as_val"'`
23928 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23929 $as_echo "$ac_res" >&6; }
23930 if test `eval 'as_val=${'$as_ac_var'}
23931 $as_echo "$as_val"'` = yes; then
23932 cat >>confdefs.h <<_ACEOF
23933 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23939 if test $ac_cv_func_gettimeofday = yes; then
23940 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
23941 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
23942 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23943 $as_echo_n "(cached
) " >&6
23945 cat >conftest.$ac_ext <<_ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23952 #ifdef TIME_WITH_SYS_TIME
23953 #include <sys/time.h>
23956 #ifdef HAVE_SYS_TIME_H
23957 #include <sys/time.h>
23965 struct timeval time;
23966 gettimeofday (&time, 0);
23971 rm -f conftest.$ac_objext
23972 if { (ac_try="$ac_compile"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23978 $as_echo "$ac_try_echo") >&5
23979 (eval "$ac_compile") 2>conftest.er1
23981 grep -v '^ *+' conftest.er1 >conftest.err
23983 cat conftest.err >&5
23984 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest.$ac_objext; then
23989 emacs_cv_gettimeofday_two_arguments=yes
23991 $as_echo "$as_me: failed program was
:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994 emacs_cv_gettimeofday_two_arguments=no
23997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24000 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24001 if test $emacs_cv_gettimeofday_two_arguments = no; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24012 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24013 $as_echo_n "checking
for socket...
" >&6; }
24014 if test "${ac_cv_func_socket+set}" = set; then
24015 $as_echo_n "(cached
) " >&6
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24025 #define socket innocuous_socket
24027 /* System header to define __stub macros and hopefully few prototypes,
24028 which can conflict with char socket (); below.
24029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030 <limits.h> exists even on freestanding compilers. */
24033 # include <limits.h>
24035 # include <assert.h>
24040 /* Override any GCC internal prototype to avoid an error.
24041 Use char because int might match the return type of a GCC
24042 builtin and then its argument prototype would still apply. */
24047 /* The GNU C library defines this for functions which it implements
24048 to always fail with ENOSYS. Some functions are actually named
24049 something starting with __ and the normal name is an alias. */
24050 #if defined __stub_socket || defined __stub___socket
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (ac_try="$ac_link"
24064 case "(($ac_try" in
24065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24066 *) ac_try_echo=$ac_try;;
24068 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24069 $as_echo "$ac_try_echo") >&5
24070 (eval "$ac_link") 2>conftest.er1
24072 grep -v '^ *+' conftest.er1 >conftest.err
24074 cat conftest.err >&5
24075 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest$ac_exeext && {
24080 test "$cross_compiling" = yes ||
24081 $as_test_x conftest$ac_exeext
24083 ac_cv_func_socket=yes
24085 $as_echo "$as_me: failed program was
:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24088 ac_cv_func_socket=no
24091 rm -rf conftest.dSYM
24092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24093 conftest$ac_exeext conftest.$ac_ext
24095 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24096 $as_echo "$ac_cv_func_socket" >&6; }
24097 if test $ac_cv_func_socket = yes; then
24103 if test $ok_so_far = yes; then
24104 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24105 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24106 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24107 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24108 $as_echo_n "(cached
) " >&6
24110 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24111 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24113 # Is the header compilable?
24114 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24115 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 $ac_includes_default
24123 #include <netinet/in.h>
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24132 $as_echo "$ac_try_echo") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_header_compiler=yes
24145 $as_echo "$as_me: failed program was
:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24148 ac_header_compiler=no
24151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24152 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24153 $as_echo "$ac_header_compiler" >&6; }
24155 # Is the header present?
24156 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24157 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24158 cat >conftest.$ac_ext <<_ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 #include <netinet/in.h>
24166 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24167 case "(($ac_try" in
24168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169 *) ac_try_echo=$ac_try;;
24171 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24172 $as_echo "$ac_try_echo") >&5
24173 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24175 grep -v '^ *+' conftest.er1 >conftest.err
24177 cat conftest.err >&5
24178 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24179 (exit $ac_status); } >/dev/null && {
24180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24181 test ! -s conftest.err
24183 ac_header_preproc=yes
24185 $as_echo "$as_me: failed program was
:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 ac_header_preproc=no
24191 rm -f conftest.err conftest.$ac_ext
24192 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24193 $as_echo "$ac_header_preproc" >&6; }
24195 # So? What about this header?
24196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24198 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24199 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24201 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24202 ac_header_preproc=yes
24205 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24206 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24208 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24210 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24212 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24213 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24214 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24216 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24220 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24221 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24222 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24223 $as_echo_n "(cached
) " >&6
24225 ac_cv_header_netinet_in_h=$ac_header_preproc
24227 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24228 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24231 if test $ac_cv_header_netinet_in_h = yes; then
24239 if test $ok_so_far = yes; then
24240 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24241 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24242 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24243 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24244 $as_echo_n "(cached
) " >&6
24246 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24247 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24249 # Is the header compilable?
24250 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24251 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24252 cat >conftest.$ac_ext <<_ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24258 $ac_includes_default
24259 #include <arpa/inet.h>
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24267 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24268 $as_echo "$ac_try_echo") >&5
24269 (eval "$ac_compile") 2>conftest.er1
24271 grep -v '^ *+' conftest.er1 >conftest.err
24273 cat conftest.err >&5
24274 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24275 (exit $ac_status); } && {
24276 test -z "$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24278 } && test -s conftest.$ac_objext; then
24279 ac_header_compiler=yes
24281 $as_echo "$as_me: failed program was
:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_header_compiler=no
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24289 $as_echo "$ac_header_compiler" >&6; }
24291 # Is the header present?
24292 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24293 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24294 cat >conftest.$ac_ext <<_ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 #include <arpa/inet.h>
24302 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24311 grep -v '^ *+' conftest.er1 >conftest.err
24313 cat conftest.err >&5
24314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24315 (exit $ac_status); } >/dev/null && {
24316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24319 ac_header_preproc=yes
24321 $as_echo "$as_me: failed program was
:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ac_header_preproc=no
24327 rm -f conftest.err conftest.$ac_ext
24328 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24329 $as_echo "$ac_header_preproc" >&6; }
24331 # So? What about this header?
24332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24334 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24335 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24336 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24337 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24338 ac_header_preproc=yes
24341 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24342 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24343 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24344 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24345 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24346 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24347 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24348 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24349 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24350 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24351 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24352 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24356 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24357 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24358 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24359 $as_echo_n "(cached
) " >&6
24361 ac_cv_header_arpa_inet_h=$ac_header_preproc
24363 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24364 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24367 if test $ac_cv_header_arpa_inet_h = yes; then
24375 if test $ok_so_far = yes; then
24377 cat >>confdefs.h <<\_ACEOF
24378 #define HAVE_INET_SOCKETS 1
24384 for ac_header in sys/ioctl.h
24386 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24388 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24389 $as_echo_n "checking
for $ac_header...
" >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24391 $as_echo_n "(cached
) " >&6
24393 ac_res=`eval 'as_val=${'$as_ac_Header'}
24394 $as_echo "$as_val"'`
24395 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24396 $as_echo "$ac_res" >&6; }
24398 # Is the header compilable?
24399 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24400 $as_echo_n "checking
$ac_header usability...
" >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24408 #include <$ac_header>
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24416 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24417 $as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24420 grep -v '^ *+' conftest.er1 >conftest.err
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_header_compiler=yes
24430 $as_echo "$as_me: failed program was
:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24433 ac_header_compiler=no
24436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24438 $as_echo "$ac_header_compiler" >&6; }
24440 # Is the header present?
24441 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24442 $as_echo_n "checking
$ac_header presence...
" >&6; }
24443 cat >conftest.$ac_ext <<_ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 #include <$ac_header>
24451 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24460 grep -v '^ *+' conftest.er1 >conftest.err
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24464 (exit $ac_status); } >/dev/null && {
24465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24468 ac_header_preproc=yes
24470 $as_echo "$as_me: failed program was
:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 ac_header_preproc=no
24476 rm -f conftest.err conftest.$ac_ext
24477 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24478 $as_echo "$ac_header_preproc" >&6; }
24480 # So? What about this header?
24481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24483 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24484 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24485 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24487 ac_header_preproc=yes
24490 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24491 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24492 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24493 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24495 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24497 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24501 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24505 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24506 $as_echo_n "checking
for $ac_header...
" >&6; }
24507 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24508 $as_echo_n "(cached
) " >&6
24510 eval "$as_ac_Header=\
$ac_header_preproc"
24512 ac_res=`eval 'as_val=${'$as_ac_Header'}
24513 $as_echo "$as_val"'`
24514 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24515 $as_echo "$ac_res" >&6; }
24518 if test `eval 'as_val=${'$as_ac_Header'}
24519 $as_echo "$as_val"'` = yes; then
24520 cat >>confdefs.h <<_ACEOF
24521 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24529 if test -f /usr/lpp/X11/bin/smt.exp; then
24531 cat >>confdefs.h <<\_ACEOF
24532 #define HAVE_AIX_SMT_EXP 1
24537 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24538 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24539 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24540 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24541 $as_echo "yes" >&6; }
24543 cat >>confdefs.h <<\_ACEOF
24544 #define HAVE_DEV_PTMX 1
24548 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24549 $as_echo "no
" >&6; }
24552 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24553 $as_echo_n "checking
for pid_t...
" >&6; }
24554 if test "${ac_cv_type_pid_t+set}" = set; then
24555 $as_echo_n "(cached
) " >&6
24557 ac_cv_type_pid_t=no
24558 cat >conftest.$ac_ext <<_ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24564 $ac_includes_default
24568 if (sizeof (pid_t))
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24581 $as_echo "$ac_try_echo") >&5
24582 (eval "$ac_compile") 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest.$ac_objext; then
24592 cat >conftest.$ac_ext <<_ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 $ac_includes_default
24602 if (sizeof ((pid_t)))
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24615 $as_echo "$ac_try_echo") >&5
24616 (eval "$ac_compile") 2>conftest.er1
24618 grep -v '^ *+' conftest.er1 >conftest.err
24620 cat conftest.err >&5
24621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest.$ac_objext; then
24628 $as_echo "$as_me: failed program was
:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ac_cv_type_pid_t=yes
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24636 $as_echo "$as_me: failed program was
:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24645 $as_echo "$ac_cv_type_pid_t" >&6; }
24646 if test $ac_cv_type_pid_t = yes; then
24650 cat >>confdefs.h <<_ACEOF
24657 for ac_header in vfork.h
24659 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24661 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24662 $as_echo_n "checking
for $ac_header...
" >&6; }
24663 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24664 $as_echo_n "(cached
) " >&6
24666 ac_res=`eval 'as_val=${'$as_ac_Header'}
24667 $as_echo "$as_val"'`
24668 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24669 $as_echo "$ac_res" >&6; }
24671 # Is the header compilable?
24672 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24673 $as_echo_n "checking
$ac_header usability...
" >&6; }
24674 cat >conftest.$ac_ext <<_ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h. */
24680 $ac_includes_default
24681 #include <$ac_header>
24683 rm -f conftest.$ac_objext
24684 if { (ac_try="$ac_compile"
24685 case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24689 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24690 $as_echo "$ac_try_echo") >&5
24691 (eval "$ac_compile") 2>conftest.er1
24693 grep -v '^ *+' conftest.er1 >conftest.err
24695 cat conftest.err >&5
24696 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24697 (exit $ac_status); } && {
24698 test -z "$ac_c_werror_flag" ||
24699 test ! -s conftest.err
24700 } && test -s conftest.$ac_objext; then
24701 ac_header_compiler=yes
24703 $as_echo "$as_me: failed program was
:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24706 ac_header_compiler=no
24709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24711 $as_echo "$ac_header_compiler" >&6; }
24713 # Is the header present?
24714 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24715 $as_echo_n "checking
$ac_header presence...
" >&6; }
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 #include <$ac_header>
24724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24729 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24733 grep -v '^ *+' conftest.er1 >conftest.err
24735 cat conftest.err >&5
24736 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24737 (exit $ac_status); } >/dev/null && {
24738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24741 ac_header_preproc=yes
24743 $as_echo "$as_me: failed program was
:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ac_header_preproc=no
24749 rm -f conftest.err conftest.$ac_ext
24750 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24751 $as_echo "$ac_header_preproc" >&6; }
24753 # So? What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24756 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24757 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24758 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24760 ac_header_preproc=yes
24763 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24764 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24766 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24767 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24768 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24769 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24770 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24771 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24773 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24774 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24778 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24779 $as_echo_n "checking
for $ac_header...
" >&6; }
24780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24781 $as_echo_n "(cached
) " >&6
24783 eval "$as_ac_Header=\
$ac_header_preproc"
24785 ac_res=`eval 'as_val=${'$as_ac_Header'}
24786 $as_echo "$as_val"'`
24787 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24788 $as_echo "$ac_res" >&6; }
24791 if test `eval 'as_val=${'$as_ac_Header'}
24792 $as_echo "$as_val"'` = yes; then
24793 cat >>confdefs.h <<_ACEOF
24794 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24803 for ac_func in fork vfork
24805 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24806 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24807 $as_echo_n "checking
for $ac_func...
" >&6; }
24808 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24809 $as_echo_n "(cached
) " >&6
24811 cat >conftest.$ac_ext <<_ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24819 #define $ac_func innocuous_$ac_func
24821 /* System header to define __stub macros and hopefully few prototypes,
24822 which can conflict with char $ac_func (); below.
24823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24824 <limits.h> exists even on freestanding compilers. */
24827 # include <limits.h>
24829 # include <assert.h>
24834 /* Override any GCC internal prototype to avoid an error.
24835 Use char because int might match the return type of a GCC
24836 builtin and then its argument prototype would still apply. */
24841 /* The GNU C library defines this for functions which it implements
24842 to always fail with ENOSYS. Some functions are actually named
24843 something starting with __ and the normal name is an alias. */
24844 #if defined __stub_$ac_func || defined __stub___$ac_func
24851 return $ac_func ();
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24862 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest$ac_exeext && {
24874 test "$cross_compiling" = yes ||
24875 $as_test_x conftest$ac_exeext
24877 eval "$as_ac_var=yes"
24879 $as_echo "$as_me: failed program was
:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 eval "$as_ac_var=no
"
24885 rm -rf conftest.dSYM
24886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24887 conftest$ac_exeext conftest.$ac_ext
24889 ac_res=`eval 'as_val=${'$as_ac_var'}
24890 $as_echo "$as_val"'`
24891 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24892 $as_echo "$ac_res" >&6; }
24893 if test `eval 'as_val=${'$as_ac_var'}
24894 $as_echo "$as_val"'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24902 if test "x
$ac_cv_func_fork" = xyes; then
24903 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
24904 $as_echo_n "checking
for working fork...
" >&6; }
24905 if test "${ac_cv_func_fork_works+set}" = set; then
24906 $as_echo_n "(cached
) " >&6
24908 if test "$cross_compiling" = yes; then
24909 ac_cv_func_fork_works=cross
24911 cat >conftest.$ac_ext <<_ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24917 $ac_includes_default
24922 /* By Ruediger Kuhlmann. */
24923 return fork () < 0;
24929 rm -f conftest$ac_exeext
24930 if { (ac_try="$ac_link"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24936 $as_echo "$ac_try_echo") >&5
24937 (eval "$ac_link") 2>&5
24939 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24945 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24946 $as_echo "$ac_try_echo") >&5
24947 (eval "$ac_try") 2>&5
24949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24950 (exit $ac_status); }; }; then
24951 ac_cv_func_fork_works=yes
24953 $as_echo "$as_me: program exited with status
$ac_status" >&5
24954 $as_echo "$as_me: failed program was
:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ( exit $ac_status )
24958 ac_cv_func_fork_works=no
24960 rm -rf conftest.dSYM
24961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
24967 $as_echo "$ac_cv_func_fork_works" >&6; }
24970 ac_cv_func_fork_works=$ac_cv_func_fork
24972 if test "x
$ac_cv_func_fork_works" = xcross; then
24974 *-*-amigaos* | *-*-msdosdjgpp*)
24975 # Override, as these systems have only a dummy fork() stub
24976 ac_cv_func_fork_works=no
24979 ac_cv_func_fork_works=yes
24982 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
24983 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
24985 ac_cv_func_vfork_works=$ac_cv_func_vfork
24986 if test "x
$ac_cv_func_vfork" = xyes; then
24987 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
24988 $as_echo_n "checking
for working vfork...
" >&6; }
24989 if test "${ac_cv_func_vfork_works+set}" = set; then
24990 $as_echo_n "(cached
) " >&6
24992 if test "$cross_compiling" = yes; then
24993 ac_cv_func_vfork_works=cross
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 /* Thanks to Paul Eggert for this test. */
25002 $ac_includes_default
25003 #include <sys/wait.h>
25004 #ifdef HAVE_VFORK_H
25005 # include <vfork.h>
25007 /* On some sparc systems, changes by the child to local and incoming
25008 argument registers are propagated back to the parent. The compiler
25009 is told about this with #include <vfork.h>, but some compilers
25010 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25011 static variable whose address is put into a register that is
25012 clobbered by the vfork. */
25015 sparc_address_test (int arg)
25017 sparc_address_test (arg) int arg;
25020 static pid_t child;
25038 pid_t parent = getpid ();
25041 sparc_address_test (0);
25046 /* Here is another test for sparc vfork register problems. This
25047 test uses lots of local variables, at least as many local
25048 variables as main has allocated so far including compiler
25049 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25050 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25051 reuse the register of parent for one of the local variables,
25052 since it will think that parent can't possibly be used any more
25053 in this routine. Assigning to the local variable will thus
25054 munge parent in the parent process. */
25056 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25057 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25058 /* Convince the compiler that p..p7 are live; otherwise, it might
25059 use the same hardware register for all 8 local variables. */
25060 if (p != p1 || p != p2 || p != p3 || p != p4
25061 || p != p5 || p != p6 || p != p7)
25064 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25065 from child file descriptors. If the child closes a descriptor
25066 before it execs or exits, this munges the parent's descriptor
25067 as well. Test for this by closing stdout in the child. */
25068 _exit(close(fileno(stdout)) != 0);
25073 while (wait(&status) != child)
25076 /* Was there some problem with vforking? */
25079 /* Did the child fail? (This shouldn't happen.) */
25082 /* Did the vfork/compiler bug occur? */
25083 || parent != getpid()
25085 /* Did the file descriptor bug occur? */
25086 || fstat(fileno(stdout), &st) != 0
25091 rm -f conftest$ac_exeext
25092 if { (ac_try="$ac_link"
25093 case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25097 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25098 $as_echo "$ac_try_echo") >&5
25099 (eval "$ac_link") 2>&5
25101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25107 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25108 $as_echo "$ac_try_echo") >&5
25109 (eval "$ac_try") 2>&5
25111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_cv_func_vfork_works=yes
25115 $as_echo "$as_me: program exited with status
$ac_status" >&5
25116 $as_echo "$as_me: failed program was
:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ( exit $ac_status )
25120 ac_cv_func_vfork_works=no
25122 rm -rf conftest.dSYM
25123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25128 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25129 $as_echo "$ac_cv_func_vfork_works" >&6; }
25132 if test "x
$ac_cv_func_fork_works" = xcross; then
25133 ac_cv_func_vfork_works=$ac_cv_func_vfork
25134 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25135 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25138 if test "x
$ac_cv_func_vfork_works" = xyes; then
25140 cat >>confdefs.h <<\_ACEOF
25141 #define HAVE_WORKING_VFORK 1
25146 cat >>confdefs.h <<\_ACEOF
25151 if test "x
$ac_cv_func_fork_works" = xyes; then
25153 cat >>confdefs.h <<\_ACEOF
25154 #define HAVE_WORKING_FORK 1
25160 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25161 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25162 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25163 $as_echo_n "(cached
) " >&6
25165 cat >conftest.$ac_ext <<_ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25171 #include <langinfo.h>
25175 char* cs = nl_langinfo(CODESET);
25180 rm -f conftest.$ac_objext conftest$ac_exeext
25181 if { (ac_try="$ac_link"
25182 case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25187 $as_echo "$ac_try_echo") >&5
25188 (eval "$ac_link") 2>conftest.er1
25190 grep -v '^ *+' conftest.er1 >conftest.err
25192 cat conftest.err >&5
25193 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25194 (exit $ac_status); } && {
25195 test -z "$ac_c_werror_flag" ||
25196 test ! -s conftest.err
25197 } && test -s conftest$ac_exeext && {
25198 test "$cross_compiling" = yes ||
25199 $as_test_x conftest$ac_exeext
25201 emacs_cv_langinfo_codeset=yes
25203 $as_echo "$as_me: failed program was
:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 emacs_cv_langinfo_codeset=no
25209 rm -rf conftest.dSYM
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25214 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25215 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25216 if test $emacs_cv_langinfo_codeset = yes; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_LANGINFO_CODESET 1
25224 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25225 $as_echo_n "checking
for size_t...
" >&6; }
25226 if test "${ac_cv_type_size_t+set}" = set; then
25227 $as_echo_n "(cached
) " >&6
25229 ac_cv_type_size_t=no
25230 cat >conftest.$ac_ext <<_ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 $ac_includes_default
25240 if (sizeof (size_t))
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25264 cat >conftest.$ac_ext <<_ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 $ac_includes_default
25274 if (sizeof ((size_t)))
25280 rm -f conftest.$ac_objext
25281 if { (ac_try="$ac_compile"
25282 case "(($ac_try" in
25283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25286 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25287 $as_echo "$ac_try_echo") >&5
25288 (eval "$ac_compile") 2>conftest.er1
25290 grep -v '^ *+' conftest.er1 >conftest.err
25292 cat conftest.err >&5
25293 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25294 (exit $ac_status); } && {
25295 test -z "$ac_c_werror_flag" ||
25296 test ! -s conftest.err
25297 } && test -s conftest.$ac_objext; then
25300 $as_echo "$as_me: failed program was
:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25303 ac_cv_type_size_t=yes
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25308 $as_echo "$as_me: failed program was
:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25317 $as_echo "$ac_cv_type_size_t" >&6; }
25318 if test $ac_cv_type_size_t = yes; then
25320 cat >>confdefs.h <<_ACEOF
25321 #define HAVE_SIZE_T 1
25328 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25329 $as_echo_n "checking
for mbstate_t...
" >&6; }
25330 if test "${ac_cv_type_mbstate_t+set}" = set; then
25331 $as_echo_n "(cached
) " >&6
25333 cat >conftest.$ac_ext <<_ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 $ac_includes_default
25340 # include <wchar.h>
25344 mbstate_t x; return sizeof x;
25349 rm -f conftest.$ac_objext
25350 if { (ac_try="$ac_compile"
25351 case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25355 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25356 $as_echo "$ac_try_echo") >&5
25357 (eval "$ac_compile") 2>conftest.er1
25359 grep -v '^ *+' conftest.er1 >conftest.err
25361 cat conftest.err >&5
25362 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25363 (exit $ac_status); } && {
25364 test -z "$ac_c_werror_flag" ||
25365 test ! -s conftest.err
25366 } && test -s conftest.$ac_objext; then
25367 ac_cv_type_mbstate_t=yes
25369 $as_echo "$as_me: failed program was
:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 ac_cv_type_mbstate_t=no
25375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25377 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25378 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25379 if test $ac_cv_type_mbstate_t = yes; then
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_MBSTATE_T 1
25387 cat >>confdefs.h <<\_ACEOF
25388 #define mbstate_t int
25393 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25394 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25395 if test "${emacs_cv_c_restrict+set}" = set; then
25396 $as_echo_n "(cached
) " >&6
25398 cat >conftest.$ac_ext <<_ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 void fred (int *restrict x);
25413 rm -f conftest.$ac_objext
25414 if { (ac_try="$ac_compile"
25415 case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25419 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25420 $as_echo "$ac_try_echo") >&5
25421 (eval "$ac_compile") 2>conftest.er1
25423 grep -v '^ *+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25427 (exit $ac_status); } && {
25428 test -z "$ac_c_werror_flag" ||
25429 test ! -s conftest.err
25430 } && test -s conftest.$ac_objext; then
25431 emacs_cv_c_restrict=yes
25433 $as_echo "$as_me: failed program was
:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 void fred (int *__restrict x);
25451 rm -f conftest.$ac_objext
25452 if { (ac_try="$ac_compile"
25453 case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25457 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25458 $as_echo "$ac_try_echo") >&5
25459 (eval "$ac_compile") 2>conftest.er1
25461 grep -v '^ *+' conftest.er1 >conftest.err
25463 cat conftest.err >&5
25464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25465 (exit $ac_status); } && {
25466 test -z "$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25468 } && test -s conftest.$ac_objext; then
25469 emacs_cv_c_restrict=__restrict
25471 $as_echo "$as_me: failed program was
:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 emacs_cv_c_restrict=no
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25483 $as_echo "$emacs_cv_c_restrict" >&6; }
25484 case "$emacs_cv_c_restrict" in
25485 yes) emacs_restrict=restrict;;
25486 no) emacs_restrict="";;
25487 *) emacs_restrict="$emacs_cv_c_restrict";;
25489 if test "$emacs_restrict" != __restrict; then
25491 cat >>confdefs.h <<_ACEOF
25492 #define __restrict $emacs_restrict
25497 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25498 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25499 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25500 $as_echo_n "(cached
) " >&6
25502 cat >conftest.$ac_ext <<_ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 void fred (int x[__restrict]);
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25523 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 emacs_cv_c_restrict_arr=yes
25537 $as_echo "$as_me: failed program was
:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 emacs_cv_c_restrict_arr=no
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25545 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25546 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25547 if test "$emacs_cv_c_restrict_arr" = yes; then
25549 cat >>confdefs.h <<\_ACEOF
25550 #define __restrict_arr __restrict
25557 # Set up the CFLAGS for real compilation, so we can substitute it.
25558 CFLAGS="$REAL_CFLAGS"
25559 CPPFLAGS="$REAL_CPPFLAGS"
25561 #### Find out which version of Emacs this is.
25562 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25563 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25564 if test x"${version}" = x; then
25565 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25566 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25567 { (exit 1); exit 1; }; }
25569 if test x"${version}" != x"$PACKAGE_VERSION"; then
25570 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25571 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25574 ### Specify what sort of things we'll be editing into Makefile and config.h.
25575 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25620 cat >>confdefs.h
<<_ACEOF
25621 #define EMACS_CONFIGURATION "${canonical}"
25625 cat >>confdefs.h
<<_ACEOF
25626 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25630 cat >>confdefs.h
<<_ACEOF
25631 #define config_machfile "${machfile}"
25635 cat >>confdefs.h
<<_ACEOF
25636 #define config_opsysfile "${opsysfile}"
25640 cat >>confdefs.h
<<_ACEOF
25641 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25645 cat >>confdefs.h
<<_ACEOF
25646 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25650 cat >>confdefs.h
<<_ACEOF
25651 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25655 cat >>confdefs.h
<<_ACEOF
25656 #define UNEXEC_SRC ${UNEXEC_SRC}
25660 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25662 cat >>confdefs.h
<<\_ACEOF
25663 #define HAVE_X_WINDOWS 1
25667 if test "${USE_X_TOOLKIT}" != "none" ; then
25669 cat >>confdefs.h
<<\_ACEOF
25670 #define USE_X_TOOLKIT 1
25673 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25675 cat >>confdefs.h
<<\_ACEOF
25676 #define USE_LUCID 1
25679 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25681 cat >>confdefs.h
<<\_ACEOF
25682 #define USE_MOTIF 1
25687 if test "${HAVE_X11}" = "yes" ; then
25689 cat >>confdefs.h
<<\_ACEOF
25694 if test "${HAVE_MENUS}" = "yes" ; then
25696 cat >>confdefs.h
<<\_ACEOF
25697 #define HAVE_MENUS 1
25701 if test "${GNU_MALLOC}" = "yes" ; then
25703 cat >>confdefs.h
<<\_ACEOF
25704 #define GNU_MALLOC 1
25708 if test "${REL_ALLOC}" = "yes" ; then
25710 cat >>confdefs.h
<<\_ACEOF
25711 #define REL_ALLOC 1
25721 #### Report on what we decided to do.
25722 #### Report GTK as a toolkit, even if it doesn't use Xt.
25723 #### It makes printing result more understandable as using GTK sets
25724 #### toolkit_scroll_bars to yes by default.
25725 if test "${HAVE_GTK}" = "yes"; then
25730 Configured for \`${canonical}'.
25732 Where should the build process find the source code? ${srcdir}
25733 What operating system and machine description files should Emacs use?
25734 \`${opsysfile}' and \`${machfile}'
25735 What compiler should emacs be built with? ${CC} ${CFLAGS}
25736 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25737 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25738 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25739 What window system should Emacs use? ${window_system}
25740 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25742 if test -n "${x_includes}"; then
25743 echo " Where do we find X Windows header files? ${x_includes}"
25745 echo " Where do we find X Windows header files? Standard dirs"
25747 if test -n "${x_libraries}"; then
25748 echo " Where do we find X Windows libraries? ${x_libraries}"
25750 echo " Where do we find X Windows libraries? Standard dirs"
25753 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25754 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25755 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25756 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25757 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25758 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25759 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25760 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25761 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25762 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25764 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25765 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25766 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25767 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25769 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25772 if test $USE_XASSERTS = yes; then
25773 echo " Compiling with asserts turned on."
25774 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25779 if test "$HAVE_NS" = "yes"; then
25781 echo "You must run \"make install\" in order to test the built application.
25782 The installed application will go to nextstep/Emacs.app and can be
25783 run or moved from there."
25784 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25785 echo "The application will be fully self-contained."
25787 echo "The lisp resources for the application will be installed under ${prefix}.
25788 You may need to run \"make install\" with sudo. The application will fail
25789 to run if these resources are not installed."
25794 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25795 echo "D-Bus integration has been tested for GNU/Linux only."
25800 # Remove any trailing slashes in these variables.
25801 test "${prefix}" != NONE
&&
25802 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25803 test "${exec_prefix}" != NONE
&&
25804 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25806 # Now get this: Some word that is part of the ${srcdir} directory name
25807 # or the ${configuration} value might, just might, happen to be an
25808 # identifier like `sun4' or `i386' or something, and be predefined by
25809 # the C preprocessor to some helpful value like 1, or maybe the empty
25810 # string. Needless to say consequent macro substitutions are less
25811 # than conducive to the makefile finding the correct directory.
25812 cpp_undefs
="`echo $srcdir $configuration $canonical |
25813 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25814 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25816 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25817 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25818 ## from Makefile.c can correctly provide the arg `-traditional' to the
25821 cat >conftest.
$ac_ext <<_ACEOF
25824 cat confdefs.h
>>conftest.
$ac_ext
25825 cat >>conftest.
$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25830 $EGREP "yes..yes" >/dev
/null
2>&1; then
25831 CPP_NEED_TRADITIONAL
=no
25833 CPP_NEED_TRADITIONAL
=yes
25838 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"
25840 ac_config_commands
="$ac_config_commands default"
25842 cat >confcache
<<\_ACEOF
25843 # This file is a shell script that caches the results of configure
25844 # tests run on this system so they can be shared between configure
25845 # scripts and configure runs, see configure's option --config-cache.
25846 # It is not useful on other systems. If it contains results you don't
25847 # want to keep, you may remove or edit it.
25849 # config.status only pays attention to the cache file if you give it
25850 # the --recheck option to rerun configure.
25852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25854 # following values.
25858 # The following way of writing the cache mishandles newlines in values,
25859 # but we know of no workaround that is simple, portable, and efficient.
25860 # So, we kill variables containing newlines.
25861 # Ultrix sh set writes to stderr and can't be redirected directly,
25862 # and sets the high bit in the cache file unless we assign to the vars.
25864 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25865 eval ac_val
=\$
$ac_var
25869 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25870 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25873 _ | IFS | as_nl
) ;; #(
25874 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25875 *) $as_unset $ac_var ;;
25881 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25882 *${as_nl}ac_space
=\
*)
25883 # `set' does not quote correctly, so add quotes (double-quote
25884 # substitution turns \\\\ into \\, and sed turns \\ into \).
25887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25890 # `set' quotes correctly as required by POSIX, so do not add quotes.
25891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25900 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25902 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25904 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25905 if test -w "$cache_file"; then
25906 test "x$cache_file" != "x/dev/null" &&
25907 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25908 $as_echo "$as_me: updating cache $cache_file" >&6;}
25909 cat confcache
>$cache_file
25911 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25917 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25918 # Let make expand exec_prefix.
25919 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25921 DEFS
=-DHAVE_CONFIG_H
25925 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25926 # 1. Remove the extension, and $U if already installed.
25927 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25928 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25930 # will be set to the directory where LIBOBJS objects are built.
25931 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25932 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25934 LIBOBJS
=$ac_libobjs
25936 LTLIBOBJS
=$ac_ltlibobjs
25940 : ${CONFIG_STATUS=./config.status}
25942 ac_clean_files_save
=$ac_clean_files
25943 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25944 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25945 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25946 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25948 # Generated by $as_me.
25949 # Run this file to recreate the current configuration.
25950 # Compiler output produced by configure, useful for debugging
25951 # configure, is in config.log if it exists.
25954 ac_cs_recheck=false
25956 SHELL=\${CONFIG_SHELL-$SHELL}
25959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25960 ## --------------------- ##
25961 ## M4sh Initialization. ##
25962 ## --------------------- ##
25964 # Be more Bourne compatible
25965 DUALCASE
=1; export DUALCASE
# for MKS sh
25966 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25969 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25970 # is contrary to our usage. Disable this feature.
25971 alias -g '${1+"$@"}'='"$@"'
25972 setopt NO_GLOB_SUBST
25974 case `(set -o) 2>/dev/null` in
25975 *posix
*) set -o posix
;;
25984 # Avoid depending upon Character Ranges.
25985 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25986 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25987 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25988 as_cr_digits
='0123456789'
25989 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25994 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25995 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25998 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25999 as_echo='printf %s
\n'
26000 as_echo_n='printf %s
'
26002 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26003 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26004 as_echo_n='/usr
/ucb
/echo -n'
26006 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26007 as_echo_n_body='eval
26011 expr "X$arg" : "X\\(.*\\)$as_nl";
26012 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26014 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26016 export as_echo_n_body
26017 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26019 export as_echo_body
26020 as_echo='sh
-c $as_echo_body as_echo
'
26023 # The user is always right.
26024 if test "${PATH_SEPARATOR+set}" != set; then
26026 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26027 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26032 # Support unset when possible.
26033 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26041 # We need space, tab and new line, in precisely that order. Quoting is
26042 # there to prevent editors from complaining about space-tab.
26043 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26044 # splitting by setting IFS to empty value.)
26047 # Find who we are. Look in the path if we contain no directory separator.
26049 *[\\/]* ) as_myself=$0 ;;
26050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26051 for as_dir in $PATH
26054 test -z "$as_dir" && as_dir=.
26055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26061 # We did not find ourselves, most probably we were run as `sh COMMAND'
26062 # in which case we are not to be found in the path.
26063 if test "x$as_myself" = x
; then
26066 if test ! -f "$as_myself"; then
26067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26068 { (exit 1); exit 1; }
26071 # Work around bugs in pre-3.0 UWIN ksh.
26072 for as_var
in ENV MAIL MAILPATH
26073 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26085 # Required to use basename.
26086 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26087 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26093 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26094 as_basename
=basename
26100 # Name of the executable.
26101 as_me
=`$as_basename -- "$0" ||
26102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26103 X"$0" : 'X\(//\)$' \| \
26104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26106 sed '/^.*\/\([^/][^/]*\)\/*$/{
26125 as_lineno_1
=$LINENO
26126 as_lineno_2
=$LINENO
26127 test "x$as_lineno_1" != "x$as_lineno_2" &&
26128 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26130 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26131 # uniformly replaced by the line number. The first 'sed' inserts a
26132 # line-number line after each line using $LINENO; the second 'sed'
26133 # does the real work. The second script uses 'N' to pair each
26134 # line-number line with the line containing $LINENO, and appends
26135 # trailing '-' during substitution so that $LINENO is not a special
26136 # case at line end.
26137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26138 # scripts with optimization help from Paolo Bonzini. Blame Lee
26139 # E. McMahon (1931-1989) for sed's syntax. :-)
26151 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26154 ' >$as_me.lineno
&&
26155 chmod +x
"$as_me.lineno" ||
26156 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26157 { (exit 1); exit 1; }; }
26159 # Don't try to exec as it changes $[0], causing all sort of problems
26160 # (the dirname of $[0] is not the place where we might find the
26161 # original and so on. Autoconf is especially sensitive to this).
26162 .
"./$as_me.lineno"
26163 # Exit status is that of the last command.
26168 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26174 ECHO_C
= ECHO_N
= ECHO_T
=
26175 case `echo -n x` in
26177 case `echo 'x\c'` in
26178 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26184 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26185 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26191 rm -f conf$$ conf$$.exe conf$$.
file
26192 if test -d conf$$.dir
; then
26193 rm -f conf$$.dir
/conf$$.
file
26196 mkdir conf$$.dir
2>/dev
/null
26198 if (echo >conf$$.
file) 2>/dev
/null
; then
26199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26201 # ... but there are two gotchas:
26202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26204 # In both cases, we have to default to `cp -p'.
26205 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26207 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26215 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26216 rmdir conf$$.dir
2>/dev
/null
26218 if mkdir
-p .
2>/dev
/null
; then
26221 test -d .
/-p && rmdir .
/-p
26225 if test -x / >/dev
/null
2>&1; then
26226 as_test_x
='test -x'
26228 if ls -dL / >/dev
/null
2>&1; then
26235 if test -d "$1"; then
26241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26242 ???[sx]*):;;*)false;;esac;fi
26246 as_executable_p
=$as_test_x
26248 # Sed expression to map a string onto a valid CPP name.
26249 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26251 # Sed expression to map a string onto a valid variable name.
26252 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26257 # Save the log message, to keep $[0] and so on meaningful, and to
26258 # report actual input values of CONFIG_FILES etc. instead of their
26259 # values after options handling.
26261 This file was extended by emacs $as_me 23.1.91, which was
26262 generated by GNU Autoconf 2.62. Invocation command line was
26264 CONFIG_FILES = $CONFIG_FILES
26265 CONFIG_HEADERS = $CONFIG_HEADERS
26266 CONFIG_LINKS = $CONFIG_LINKS
26267 CONFIG_COMMANDS = $CONFIG_COMMANDS
26270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26276 # Files that config.status was made for.
26277 config_files="$ac_config_files"
26278 config_headers="$ac_config_headers"
26279 config_commands="$ac_config_commands"
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26285 \`$as_me' instantiates files from templates according to the
26286 current configuration.
26288 Usage: $0 [OPTIONS] [FILE]...
26290 -h, --help print this help, then exit
26291 -V, --version print version number and configuration settings, then exit
26292 -q, --quiet do not print progress messages
26293 -d, --debug don't remove temporary files
26294 --recheck update $as_me by reconfiguring in the same conditions
26295 --file=FILE[:TEMPLATE]
26296 instantiate the configuration file FILE
26297 --header=FILE[:TEMPLATE]
26298 instantiate the configuration header FILE
26300 Configuration files:
26303 Configuration headers:
26306 Configuration commands:
26309 Report bugs to <bug-autoconf@gnu.org>."
26312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26314 emacs config.status 23.1.91
26315 configured by $0, generated by GNU Autoconf 2.62,
26316 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26318 Copyright (C) 2008 Free Software Foundation, Inc.
26319 This config.status script is free software; the Free Software Foundation
26320 gives unlimited permission to copy, distribute and modify it."
26325 test -n "\$AWK" || AWK=awk
26328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26329 # The default lists apply if the user does not specify any file.
26335 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26336 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26347 # Handling of the options.
26348 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26350 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26351 $as_echo "$ac_cs_version"; exit ;;
26352 --debug |
--debu |
--deb |
--de |
--d |
-d )
26354 --file |
--fil |
--fi |
--f )
26357 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26359 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26360 ac_need_defaults
=false
;;
26361 --header |
--heade |
--head |
--hea )
26364 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26366 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26367 ac_need_defaults
=false
;;
26369 # Conflict between --help and --header
26370 { $as_echo "$as_me: error: ambiguous option: $1
26371 Try \`$0 --help' for more information." >&2
26372 { (exit 1); exit 1; }; };;
26373 --help |
--hel |
-h )
26374 $as_echo "$ac_cs_usage"; exit ;;
26375 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26376 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26379 # This is an error.
26380 -*) { $as_echo "$as_me: error: unrecognized option: $1
26381 Try \`$0 --help' for more information." >&2
26382 { (exit 1); exit 1; }; } ;;
26384 *) ac_config_targets
="$ac_config_targets $1"
26385 ac_need_defaults
=false
;;
26391 ac_configure_extra_args
=
26393 if $ac_cs_silent; then
26395 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26400 if \$ac_cs_recheck; then
26401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26404 CONFIG_SHELL='$SHELL'
26405 export CONFIG_SHELL
26410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26415 ## Running $as_me. ##
26421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26425 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26431 # Handling of arguments.
26432 for ac_config_target
in $ac_config_targets
26434 case $ac_config_target in
26435 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26436 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26437 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26438 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26439 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26440 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26441 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26442 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26443 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26444 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26445 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26446 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26447 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26449 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26450 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26451 { (exit 1); exit 1; }; };;
26456 # If the user did not use the arguments to specify the items to instantiate,
26457 # then the envvar interface is used. Set only those that are not.
26458 # We use the long form for the default assignment because of an extremely
26459 # bizarre bug on SunOS 4.1.3.
26460 if $ac_need_defaults; then
26461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26466 # Have a temporary directory for convenience. Make it in the build tree
26467 # simply because there is no reason against having it here, and in addition,
26468 # creating and moving files from /tmp can sometimes cause problems.
26469 # Hook for its removal unless debugging.
26470 # Note that there is a small window in which the directory will not be cleaned:
26471 # after its creation but before its name has been assigned to `$tmp'.
26475 trap 'exit_status=$?
26476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26478 trap '{ (exit 1); exit 1; }' 1 2 13 15
26480 # Create a (secure) tmp directory for tmp files.
26483 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26484 test -n "$tmp" && test -d "$tmp"
26487 tmp
=.
/conf$$
-$RANDOM
26488 (umask 077 && mkdir
"$tmp")
26491 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26492 { (exit 1); exit 1; }
26495 # Set up the scripts for CONFIG_FILES section.
26496 # No need to generate them if there are no CONFIG_FILES.
26497 # This happens for instance with `./config.status config.h'.
26498 if test -n "$CONFIG_FILES"; then
26502 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26506 ac_cs_awk_cr
=$ac_cr
26509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26514 echo "cat >conf$$subs.awk <<_ACEOF" &&
26515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26517 } >conf$$subs.sh ||
26518 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26519 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26520 { (exit 1); exit 1; }; }
26521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26523 for ac_last_try in false false false false false :; do
26524 . ./conf$$subs.sh ||
26525 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26526 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26527 { (exit 1); exit 1; }; }
26529 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26531 elif $ac_last_try; then
26532 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26533 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26534 { (exit 1); exit 1; }; }
26536 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26539 rm -f conf$$subs.sh
26541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26542 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26546 s/^/S["/; s
/!.
*/"]=/
26556 s/\(.\{148\}\).*/\1/
26558 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26563 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26570 s/\(.\{148\}\).*/\1/
26572 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26576 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26581 ' <conf$$subs.awk | sed '
26586 ' >>$CONFIG_STATUS || ac_write_fail=1
26587 rm -f conf$$subs.awk
26588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26590 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26591 for (key in S) S_is_set[key] = 1
26597 nfields = split(line, field, "@
")
26599 len = length(field[1])
26600 for (i = 2; i < nfields; i++) {
26602 keylen = length(key)
26603 if (S_is_set[key]) {
26605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26606 len += length(value) + length(field[++i])
26617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26618 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26619 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26622 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26623 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26624 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26625 { (exit 1); exit 1; }; }
26628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26630 # trailing colons and then remove the whole line if VPATH becomes empty
26631 # (actually we leave an empty line to preserve line numbers).
26632 if test "x
$srcdir" = x.; then
26633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26634 s/:*\$(srcdir):*/:/
26635 s/:*\${srcdir}:*/:/
26637 s/^\([^=]*=[ ]*\):*/\1/
26643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26644 fi # test -n "$CONFIG_FILES"
26646 # Set up the scripts for CONFIG_HEADERS section.
26647 # No need to generate them if there are no CONFIG_HEADERS.
26648 # This happens for instance with `./config.status Makefile'.
26649 if test -n "$CONFIG_HEADERS"; then
26650 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26654 # Transform confdefs.h into an awk script `defines.awk', embedded as
26655 # here-document in config.status, that substitutes the proper values into
26656 # config.h.in to produce config.h.
26658 # Create a delimiter string that does not exist in confdefs.h, to ease
26659 # handling of long lines.
26661 for ac_last_try in false false :; do
26662 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26663 if test -z "$ac_t"; then
26665 elif $ac_last_try; then
26666 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26667 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26668 { (exit 1); exit 1; }; }
26670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26674 # For the awk script, D is an array of macro values keyed by name,
26675 # likewise P contains macro parameters if any. Preserve backslash
26676 # newline sequences.
26678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26680 s/.\{148\}/&'"$ac_delim"'/g
26683 s/^[ ]*#[ ]*define[ ][ ]*/ /
26690 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26692 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26697 D["\
1"]=" \
3\\\\\\n
"\\/p
26699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26704 s/.\{148\}/&'"$ac_delim"'/g
26709 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26712 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26714 ' <confdefs.h | sed '
26715 s/'"$ac_delim"'/"\\\
26716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 for (key in D) D_is_set[key] = 1
26722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26724 split(line, arg, " ")
26725 if (arg[1] == "#") {
26729 defundef
= substr
(arg
[1], 2)
26732 split(mac1
, mac2
, "(") #)
26734 if (D_is_set
[macro
]) {
26735 # Preserve the white space surrounding the "#".
26736 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26737 print prefix
"define", macro P
[macro
] D
[macro
]
26740 # Replace #undef with comments. This is necessary, for example,
26741 # in the case of _POSIX_SOURCE, which is predefined and required
26742 # on some systems where configure will not decide to define it.
26743 if (defundef
== "undef") {
26744 print
"/*", line
, "*/"
26752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26753 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26754 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26755 { (exit 1); exit 1; }; }
26756 fi # test -n "$CONFIG_HEADERS"
26759 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26764 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26766 case $ac_mode$ac_tag in
26768 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26769 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26770 { (exit 1); exit 1; }; };;
26771 :[FH
]-) ac_tag
=-:-;;
26772 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26789 -) ac_f
="$tmp/stdin";;
26790 *) # Look for the file first in the build tree, then in the source tree
26791 # (if the path is not absolute). The absolute path cannot be DOS-style,
26792 # because $ac_f cannot contain `:'.
26796 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26798 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26799 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26800 { (exit 1); exit 1; }; };;
26802 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26803 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26806 # Let's still pretend it is `configure' which instantiates (i.e., don't
26807 # use $as_me), people would be surprised to read:
26808 # /* config.h. Generated by config.status. */
26809 configure_input
='Generated from '`
26810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26812 if test x
"$ac_file" != x-
; then
26813 configure_input
="$ac_file. $configure_input"
26814 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26815 $as_echo "$as_me: creating $ac_file" >&6;}
26817 # Neutralize special characters interpreted by sed in replacement strings.
26818 case $configure_input in #(
26819 *\
&* |
*\|
* |
*\\* )
26820 ac_sed_conf_input
=`$as_echo "$configure_input" |
26821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26822 *) ac_sed_conf_input
=$configure_input;;
26826 *:-:* |
*:-) cat >"$tmp/stdin" \
26827 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26828 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26829 { (exit 1); exit 1; }; } ;;
26834 ac_dir
=`$as_dirname -- "$ac_file" ||
26835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26836 X"$ac_file" : 'X\(//\)[^/]' \| \
26837 X"$ac_file" : 'X\(//\)$' \| \
26838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26839 $as_echo X"$ac_file" |
26840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26844 /^X\(\/\/\)[^/].*/{
26859 -*) as_dir
=.
/$as_dir;;
26861 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26865 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26866 *) as_qdir
=$as_dir;;
26868 as_dirs
="'$as_qdir' $as_dirs"
26869 as_dir
=`$as_dirname -- "$as_dir" ||
26870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X"$as_dir" : 'X\(//\)[^/]' \| \
26872 X"$as_dir" : 'X\(//\)$' \| \
26873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26874 $as_echo X"$as_dir" |
26875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26879 /^X\(\/\/\)[^/].*/{
26892 test -d "$as_dir" && break
26894 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26895 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26896 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26897 { (exit 1); exit 1; }; }; }
26901 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26903 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26904 # A ".." for each directory in $ac_dir_suffix.
26905 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26906 case $ac_top_builddir_sub in
26907 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26908 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26911 ac_abs_top_builddir
=$ac_pwd
26912 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26913 # for backward compatibility:
26914 ac_top_builddir
=$ac_top_build_prefix
26917 .
) # We are building in place.
26919 ac_top_srcdir
=$ac_top_builddir_sub
26920 ac_abs_top_srcdir
=$ac_pwd ;;
26921 [\\/]* | ?
:[\\/]* ) # Absolute name.
26922 ac_srcdir
=$srcdir$ac_dir_suffix;
26923 ac_top_srcdir
=$srcdir
26924 ac_abs_top_srcdir
=$srcdir ;;
26925 *) # Relative name.
26926 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26927 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26928 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26930 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26940 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26941 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26946 # If the template does not know about datarootdir, expand it.
26947 # FIXME: This hack should be removed a few years after 2.60.
26948 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26961 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26962 *datarootdir
*) ac_datarootdir_seen
=yes;;
26963 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26964 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26965 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26968 ac_datarootdir_hack='
26969 s&@datadir@&$datadir&g
26970 s&@docdir@&$docdir&g
26971 s&@infodir@&$infodir&g
26972 s&@localedir@&$localedir&g
26973 s&@mandir@&$mandir&g
26974 s&\\\${datarootdir}&$datarootdir&g' ;;
26978 # Neutralize VPATH when `$srcdir' = `.'.
26979 # Shell code in configure.ac might set extrasub.
26980 # FIXME: do we really want to maintain this feature?
26981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26982 ac_sed_extra="$ac_vpsub
26985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26987 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26988 s|@configure_input@|
$ac_sed_conf_input|
;t t
26989 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26990 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26991 s
&@srcdir@
&$ac_srcdir&;t t
26992 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26993 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26994 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26995 s
&@builddir@
&$ac_builddir&;t t
26996 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26997 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26998 s
&@INSTALL@
&$ac_INSTALL&;t t
26999 $ac_datarootdir_hack
27001 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27002 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27003 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27004 { (exit 1); exit 1; }; }
27006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27007 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27009 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27010 which seems to be undefined. Please make sure it is defined." >&5
27011 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27012 which seems to be undefined. Please make sure it is defined." >&2;}
27016 -) cat "$tmp/out" && rm -f "$tmp/out";;
27017 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27019 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27020 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27021 { (exit 1); exit 1; }; }
27027 if test x"$ac_file" != x-; then
27029 $as_echo "/* $configure_input */" \
27030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27031 } >"$tmp/config.h" \
27032 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27033 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27034 { (exit 1); exit 1; }; }
27035 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27036 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27040 mv "$tmp/config.h" "$ac_file" \
27041 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27042 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27043 { (exit 1); exit 1; }; }
27046 $as_echo "/* $configure_input */" \
27047 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27048 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27049 $as_echo "$as_me: error: could not create -" >&2;}
27050 { (exit 1); exit 1; }; }
27054 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27055 $as_echo "$as_me: executing $ac_file commands" >&6;}
27060 case $ac_file$ac_mode in
27063 ### Make the necessary directories, if they don't exist.
27064 for dir
in etc lisp
; do
27065 test -d ${dir} || mkdir
${dir}
27068 # Build src/Makefile from ${srcdir}/src/Makefile.c
27069 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27070 # This must be done after src/config.h is built, since we rely on that file.
27072 echo creating src
/epaths.h
27073 ${MAKE-make} epaths-force
27075 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27076 # `..' to `. .' unless invoked with -traditional
27078 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27079 CPPFLAGS
="$CPPFLAGS -traditional"
27082 echo creating lib-src
/Makefile
27084 rm -f junk.c junk1.c junk2.c
27085 sed -e '/start of cpp stuff/q' \
27086 < Makefile.c
> junk1.c
27087 sed -e '1,/start of cpp stuff/d'\
27088 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27089 < Makefile.c
> junk.c
27090 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27091 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27092 cat junk1.c junk2.c
> Makefile.new
27093 rm -f junk.c junk1.c junk2.c
27094 chmod 444 Makefile.new
27095 mv -f Makefile.new Makefile
27098 echo creating src
/Makefile
27100 rm -f junk.c junk1.c junk2.c
27101 sed -e '/start of cpp stuff/q' \
27102 < Makefile.c
> junk1.c
27103 sed -e '1,/start of cpp stuff/d'\
27104 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27105 < Makefile.c
> junk.c
27106 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27107 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27108 cat junk1.c junk2.c
> Makefile.new
27109 rm -f junk.c junk1.c junk2.c
27110 chmod 444 Makefile.new
27111 mv -f Makefile.new Makefile
27114 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27115 echo creating src
/.gdbinit
27116 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27125 { (exit 0); exit 0; }
27127 chmod +x
$CONFIG_STATUS
27128 ac_clean_files
=$ac_clean_files_save
27130 test $ac_write_fail = 0 ||
27131 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27132 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27133 { (exit 1); exit 1; }; }
27136 # configure is writing to config.log, and then calls config.status.
27137 # config.status does its own redirection, appending to config.log.
27138 # Unfortunately, on DOS this fails, as config.log is still kept open
27139 # by configure, so config.status won't be able to write to it; its
27140 # output is simply discarded. So we exec the FD to /dev/null,
27141 # effectively closing config.log, so it can be properly (re)opened and
27142 # appended to by config.status. When coming back to configure, we
27143 # need to make the FD available again.
27144 if test "$no_create" != yes; then
27146 ac_config_status_args
=
27147 test "$silent" = yes &&
27148 ac_config_status_args
="$ac_config_status_args --quiet"
27150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27153 # would make configure fail if this is the last instruction.
27154 $ac_cs_success ||
{ (exit 1); exit 1; }
27156 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27157 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27158 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}